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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2ec
push ebx
push esi
push edi
push str.rtsgt
lea ecx, [esp + 0x34]
mov byte [esp + 0x17], 0
call fcn.00418c70
push str.rtsgt
lea ecx, [esp + 0x50]
call fcn.00418c70
mov esi, dword [ebp + 0xc]
mov ecx, esi
shr ecx, 0x18
mov edx, esi
and edx, 0xf00000
shl ecx, 0x18
lea eax, [esp + 0x1c]
push eax
add edx, 0x100000
or ecx, edx
push ecx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x98]
push ecx
call fcn.005b7540
add esp, 0xc
push eax
push esi
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x78]
push eax
call fcn.005b7510
add esp, 0xc
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.005b7fa0
add esp, 0xc
push eax
lea edx, [esp + 0x20]
push str.team_lookup
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 + 0x18]
call fcn.005bdce0
mov ecx, dword [esp + 0x28]
test ecx, ecx
mov dword [esp + 0x20], 0x8477e8
je 0x45a8dd
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x45a8ec
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x74]
cmp eax, ecx
mov esi, 0x84760c
mov dword [esp + 0x20], esi
je 0x45a913
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x54]
cmp eax, ecx
mov dword [esp + 0x68], esi
je 0x45a932
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
je 0x45a953
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 dword [esp + 0x8c], esi
je 0x45a975
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
or eax, 0xffffffff
mov ecx, 0x80
lea edi, [esp + 0xf8]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x1c]
call fcn.005b6c70
xor esi, esi
test eax, eax
mov dword [esp + 0x18], eax
jle 0x45a9f2
lea esp, [esp]
mov ecx, dword [esp + 0x1c]
push esi
lea eax, [esp + 0x34]
push eax
call fcn.005b6e00
push str.qualify_from_rtsgt
lea ecx, [esp + 0x34]
call fcn.00419060
mov dword [esp + esi*4 + 0xf8], eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x45a9e9
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x45a9e9
test edi, edi
je 0x45a9e9
mov ecx, edi
call fcn.005b0ba0
push edi
call fcn.005b3b10
add esp, 4
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x45a9a0
xor ebx, ebx
test eax, eax
jle 0x45ac59
lea esp, [esp]
mov edi, dword [esp + ebx*4 + 0xf8]
cmp edi, 0xffffffff
je 0x45ac4c
mov esi, edi
push str.rtsgt
lea ecx, [esp + 0x6c]
and esi, 0xffffff00
call fcn.00418c70
push str.rtsgt
lea ecx, [esp + 0x90]
call fcn.00418c70
lea ecx, [esp + 0x14]
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 + 0x70]
push edx
lea eax, [esp + 0xe0]
push eax
call fcn.005b7540
add esp, 0xc
push eax
push esi
lea ecx, [esp + 0x98]
push ecx
lea edx, [esp + 0xc0]
push edx
call fcn.005b7510
add esp, 0xc
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.005b7fa0
add esp, 0xc
push eax
lea ecx, [esp + 0x34]
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 + 0x2c]
call fcn.005bdce0
mov ecx, dword [esp + 0x38]
test ecx, ecx
mov dword [esp + 0x30], 0x8477e8
je 0x45aadf
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x45aaee
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov eax, dword [esp + 0xcc]
lea ecx, [esp + 0xbc]
cmp eax, ecx
mov esi, 0x84760c
mov dword [esp + 0x30], esi
je 0x45ab18
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0xa4]
lea ecx, [esp + 0x94]
cmp eax, ecx
mov dword [esp + 0xb0], esi
je 0x45ab40
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0xf0]
lea ecx, [esp + 0xe0]
cmp eax, ecx
je 0x45ab61
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x70]
cmp eax, ecx
mov dword [esp + 0xd4], esi
je 0x45ab86
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x14]
push str._ranking
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], str._ranking
mov dword [esp + 0x2c], 0xffffffff
call fcn.00459e90
and edi, 0xff
push edi
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.005b6e00
push str.team_id
lea ecx, [esp + 0x50]
call fcn.00419060
mov edi, eax
mov eax, dword [esp + 0x58]
test eax, eax
je 0x45abf3
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x45abf3
test esi, esi
je 0x45abf3
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
cmp edi, dword [ebp + 8]
mov eax, dword [esp + 0x14]
je 0x45acb6
test eax, eax
je 0x45ac4c
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x45ac4c
test edi, edi
je 0x45ac4c
mov esi, dword [edi + 0x5c]
test esi, esi
je 0x45ac30
dec dword [esi]
jne 0x45ac30
test esi, esi
je 0x45ac30
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 0x45ac43
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
mov eax, dword [esp + 0x18]
inc ebx
cmp ebx, eax
jl 0x45aa00
mov bl, byte [esp + 0x13]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x45acad
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x45acad
test esi, esi
je 0x45acad
mov edi, dword [esi + 0x5c]
test edi, edi
je 0x45ac91
dec dword [edi]
jne 0x45ac91
test edi, edi
je 0x45ac91
mov ecx, edi
call fcn.005b0ba0
push edi
call fcn.005b3b10
add esp, 4
mov eax, dword [esi + 0x58]
lea edx, [esi + 0x54]
cmp eax, edx
je 0x45aca4
push eax
call fcn.005b3b10
add esp, 4
push esi
call fcn.005b3b10
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
mov bl, 1
je 0x45ac5d
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x45ac5d
test edi, edi
je 0x45ac5d
mov esi, dword [edi + 0x5c]
test esi, esi
je 0x45ace8
dec dword [esi]
jne 0x45ace8
test esi, esi
je 0x45ace8
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 0x45acfb
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
jmp 0x45ac5d