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

Disassembly:
sub esp, 0x94
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push str.teamid
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], ebp
call fcn.00418c70
mov ecx, dword [esp + 0xa8]
lea eax, [esp + 0x10]
push eax
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.005b7360
add esp, 0xc
push eax
push 0
push 0
push 0
push 0
push 0
push 0x84f970
push str.playerstats
push str.players
lea ecx, [esp + 0x40]
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 + 0x18]
call fcn.005bdce0
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x4c]
cmp eax, edx
je 0x6483f6
mov ecx, dword [0x9d9dcc]
mov ecx, dword [ecx + 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 + 0x40], 0x84760c
je 0x648419
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
mov ecx, dword [esp + 0x10]
push str.position
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x20], str.position
mov dword [esp + 0x24], 1
call fcn.00648180
mov ecx, dword [esp + 0x10]
call fcn.005b6c70
mov ecx, dword [esp + 0xac]
cmp eax, ecx
mov dword [ebp + 0x38], eax
jl 0x648455
mov eax, ecx
xor ebx, ebx
test eax, eax
mov dword [ebp + 0x38], eax
jle 0x64862e
lea esi, [ebp + 0x48]
push ebx
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.005b6e00
push str.playerid
lea ecx, [esp + 0x68]
call fcn.00419060
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x70]
test eax, eax
je 0x6484aa
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x6484aa
test edi, edi
je 0x6484aa
mov ecx, edi
call fcn.005b0ba0
push edi
call fcn.005b3b10
add esp, 4
mov ecx, dword [esp + 0x10]
push ebx
lea edx, [esp + 0x78]
push edx
call fcn.005b6e00
push str.position
lea ecx, [esp + 0x78]
call fcn.00419060
mov dword [esi], eax
mov eax, dword [esp + 0x80]
test eax, eax
je 0x6484f1
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x6484f1
test edi, edi
je 0x6484f1
mov ecx, edi
call fcn.005b0ba0
push edi
call fcn.005b3b10
add esp, 4
mov ecx, dword [esp + 0x10]
push ebx
lea eax, [esp + 0x98]
push eax
call fcn.005b6e00
push str.preferredposition1
lea ecx, [esp + 0x98]
call fcn.00419060
mov dword [esi + 4], eax
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x64853f
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x64853f
test edi, edi
je 0x64853f
mov ecx, edi
call fcn.005b0ba0
push edi
call fcn.005b3b10
add esp, 4
lea ecx, [esi + 0x14]
mov dword [esi + 0x10], ebx
mov byte [esi + 9], 0
mov byte [esi + 8], 0
mov byte [esi + 0xa], 0
xor ebp, ebp
mov dword [esp + 0x18], ecx
cmp ebp, 0x20
mov edi, ebp
jl 0x648561
mov edi, dword [esi + 4]
mov ecx, dword [esp + 0x10]
push ebx
lea edx, [esp + 0x88]
push edx
call fcn.005b6e00
push 0
push 0
push 0
lea eax, [esp + 0x90]
push edi
push eax
call fcn.00493c20
mov ecx, dword [esp + 0x2c]
mov dword [ecx], eax
mov eax, dword [esp + 0xa4]
add esp, 0x14
test eax, eax
je 0x6485b8
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x6485b8
test edi, edi
je 0x6485b8
mov ecx, edi
call fcn.005b0ba0
push edi
call fcn.005b3b10
add esp, 4
mov ecx, dword [esp + 0x18]
inc ebp
add ecx, 4
cmp ebp, 0x24
mov dword [esp + 0x18], ecx
jl 0x648557
mov edx, dword [esi]
mov ecx, dword [esp + 0x10]
push ebx
lea eax, [esp + 0x28]
push eax
mov dword [esi - 4], edx
call fcn.005b6e00
push str._fatigue
lea ecx, [esp + 0x28]
call fcn.00419060
mov dword [esi + 0xa4], eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x648616
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x648616
test edi, edi
je 0x648616
mov ecx, edi
call fcn.005b0ba0
push edi
call fcn.005b3b10
add esp, 4
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x38]
inc ebx
add esi, 0xac
cmp ebx, eax
jl 0x648465
mov ebp, ecx
mov edx, dword [ebp + 0x38]
push 0x646a50
push 0xac
push edx
lea eax, [ebp + 0x44]
push eax
call fcn.0081db70
push 0x14
lea ecx, [ebp + 0x10]
push 0
push ecx
call fcn.0079b1af
push 0x14
lea edx, [ebp + 0x24]
push 0
push edx
call fcn.0079b1af
add esp, 0x28
push str.teamid
lea ecx, [esp + 0x28]
call fcn.00418c70
mov ecx, dword [esp + 0xa8]
lea eax, [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.005b7360
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
push str.teamwrite
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 + 0x14]
call fcn.005bdce0
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x4c]
cmp eax, edx
je 0x6486d8
mov ecx, dword [0x9d9dcc]
mov ecx, dword [ecx + 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 + 0x40], 0x84760c
je 0x6486fb
mov edx, dword [0x9d9dcc]
mov ecx, dword [edx + 4]
mov edx, dword [ecx]
push eax
call dword [edx + 0x10]
xor edi, edi
lea ecx, [ecx]
mov ecx, dword [esp + 0x20]
mov esi, dword [edi + 0x875620]
mov ebx, dword [edi + 0x87561c]
push 0
lea eax, [esp + 0x28]
push eax
call fcn.005b6e00
push ebx
lea ecx, [esp + 0x28]
call fcn.00419060
mov dword [ebp + esi*4 + 0x10], eax
mov dword [ebp + esi*4 + 0x24], eax
mov eax, dword [esp + 0x30]
test eax, eax
je 0x648753
dec dword [eax]
cmp dword [eax], 0
mov esi, eax
jne 0x648753
test esi, esi
je 0x648753
mov ecx, esi
call fcn.005b0ba0
push esi
call fcn.005b3b10
add esp, 4
add edi, 8
cmp edi, 0x20
jb 0x648700
mov eax, dword [esp + 0x20]
test eax, eax
je 0x6487ab
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x6487ab
test edi, edi
je 0x6487ab
mov esi, dword [edi + 0x5c]
test esi, esi
je 0x64878f
dec dword [esi]
jne 0x64878f
test esi, esi
je 0x64878f
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 0x6487a2
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x6487fb
dec dword [eax]
cmp dword [eax], 0
mov edi, eax
jne 0x6487fb
test edi, edi
je 0x6487fb
mov esi, dword [edi + 0x5c]
test esi, esi
je 0x6487df
dec dword [esi]
jne 0x6487df
test esi, esi
je 0x6487df
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 0x6487f2
push eax
call fcn.005b3b10
add esp, 4
push edi
call fcn.005b3b10
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret 8