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

Disassembly:
mov eax, dword [0x8378e4]
sub esp, 0xd8c
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x5a86b3
mov eax, 0x837904
mov dword [eax], 0
add eax, 0x10
cmp eax, 0x837b04
jl 0x5a80dc
mov eax, dword [0x837b04]
xor esi, esi
test eax, eax
jle 0x5a8127
mov eax, dword [0x837afc]
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x5a8110
mov eax, dword [ecx + 4]
dec eax
mov dword [ecx + 4], eax
jne 0x5a8110
mov edx, dword [ecx]
call dword [edx]
mov eax, dword [0x837afc]
inc esi
mov dword [eax + esi*4 - 4], 0
mov eax, dword [0x837b04]
cmp esi, eax
jl 0x5a80f7
mov edi, dword [esp + 0xda0]
mov dword [0x837b04], 0
mov ecx, edi
call fcn.005774a0
mov ebp, eax
mov dword [esp + 0x18], ebp
mov eax, dword [ebp + 0x7c]
mov esi, dword [eax]
cmp esi, 4
jle 0x5a8176
test ebp, ebp
je 0x5a86b3
mov eax, dword [ebp + 4]
dec eax
mov dword [ebp + 4], eax
jne 0x5a86b3
mov edx, dword [ebp]
mov ecx, ebp
call dword [edx]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd8c
ret
xor edx, edx
test esi, esi
jle 0x5a81c7
lea ecx, [eax + 0xb4]
lea ebx, [eax + 0xe4]
mov dword [esp + 0x10], ecx
mov eax, dword [ebx - 0x10]
test eax, eax
jne 0x5a8455
cmp dword [ebx], 0
jne 0x5a8455
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp dword [ecx], 0
jne 0x5a814f
inc eax
add ecx, 4
cmp eax, 2
jl 0x5a81a6
mov ecx, dword [esp + 0x10]
inc edx
add ebx, 4
add ecx, 8
cmp edx, esi
mov dword [esp + 0x10], ecx
jl 0x5a818c
mov esi, dword [0x8378e4]
call fcn.0078c9eb
cdq
idiv esi
mov ecx, dword [0x8378dc]
lea eax, [ecx + edx*4]
mov ecx, edi
mov edx, dword [eax]
mov eax, dword [edi]
mov dword [esp + 0x30], edx
call dword [eax + 0x4c]
mov eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x48], eax
mov eax, dword [edi + 0x30]
mov dword [esp + 0x40], ecx
mov ecx, dword [edi + 0x28]
mov dword [esp + 0x54], eax
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x4c], ecx
mov ecx, dword [edi + 0x34]
mov dword [esp + 0x60], eax
mov eax, dword [edi + 0x48]
mov dword [esp + 0x58], ecx
mov ecx, dword [edi + 0x40]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xda4]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0xda8]
fld dword [eax]
fadd dword [ecx]
mov edx, dword [edi + 0x20]
push 0
mov dword [esp + 0x48], edx
mov edx, dword [edi + 0x2c]
fstp dword [esp + 0x38]
fld dword [eax + 4]
fadd dword [ecx + 4]
mov dword [esp + 0x54], edx
mov edx, dword [edi + 0x38]
mov dword [esp + 0x60], edx
mov edx, dword [edi + 0x44]
fstp dword [esp + 0x3c]
fld dword [eax + 8]
fadd dword [ecx + 8]
lea ecx, [esp + 0x38]
mov dword [esp + 0x6c], edx
push ecx
push eax
fstp dword [esp + 0x48]
lea ecx, [esp + 0x1c0]
call fcn.005f5900
lea edx, [esp + 0x184]
lea ecx, [esp + 0x1b4]
push edx
call fcn.005f5dc0
lea eax, [esp + 0xe0]
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x188]
push ecx
push edx
call fcn.005f5ec0
add esp, 0xc
lea eax, [esp + 0x154]
lea ecx, [esp + 0xe0]
push eax
call fcn.005f5dc0
lea ecx, [esp + 0xd0]
push ecx
mov ecx, ebp
call fcn.00591670
fld dword [0x7cf03c]
fdiv dword [esp + 0xdc]
mov dword [esp + 0x7c], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xac], 0
fld st(0)
lea edx, [esp + 0xe0]
lea eax, [esp + 0xe0]
fst dword [esp + 0x70]
fld dword [0x7cd7b4]
push edx
lea ecx, [esp + 0x74]
fst dword [esp + 0x84]
fst dword [esp + 0x94]
fst dword [esp + 0x78]
fld st(1)
push eax
push ecx
fstp dword [esp + 0x90]
mov dword [esp + 0xc8], 0
mov dword [esp + 0xd8], 0
fst dword [esp + 0xa0]
fst dword [esp + 0x84]
fstp dword [esp + 0x94]
fstp dword [esp + 0xa4]
fdivr dword [0x7cd794]
fst dword [esp + 0xac]
fld dword [0x7cd7b4]
fst dword [esp + 0xbc]
fst dword [esp + 0xcc]
fst dword [esp + 0xb0]
fld st(1)
fstp dword [esp + 0xc0]
fst dword [esp + 0xd0]
fst dword [esp + 0xb4]
fstp dword [esp + 0xc4]
fstp dword [esp + 0xd4]
call fcn.005f5ec0
lea edx, [esp + 0x160]
lea eax, [esp + 0xac]
push edx
lea ecx, [esp + 0x164]
push eax
push ecx
call fcn.005f5ec0
mov edx, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x30]
add esp, 0x18
mov eax, dword [edx + 8]
mov esi, dword [ecx + 8]
mov ecx, ebp
mov dword [esp + 0x14], eax
call fcn.00593410
mov ecx, dword [0x837b10]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x28]
cmp ecx, eax
jge 0x5a841a
push eax
mov ecx, 0x837b08
call fcn.00561330
mov edx, dword [ebp + 0x28]
mov eax, dword [0x837b0c]
lea ecx, [esp + 0xe0]
push edx
push ecx
push esi
push eax
mov dword [esp + 0x38], eax
call fcn.006005b0
mov edx, dword [ebp + 0x7c]
add esp, 0x10
xor edi, edi
mov esi, 0x2c
mov eax, dword [edx]
lea ebx, [esp + 0x124]
mov dword [esp + 0x110], eax
jmp 0x5a8480
test ebp, ebp
je 0x5a86b3
mov eax, dword [ebp + 4]
dec eax
mov dword [ebp + 4], eax
jne 0x5a86b3
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd8c
ret
mov ebp, dword [esp + 0x18]
mov ecx, dword [ebp + 0x7c]
push edi
call fcn.005a86c0
mov dword [ebx - 0x10], eax
mov ecx, dword [ebp + 0x7c]
push edi
call fcn.005a8700
mov dword [ebx], eax
mov eax, esi
lea esi, [esp + 0x110]
mov ebp, 2
sub esi, 8
mov ecx, dword [esp + 0x18]
mov ecx, dword [ecx + 0x7c]
mov edx, dword [eax + ecx]
cmp edx, 0xffffffff
je 0x5a84c4
mov ecx, dword [ecx + edx*4 + 0xc]
test ecx, ecx
je 0x5a84c4
mov ecx, dword [ecx + 8]
jmp 0x5a84c6
xor ecx, ecx
mov dword [esi + eax], ecx
add eax, 4
dec ebp
jne 0x5a84a8
inc edi
add ebx, 4
cmp eax, 0x4c
mov esi, eax
jl 0x5a847c
mov esi, dword [esp + 0x18]
mov dword [esp + 0x20], 0
mov eax, dword [esi + 0x24]
test eax, eax
jle 0x5a8680
mov ebx, dword [esp + 0x14]
xor ebp, ebp
lea esi, [esp + 0x1ec]
mov dword [esp + 0x1e8], ebp
mov edi, 0x18
mov ecx, esi
call fcn.005a69d0
add esi, 0x7c
dec edi
jne 0x5a850a
mov dword [esp + 0xd8c], 0
mov dword [esp + 0xd90], 0
mov dword [esp + 0xd94], 0x3f800000
mov dword [esp + 0xd98], 0
mov dword [esp + 0x10], ebp
lea edx, [esp + 0x1f4]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x110]
mov esi, dword [esp + 0x28]
xor ecx, ecx
mov dword [edx + 0x10], eax
mov cx, word [ebx]
lea eax, [ecx + ecx*2]
shl eax, 2
xor ebx, ebx
mov edi, dword [eax + esi]
mov dword [edx - 8], edi
mov edi, dword [eax + esi + 4]
mov dword [edx - 4], edi
mov esi, dword [eax + esi + 8]
mov dword [edx], esi
mov esi, dword [esp + 0x2c]
mov edi, dword [eax + esi]
mov dword [edx + 4], edi
mov edi, dword [eax + esi + 4]
mov dword [edx + 8], edi
mov eax, dword [eax + esi + 8]
mov dword [edx + 0xc], eax
lea eax, [esp + 0x124]
mov dword [esp + 0x1c], eax
lea esi, [esp + 0x134]
lea eax, [edx + 0x34]
mov edi, dword [esp + 0x1c]
mov edi, dword [edi - 0x10]
test edi, edi
je 0x5a85c8
mov ebp, dword [esp + 0x10]
mov edi, dword [edi + ecx*4]
add ebp, ebx
mov dword [esp + ebp*4 + 0x208], edi
mov edi, dword [esp + 0x1c]
mov edi, dword [edi]
test edi, edi
je 0x5a85e2
mov ebp, dword [esp + 0x10]
mov edi, dword [edi + ecx*4]
add ebp, ebx
mov dword [esp + ebp*4 + 0x218], edi
mov dword [esp + 0x24], 2
mov edi, dword [esi]
test edi, edi
je 0x5a85fc
mov ebp, dword [edi + ecx*8]
mov dword [eax], ebp
mov edi, dword [edi + ecx*8 + 4]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x24]
add esi, 4
add eax, 8
dec edi
mov dword [esp + 0x24], edi
jne 0x5a85ea
mov ebp, dword [esp + 0x1c]
inc ebx
add ebp, 4
cmp ebx, 4
mov dword [esp + 0x1c], ebp
jl 0x5a85ad
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
add eax, 0x1f
add ebx, 2
add edx, 0x7c
cmp eax, 0x5d
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
jl 0x5a8552
lea ecx, [esp + 0x1e4]
mov dword [esp + 0x1e8], 3
call fcn.005a6f60
lea ecx, [esp + 0x1e4]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.005a7ac0
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
inc eax
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x20], eax
cmp eax, ecx
jl 0x5a84f5
mov eax, dword [esp + 0xda0]
lea edx, [esp + 0x110]
push edx
lea ecx, [esp + 0x158]
push eax
push ecx
call fcn.005a8800
add esp, 0xc
test esi, esi
je 0x5a86b3
mov eax, dword [esi + 4]
dec eax
mov dword [esi + 4], eax
jne 0x5a86b3
mov edx, dword [esi]
mov ecx, esi
call dword [edx]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd8c
ret