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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1d4
push ebx
mov ebx, ecx
mov ecx, dword [0x91cb10]
test ecx, ecx
push esi
push edi
mov dword [esp + 0x14], ebx
je 0x59a052
cmp dword [ecx + 0x11c], 5
jne 0x59a052
call fcn.00517a00
mov esi, dword [ebp + 8]
movzx ecx, word [esi + 0x20]
push 0x3f800000
push ecx
lea edx, [esp + 0x38]
push edx
mov edi, eax
mov eax, dword [esi + 0x2c]
lea ecx, [esp + 0x8c]
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x54], 0x3f800000
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0x3f800000
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0x3f800000
mov dword [esp + 0x80], 0
mov dword [esp + 0x90], 0x3f800000
mov dword [esp + 0x84], 0x43a00000
mov dword [esp + 0x88], 0x43700000
mov dword [esp + 0x8c], 0
call fcn.005848b0
lea edx, [esp + 0x80]
mov dword [esp + 0x1c], eax
push edx
lea eax, [esp + 0x44]
push eax
mov ecx, edx
push ecx
call fcn.0045ecf0
mov ebx, dword [ebp + 0xc]
add esp, 0xc
test ebx, ebx
jne 0x599ed1
mov ecx, dword [esp + 0x14]
push edi
push esi
call fcn.00591ab0
mov ebx, eax
jmp 0x599edc
mov edx, dword [ebp + 0x10]
push edx
mov ecx, ebx
call fcn.00591a00
mov eax, dword [esp + 0x30]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x3c]
shl eax, 8
sar ecx, 1
or ecx, eax
mov eax, dword [esp + 0x34]
cdq
sub eax, edx
sar eax, 1
shl ecx, 8
or ecx, eax
mov eax, dword [esp + 0x38]
cdq
sub eax, edx
movsx edx, word [edi + 0x46]
sar eax, 1
shl ecx, 8
or ecx, eax
movsx eax, word [edi + 0x44]
test eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
fild dword [esp + 0xc]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
jge 0x599f36
fadd dword [0x891214]
test edx, edx
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
jge 0x599f48
fadd dword [0x891214]
test eax, eax
je 0x599f64
dec eax
shr eax, 1
test eax, eax
mov ecx, 2
je 0x599f60
shr eax, 1
shl ecx, 1
test eax, eax
jne 0x599f58
mov esi, ecx
jmp 0x599f66
xor esi, esi
test edx, edx
je 0x599f82
lea eax, [edx - 1]
shr eax, 1
test eax, eax
mov ecx, 2
je 0x599f84
shr eax, 1
shl ecx, 1
test eax, eax
jne 0x599f78
jmp 0x599f84
xor ecx, ecx
test ecx, ecx
mov dword [esp + 0xc], ecx
fild dword [esp + 0xc]
jge 0x599f96
fadd dword [0x891214]
test esi, esi
fdivr st(1)
mov dword [esp + 0xc], esi
fstp dword [esp + 0x10]
fstp st(0)
fild dword [esp + 0xc]
jge 0x599fb0
fadd dword [0x891214]
fdivr st(1)
lea ecx, [esp + 0xc8]
push ecx
mov ecx, dword [0x91cb10]
fstp dword [esp + 0x10]
fstp st(0)
call fcn.0056b010
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x599fe4
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0
jmp 0x599ff4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x1c]
lea edi, [ebx + 0x30]
mov ecx, 0x10
lea esi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
push 0
push 0x3f800000
push 0x3f000000
push 0x3f000000
push 0xbf000000
push 0xbf000000
mov ecx, ebx
call fcn.00591460
mov ecx, dword [esp + 0x18]
mov dword [ebx + 0x14], ecx
mov ecx, ebx
call fcn.00582c70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc