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

Disassembly:
sub esp, 0x464
push esi
mov esi, dword [esp + 0x46c]
push edi
mov edi, dword [esp + 0x474]
mov ecx, edi
mov eax, esi
call fcn.005bf690
test al, al
je 0x5c2671
push ebx
mov ebx, dword [esi]
push ebp
push str.stage_tournament_index
lea ecx, [esp + 0xc0]
mov dword [esp + 0x38], ebx
call fcn.00418c70
push str.rtsg
lea ecx, [esp + 0xa4]
call fcn.00418c70
push str.rtsg
lea ecx, [esp + 0x88]
call fcn.00418c70
lea eax, [esp + 0x1c]
push eax
push 5
lea ecx, [esp + 0xc4]
mov esi, edi
push ecx
lea edx, [esp + 0x108]
shr esi, 0x18
push edx
shl esi, 0x18
and edi, 0xf00000
call fcn.005b7360
add esp, 0xc
push eax
lea eax, [edi + 0x100000]
or eax, esi
push eax
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0x130]
push edx
call fcn.005b7540
add esp, 0xc
push eax
or edi, esi
push edi
lea eax, [esp + 0x94]
push eax
lea ecx, [esp + 0xec]
push ecx
call fcn.005b7510
add esp, 0xc
push eax
lea edx, [esp + 0x38]
push edx
call fcn.005b7fa0
add esp, 0xc
push eax
lea eax, [esp + 0x48]
push eax
call fcn.005b7fa0
add esp, 0xc
push eax
push str.rtsg
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call fcn.005b8270
mov ecx, eax
call fcn.005b89b0
mov ecx, eax
call fcn.005bdc80
lea ecx, [esp + 0x14]
call fcn.005bdce0
mov ecx, dword [esp + 0x44]
xor ebx, ebx
cmp ecx, ebx
mov esi, 0x8477e8
mov dword [esp + 0x3c], esi
je 0x5c1d5c
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
je 0x5c1d6b
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
mov edi, 0x84760c
mov dword [esp + 0x3c], edi
mov dword [esp + 0x28], esi
je 0x5c1d87
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
je 0x5c1d96
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov eax, dword [esp + 0xf4]
lea ecx, [esp + 0xe4]
cmp eax, ecx
mov dword [esp + 0x28], edi
je 0x5c1db5
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x9c]
lea edx, [esp + 0x8c]
cmp eax, edx
mov dword [esp + 0xd8], edi
je 0x5c1dd7
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x13c]
lea ecx, [esp + 0x12c]
cmp eax, ecx
je 0x5c1df2
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0xb8]
lea edx, [esp + 0xa8]
cmp eax, edx
mov dword [esp + 0x120], edi
je 0x5c1e14
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x118]
lea ecx, [esp + 0x108]
cmp eax, ecx
je 0x5c1e2f
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0xd4]
lea edx, [esp + 0xc4]
cmp eax, edx
mov dword [esp + 0xfc], edi
je 0x5c1e51
push eax
call fcn.004186c0
add esp, 4
mov ecx, dword [esp + 0x1c]
call fcn.005b6c70
lea eax, [esp + 0x240]
mov ecx, 0x10
or edx, 0xffffffff
lea esp, [esp]
mov dword [eax - 0xc], edx
mov dword [eax - 8], edx
mov dword [eax - 4], edx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
add eax, 0x24
dec ecx
jne 0x5c1e70
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call fcn.005b6c70
test eax, eax
jle 0x5c252b
lea eax, [esp + 0x234]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x148]
push edx
call fcn.005b6e00
push str.rtsg
lea ecx, [esp + 0x148]
call fcn.00419060
mov ebx, eax
mov eax, dword [esp + 0x150]
test eax, eax
mov dword [esp + 0x5c], ebx
je 0x5c1f09
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5c1f09
test esi, esi
je 0x5c1f09
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
push str.rtsgt
lea ecx, [esp + 0x124]
call fcn.00418c70
push str.rtsgt
lea ecx, [esp + 0x100]
call fcn.00418c70
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
shr ecx, 0x18
mov edx, ebx
and edx, 0xff00
shl ecx, 0x18
add edx, 0x100
or ecx, edx
mov eax, ebx
and eax, 0xff0000
or ecx, eax
push ecx
lea ecx, [esp + 0x128]
push ecx
lea edx, [esp + 0x1f8]
push edx
call fcn.005b7540
add esp, 0xc
push eax
push ebx
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x1b4]
push ecx
call fcn.005b7510
add esp, 0xc
push eax
lea edx, [esp + 0x34]
push edx
call fcn.005b7fa0
mov ecx, dword [esp + 0x44]
add esp, 0xc
push eax
push str.team_lookup
lea eax, [esp + 0x64]
push eax
call fcn.005b8270
mov ecx, eax
call fcn.005b89b0
mov ecx, eax
call fcn.005bdc80
lea ecx, [esp + 0x58]
call fcn.005bdce0
mov ecx, dword [esp + 0x30]
test ecx, ecx
mov dword [esp + 0x28], 0x8477e8
je 0x5c1fd4
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x5c1fe3
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov eax, dword [esp + 0x1c0]
lea ecx, [esp + 0x1b0]
cmp eax, ecx
mov esi, 0x84760c
mov dword [esp + 0x28], esi
je 0x5c2007
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x114]
lea edx, [esp + 0x104]
cmp eax, edx
mov dword [esp + 0x1a4], esi
je 0x5c2029
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x208]
lea ecx, [esp + 0x1f8]
cmp eax, ecx
je 0x5c2044
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x138]
lea edx, [esp + 0x128]
cmp eax, edx
mov dword [esp + 0x1ec], esi
je 0x5c2066
push eax
call fcn.004186c0
add esp, 4
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x188]
push eax
call fcn.005b6e00
push str.rtsgt
lea ecx, [esp + 0x188]
call fcn.00419060
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x190]
test eax, eax
je 0x5c20b6
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5c20b6
test esi, esi
je 0x5c20b6
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
push 1
lea ecx, [esp + 0x158]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.005b6e00
push str.rtsgt
lea ecx, [esp + 0x158]
call fcn.00419060
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x160]
test eax, eax
je 0x5c2106
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5c2106
test esi, esi
je 0x5c2106
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov ecx, dword [esp + 0x10]
push 0
lea edx, [esp + 0x198]
push edx
call fcn.005b6e00
push str.team_id
lea ecx, [esp + 0x198]
call fcn.00419060
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1a0]
test eax, eax
je 0x5c2156
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5c2156
test esi, esi
je 0x5c2156
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov ecx, dword [esp + 0x10]
push 1
lea eax, [esp + 0x168]
push eax
call fcn.005b6e00
push str.team_id
lea ecx, [esp + 0x168]
call fcn.00419060
mov ebp, eax
mov eax, dword [esp + 0x170]
test eax, eax
je 0x5c21a4
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5c21a4
test esi, esi
je 0x5c21a4
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
push 0
lea ecx, [esp + 0x178]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.005b6e00
push str.move_from_rtsgt
lea ecx, [esp + 0x178]
call fcn.00419060
and eax, 0xffffff00
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x180]
test eax, eax
je 0x5c21f9
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5c21f9
test esi, esi
je 0x5c21f9
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov ecx, dword [esp + 0x10]
push 1
lea edx, [esp + 0xc0]
push edx
call fcn.005b6e00
push str.move_from_rtsgt
lea ecx, [esp + 0xc0]
call fcn.00419060
mov edi, eax
mov eax, dword [esp + 0xc8]
and edi, 0xffffff00
test eax, eax
je 0x5c224d
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5c224d
test esi, esi
je 0x5c224d
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
push str.rtsg
lea ecx, [esp + 0xdc]
call fcn.00418c70
lea eax, [esp + 0x18]
push eax
push ebx
lea ecx, [esp + 0xe0]
push ecx
lea edx, [esp + 0x1d4]
push edx
call fcn.005b7360
mov ecx, dword [esp + 0x44]
add esp, 0xc
push eax
push str.fixtures
lea eax, [esp + 0x6c]
push eax
call fcn.005b8270
mov ecx, eax
call fcn.005b89b0
mov ecx, eax
call fcn.005bdc80
lea ecx, [esp + 0x60]
call fcn.005bdce0
mov eax, dword [esp + 0x1e4]
lea ecx, [esp + 0x1d4]
cmp eax, ecx
je 0x5c22c2
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0xf0]
lea edx, [esp + 0xe0]
cmp eax, edx
mov dword [esp + 0x1c8], 0x84760c
je 0x5c22e8
push eax
call fcn.004186c0
add esp, 4
mov ecx, dword [esp + 0x18]
call fcn.005b6c70
test eax, eax
jle 0x5c2471
mov ecx, dword [esp + 0x18]
push str.game_number
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x44], str.game_number
mov dword [esp + 0x48], 1
call fcn.005c1270
push 0
lea ecx, [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.005b6e00
push str.home_score
lea ecx, [esp + 0xa4]
call fcn.00419060
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xac]
test eax, eax
je 0x5c236c
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5c236c
test esi, esi
je 0x5c236c
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov ecx, dword [esp + 0x18]
push 0
lea edx, [esp + 0x88]
push edx
call fcn.005b6e00
push str.away_score
lea ecx, [esp + 0x88]
call fcn.00419060
mov ebx, eax
mov eax, dword [esp + 0x90]
test eax, eax
je 0x5c23ba
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5c23ba
test esi, esi
je 0x5c23ba
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
cmp ecx, eax
je 0x5c2471
cmp ebp, eax
je 0x5c2471
cmp dword [esp + 0x68], eax
jne 0x5c2471
cmp ebx, eax
jne 0x5c2471
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x478]
push esi
push ebx
call fcn.005c5f90
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x6c]
push ebp
push ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], esi
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], edi
mov dword [esp + 0x8c], ebp
call fcn.005c5f90
add esp, 0x10
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x4c]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x60]
push edx
push eax
lea ecx, [esp + 0x21c]
call fcn.005be9a0
mov edx, dword [esp + 0x24]
mov esi, eax
mov eax, dword [esp + 0x14]
mov edi, eax
inc edx
mov ecx, 9
add eax, 0x24
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5c24c1
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x5c24c1
test edi, edi
je 0x5c24c1
mov esi, dword [edi + 0x5c]
test esi, esi
je 0x5c24a5
dec dword [esi]
jne 0x5c24a5
test esi, esi
je 0x5c24a5
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov eax, dword [edi + 0x58]
lea ecx, [edi + 0x54]
cmp eax, ecx
je 0x5c24b8
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 0x5c2511
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x5c2511
test edi, edi
je 0x5c2511
mov esi, dword [edi + 0x5c]
test esi, esi
je 0x5c24f5
dec dword [esi]
jne 0x5c24f5
test esi, esi
je 0x5c24f5
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 0x5c2508
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
inc esi
mov dword [esp + 0x20], esi
call fcn.005b6c70
cmp esi, eax
jl 0x5c1eb4
mov eax, dword [esp + 0x24]
test eax, eax
jle 0x5c261f
mov ebp, dword [esp + 0x478]
lea ebx, [esp + 0x254]
mov dword [esp + 0x14], eax
lea esp, [esp]
mov edx, dword [ebx - 0x10]
mov esi, dword [ebx]
cmp edx, esi
jne 0x5c260d
xor eax, eax
lea ecx, [esp + 0x254]
cmp dword [ecx - 0x10], esi
je 0x5c257f
cmp edx, dword [ecx]
je 0x5c257f
mov edi, dword [ebx - 8]
cmp dword [ecx - 0x18], edi
je 0x5c257f
mov edi, dword [ebx - 0x18]
cmp edi, dword [ecx - 8]
jne 0x5c258d
inc eax
add ecx, 0x24
cmp eax, 0x10
jl 0x5c2566
jmp 0x5c260d
mov ecx, dword [ebx - 0xc]
lea edi, [eax + eax*8]
shl edi, 2
mov eax, dword [esp + edi + 0x250]
lea esi, [ebx - 0xc]
push eax
push ecx
mov eax, ebp
call fcn.005bf0f0
mov edx, dword [ebx - 4]
mov eax, dword [esp + edi + 0x250]
lea edi, [esp + edi + 0x250]
push edx
push eax
mov eax, ebp
call fcn.005bf0f0
mov edx, esi
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov ebp, dword [edx + 8]
mov edx, dword [edx + 0xc]
mov dword [esp + 0x64], edx
mov dword [esp + 0x60], ebp
mov edx, edi
mov ebp, dword [edx]
mov dword [esi], ebp
mov ebp, dword [edx + 4]
mov dword [esi + 4], ebp
mov ebp, dword [edx + 8]
mov dword [esi + 8], ebp
mov edx, dword [edx + 0xc]
mov ebp, dword [esp + 0x488]
mov dword [esi + 0xc], edx
mov dword [edi], eax
mov eax, dword [esp + 0x60]
mov dword [edi + 4], ecx
mov ecx, dword [esp + 0x64]
mov dword [edi + 8], eax
add esp, 0x10
mov dword [edi + 0xc], ecx
mov eax, dword [esp + 0x14]
add ebx, 0x24
dec eax
mov dword [esp + 0x14], eax
jne 0x5c2550
mov eax, dword [esp + 0x1c]
test eax, eax
pop ebp
pop ebx
je 0x5c2671
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x5c2671
test edi, edi
je 0x5c2671
mov esi, dword [edi + 0x5c]
test esi, esi
je 0x5c2655
dec dword [esi]
jne 0x5c2655
test esi, esi
je 0x5c2655
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 0x5c2668
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
pop edi
pop esi
add esp, 0x464
ret