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

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
mov esi, dword [esp + 0x134]
push edi
or edi, 0xffffffff
push esi
mov dword [esp + 0x14], edi
call fcn.004d8460
mov ebx, eax
shr ebx, 0x18
add esp, 4
and eax, 0xf00000
shl ebx, 0x18
push str.team_id
lea ecx, [esp + 0x44]
or ebx, eax
call fcn.00418c70
lea eax, [esp + 0x18]
push eax
push esi
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.005b7360
add esp, 0xc
push eax
lea eax, [esp + 0x1c]
push str.team_lookup
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 + 0x78]
lea ecx, [esp + 0x68]
cmp eax, ecx
je 0x45d80f
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x48]
cmp eax, ecx
mov dword [esp + 0x5c], 0x84760c
je 0x45d832
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
or ecx, 0xffffffff
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
xor eax, eax
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
or ebp, 0xffffffff
mov dword [esp + 0x1c], eax
call fcn.005b6c70
test eax, eax
jle 0x45db96
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x84]
push eax
call fcn.005b6e00
push str.rtsgt
lea ecx, [esp + 0x84]
call fcn.00419060
mov esi, eax
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x45d8b8
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x45d8b8
test edi, edi
je 0x45d8b8
mov ecx, edi
call fcn.005b0ba0
push edi
call fcn.005b3b10
add esp, 4
and esi, 0xffffff00
mov edi, esi
shr edi, 0x18
mov ecx, esi
shl edi, 0x18
and ecx, 0xf00000
or edi, ecx
cmp ebp, edi
je 0x45db5f
push str.tournament_type
lea ecx, [esp + 0x60]
call fcn.00418c70
push str.is_play_off_tournament
lea ecx, [esp + 0x94]
call fcn.00418c70
push str.rtsg
lea ecx, [esp + 0xb0]
call fcn.00418c70
lea edx, [esp + 0x14]
push edx
push 1
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x11c]
push ecx
call fcn.005b74b0
add esp, 0xc
push eax
push 0
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0xfc]
push eax
call fcn.005b7360
add esp, 0xc
push eax
push esi
lea ecx, [esp + 0xbc]
push ecx
lea edx, [esp + 0xdc]
push edx
call fcn.005b7360
add esp, 0xc
push eax
lea eax, [esp + 0x38]
push eax
call fcn.005b7fa0
add esp, 0xc
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.005b7fa0
add esp, 0xc
push eax
lea edx, [esp + 0x2c]
push str.rtsg
push edx
call fcn.004908b0
mov ecx, eax
call fcn.005b8270
mov ecx, eax
call fcn.005b89b0
mov ecx, eax
call fcn.005bdc80
lea ecx, [esp + 0x24]
call fcn.005bdce0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
mov dword [esp + 0x34], 0x8477e8
je 0x45d9ba
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x45d9c9
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov ecx, dword [esp + 0x30]
test ecx, ecx
mov dword [esp + 0x34], 0x84760c
mov dword [esp + 0x28], 0x8477e8
je 0x45d9e8
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x45d9f7
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov eax, dword [esp + 0xe4]
lea ecx, [esp + 0xd4]
cmp eax, ecx
mov dword [esp + 0x28], 0x84760c
je 0x45da20
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0xc4]
lea ecx, [esp + 0xb4]
cmp eax, ecx
mov dword [esp + 0xc8], 0x84760c
je 0x45da4c
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x108]
lea ecx, [esp + 0xf8]
cmp eax, ecx
je 0x45da6d
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0xa8]
lea ecx, [esp + 0x98]
cmp eax, ecx
mov dword [esp + 0xec], 0x84760c
je 0x45da99
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x12c]
lea ecx, [esp + 0x11c]
cmp eax, ecx
je 0x45daba
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x74]
lea ecx, [esp + 0x64]
cmp eax, ecx
mov dword [esp + 0x110], 0x84760c
je 0x45dae0
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x14]
call fcn.005b6c70
test eax, eax
jle 0x45db0f
push esi
push ebx
call fcn.004d8320
add esp, 8
test al, al
je 0x45db0f
mov eax, dword [esp + 0x20]
cmp eax, 5
jge 0x45db0f
mov dword [esp + eax*4 + 0x40], edi
inc eax
mov ebp, edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x45db5f
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x45db5f
test edi, edi
je 0x45db5f
mov esi, dword [edi + 0x5c]
test esi, esi
je 0x45db43
dec dword [esi]
jne 0x45db43
test esi, esi
je 0x45db43
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 0x45db56
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc esi
mov dword [esp + 0x1c], esi
call fcn.005b6c70
cmp esi, eax
jl 0x45d867
mov esi, dword [esp + 0x20]
test esi, esi
jle 0x45db92
call fcn.0060fae0
xor edx, edx
div esi
mov edx, dword [esp + edx*4 + 0x40]
mov dword [esp + 0x10], edx
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45dbf5
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x45dbf5
test esi, esi
je 0x45dbf5
mov edi, dword [esi + 0x5c]
test edi, edi
je 0x45dbca
dec dword [edi]
jne 0x45dbca
test edi, edi
je 0x45dbca
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 0x45dbdd
push eax
call fcn.005b3b10
add esp, 4
push esi
call fcn.005b3b10
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret