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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x15cc
call fcn.0081cf10
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ebx
push esi
push edi
lea edx, [esp + 0x14]
push edx
push str.team_lookup
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x30], ecx
call fcn.005b8270
mov ecx, eax
call fcn.005bdc80
push str.team_id
lea ecx, [esp + 0x27c]
push ecx
mov ecx, dword [eax]
call fcn.005b6c80
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x5bf809
push ecx
call fcn.00418f80
lea ecx, [esp + 0x1c]
call fcn.005bdce0
mov dword [esp + 0x60], 0
lea ebx, [ebx]
mov dword [esp + 0x40], 0
jmp 0x5bf830
mov eax, dword [esp + 0x40]
test eax, eax
mov edi, dword [esp + 0x24]
push edi
jne 0x5bf850
call fcn.005bf470
mov esi, eax
mov ebx, 6
mov eax, 7
jmp 0x5bf861
call fcn.005bf580
mov esi, eax
mov ebx, 5
mov eax, 6
mov ecx, dword [esp + 0x64]
add esp, 4
cmp ecx, 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x10], ebx
jne 0x5bf87f
mov ebx, eax
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x5d8]
call fcn.005bed30
push str.stage_tournament_index
lea ecx, [esp + 0x30c]
call fcn.00418c70
push str.rtsg
lea ecx, [esp + 0x3b4]
call fcn.00418c70
push str.rtsg
lea ecx, [esp + 0x328]
call fcn.00418c70
lea edx, [esp + 0x44]
push edx
push ebx
lea eax, [esp + 0x310]
push eax
lea ecx, [esp + 0x558]
push ecx
call fcn.005b7360
add esp, 0xc
push eax
mov edx, esi
shr edx, 0x18
mov eax, esi
and eax, 0xf00000
shl edx, 0x18
add eax, 0x100000
or edx, eax
push edx
lea ecx, [esp + 0x3bc]
push ecx
lea edx, [esp + 0x484]
push edx
call fcn.005b7540
add esp, 0xc
push eax
push esi
lea eax, [esp + 0x334]
push eax
lea ecx, [esp + 0x440]
push ecx
call fcn.005b7510
add esp, 0xc
push eax
lea edx, [esp + 0x118]
push edx
call fcn.005b7fa0
add esp, 0xc
push eax
lea eax, [esp + 0x144]
push eax
call fcn.005b7fa0
add esp, 0xc
push eax
push str.rtsg
lea ecx, [esp + 0xf8]
push ecx
mov ecx, edi
call fcn.005b8270
mov ecx, eax
call fcn.005b89b0
mov ecx, eax
call fcn.005bdc80
lea ecx, [esp + 0xec]
call fcn.005bdce0
mov ecx, dword [esp + 0x140]
test ecx, ecx
mov esi, 0x8477e8
mov dword [esp + 0x138], esi
je 0x5bf995
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov ecx, dword [esp + 0x13c]
test ecx, ecx
je 0x5bf9a7
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov ecx, dword [esp + 0x110]
test ecx, ecx
mov edi, 0x84760c
mov dword [esp + 0x138], edi
mov dword [esp + 0x108], esi
je 0x5bf9cc
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov ecx, dword [esp + 0x10c]
test ecx, ecx
je 0x5bf9de
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov eax, dword [esp + 0x448]
lea ecx, [esp + 0x438]
cmp eax, ecx
mov dword [esp + 0x108], edi
je 0x5bfa00
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x33c]
lea edx, [esp + 0x32c]
cmp eax, edx
mov dword [esp + 0x42c], edi
je 0x5bfa22
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x490]
lea ecx, [esp + 0x480]
cmp eax, ecx
je 0x5bfa3d
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x3c8]
lea edx, [esp + 0x3b8]
cmp eax, edx
mov dword [esp + 0x474], edi
je 0x5bfa5f
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x568]
lea ecx, [esp + 0x558]
cmp eax, ecx
je 0x5bfa7a
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x320]
lea edx, [esp + 0x310]
cmp eax, edx
mov dword [esp + 0x54c], edi
je 0x5bfa9c
push eax
call fcn.004186c0
add esp, 4
mov ecx, dword [esp + 0x44]
push str.rtsg
lea eax, [esp + 0x5bc]
push eax
call fcn.005b6c80
mov eax, dword [esp + 0x44]
mov esi, dword [eax + 0x58]
mov ecx, dword [eax + 0x4c]
lea edx, [eax + 0x5c]
push edx
mov edx, dword [eax + 4]
lea edi, [esi + ecx*4]
push edx
mov ecx, esi
mov ebx, eax
push ecx
add eax, 8
push eax
lea ecx, [esp + 0x178]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edi
call fcn.005b86b0
mov dword [esp + 0x178], ebx
mov dword [esp + 0x17c], esi
mov dword [esp + 0x180], esi
mov dword [esp + 0x184], edi
mov eax, dword [esp + 0x44]
mov edi, dword [eax + 0x58]
mov ecx, dword [eax + 0x4c]
lea esi, [edi + ecx*4]
mov ecx, dword [eax + 4]
lea edx, [eax + 0x5c]
push edx
push ecx
mov ebx, eax
push esi
add eax, 8
push eax
lea ecx, [esp + 0x21c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], esi
call fcn.005b86b0
mov edx, dword [esp + 0x17c]
mov eax, dword [esp + 0x218]
cmp edx, esi
mov dword [esp + 0x21c], ebx
setne bl
test eax, eax
mov dword [esp + 0x220], esi
mov dword [esp + 0x224], edi
mov dword [esp + 0x228], esi
je 0x5bfb80
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5bfb80
test esi, esi
je 0x5bfb80
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
test bl, bl
je 0x5c07e7
mov edx, dword [esp + 0x17c]
push edx
lea ecx, [esp + 0x16c]
call fcn.005b84a0
lea eax, [esp + 0x5b8]
push eax
lea ecx, [esp + 0x16c]
call fcn.00418fd0
mov esi, eax
push str.rtsgt
lea ecx, [esp + 0x2f0]
mov dword [esp + 0x1c], esi
call fcn.00418c70
push str.rtsgt
lea ecx, [esp + 0x37c]
call fcn.00418c70
lea ecx, [esp + 0x68]
push ecx
mov edx, esi
shr edx, 0x18
mov eax, esi
and eax, 0xff00
shl edx, 0x18
add eax, 0x100
or edx, eax
mov ecx, esi
and ecx, 0xff0000
or edx, ecx
push edx
lea edx, [esp + 0x2f4]
push edx
lea eax, [esp + 0x5a0]
push eax
call fcn.005b7540
add esp, 0xc
push eax
push esi
lea ecx, [esp + 0x384]
push ecx
lea edx, [esp + 0x4cc]
push edx
call fcn.005b7510
add esp, 0xc
push eax
lea eax, [esp + 0x120]
push eax
call fcn.005b7fa0
add esp, 0xc
push eax
push str.team_lookup
lea ecx, [esp + 0xf4]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.005b8270
mov ecx, eax
call fcn.005b89b0
mov ecx, eax
call fcn.005bdc80
lea ecx, [esp + 0xe8]
call fcn.005bdce0
mov ecx, dword [esp + 0x11c]
test ecx, ecx
mov dword [esp + 0x114], 0x8477e8
je 0x5bfc8f
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov ecx, dword [esp + 0x118]
test ecx, ecx
je 0x5bfca1
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov eax, dword [esp + 0x4d8]
lea ecx, [esp + 0x4c8]
cmp eax, ecx
mov esi, 0x84760c
mov dword [esp + 0x114], esi
je 0x5bfcc8
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x390]
lea edx, [esp + 0x380]
cmp eax, edx
mov dword [esp + 0x4bc], esi
je 0x5bfcea
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x5b0]
lea ecx, [esp + 0x5a0]
cmp eax, ecx
je 0x5bfd05
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x304]
lea edx, [esp + 0x2f4]
cmp eax, edx
mov dword [esp + 0x594], esi
je 0x5bfd27
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x68]
mov esi, dword [eax + 0x58]
mov ecx, dword [eax + 0x4c]
lea edx, [eax + 0x5c]
push edx
mov edx, dword [eax + 4]
lea edi, [esi + ecx*4]
push edx
mov ecx, esi
mov ebx, eax
push ecx
add eax, 8
push eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edi
call fcn.005b86b0
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], edi
nop
mov eax, dword [esp + 0x68]
mov edi, dword [eax + 0x58]
mov ecx, dword [eax + 0x4c]
lea esi, [edi + ecx*4]
mov ecx, dword [eax + 4]
lea edx, [eax + 0x5c]
push edx
push ecx
mov ebx, eax
push esi
add eax, 8
push eax
lea ecx, [esp + 0x23c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], esi
call fcn.005b86b0
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x238]
cmp edx, esi
mov dword [esp + 0x23c], ebx
setne bl
test eax, eax
mov dword [esp + 0x240], esi
mov dword [esp + 0x244], edi
mov dword [esp + 0x248], esi
je 0x5bfdf0
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5bfdf0
test esi, esi
je 0x5bfdf0
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
test bl, bl
je 0x5c072f
mov edx, dword [esp + 0x80]
push edx
lea ecx, [esp + 0x70]
call fcn.005b84a0
lea eax, [esp + 0x278]
push eax
lea ecx, [esp + 0x70]
call fcn.00418fd0
mov esi, eax
cmp esi, 0xffffffff
je 0x5bfeab
mov ecx, dword [ebp + 8]
push esi
push ecx
call fcn.005c5f90
add esp, 8
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x5dc]
mov dword [esp + 0x160], esi
mov dword [esp + 0x164], eax
mov dword [esp + 0x168], 2
call fcn.005beda0
lea edx, [esp + 0x15c]
mov dword [esp + 0x20], edx
mov edx, dword [eax]
lea ecx, [esp + 0x168]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x14]
lea edx, [edx + edx*2]
lea edx, [ecx + edx*4]
mov dword [esp + 0x1c4], ecx
lea ecx, [esp + 0x1c0]
push ecx
mov dword [esp + 0x1c4], edx
mov dword [esp + 0x1cc], edx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call fcn.005beed0
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x10], edx
jne 0x5c0712
mov eax, dword [esp + 0x80]
push eax
lea ecx, [esp + 0x70]
call fcn.005b84a0
push str.move_to_rtsgt
lea ecx, [esp + 0x70]
call fcn.00419060
mov ebx, eax
and ebx, 0xffffff00
cmp ebx, 0xffffffff
mov dword [esp + 0x28], ebx
je 0x5c0712
mov ecx, dword [esp + 0x80]
push ecx
lea ecx, [esp + 0x70]
call fcn.005b84a0
push str.rtsgt
lea ecx, [esp + 0x70]
call fcn.00419060
and eax, 0xffffff00
cmp ebx, eax
je 0x5c0712
push str.rtsgt
lea ecx, [esp + 0x398]
call fcn.00418c70
push str.rtsgt
lea ecx, [esp + 0x29c]
call fcn.00418c70
lea edx, [esp + 0x64]
push edx
mov ecx, ebx
and ecx, 0xff00
add ecx, 0x100
mov eax, ebx
shr eax, 0x18
mov edx, ebx
shl eax, 0x18
and edx, 0xff0000
or ecx, edx
or ecx, eax
push ecx
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x39c]
push eax
lea ecx, [esp + 0x57c]
push ecx
call fcn.005b7540
add esp, 0xc
push eax
push ebx
lea edx, [esp + 0x2a4]
push edx
lea eax, [esp + 0x514]
push eax
call fcn.005b7510
add esp, 0xc
push eax
lea ecx, [esp + 0x108]
push ecx
call fcn.005b7fa0
mov ecx, dword [esp + 0x34]
add esp, 0xc
push eax
push str.team_lookup
lea edx, [esp + 0xe4]
push edx
call fcn.005b8270
mov ecx, eax
call fcn.005b89b0
mov ecx, eax
call fcn.005bdc80
lea ecx, [esp + 0xd8]
call fcn.005bdce0
mov ecx, dword [esp + 0x104]
test ecx, ecx
mov dword [esp + 0xfc], 0x8477e8
je 0x5bfff8
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov ecx, dword [esp + 0x100]
test ecx, ecx
je 0x5c000a
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov eax, dword [esp + 0x520]
lea ecx, [esp + 0x510]
cmp eax, ecx
mov esi, 0x84760c
mov dword [esp + 0xfc], esi
je 0x5c0031
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x2b0]
lea edx, [esp + 0x2a0]
cmp eax, edx
mov dword [esp + 0x504], esi
je 0x5c0053
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x58c]
lea ecx, [esp + 0x57c]
cmp eax, ecx
je 0x5c006e
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x3ac]
lea edx, [esp + 0x39c]
cmp eax, edx
mov dword [esp + 0x570], esi
je 0x5c0090
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x64]
mov esi, dword [eax + 0x58]
mov ecx, dword [eax + 0x4c]
lea edx, [eax + 0x5c]
push edx
mov edx, dword [eax + 4]
lea edi, [esi + ecx*4]
push edx
mov ecx, esi
mov dword [esp + 0x28], eax
push ecx
add eax, 8
push eax
lea ecx, [esp + 0x9c]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edi
call fcn.005b86b0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], edi
mov eax, dword [esp + 0x64]
mov edi, dword [eax + 0x58]
mov ecx, dword [eax + 0x4c]
lea esi, [edi + ecx*4]
mov ecx, dword [eax + 4]
lea edx, [eax + 0x5c]
push edx
push ecx
mov dword [esp + 0x28], eax
push esi
add eax, 8
push eax
lea ecx, [esp + 0x1dc]
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], esi
call fcn.005b86b0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1d8]
mov dword [esp + 0x1dc], edx
cmp dword [esp + 0xa0], esi
setne byte [esp + 0xf]
test eax, eax
mov dword [esp + 0x1e0], esi
mov dword [esp + 0x1e4], edi
mov dword [esp + 0x1e8], esi
je 0x5c016a
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5c016a
test esi, esi
je 0x5c016a
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov al, byte [esp + 0xf]
test al, al
je 0x5c069a
mov eax, dword [esp + 0xa0]
push eax
lea ecx, [esp + 0x90]
call fcn.005b84a0
lea ecx, [esp + 0x278]
push ecx
lea ecx, [esp + 0x90]
call fcn.00418fd0
mov esi, eax
cmp esi, 0xffffffff
je 0x5c024f
mov edx, dword [esp + 0x24]
push edx
call fcn.005bf580
mov edi, dword [esp + 0x18]
mov edx, dword [ebp + 8]
and ebx, 0xf00000
xor ecx, ecx
or ebx, edi
cmp ebx, eax
setne cl
push esi
push edx
mov edi, ecx
call fcn.005c5f90
mov dword [esp + 0x160], eax
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x5dc]
mov dword [esp + 0x154], esi
mov dword [esp + 0x15c], edi
call fcn.005beda0
lea edx, [esp + 0x150]
mov dword [esp + 0x3c], edx
mov edx, dword [eax]
lea ecx, [esp + 0x15c]
mov dword [esp + 0x20], ecx
mov ecx, dword [eax + 0x14]
lea edx, [edx + edx*2]
lea edx, [ecx + edx*4]
mov dword [esp + 0x1b8], ecx
lea ecx, [esp + 0x1b4]
push ecx
mov dword [esp + 0x1b8], edx
mov dword [esp + 0x1c0], edx
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
call fcn.005beed0
jmp 0x5c0676
cmp dword [esp + 0x40], 1
jne 0x5c0676
mov edx, dword [esp + 0xa0]
push edx
lea ecx, [esp + 0x90]
call fcn.005b84a0
push str.move_from_rtsgt
lea ecx, [esp + 0x90]
call fcn.00419060
mov esi, eax
and esi, 0xffffff00
cmp esi, 0xffffffff
je 0x5c0676
mov eax, dword [esp + 0xa0]
push eax
lea ecx, [esp + 0x90]
call fcn.005b84a0
push str.rtsgt
lea ecx, [esp + 0x90]
call fcn.00419060
and eax, 0xffffff00
cmp esi, eax
je 0x5c0676
mov ecx, dword [esp + 0x24]
mov edi, esi
shr edi, 0x18
push ecx
shl edi, 0x18
call fcn.005bf470
mov edx, esi
and edx, 0xf00000
or edx, edi
add esp, 4
cmp edx, eax
jne 0x5c0676
push str.rtsgt
lea ecx, [esp + 0x2b8]
call fcn.00418c70
push str.rtsgt
lea ecx, [esp + 0x360]
call fcn.00418c70
mov ecx, esi
and ecx, 0xff00
add ecx, 0x100
mov edx, esi
and edx, 0xff0000
or ecx, edx
lea eax, [esp + 0x5c]
push eax
or ecx, edi
push ecx
lea eax, [esp + 0x2bc]
push eax
lea ecx, [esp + 0x4a4]
push ecx
call fcn.005b7540
add esp, 0xc
push eax
push esi
lea edx, [esp + 0x368]
push edx
lea eax, [esp + 0x460]
push eax
call fcn.005b7510
add esp, 0xc
push eax
lea ecx, [esp + 0x12c]
push ecx
call fcn.005b7fa0
mov ecx, dword [esp + 0x34]
add esp, 0xc
push eax
push str.team_lookup
lea edx, [esp + 0xf0]
push edx
call fcn.005b8270
mov ecx, eax
call fcn.005b89b0
mov ecx, eax
call fcn.005bdc80
lea ecx, [esp + 0xe4]
call fcn.005bdce0
mov ecx, dword [esp + 0x128]
test ecx, ecx
mov dword [esp + 0x120], 0x8477e8
je 0x5c03bc
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov ecx, dword [esp + 0x124]
test ecx, ecx
je 0x5c03ce
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov eax, dword [esp + 0x46c]
lea ecx, [esp + 0x45c]
cmp eax, ecx
mov esi, 0x84760c
mov dword [esp + 0x120], esi
je 0x5c03f5
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x374]
lea edx, [esp + 0x364]
cmp eax, edx
mov dword [esp + 0x450], esi
je 0x5c0417
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x4b4]
lea ecx, [esp + 0x4a4]
cmp eax, ecx
je 0x5c0432
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x2cc]
lea edx, [esp + 0x2bc]
cmp eax, edx
mov dword [esp + 0x498], esi
je 0x5c0454
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x5c]
mov esi, dword [eax + 0x58]
mov ecx, dword [eax + 0x4c]
lea edx, [eax + 0x5c]
push edx
mov edx, dword [eax + 4]
lea edi, [esi + ecx*4]
push edx
mov ecx, esi
mov ebx, eax
push ecx
add eax, 8
push eax
lea ecx, [esp + 0x198]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edi
call fcn.005b86b0
mov dword [esp + 0x198], ebx
mov dword [esp + 0x19c], esi
mov dword [esp + 0x1a0], esi
mov dword [esp + 0x1a4], edi
mov eax, dword [esp + 0x5c]
mov edi, dword [eax + 0x58]
mov ecx, dword [eax + 0x4c]
lea edx, [eax + 0x5c]
push edx
mov edx, dword [eax + 4]
lea esi, [edi + ecx*4]
push edx
mov ecx, esi
mov ebx, eax
push ecx
add eax, 8
push eax
lea ecx, [esp + 0x25c]
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], esi
call fcn.005b86b0
mov edx, dword [esp + 0x19c]
mov eax, esi
cmp edx, eax
mov dword [esp + 0x260], eax
mov eax, dword [esp + 0x258]
mov dword [esp + 0x25c], ebx
setne bl
test eax, eax
mov dword [esp + 0x264], edi
mov dword [esp + 0x268], esi
je 0x5c0526
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5c0526
test esi, esi
je 0x5c0526
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
test bl, bl
je 0x5c05fe
mov eax, dword [esp + 0x19c]
push eax
lea ecx, [esp + 0x18c]
call fcn.005b84a0
lea ecx, [esp + 0x278]
push ecx
lea ecx, [esp + 0x18c]
call fcn.00418fd0
mov edx, dword [ebp + 8]
mov esi, eax
push esi
push edx
call fcn.005c5f90
mov dword [esp + 0x138], eax
add esp, 8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x5dc]
mov dword [esp + 0x130], esi
mov dword [esp + 0x138], 1
call fcn.005beda0
lea edx, [esp + 0x12c]
mov dword [esp + 0x20], edx
mov edx, dword [eax]
lea ecx, [esp + 0x138]
mov dword [esp + 0x3c], ecx
mov ecx, dword [eax + 0x14]
lea edx, [edx + edx*2]
lea edx, [ecx + edx*4]
mov dword [esp + 0x1ac], ecx
lea ecx, [esp + 0x1a8]
push ecx
mov dword [esp + 0x1ac], edx
mov dword [esp + 0x1b4], edx
lea edx, [esp + 0x40]
push edx
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call fcn.005beed0
mov edx, dword [esp + 0x198]
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x19c]
lea edx, [ecx + eax*4]
mov dword [esp + 0x19c], edx
jmp 0x5c04a2
mov eax, dword [esp + 0x194]
test eax, eax
je 0x5c0626
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5c0626
test esi, esi
je 0x5c0626
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x5c0676
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x5c0676
test edi, edi
je 0x5c0676
mov esi, dword [edi + 0x5c]
test esi, esi
je 0x5c065a
dec dword [esi]
jne 0x5c065a
test esi, esi
je 0x5c065a
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 0x5c066d
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
mov edx, dword [esp + 0x9c]
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0xa0]
mov ebx, dword [esp + 0x28]
lea edx, [ecx + eax*4]
mov dword [esp + 0xa0], edx
jmp 0x5c00e4
mov eax, dword [esp + 0x98]
test eax, eax
je 0x5c06c2
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5c06c2
test esi, esi
je 0x5c06c2
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov eax, dword [esp + 0x64]
test eax, eax
je 0x5c0712
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x5c0712
test edi, edi
je 0x5c0712
mov esi, dword [edi + 0x5c]
test esi, esi
je 0x5c06f6
dec dword [esi]
jne 0x5c06f6
test esi, esi
je 0x5c06f6
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 0x5c0709
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
mov edx, dword [esp + 0x7c]
mov eax, dword [edx + 4]
mov ecx, dword [esp + 0x80]
lea edx, [ecx + eax*4]
mov dword [esp + 0x80], edx
jmp 0x5bfd70
mov eax, dword [esp + 0x78]
test eax, eax
je 0x5c0754
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5c0754
test esi, esi
je 0x5c0754
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov eax, dword [esp + 0x40]
test eax, eax
je 0x5c0777
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x10], eax
je 0x5c0777
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x5dc]
call fcn.005beda0
mov eax, dword [esp + 0x68]
test eax, eax
je 0x5c07c7
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x5c07c7
test edi, edi
je 0x5c07c7
mov esi, dword [edi + 0x5c]
test esi, esi
je 0x5c07ab
dec dword [esi]
jne 0x5c07ab
test esi, esi
je 0x5c07ab
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 0x5c07be
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
mov eax, dword [esp + 0x178]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x17c]
lea eax, [edx + ecx*4]
mov dword [esp + 0x17c], eax
jmp 0x5bfb00
mov eax, dword [esp + 0x174]
test eax, eax
je 0x5c080f
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5c080f
test esi, esi
je 0x5c080f
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
lea eax, [esp + 0x9e0]
mov ecx, 0x100
or edx, 0xffffffff
mov edi, edi
mov dword [eax - 8], edx
mov dword [eax - 4], edx
mov dword [eax], 2
add eax, 0xc
dec ecx
jne 0x5c0820
lea ecx, [esp + 0xdc]
push ecx
xor ebx, ebx
lea ecx, [esp + 0x5dc]
mov dword [esp + 0x1c], ebx
call fcn.005bea30
mov ecx, dword [esp + 0xdc]
lea edx, [esp + 0x9d8]
cmp ecx, edx
je 0x5c08d5
mov edi, edi
mov esi, dword [ecx + 8]
test esi, esi
jle 0x5c08b0
mov eax, dword [ecx + 0x1c]
lea edx, [ebx + ebx*2]
lea edx, [esp + edx*4 + 0x9d8]
mov dword [esp + 0x1c], esi
cmp dword [eax + 8], 2
jne 0x5c089e
mov esi, eax
mov ebx, dword [esi]
mov edi, edx
mov dword [edi], ebx
mov ebx, dword [esi + 4]
mov esi, dword [esi + 8]
mov dword [edi + 4], ebx
mov ebx, dword [esp + 0x18]
inc ebx
mov dword [edi + 8], esi
mov dword [esp + 0x18], ebx
add edx, 0xc
mov esi, dword [esp + 0x1c]
add eax, 0xc
dec esi
mov dword [esp + 0x1c], esi
jne 0x5c0878
lea esp, [esp]
mov eax, dword [esp + 0xe0]
add ecx, 0x20
cmp ecx, eax
je 0x5c08c3
cmp byte [ecx], 0
je 0x5c08b0
lea eax, [esp + 0x9d8]
cmp ecx, eax
jne 0x5c0860
mov dword [esp + 0xdc], ecx
mov dword [esp + 0x2c], 0x40
lea ecx, [ecx]
mov ecx, dword [esp + 0x2c]
dec ecx
test ebx, ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x10], 0
jle 0x5c099b
lea edi, [esp + 0x9d8]
mov dword [esp + 0x14], edi
jmp 0x5c0910
xor ebx, ebx
mov dword [esp + 0x1c], ebx
lea esi, [esp + 0x9d8]
lea ecx, [ecx]
cmp dword [esp + 0x10], ebx
je 0x5c0973
call fcn.0081e4be
cdq
mov ecx, 3
idiv ecx
test edx, edx
jne 0x5c0973
mov edx, edi
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x274], edx
mov edx, esi
mov ebx, dword [edx]
mov dword [edi], ebx
mov ebx, dword [edx + 4]
mov dword [edi + 4], ebx
mov edx, dword [edx + 8]
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], edx
mov edi, dword [esp + 0x14]
mov edx, esi
mov dword [edx], eax
mov eax, dword [esp + 0x274]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov eax, dword [esp + 0x18]
inc ebx
add esi, 0xc
cmp ebx, eax
mov dword [esp + 0x1c], ebx
jl 0x5c0920
mov ecx, dword [esp + 0x10]
inc ecx
add edi, 0xc
cmp ecx, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edi
jl 0x5c0910
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x5dc]
mov byte [esp + 0x13], 1
call fcn.005bea30
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x9d8]
cmp eax, edx
je 0x5c0c1f
mov ebx, dword [esp + 0x18]
jmp 0x5c09d0
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 8]
test edx, edx
mov dword [esp + 0x14], 0
jle 0x5c0bec
mov dword [esp + 0x10], 0
nop
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 0x1c]
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + eax + 8]
add ecx, eax
cmp esi, 2
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], ecx
jne 0x5c0b2c
xor esi, esi
test ebx, ebx
jle 0x5c0a64
xor edi, edi
lea ebx, [ebx]
cmp dword [esp + edi + 0x9e0], 3
je 0x5c0a5c
xor ecx, ecx
test edx, edx
jle 0x5c0a4c
add eax, 4
cmp dword [eax + 4], 2
je 0x5c0a44
mov ebx, dword [eax]
cmp ebx, dword [esp + edi + 0x9dc]
je 0x5c0a4c
inc ecx
add eax, 0xc
cmp ecx, edx
jl 0x5c0a33
cmp ecx, edx
mov ebx, dword [esp + 0x18]
je 0x5c0af8
mov eax, dword [esp + 0x28]
inc esi
add edi, 0xc
cmp esi, ebx
jl 0x5c0a20
mov eax, dword [esp + 0x2c]
test eax, eax
mov byte [esp + 0xf], 0
lea ecx, [esp + 0x5d8]
jne 0x5c0b54
lea edx, [esp + 0xf0]
push edx
call fcn.005bea30
mov eax, dword [esp + 0xf0]
lea ecx, [esp + 0x9d8]
cmp eax, ecx
je 0x5c0aee
mov edi, dword [esp + 0xf4]
mov ecx, dword [eax + 8]
xor esi, esi
test ecx, ecx
jle 0x5c0ad0
xor edx, edx
lea ecx, [ecx]
mov ecx, dword [eax + 0x1c]
cmp dword [edx + ecx + 8], 2
lea ecx, [edx + ecx + 8]
jne 0x5c0ac4
mov dword [ecx], 3
mov ecx, dword [eax + 8]
inc esi
add edx, 0xc
cmp esi, ecx
jl 0x5c0ab0
nop
add eax, 0x20
cmp eax, edi
je 0x5c0adc
cmp byte [eax], 0
je 0x5c0ad0
lea edx, [esp + 0x9d8]
cmp eax, edx
jne 0x5c0aa2
mov dword [esp + 0xf0], eax
mov byte [esp + 0xf], 1
jmp 0x5c0bec
lea eax, [esi + esi*2]
shl eax, 2
cmp esi, ebx
mov dword [esp + eax + 0x9e0], 3
lea edx, [esp + eax + 0x9d8]
mov ecx, dword [edx]
mov eax, dword [esp + 0x3c]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
jge 0x5c0a64
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x48]
add edx, 0xc
inc eax
mov dword [esp + 0x10], edx
mov edx, dword [ecx + 8]
cmp eax, edx
mov dword [esp + 0x14], eax
jl 0x5c09f0
jmp 0x5c0bec
lea eax, [esp + 0xb0]
push eax
call fcn.005bea30
mov eax, dword [esp + 0xb0]
lea ecx, [esp + 0x9d8]
cmp eax, ecx
je 0x5c0bce
mov edi, dword [esp + 0xb4]
lea ebx, [ebx]
mov ecx, dword [eax + 8]
xor esi, esi
test ecx, ecx
jle 0x5c0bb0
xor edx, edx
jmp 0x5c0b90
mov ecx, dword [eax + 0x1c]
cmp dword [edx + ecx + 8], 3
lea ecx, [edx + ecx + 8]
jne 0x5c0ba4
mov dword [ecx], 2
mov ecx, dword [eax + 8]
inc esi
add edx, 0xc
cmp esi, ecx
jl 0x5c0b90
nop
add eax, 0x20
cmp eax, edi
je 0x5c0bbc
cmp byte [eax], 0
je 0x5c0bb0
lea edx, [esp + 0x9d8]
cmp eax, edx
jne 0x5c0b80
mov dword [esp + 0xb0], eax
test ebx, ebx
jle 0x5c0bec
lea eax, [esp + 0x9e0]
mov ecx, ebx
jmp 0x5c0be0
mov dword [eax], 2
add eax, 0xc
dec ecx
jne 0x5c0be0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
add eax, 0x20
cmp eax, ecx
je 0x5c0c00
cmp byte [eax], 0
je 0x5c0bf0
lea ecx, [esp + 0x9d8]
cmp eax, ecx
mov dword [esp + 0x48], eax
jne 0x5c09d0
mov al, byte [esp + 0xf]
test al, al
je 0x5c08e0
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x5dc]
call fcn.005bea30
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x9d8]
cmp ecx, eax
je 0x5c1094
mov edi, dword [esp + 0x54]
mov esi, dword [edi + 4]
push str.rtsgt
lea ecx, [esp + 0x344]
xor ebx, ebx
call fcn.00418c70
push str.rtsgt
lea ecx, [esp + 0x2d4]
call fcn.00418c70
mov edx, esi
shr edx, 0x18
mov eax, esi
shl edx, 0x18
and eax, 0xff00
add eax, 0x100
or edx, eax
lea ecx, [esp + 0x50]
push ecx
and esi, 0xff0000
or edx, esi
push edx
lea ecx, [esp + 0x348]
push ecx
lea edx, [esp + 0x534]
push edx
call fcn.005b7540
add esp, 0xc
push eax
mov eax, dword [edi + 4]
push eax
lea ecx, [esp + 0x2dc]
push ecx
lea edx, [esp + 0x4f0]
push edx
call fcn.005b7510
add esp, 0xc
push eax
lea eax, [esp + 0x150]
push eax
call fcn.005b7fa0
add esp, 0xc
push eax
push str.team_lookup
lea ecx, [esp + 0xb8]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.005b8270
mov ecx, eax
call fcn.005b89b0
mov ecx, eax
call fcn.005bdc80
lea ecx, [esp + 0xac]
call fcn.005bdce0
mov ecx, dword [esp + 0x14c]
test ecx, ecx
mov dword [esp + 0x144], 0x8477e8
je 0x5c0d26
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov ecx, dword [esp + 0x148]
test ecx, ecx
je 0x5c0d38
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov eax, dword [esp + 0x4fc]
lea ecx, [esp + 0x4ec]
cmp eax, ecx
mov esi, 0x84760c
mov dword [esp + 0x144], esi
je 0x5c0d5f
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x2e8]
lea edx, [esp + 0x2d8]
cmp eax, edx
mov dword [esp + 0x4e0], esi
je 0x5c0d81
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x544]
lea ecx, [esp + 0x534]
cmp eax, ecx
je 0x5c0d9c
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x358]
lea edx, [esp + 0x348]
cmp eax, edx
mov dword [esp + 0x528], esi
je 0x5c0dbe
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x50]
mov esi, dword [eax + 0x58]
mov ecx, dword [eax + 0x4c]
lea edx, [eax + 0x5c]
push edx
mov edx, dword [eax + 4]
lea edi, [esi + ecx*4]
push edx
mov ecx, esi
mov dword [esp + 0x30], eax
push ecx
add eax, 8
push eax
lea ecx, [esp + 0xc8]
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], edi
call fcn.005b86b0
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], esi
mov dword [esp + 0xd0], esi
mov dword [esp + 0xd4], edi
mov eax, dword [esp + 0x50]
mov edi, dword [eax + 0x58]
mov ecx, dword [eax + 0x4c]
lea esi, [edi + ecx*4]
mov ecx, dword [eax + 4]
lea edx, [eax + 0x5c]
push edx
push ecx
mov dword [esp + 0x30], eax
push esi
add eax, 8
push eax
lea ecx, [esp + 0x1fc]
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], esi
call fcn.005b86b0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1f8]
mov dword [esp + 0x1fc], edx
cmp dword [esp + 0xcc], esi
setne byte [esp + 0xf]
test eax, eax
mov dword [esp + 0x200], esi
mov dword [esp + 0x204], edi
mov dword [esp + 0x208], esi
je 0x5c0e98
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5c0e98
test esi, esi
je 0x5c0e98
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov al, byte [esp + 0xf]
test al, al
je 0x5c1037
mov eax, dword [esp + 0xcc]
push eax
lea ecx, [esp + 0xbc]
call fcn.005b84a0
lea ecx, [esp + 0x278]
push ecx
lea ecx, [esp + 0xbc]
call fcn.00418fd0
test eax, eax
jle 0x5c1017
mov esi, dword [esp + 0x54]
mov eax, dword [esi + 0x1c]
lea edx, [ebx + ebx*2]
mov ecx, dword [eax + edx*4 + 8]
cmp ecx, 3
lea eax, [eax + edx*4 + 8]
je 0x5c0efc
jmp 0x5c0ef0
mov ecx, dword [eax + 0xc]
add eax, 0xc
inc ebx
cmp ecx, 3
jne 0x5c0ef0
push str.team_id
lea ecx, [esp + 0x3d0]
call fcn.00418c70
mov edx, dword [esi + 0x1c]
lea ecx, [ebx + ebx*2]
lea eax, [esp + 0x3cc]
lea esi, [edx + ecx*4]
push eax
lea ecx, [esp + 0x3ec]
call fcn.005b7e80
mov edx, dword [esp + 0xcc]
mov dword [esp + 0x3e8], 0x84f954
mov ecx, dword [esi]
mov dword [esp + 0x424], ecx
push edx
lea ecx, [esp + 0xbc]
mov dword [esp + 0x42c], 0
mov dword [esp + 0x3ec], 0x84f9cc
call fcn.005b84a0
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
push 0x8c2138
lea eax, [esp + 0x40c]
push eax
lea ecx, [esp + 0xe0]
push ecx
mov ecx, dword [esp + 0x50]
push str.team_lookup
lea edx, [esp + 0x128]
push edx
call fcn.005b8270
mov ecx, eax
call fcn.005b8a00
mov ecx, eax
call fcn.005bdac0
lea ecx, [esp + 0xf8]
call fcn.005bdce0
mov eax, dword [esp + 0x404]
lea ecx, [esp + 0x3f4]
cmp eax, ecx
je 0x5c0ff0
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x3e4]
lea edx, [esp + 0x3d4]
cmp eax, edx
mov dword [esp + 0x3e8], 0x84f900
je 0x5c1016
push eax
call fcn.004186c0
add esp, 4
inc ebx
mov eax, dword [esp + 0xc8]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0xcc]
lea eax, [edx + ecx*4]
mov dword [esp + 0xcc], eax
jmp 0x5c0e12
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x5c105f
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x5c105f
test esi, esi
je 0x5c105f
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x5c106d
push ecx
call fcn.00418f80
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x54]
add eax, 0x20
cmp eax, ecx
je 0x5c1081
cmp byte [eax], 0
je 0x5c1075
lea ecx, [esp + 0x9d8]
cmp eax, ecx
mov dword [esp + 0x54], eax
jne 0x5c0c43
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x5c10a2
push ecx
call fcn.00418f80
lea esi, [esp + 0x9f4]
mov edi, 0x20
mov edi, edi
mov eax, dword [esi - 0x20]
sub esi, 0x20
lea edx, [esi - 0xc]
cmp eax, edx
je 0x5c10c6
push eax
call fcn.004186c0
add esp, 4
dec edi
jne 0x5c10b0
mov eax, dword [esp + 0x40]
inc eax
cmp eax, 2
mov dword [esp + 0x40], eax
jl 0x5bf830
mov eax, dword [esp + 0x60]
inc eax
cmp eax, 2
mov dword [esp + 0x60], eax
jl 0x5bf820
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret