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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x721890
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x7a39fc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
mov esi, ecx
mov ecx, dword [eax + 4]
mov dword [esp + 0x10], ecx
jne 0x5a040c
cmp dword [esi + 0x74], 0xffffffff
jne 0x5a04b2
mov edx, dword [ebp + 0x18]
cmp edx, dword [esi + 0x70]
jne 0x5a04b2
mov eax, dword [esi + 0x64]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
mov eax, dword [eax]
test eax, eax
je 0x5a041e
mov eax, dword [eax + 8]
test eax, eax
je 0x5a04d7
mov edx, dword [ebp + 8]
cmp dword [eax], edx
je 0x5a0443
mov ecx, dword [esi + 0x64]
lea eax, [esp + 0xc]
push eax
call fcn.005e9b90
test eax, eax
jne 0x5a0426
jmp 0x5a04d7
test edi, edi
je 0x5a04cb
mov ecx, dword [0x7a39fc]
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 8]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.004aed70
mov ecx, eax
call fcn.004d8230
cmp al, byte [0x74666c]
jne 0x5a04b2
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov esi, ecx
call dword [edx + 0x30]
test eax, eax
mov ecx, esi
je 0x5a04ad
mov eax, dword [esi]
push 0
push 0
push 4
call dword [eax + 0x30]
mov ecx, eax
call fcn.004f00a0
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
call fcn.004cb4f0
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ecx, dword [eax + 4]
mov dword [esi + 0x7c], ecx
mov dl, byte [eax + 8]
mov byte [esi + 0x78], dl
mov ecx, dword [esi + 0x64]
cmp dword [ecx], 0
je 0x5a04e3
test eax, eax
je 0x5a04b2
mov edx, dword [esi + 0x70]
mov eax, dword [esi + 8]
imul edx, edx, 0xb0
mov edi, dword [ebp + 0x10]
cmp edi, dword [edx + eax + 0xa8]
jae 0x5a08ee
mov ecx, dword [0x7a39fc]
mov eax, dword [esi + 0x7c]
mov ecx, dword [ecx + 8]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.004aed70
mov ecx, eax
call fcn.004d8230
cmp al, byte [0x74666c]
jne 0x5a08ee
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 8]
imul ecx, ecx, 0xb0
mov dword [esi + 0x74], edi
mov ecx, dword [ecx + edx + 0xac]
lea eax, [edi + edi*2]
mov ebx, dword [ecx + eax*8 + 0x10]
mov eax, dword [esi + 0x64]
mov ecx, dword [eax]
test ecx, ecx
mov dword [esp + 0x1c], ebx
je 0x5a06e1
mov dword [esp + 0xc], ecx
mov eax, dword [eax]
test eax, eax
jne 0x5a0565
xor edi, edi
jmp 0x5a0568
mov edi, dword [eax + 8]
test edi, edi
je 0x5a06e1
imul ebx, ebx, 0xb4
mov dword [esp + 0x18], ebx
lea ebx, [ebx]
mov edx, dword [ebp + 8]
cmp dword [edi], edx
je 0x5a0698
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 8]
imul ecx, ecx, 0xb0
mov ecx, dword [ecx + edx + 0xac]
mov eax, dword [esi + 0x74]
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*8 + 0x10]
mov eax, dword [esi + 0x10]
imul edx, edx, 0xb4
lea ecx, [edx + eax + 0x84]
push ecx
lea ecx, [esp + 0x24]
call fcn.005e5b00
push 0x73d71c
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], 0
call fcn.005e5390
test eax, eax
je 0x5a0620
push 0x74a608
lea ecx, [esp + 0x24]
call fcn.005e58c0
test eax, eax
jne 0x5a0620
push str.PLAYER
lea ecx, [esp + 0x24]
call fcn.005e58c0
test eax, eax
je 0x5a0610
mov edx, dword [0x7a39fc]
mov ecx, dword [edx + 8]
call fcn.004aea40
jmp 0x5a0620
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x20]
push eax
push ecx
mov ecx, esi
call fcn.0059fc30
mov eax, dword [esi + 0x10]
xor edx, edx
mov dl, byte [esi + 0x78]
lea ecx, [ebx + eax + 8]
push edx
push ecx
lea edx, [esp + 0x30]
push edx
mov ecx, esi
call fcn.0059f320
mov ebx, eax
mov eax, dword [esi + 0x6c]
mov edx, dword [esi + 0x7c]
xor ecx, ecx
mov cl, byte [esi + 0x78]
push eax
mov byte [esp + 0x40], 1
push ecx
mov ecx, dword [esp + 0x18]
push edx
call fcn.005eda50
mov ecx, dword [ebp + 0x10]
mov edx, dword [edi]
push eax
mov eax, dword [ebp + 0x18]
push ebx
push eax
push ecx
mov ecx, dword [esp + 0x28]
push edx
call fcn.005ed690
mov ecx, eax
call fcn.0062e100
lea ecx, [esp + 0x28]
mov byte [esp + 0x3c], 0
call fcn.005e5c20
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 0xffffffff
call fcn.005e5c20
mov ebx, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
mov ecx, dword [edi]
mov edx, dword [eax + ebx + 0x54]
add eax, ebx
push ecx
push edx
add eax, 0x4c
push eax
mov ecx, esi
call fcn.0059ef00
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + ebx + 0x5c]
mov edx, dword [eax + ebx + 0x58]
add eax, ebx
push ecx
push edx
mov ecx, esi
call fcn.0059f3c0
mov ecx, dword [esi + 0x64]
lea eax, [esp + 0xc]
push eax
call fcn.005e9b90
mov edi, eax
test edi, edi
jne 0x5a0580
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esi + 0x64]
cmp dword [ecx], 0
je 0x5a06f2
mov edx, dword [esi + 0x7c]
mov dword [esi + 0x98], edx
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x5a07fa
mov eax, dword [esi + 0x10]
mov edi, ebx
imul edi, edi, 0xb4
mov cl, byte [eax + edi + 0x20]
add eax, edi
test cl, 2
jne 0x5a07a4
cmp dword [eax + 0x28], 0xffffffff
jne 0x5a0788
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 4]
call fcn.005ed690
mov ecx, dword [eax + 0xc0]
test ecx, ecx
jne 0x5a077c
mov edx, dword [0x7a39fc]
mov ecx, dword [edx + 8]
mov eax, dword [esi + 0x10]
xor edx, edx
cmp dword [edi + eax + 0xa8], edx
push 1
setne dl
xor eax, eax
mov al, byte [esi + 0x78]
push edx
mov edx, dword [esi + 0x7c]
push eax
push edx
call fcn.004ae810
push eax
mov eax, dword [esi + 0x10]
lea ecx, [edi + eax + 8]
call fcn.005ea270
call fcn.006fae8c
mov ecx, dword [esi + 0x10]
push eax
lea edx, [edi + ecx + 8]
push edx
jmp 0x5a07bc
mov ecx, dword [ebp + 0xc]
push 0
call fcn.004cb1a0
jmp 0x5a07c9
mov edx, dword [eax + 0xa8]
xor ecx, ecx
test edx, edx
mov edx, dword [ebp + 0xc]
setne cl
push 1
add eax, 8
push ecx
push 0
push eax
push edx
jmp 0x5a07c0
mov edx, dword [eax + 0xa8]
xor ecx, ecx
test edx, edx
mov edx, dword [eax + 0x24]
setne cl
push 1
add eax, 8
push ecx
push edx
push eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, esi
call fcn.0059ff50
fstp st(0)
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 4]
call fcn.005ed690
mov ecx, dword [eax + 0xc0]
test ecx, ecx
jne 0x5a07f0
mov edx, dword [esi + 0x10]
mov eax, dword [edi + edx + 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x5c], eax
jmp 0x5a07fa
mov edx, dword [ebp + 0xc]
mov dword [edx + 0x5c], 0
mov eax, dword [esi + 0x10]
mov edx, dword [ebp + 0xc]
mov edi, ebx
imul edi, edi, 0xb4
lea ecx, [edi + eax + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0059ed70
mov eax, dword [esi + 0x10]
mov ecx, dword [edi + eax + 0xa8]
xor ebx, ebx
cmp ecx, ebx
mov dword [esp + 0x10], ebx
jbe 0x5a08e3
lea ecx, [ecx]
mov ecx, dword [esi + 0x10]
mov edx, dword [edi + ecx + 0xac]
mov ecx, dword [edx + ebx + 0x10]
mov edx, dword [esi + 8]
imul ecx, ecx, 0xb0
push 0x73d71c
add ecx, edx
call fcn.005e5390
test eax, eax
je 0x5a08a9
mov eax, dword [esi + 0x10]
mov ecx, dword [edi + eax + 0xac]
mov edx, dword [ecx + ebx + 0x10]
mov ecx, dword [esi + 8]
imul edx, edx, 0xb0
add edx, ecx
mov ecx, dword [ebp + 0xc]
push edx
add ecx, 0x18
call fcn.005e6450
test eax, eax
jne 0x5a08a9
mov eax, dword [esi + 0x10]
mov ecx, dword [edi + eax + 0xac]
mov edx, dword [ecx + ebx + 0x10]
mov ecx, dword [esi + 8]
imul edx, edx, 0xb0
mov eax, dword [ebp + 0xc]
add edx, ecx
push edx
push eax
mov ecx, esi
call fcn.0059fc30
test eax, eax
je 0x5a08c5
mov ecx, dword [esi + 0x10]
mov edx, dword [edi + ecx + 0xac]
mov eax, dword [ebp + 0xc]
add edx, ebx
push edx
push eax
mov ecx, esi
call fcn.0059ec90
test eax, eax
jne 0x5a0904
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x10]
mov edx, dword [edi + ecx + 0xa8]
inc eax
add ebx, 0x14
cmp eax, edx
mov dword [esp + 0x10], eax
jb 0x5a0830
mov eax, 1
mov dword [esi + 0x6c], eax
mov dword [esi + 0x60], eax
xor eax, eax
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, dword [esi + 0x10]
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + edx + 0xac]
lea eax, [eax + eax*4]
mov edx, dword [ecx + eax*4 + 0x10]
mov ecx, dword [ebp + 0xc]
push edx
call fcn.004cd460
mov ecx, dword [esp + 0x34]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x18