Thats a really easy function to reverse. Have fun.
Code:
.text:00726C70 sub_726C70 proc near ; DATA XREF: .data:00A42BECo
.text:00726C70
.text:00726C70 var_C = qword ptr -0Ch
.text:00726C70 arg_0 = dword ptr 8
.text:00726C70
.text:00726C70 push ebp
.text:00726C71 mov ebp, esp
.text:00726C73 push ecx
.text:00726C74 cmp dword_11DA88C, 0
.text:00726C7B jnz short loc_726C92
.text:00726C7D mov eax, [ebp+arg_0]
.text:00726C80 push eax
.text:00726C81 call lua_pushnil
.text:00726C86 add esp, 4
.text:00726C89 mov eax, 1
.text:00726C8E mov esp, ebp
.text:00726C90 pop ebp
.text:00726C91 retn
.text:00726C92 ; ---------------------------------------------------------------------------
.text:00726C92
.text:00726C92 loc_726C92: ; CODE XREF: sub_726C70+Bj
.text:00726C92 mov ecx, dword_11DA890
.text:00726C98 fild dword_11DA890
.text:00726C9E test ecx, ecx
.text:00726CA0 jge short loc_726CA8
.text:00726CA2 fadd ds:dbl_9876D8
.text:00726CA8
.text:00726CA8 loc_726CA8: ; CODE XREF: sub_726C70+30j
.text:00726CA8 mov edx, [ebp+arg_0]
.text:00726CAB sub esp, 8
.text:00726CAE fstp [esp+0Ch+var_C]
.text:00726CB1 push edx ; int
.text:00726CB2 call lua_pushnumber
.text:00726CB7 add esp, 0Ch
.text:00726CBA mov eax, 1
.text:00726CBF mov esp, ebp
.text:00726CC1 pop ebp
.text:00726CC2 retn
.text:00726CC2 sub_726C70 endp
Second hint:
Result: Integer - Faction/team that has won the battlefield. Results are: nil if nobody has won, 0 for Horde and 1 for Alliance in a battleground, 0 for Green Team and 1 for Yellow in an arena.