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

Disassembly:
sub esp, 0x7c
push ebx
push ebp
push esi
mov esi, ecx
mov eax, 0x51eb851f
push edi
mov ecx, dword [esi + 0x70]
lea ebp, [esi + 4]
imul ecx, dword [esi + 0x10]
imul ecx
sar edx, 5
mov eax, edx
mov dword [esp + 0x10], esi
shr eax, 0x1f
lea ecx, [edx + eax + 1]
push ecx
mov ecx, ebp
call fcn.00605a80
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x5f8f6c
mov ecx, dword [esi + 0x6c]
mov eax, 0x51eb851f
imul ecx, dword [esi + 0x38]
imul ecx
sar edx, 5
mov eax, edx
lea ecx, [esi + 0x2c]
shr eax, 0x1f
lea edi, [edx + eax + 1]
push edi
call fcn.00605a80
mov ecx, dword [esi + 0x7c]
mov dword [esp + 0x14], 0
sub ecx, edi
lea eax, [esp + 0x14]
mov dword [esp + 0x18], ecx
js 0x5f8f67
lea eax, [esp + 0x18]
mov edx, dword [eax]
mov dword [esi + 0x7c], edx
mov eax, dword [esi + 0x68]
inc eax
and eax, 0x80000001
jns 0x5f8f7c
dec eax
or eax, 0xfffffffe
inc eax
mov dword [esi + 0x68], eax
mov ebx, dword [esi + eax*4 + 0x54]
test ebx, ebx
je 0x5f9069
lea eax, [esi + 0x2c]
mov dword [esp + 0x18], eax
jmp 0x5f8f98
mov esi, dword [esp + 0x10]
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x14], eax
lea edx, [esi + ecx*4 + 0x54]
mov ecx, dword [ebx + 0x34]
test ecx, ecx
je 0x5f8fb2
mov dword [ecx + 0x38], eax
jmp 0x5f8fb4
mov dword [edx], eax
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x5f8fc1
mov edx, dword [ebx + 0x34]
mov dword [eax + 0x34], edx
mov dword [ebx + 0x34], 0
mov eax, dword [esi + 0x5c]
mov dword [ebx + 0x38], eax
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x5f8fd8
mov dword [eax + 0x34], ebx
mov dword [esi + 0x5c], ebx
mov ecx, dword [ebx + 0x30]
push ecx
mov ecx, ebp
call fcn.006063b0
lea edx, [ebx + 0x10]
lea esi, [esp + 0x4c]
lea edi, [esp + 0x6c]
push ebx
mov eax, dword [edx]
mov dword [esp + 0x50], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x54], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x58], eax
mov ecx, dword [edx + 0xc]
lea edx, [ebx + 0x20]
mov dword [esp + 0x5c], ecx
mov eax, dword [edx]
mov dword [esp + 0x60], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x64], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x68], eax
mov ecx, dword [edx + 0xc]
lea edx, [esp + 0x70]
mov dword [esp + 0x6c], ecx
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x1c]
push edx
call fcn.00605f20
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x3c], 2
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x5f8f94
mov eax, dword [esp + 0x10]
mov esi, eax
mov ecx, dword [eax + 0x38]
mov byte [eax + 0x9a], 1
mov dword [eax + 0x7c], ecx
mov al, byte [esi + 0x99]
mov dword [esp + 0x44], esi
test al, al
mov dword [esp + 0x40], 0x6ac058
je 0x5f9266
mov edi, dword [ebp]
mov eax, dword [esi + 0x2c]
test edi, edi
mov dword [esp + 0x18], eax
je 0x5f924b
test eax, eax
je 0x5f924b
lea edx, [esp + 0x30]
lea ecx, [ebp + 0x14]
push edx
push 0x80
mov ebx, 1
mov dword [esp + 0x1c], 0x7c
call fcn.005f9c10
mov eax, dword [ebp + 0x20]
mov ecx, dword [esp + 0x18]
mov esi, 8
mov dword [eax], edi
mov dword [eax + 4], ecx
mov edi, dword [ebp + 0x20]
sub esi, 8
mov ecx, dword [esp + 0x14]
mov edx, esi
add edx, edi
dec ebx
cmp ebx, ecx
mov edi, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x1c], eax
jle 0x5f910a
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x38]
shl ecx, 1
push eax
push ecx
lea ecx, [ebp + 0x14]
call fcn.005f9c10
mov eax, dword [ebp + 0x18]
sub eax, 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
cmp edi, eax
jne 0x5f915a
mov eax, dword [edi + 0x28]
test eax, eax
je 0x5f923f
mov edx, dword [ebp + 0x20]
mov ecx, dword [edi + 0x24]
mov eax, esi
add esi, 8
add eax, edx
inc ebx
inc ebx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0x20]
mov ecx, dword [edi + 0x28]
mov eax, esi
add esi, 8
add eax, edx
inc ebx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov edx, dword [ebp + 0x20]
mov ecx, dword [edi + 0x24]
mov edi, dword [edi + 0x28]
mov eax, esi
add esi, 8
add eax, edx
mov dword [eax], ecx
mov dword [eax + 4], edi
jmp 0x5f923f
push eax
push edi
call fcn.005f9730
add esp, 8
test al, al
je 0x5f923f
mov eax, dword [edi + 0x28]
test eax, eax
je 0x5f9201
mov eax, dword [esp + 0x1c]
mov edx, dword [edi + 0x24]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x5f91ee
mov ecx, dword [eax + 0x24]
inc ebx
mov dword [esp + 0x24], ecx
mov ecx, esi
add ecx, dword [ebp + 0x20]
add esi, 8
inc ebx
mov dword [ecx], edx
mov edx, dword [esp + 0x24]
mov dword [ecx + 4], edx
mov ecx, dword [eax + 0x24]
mov edx, dword [edi + 0x28]
mov dword [esp + 0x2c], ecx
mov ecx, esi
add esi, 8
add ecx, dword [ebp + 0x20]
inc ebx
mov dword [ecx], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + 4], edx
mov ecx, dword [eax + 0x28]
mov edx, dword [edi + 0x24]
mov dword [esp + 0x34], ecx
mov ecx, esi
add esi, 8
add ecx, dword [ebp + 0x20]
mov dword [ecx], edx
mov edx, dword [esp + 0x34]
mov dword [ecx + 4], edx
mov edi, dword [edi + 0x28]
mov eax, dword [eax + 0x28]
mov edx, dword [ebp + 0x20]
mov ecx, esi
inc ebx
add esi, 8
add ecx, edx
mov dword [ecx], edi
mov dword [ecx + 4], eax
jmp 0x5f923f
mov ecx, esi
inc ebx
add esi, 8
add ecx, dword [ebp + 0x20]
mov dword [ecx], edx
mov dword [ecx + 4], eax
mov edi, dword [edi + 0x28]
jmp 0x5f91dc
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x28]
test eax, eax
je 0x5f9232
mov edx, dword [ecx + 0x24]
mov eax, esi
add eax, dword [ebp + 0x20]
add esi, 8
inc ebx
inc ebx
mov dword [eax], edi
mov dword [eax + 4], edx
mov edx, dword [ebp + 0x20]
mov ecx, dword [ecx + 0x28]
mov eax, esi
add esi, 8
add eax, edx
mov dword [eax], edi
mov dword [eax + 4], ecx
jmp 0x5f923f
mov eax, dword [esp + 0x40]
push ecx
push edi
lea ecx, [esp + 0x48]
call dword [eax + 0xc]
test esi, esi
jne 0x5f90cd
mov esi, dword [esp + 0x10]
mov al, byte [esi + 0x99]
test al, al
je 0x5f9266
mov eax, dword [ebp]
lea ecx, [esp + 0x40]
push ecx
push eax
push eax
mov ecx, ebp
call fcn.005f9980
mov al, byte [esi + 0x9a]
test al, al
je 0x5f9396
mov ecx, dword [esi + 0x60]
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ebx, eax
mov dword [esp + 0x14], ebx
mov edi, dword [ebx + 4]
test edi, edi
jle 0x5f9396
mov ecx, dword [esi + 0x74]
mov eax, 0x51eb851f
imul ecx, edi
imul ecx
sar edx, 5
mov eax, edx
mov ecx, dword [esi + 0x78]
shr eax, 0x1f
add edx, eax
lea eax, [esi + 0x78]
cmp ecx, edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edi
jg 0x5f92ba
lea eax, [esp + 0x18]
cmp edi, dword [eax]
jge 0x5f92c2
lea eax, [esp + 0x10]
mov ecx, dword [eax]
xor edi, edi
test ecx, ecx
mov dword [esp + 0x10], ecx
jle 0x5f9372
jmp 0x5f92d8
mov ebx, dword [esp + 0x14]
mov eax, dword [esi + 0x90]
add eax, edi
cdq
idiv dword [ebx + 4]
mov eax, dword [ebx + 0xc]
shl edx, 4
add edx, eax
mov ebp, dword [edx]
mov edx, dword [edx + 4]
mov ebx, dword [ebp + 0x30]
mov ecx, dword [edx + 0x30]
fld dword [ebx]
fcomp dword [ecx + 0x10]
fnstsw ax
test ah, 0x41
je 0x5f9343
fld dword [ebx + 0x10]
fcomp dword [ecx]
fnstsw ax
test ah, 1
jne 0x5f9343
fld dword [ebx + 4]
fcomp dword [ecx + 0x14]
fnstsw ax
test ah, 0x41
je 0x5f9343
fld dword [ebx + 0x14]
fcomp dword [ecx + 4]
fnstsw ax
test ah, 1
jne 0x5f9343
fld dword [ebx + 8]
fcomp dword [ecx + 0x18]
fnstsw ax
test ah, 0x41
je 0x5f9343
fld dword [ebx + 0x18]
fcomp dword [ecx + 8]
fnstsw ax
test ah, 1
je 0x5f935f
mov ecx, dword [esi + 0x60]
mov ebx, dword [esp + 0x90]
push ebx
push edx
mov eax, dword [ecx]
push ebp
call dword [eax + 8]
mov ecx, dword [esp + 0x10]
dec ecx
dec edi
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jl 0x5f92d4
mov ebx, dword [esp + 0x14]
mov ecx, eax
mov ebx, dword [ebx + 4]
test ebx, ebx
jle 0x5f938c
mov eax, dword [esi + 0x90]
add eax, ecx
cdq
idiv ebx
mov dword [esi + 0x90], edx
jmp 0x5f9396
mov dword [esi + 0x90], 0
mov edi, dword [esi + 0x8c]
mov eax, dword [esi + 0x80]
xor ecx, ecx
inc edi
cmp eax, ecx
mov dword [esi + 0x8c], edi
mov dword [esi + 0x78], 1
mov byte [esi + 0x9a], 0
jbe 0x5f93e3
mov edx, dword [esi + 0x84]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edx
fild qword [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
fidiv dword [esp + 0x18]
fstp dword [esi + 0x88]
jmp 0x5f93e9
mov dword [esi + 0x88], ecx
mov edx, dword [esi + 0x84]
pop edi
shr edx, 1
shr eax, 1
mov dword [esi + 0x84], edx
mov dword [esi + 0x80], eax
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret 4