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

Disassembly:
sub esp, 0x170
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push str.rtsg
lea ecx, [esp + 0x58]
mov dword [esp + 0x54], ebp
mov dword [esp + 0x14], 0
call fcn.00418c70
mov edi, dword [esp + 0x184]
lea eax, [esp + 0x18]
push eax
push edi
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x80]
push edx
call fcn.005b7360
mov ecx, dword [ebp]
add esp, 0xc
push eax
push str.rtsg
lea eax, [esp + 0x20]
push 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 + 0x90]
lea ecx, [esp + 0x80]
cmp eax, ecx
je 0x5c93cd
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x5c]
cmp eax, edx
mov esi, 0x84760c
mov dword [esp + 0x74], esi
je 0x5c93eb
push eax
call fcn.004186c0
add esp, 4
push str.rtsgt
lea ecx, [esp + 0xac]
call fcn.00418c70
push str.rtsgt
lea ecx, [esp + 0x58]
call fcn.00418c70
mov eax, edi
shr eax, 0x18
mov ecx, edi
and ecx, 0xff00
shl eax, 0x18
add ecx, 0x100
or eax, ecx
mov edx, edi
and edx, 0xff0000
or eax, edx
push eax
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0xcc]
push ecx
call fcn.005b7540
add esp, 0xc
push eax
push edi
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x80]
push eax
call fcn.005b7510
add esp, 0xc
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.005b7fa0
mov ecx, dword [ebp]
add esp, 0xc
push eax
push str.team_lookup
lea edx, [esp + 0x1c]
push edx
call fcn.005b8270
mov ecx, eax
call fcn.005b89b0
push eax
lea ecx, [esp + 0x50]
call fcn.005bdd10
lea ecx, [esp + 0x14]
call fcn.005bdce0
mov ecx, dword [esp + 0x44]
test ecx, ecx
mov dword [esp + 0x3c], 0x8477e8
je 0x5c94ae
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
test ecx, ecx
je 0x5c94bd
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov eax, dword [esp + 0x90]
lea ecx, [esp + 0x80]
cmp eax, ecx
mov dword [esp + 0x3c], esi
je 0x5c94dc
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x5c]
cmp eax, edx
mov dword [esp + 0x74], esi
je 0x5c94f5
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0xe0]
lea ecx, [esp + 0xd0]
cmp eax, ecx
je 0x5c9510
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0xc0]
lea edx, [esp + 0xb0]
cmp eax, edx
mov dword [esp + 0xc4], esi
je 0x5c9532
push eax
call fcn.004186c0
add esp, 4
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x50]
call fcn.005bdc80
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x50]
call fcn.005bdc80
mov ecx, dword [esp + 0x24]
call fcn.005b6c70
cmp eax, 2
jne 0x5c958b
mov ecx, dword [esp + 0x18]
push 0
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x18], 1
call fcn.005b6e00
push str.num_games_per_team
lea ecx, [esp + 0x2c]
call fcn.00419060
cmp eax, 2
jne 0x5c958b
mov bl, 1
jmp 0x5c958d
xor bl, bl
test byte [esp + 0x10], 1
je 0x5c95c4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
and edx, 0xfffffffe
test eax, eax
mov dword [esp + 0x10], edx
je 0x5c95c4
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5c95c4
test esi, esi
je 0x5c95c4
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
test bl, bl
mov dword [esp + 0x40], 0xffffffff
je 0x5c95e4
push str._aggregate_ranking
lea eax, [esp + 0x40]
mov dword [esp + 0x40], str._aggregate_ranking
push eax
jmp 0x5c95f6
push str._ranking
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], str._ranking
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.005c7d60
mov ecx, dword [esp + 0x18]
push 0
lea edx, [esp + 0x2c]
push edx
call fcn.005b6e00
push str.stage_tournament_index
lea ecx, [esp + 0x2c]
call fcn.00419060
mov ebx, eax
mov eax, dword [esp + 0x34]
neg ebx
sbb bl, bl
inc bl
test eax, eax
je 0x5c964a
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5c964a
test esi, esi
je 0x5c964a
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
test bl, bl
je 0x5c98b1
mov eax, dword [ebp + 0x70]
test eax, eax
je 0x5c96a4
mov ecx, dword [esp + 0x24]
push 0
lea eax, [esp + 0x2c]
push eax
call fcn.005b6e00
push edi
push str.team_id
lea ecx, [esp + 0x30]
call fcn.00419060
push eax
call dword [ebp + 0x70]
mov eax, dword [esp + 0x3c]
add esp, 8
test eax, eax
je 0x5c96a4
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5c96a4
test esi, esi
je 0x5c96a4
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
push 0
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.005b6e00
push str.asset_id
lea ecx, [esp + 0x2c]
call fcn.00419060
cmp eax, 0x180
mov eax, dword [esp + 0x34]
sete bl
test eax, eax
je 0x5c96ef
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5c96ef
test esi, esi
je 0x5c96ef
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
test bl, bl
je 0x5c98b1
push str.asset_id
lea ecx, [esp + 0x58]
call fcn.00418c70
lea edx, [esp + 0x20]
push edx
push 0x55
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x80]
push ecx
call fcn.005b7360
mov ecx, dword [ebp]
add esp, 0xc
push eax
push str.rtsg
lea edx, [esp + 0x20]
push edx
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 + 0x90]
lea ecx, [esp + 0x80]
cmp eax, ecx
je 0x5c9766
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x5c]
cmp eax, edx
mov dword [esp + 0x74], 0x84760c
je 0x5c9783
push eax
call fcn.004186c0
add esp, 4
mov ecx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x2c]
push eax
call fcn.005b6e00
push str.rtsg
lea ecx, [esp + 0x2c]
call fcn.00419060
mov esi, eax
shr esi, 0x18
and eax, 0xf00000
shl esi, 0x18
or esi, eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x5c97d5
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x5c97d5
test edi, edi
je 0x5c97d5
mov ecx, edi
call fcn.005b0ba0
push edi
call fcn.005b3b10
add esp, 4
push 0x857314
lea ecx, [esp + 0x58]
call fcn.00418c70
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0xfc]
call fcn.005b7e80
push 0x8c2138
mov ecx, dword [ebp]
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
lea edx, [esp + 0x11c]
push edx
push str.team_manager
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x164], esi
mov dword [esp + 0x168], 0
mov dword [esp + 0x128], 0x84f9cc
call fcn.005b8270
mov ecx, eax
call fcn.005bdac0
lea ecx, [esp + 0x14]
call fcn.005bdce0
mov eax, dword [esp + 0x114]
lea ecx, [esp + 0x104]
cmp eax, ecx
je 0x5c9883
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x6c]
lea edx, [esp + 0x5c]
cmp eax, edx
mov dword [esp + 0xf8], 0x84f900
je 0x5c98a3
push eax
call fcn.004186c0
add esp, 4
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x5c98b1
push ecx
call fcn.00418f80
mov ecx, dword [esp + 0x18]
push 0
lea eax, [esp + 0x2c]
push eax
call fcn.005b6e00
push str.tournament_type
lea ecx, [esp + 0x2c]
call fcn.00419060
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x5c98f8
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5c98f8
test esi, esi
je 0x5c98f8
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
push 0
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.005b6e00
push str.asset_id
lea ecx, [esp + 0x2c]
call fcn.00419060
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x5c993f
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5c993f
test esi, esi
je 0x5c993f
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], 0
call fcn.005b6c70
test eax, eax
jle 0x5c9d4d
mov edi, dword [esp + 0xa4]
nop
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
push ebp
lea edx, [esp + 0xec]
push edx
call fcn.005b6e00
push str.move_to_rtsgt
lea ecx, [esp + 0xec]
call fcn.00419060
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xf4]
test eax, eax
je 0x5c99b3
dec dword [eax]
cmp dword [eax], 0
mov ebx, eax
jne 0x5c99b3
test ebx, ebx
je 0x5c99b3
mov ecx, ebx
call fcn.005b0ba0
push ebx
call fcn.005b3b10
add esp, 4
mov ecx, dword [esp + 0x24]
push ebp
lea eax, [esp + 0xac]
push eax
call fcn.005b6e00
push str.team_id
lea ecx, [esp + 0xac]
call fcn.00419060
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x5c9a02
dec dword [eax]
cmp dword [eax], 0
mov ebx, eax
jne 0x5c9a02
test ebx, ebx
je 0x5c9a02
mov ecx, ebx
call fcn.005b0ba0
push ebx
call fcn.005b3b10
add esp, 4
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x58]
push edx
call fcn.005b6e00
push str.rtsgt
lea ecx, [esp + 0x58]
call fcn.00419060
mov ebp, eax
mov eax, dword [esp + 0x60]
test eax, eax
je 0x5c9a4a
dec dword [eax]
cmp dword [eax], 0
mov ebx, eax
jne 0x5c9a4a
test ebx, ebx
je 0x5c9a4a
mov ecx, ebx
call fcn.005b0ba0
push ebx
call fcn.005b3b10
add esp, 4
mov esi, dword [esp + 0x14]
cmp esi, ebp
je 0x5c9bc3
push str.team_id
lea ecx, [esp + 0x78]
call fcn.00418c70
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x140]
call fcn.005b7e80
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x178], ecx
push str.rtsgt
lea ecx, [esp + 0xc8]
mov dword [esp + 0x180], 0
mov dword [esp + 0x140], 0x84f9cc
call fcn.00418c70
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
lea edx, [esp + 0x160]
push edx
push esi
lea eax, [esp + 0xf0]
push eax
lea ecx, [esp + 0x128]
push ecx
call fcn.005b7360
mov ebx, dword [esp + 0x84]
mov ecx, dword [ebx]
add esp, 0xc
push eax
push str.team_lookup
lea edx, [esp + 0xa0]
push edx
call fcn.005b8270
mov ecx, eax
call fcn.005b89b0
mov ecx, eax
call fcn.005bdac0
lea ecx, [esp + 0x70]
call fcn.005bdce0
mov eax, dword [esp + 0x114]
lea ecx, [esp + 0x104]
cmp eax, ecx
je 0x5c9b43
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0xdc]
lea edx, [esp + 0xcc]
cmp eax, edx
mov dword [esp + 0xf8], 0x84760c
je 0x5c9b69
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x158]
lea ecx, [esp + 0x148]
cmp eax, ecx
je 0x5c9b84
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x8c]
lea edx, [esp + 0x7c]
cmp eax, edx
mov dword [esp + 0x13c], 0x84f900
je 0x5c9ba7
push eax
call fcn.004186c0
add esp, 4
mov eax, esi
shr eax, 0x18
mov ecx, esi
shl eax, 0x18
and ecx, 0xff0000
or eax, ecx
push eax
push ebx
call fcn.005c1c30
add esp, 8
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x5c9c1b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push 0
lea edx, [esp + 0x9c]
or eax, 2
push edx
mov dword [esp + 0x18], eax
call fcn.005b6e00
push str.stage_tournament_index
lea ecx, [esp + 0x9c]
call fcn.00419060
test eax, eax
je 0x5c9c14
mov eax, ebp
xor eax, esi
test eax, 0xffffff00
jne 0x5c9c14
mov edi, dword [esp + 0xa4]
mov bl, 1
jmp 0x5c9c1d
mov edi, dword [esp + 0xa4]
xor bl, bl
test byte [esp + 0x10], 2
je 0x5c9c5a
mov ecx, dword [esp + 0x10]
and ecx, 0xfffffffd
test edi, edi
mov dword [esp + 0x10], ecx
je 0x5c9c5a
mov edx, dword [edi]
dec edx
mov eax, edi
mov dword [edi], edx
cmp dword [eax], 0
jne 0x5c9c53
test edi, edi
je 0x5c9c53
mov ecx, edi
call fcn.005b0ba0
push edi
call fcn.005b3b10
add esp, 4
mov edi, dword [esp + 0xa4]
test bl, bl
je 0x5c9c7b
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx + 0x74]
test eax, eax
je 0x5c9c7b
mov edx, dword [esp + 0x184]
mov ecx, dword [esp + 0x20]
push edx
push ecx
call eax
add esp, 8
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x5c9cbf
mov ecx, dword [esp + 0x10]
or ecx, 4
push 0
lea edx, [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x1c]
push edx
call fcn.005b6e00
push str.stage_tournament_index
lea ecx, [esp + 0x2c]
call fcn.00419060
test eax, eax
je 0x5c9cbf
mov eax, ebp
xor eax, esi
test eax, 0xffffff00
je 0x5c9cbf
mov bl, 1
jmp 0x5c9cc1
xor bl, bl
test byte [esp + 0x10], 4
mov eax, dword [esp + 0x34]
je 0x5c9cf8
mov edx, dword [esp + 0x10]
and edx, 0xfffffffb
test eax, eax
mov dword [esp + 0x10], edx
je 0x5c9cf8
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5c9cf8
test esi, esi
je 0x5c9cf8
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
test bl, bl
je 0x5c9d33
mov ebx, dword [esp + 0x50]
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x5c9d33
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push eax
push ebp
call fcn.005b6c70
mov ecx, dword [esp + 0x30]
push eax
and ebp, 0xff
push ebp
push ecx
call dword [ebx + 0x68]
add esp, 0x1c
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x1c]
inc ebx
mov dword [esp + 0x38], ebx
call fcn.005b6c70
cmp ebx, eax
jl 0x5c9960
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5c9d9d
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x5c9d9d
test edi, edi
je 0x5c9d9d
mov esi, dword [edi + 0x5c]
test esi, esi
je 0x5c9d81
dec dword [esi]
jne 0x5c9d81
test esi, esi
je 0x5c9d81
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 0x5c9d94
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x5c9ded
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x5c9ded
test edi, edi
je 0x5c9ded
mov esi, dword [edi + 0x5c]
test esi, esi
je 0x5c9dd1
dec dword [esi]
jne 0x5c9dd1
test esi, esi
je 0x5c9dd1
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 0x5c9de4
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
lea ecx, [esp + 0x4c]
call fcn.005bdce0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5c9e46
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x5c9e46
test edi, edi
je 0x5c9e46
mov esi, dword [edi + 0x5c]
test esi, esi
je 0x5c9e2a
dec dword [esi]
jne 0x5c9e2a
test esi, esi
je 0x5c9e2a
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 0x5c9e3d
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x170
ret 4