Function at 0x531680
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x100
push ebx
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x18], ebx
call fcn.004a7cc0
mov esi, dword [eax + 0xc]
push str.game_number
lea ecx, [esp + 0x34]
call fcn.00418c70
lea eax, [esp + 0x10]
push eax
push esi
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x58]
push edx
call fcn.005b7510
add esp, 0xc
push eax
lea eax, [esp + 0x1c]
push str.fixtures
push eax
call fcn.004908b0
mov ecx, eax
call fcn.005b8270
mov ecx, eax
call fcn.005b89b0
mov ecx, eax
call fcn.005bdc80
lea ecx, [esp + 0x14]
call fcn.005bdce0
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x58]
cmp eax, ecx
je 0x531706
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x38]
cmp eax, ecx
mov esi, 0x84760c
mov dword [esp + 0x4c], esi
je 0x53172a
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
lea eax, [esp + 0x20]
push eax
call fcn.004936d0
add esp, 4
push str.team_id
lea ecx, [esp + 0x34]
call fcn.00418c70
lea ecx, [esp + 0x1c]
push ecx
call fcn.004a3030
push eax
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x58]
push eax
call fcn.005b7360
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
push str.team_lookup
push ecx
call fcn.004908b0
mov ecx, eax
call fcn.005b8270
mov ecx, eax
call fcn.005b89b0
mov ecx, eax
call fcn.005bdc80
lea ecx, [esp + 0x14]
call fcn.005bdce0
mov eax, dword [esp + 0x68]
lea edx, [esp + 0x58]
cmp eax, edx
je 0x5317ab
mov ecx, dword [0x9d9dcc]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x38]
cmp eax, ecx
mov dword [esp + 0x4c], esi
je 0x5317ca
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x10]
push ebp
mov byte [esp + 0x13], 1
xor ebp, ebp
call fcn.005b6c70
test eax, eax
jle 0x531a2a
mov al, byte [esp + 0x13]
test al, al
je 0x531a2a
mov ecx, dword [esp + 0x14]
push ebp
lea eax, [esp + 0x98]
push eax
call fcn.005b6e00
push str.home
lea ecx, [esp + 0x98]
call fcn.00419060
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x53183e
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x53183e
test esi, esi
je 0x53183e
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
push ebp
lea ecx, [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.005b6e00
push str.away
lea ecx, [esp + 0x88]
call fcn.00419060
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x90]
test eax, eax
je 0x53188d
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x53188d
test esi, esi
je 0x53188d
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov ecx, dword [esp + 0x14]
push ebp
lea edx, [esp + 0x78]
push edx
call fcn.005b6e00
push str.rtsg
lea ecx, [esp + 0x78]
call fcn.00419060
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x80]
test eax, eax
je 0x5318d6
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5318d6
test esi, esi
je 0x5318d6
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov ecx, dword [esp + 0x20]
xor ebx, ebx
call fcn.005b6c70
test eax, eax
jle 0x531a14
lea esp, [esp]
mov al, byte [esp + 0x13]
test al, al
je 0x531a14
mov ecx, dword [esp + 0x20]
push ebx
lea eax, [esp + 0xa8]
push eax
call fcn.005b6e00
push str.rtsgt
lea ecx, [esp + 0xa8]
call fcn.00419060
mov esi, eax
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x531949
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x531949
test edi, edi
je 0x531949
mov ecx, edi
call fcn.005b0ba0
push edi
call fcn.005b3b10
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, esi
and ecx, 0xffffff00
cmp eax, ecx
jne 0x531a02
mov eax, dword [esp + 0x30]
and esi, 0xff
cmp eax, esi
je 0x531975
cmp dword [esp + 0x28], esi
jne 0x531a02
mov ecx, dword [esp + 0x14]
push ebp
lea edx, [esp + 0x38]
push edx
call fcn.005b6e00
push 1
push str.game_number
lea ecx, [esp + 0x3c]
call fcn.00419060
push eax
lea eax, [esp + 0xbc]
push eax
call fcn.004a7cc0
mov ecx, eax
call fcn.005cb530
mov ecx, dword [eax + 8]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.005c2d00
mov eax, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x48]
add esp, 8
test eax, eax
je 0x5319e7
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5319e7
test esi, esi
je 0x5319e7
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004a5bb0
add esp, 4
test al, al
jne 0x5319fe
mov byte [esp + 0x13], al
jmp 0x531a02
inc dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
inc ebx
call fcn.005b6c70
cmp ebx, eax
jl 0x5318f0
mov ecx, dword [esp + 0x14]
inc ebp
call fcn.005b6c70
cmp ebp, eax
mov ebx, dword [esp + 0x1c]
jl 0x5317e3
mov eax, dword [esp + 0x20]
test eax, eax
pop ebp
je 0x531a7b
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x531a7b
test edi, edi
je 0x531a7b
mov esi, dword [edi + 0x5c]
test esi, esi
je 0x531a5f
dec dword [esi]
jne 0x531a5f
test esi, esi
je 0x531a5f
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov eax, dword [edi + 0x58]
lea edx, [edi + 0x54]
cmp eax, edx
je 0x531a72
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x531acb
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x531acb
test esi, esi
je 0x531acb
mov edi, dword [esi + 0x5c]
test edi, edi
je 0x531aaf
dec dword [edi]
jne 0x531aaf
test edi, edi
je 0x531aaf
mov ecx, edi
call fcn.005b0ba0
push edi
call fcn.005b3b10
add esp, 4
mov eax, dword [esi + 0x58]
lea ecx, [esi + 0x54]
cmp eax, ecx
je 0x531ac2
push eax
call fcn.005b3b10
add esp, 4
push esi
call fcn.005b3b10
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x100
ret