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

Disassembly:
sub esp, 0xdc
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov dword [esp + 0x1c], ebx
mov ecx, 0x1e
lea edi, [esp + 0x70]
rep stosd dword es:[edi], eax
push str.teamid
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.00418c70
mov ecx, dword [esp + 0xec]
lea eax, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x58]
push eax
call fcn.005b7360
add esp, 0xc
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x84f970
push str.playerstats
push str.players
lea ecx, [esp + 0x44]
push str.teamplayerlinks
push ecx
call fcn.004908b0
mov ecx, eax
call fcn.005b8270
mov ecx, eax
call fcn.005bd570
mov ecx, eax
call fcn.005b89b0
mov ecx, eax
call fcn.005bdc80
lea ecx, [esp + 0x1c]
call fcn.005bdce0
mov eax, dword [esp + 0x68]
lea edx, [esp + 0x58]
cmp eax, edx
je 0x495bb5
mov ecx, dword [0x9d9dcc]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x28]
cmp eax, ecx
mov dword [esp + 0x4c], 0x84760c
je 0x495bd8
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x58]
mov ecx, dword [eax + 0x4c]
push ebp
lea edx, [eax + 0x5c]
push edx
mov edx, dword [eax + 4]
lea edi, [esi + ecx*4]
push edx
mov ecx, esi
mov ebp, eax
push ecx
add eax, 8
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], edi
call fcn.005b86b0
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], edi
jmp 0x495c20
mov eax, dword [esp + 0x14]
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 ebp, eax
push ecx
add eax, 8
push eax
lea ecx, [esp + 0x60]
or ebx, 1
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], esi
call fcn.005b86b0
mov ecx, dword [esp + 0x38]
mov eax, esi
cmp ecx, eax
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], esi
je 0x495c7a
cmp edi, 0x1e
mov byte [esp + 0x13], 1
jl 0x495c7f
mov byte [esp + 0x13], 0
test bl, 1
je 0x495cac
mov eax, dword [esp + 0x5c]
and ebx, 0xfffffffe
test eax, eax
je 0x495cac
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x495cac
test esi, esi
je 0x495cac
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
mov al, byte [esp + 0x13]
test al, al
je 0x495cf0
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x28]
call fcn.005b84a0
push 0x84fdac
lea ecx, [esp + 0x28]
call fcn.00419060
mov ecx, dword [esp + 0x34]
mov dword [esp + edi*4 + 0x74], eax
mov edx, dword [ecx + 4]
mov eax, dword [esp + 0x38]
inc edi
lea ecx, [eax + edx*4]
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], ecx
jmp 0x495c20
mov eax, dword [esp + 0x30]
test eax, eax
pop ebp
je 0x495d16
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x495d16
test esi, esi
je 0x495d16
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
push 0x493380
push 4
lea edx, [esp + 0x78]
push 0x1e
push edx
call fcn.0081db70
add esp, 0x10
xor eax, eax
test edi, edi
jle 0x495d4a
cmp eax, 0x10
jge 0x495d4a
mov ecx, dword [esp + eax*4 + 0x70]
mov esi, dword [esp + 0x18]
add esi, ecx
inc eax
cmp eax, edi
mov dword [esp + 0x18], esi
jl 0x495d32
cmp edi, 0x10
jle 0x495db9
mov ecx, 0x10
mov eax, dword [esp + 0x18]
cdq
idiv ecx
mov ebx, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x495dad
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x495dad
test edi, edi
je 0x495dad
mov esi, dword [edi + 0x5c]
test esi, esi
je 0x495d91
dec dword [esi]
jne 0x495d91
test esi, esi
je 0x495d91
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 0x495da4
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0xdc
ret
test edi, edi
mov ecx, edi
jne 0x495d54
mov eax, dword [esp + 0x10]
test eax, eax
je 0x495e0f
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x495e0f
test edi, edi
je 0x495e0f
mov esi, dword [edi + 0x5c]
test esi, esi
je 0x495df3
dec dword [esi]
jne 0x495df3
test esi, esi
je 0x495df3
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 0x495e06
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xdc
ret