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

Disassembly:
sub esp, 0x9c
push esi
push edi
mov edi, ecx
push str.rtsgt
lea ecx, [esp + 0x44]
mov dword [esp + 0x24], edi
call fcn.00418c70
push str.rtsgt
lea ecx, [esp + 0x28]
call fcn.00418c70
mov esi, dword [esp + 0xa8]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
shr ecx, 0x18
mov edx, esi
and edx, 0xff00
shl ecx, 0x18
add edx, 0x100
or ecx, edx
mov eax, esi
and eax, 0xff0000
or ecx, eax
push ecx
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x8c]
push edx
call fcn.005b7540
add esp, 0xc
push eax
push esi
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.005b7510
add esp, 0xc
push eax
lea edx, [esp + 0x1c]
push edx
call fcn.005b7fa0
mov ecx, dword [edi]
add esp, 0xc
push eax
push str.team_lookup
lea eax, [esp + 0x14]
push eax
call fcn.005b8270
mov ecx, eax
call fcn.005b89b0
mov ecx, eax
call fcn.005bdc80
lea ecx, [esp + 8]
call fcn.005bdce0
mov ecx, dword [esp + 0x18]
test ecx, ecx
mov dword [esp + 0x10], 0x8477e8
je 0x5c667f
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x5c668e
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov eax, dword [esp + 0x78]
lea ecx, [esp + 0x68]
cmp eax, ecx
mov esi, 0x84760c
mov dword [esp + 0x10], esi
je 0x5c66ac
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x2c]
cmp eax, edx
mov dword [esp + 0x5c], esi
je 0x5c66c5
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x9c]
lea ecx, [esp + 0x8c]
cmp eax, ecx
je 0x5c66e0
push eax
call fcn.004186c0
add esp, 4
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x48]
cmp eax, edx
mov dword [esp + 0x80], esi
je 0x5c66fc
push eax
call fcn.004186c0
add esp, 4
mov ecx, dword [esp + 0xc]
xor esi, esi
mov dword [esp + 8], esi
call fcn.005b6c70
test eax, eax
jle 0x5c6823
push ebx
mov ebx, dword [esp + 0xb4]
push ebp
mov ebp, dword [esp + 0xb4]
mov ecx, dword [esp + 0x14]
push esi
lea eax, [esp + 0x1c]
push eax
call fcn.005b6e00
push str.team_id
lea ecx, [esp + 0x1c]
call fcn.00419060
mov esi, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5c6767
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x5c6767
test edi, edi
je 0x5c6767
mov ecx, edi
call fcn.005b0ba0
push edi
call fcn.005b3b10
add esp, 4
test esi, esi
jge 0x5c67e2
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x30]
push edx
call fcn.005b6e00
push str.move_from_rtsgt
lea ecx, [esp + 0x30]
call fcn.00419060
mov esi, eax
mov eax, dword [esp + 0x38]
test eax, eax
je 0x5c67b3
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x5c67b3
test edi, edi
je 0x5c67b3
mov ecx, edi
call fcn.005b0ba0
push edi
call fcn.005b3b10
add esp, 4
mov eax, dword [esp + 0x10]
or eax, dword [esp + 0xb0]
cmp esi, eax
je 0x5c6807
test esi, esi
jl 0x5c6807
mov ecx, dword [esp + 0xbc]
push ecx
mov ecx, dword [esp + 0x2c]
push ebx
push ebp
and esi, 0xffffff00
push esi
call fcn.005c65b0
jmp 0x5c6807
mov ecx, dword [ebx]
xor eax, eax
test ecx, ecx
jle 0x5c67fd
lea ebx, [ebx]
cmp dword [ebp + eax*4], esi
je 0x5c67fd
mov edx, dword [ebx]
inc eax
cmp eax, edx
jl 0x5c67f0
cmp eax, ecx
jne 0x5c6807
mov dword [ebp + ecx*4], esi
inc dword [ebx]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc esi
mov dword [esp + 0x10], esi
call fcn.005b6c70
cmp esi, eax
jl 0x5c6723
pop ebp
pop ebx
mov eax, dword [esp + 0xc]
test eax, eax
je 0x5c6873
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x5c6873
test edi, edi
je 0x5c6873
mov esi, dword [edi + 0x5c]
test esi, esi
je 0x5c6857
dec dword [esi]
jne 0x5c6857
test esi, esi
je 0x5c6857
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 0x5c686a
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
pop edi
pop esi
add esp, 0x9c
ret 0x10