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

Disassembly:
sub esp, 0xa0
push ebp
push esi
push edi
push str.playerid
lea ecx, [esp + 0x28]
mov ebp, 0x493e0
call fcn.00418c70
push str.playerid
lea ecx, [esp + 0x48]
call fcn.00418c70
lea eax, [esp + 0xc]
push eax
push 0x4941c
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x70]
push edx
call fcn.005b7570
add esp, 0xc
push eax
push ebp
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x98]
push ecx
call fcn.005b7510
add esp, 0xc
push eax
lea edx, [esp + 0x20]
push edx
call fcn.005b7fa0
add esp, 0xc
push eax
lea eax, [esp + 0x18]
push str.players
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 + 0x10]
call fcn.005bdce0
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov dword [esp + 0x14], 0x8477e8
je 0x480880
mov edx, dword [ecx]
push 1
call dword [edx + 0xc]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x48088f
mov eax, dword [ecx]
push 1
call dword [eax + 0xc]
mov eax, dword [esp + 0xa4]
lea ecx, [esp + 0x94]
cmp eax, ecx
mov esi, 0x84760c
mov dword [esp + 0x14], esi
je 0x4808b9
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x4c]
cmp eax, ecx
mov dword [esp + 0x88], esi
je 0x4808db
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
je 0x4808f9
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x2c]
cmp eax, ecx
mov dword [esp + 0x64], esi
je 0x480918
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0xc]
call fcn.005b6c70
test eax, eax
jle 0x480b85
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x10]
call fcn.0047fb60
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x78]
neg edx
lea eax, [eax + edx*4]
push eax
lea ecx, [esp + 0x68]
mov dword [esp + 0x7c], eax
call fcn.005b84a0
push str.playerid
lea ecx, [esp + 0x68]
call fcn.00419060
mov ecx, dword [esp + 0xc]
mov esi, eax
sub esi, 0x493df
call fcn.005b6c70
cmp eax, esi
jne 0x4809ab
mov ecx, dword [esp + 0xc]
call fcn.005b6c70
dec eax
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
call fcn.005b6e00
push str.playerid
lea ecx, [esp + 0x18]
call fcn.00419060
mov ebp, eax
mov eax, dword [esp + 0x20]
inc ebp
jmp 0x480b34
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], ebp
call fcn.0047fb10
push ebx
mov edi, edi
mov eax, dword [esp + 0x10]
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 + 0x9c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], esi
call fcn.005b86b0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x98]
cmp edx, esi
mov dword [esp + 0x9c], ebx
setne bl
test eax, eax
mov dword [esp + 0xa0], esi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], esi
je 0x480a3d
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x480a3d
test esi, esi
je 0x480a3d
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
test bl, bl
je 0x480b2f
mov edx, dword [esp + 0x3c]
push edx
lea ecx, [esp + 0x2c]
call fcn.005b84a0
push str.playerid
lea ecx, [esp + 0x2c]
call fcn.00419060
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jne 0x480a75
mov eax, ecx
inc eax
mov dword [esp + 0x14], eax
jmp 0x480b18
mov eax, dword [esp + 0x3c]
push eax
lea ecx, [esp + 0x2c]
call fcn.005b84a0
push str.playerid
lea ecx, [esp + 0x2c]
call fcn.00419060
mov ebp, eax
mov eax, dword [esp + 0x10]
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 + 0x58]
dec ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], esi
call fcn.005b86b0
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], esi
call fcn.0047ff60
mov eax, dword [esp + 0x54]
test eax, eax
je 0x480b04
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x480b04
test esi, esi
je 0x480b04
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x3c]
neg ecx
lea eax, [edx + ecx*4]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x3c]
lea ecx, [eax + edx*4]
mov dword [esp + 0x3c], ecx
jmp 0x4809c0
mov eax, dword [esp + 0x34]
pop ebx
test eax, eax
je 0x480b55
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x480b55
test esi, esi
je 0x480b55
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov eax, dword [esp + 0x70]
test eax, eax
je 0x480b7a
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x480b7a
test esi, esi
je 0x480b7a
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
cmp ebp, 0x4941c
jle 0x480b85
or ebp, 0xffffffff
mov eax, dword [esp + 0xc]
test eax, eax
je 0x480bd5
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x480bd5
test esi, esi
je 0x480bd5
mov edi, dword [esi + 0x5c]
test edi, edi
je 0x480bb9
dec dword [edi]
jne 0x480bb9
test edi, edi
je 0x480bb9
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 0x480bcc
push eax
call fcn.005b3b10
add esp, 4
push esi
call fcn.005b3b10
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
add esp, 0xa0
ret