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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x720c3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x25c]
xor esi, esi
cmp eax, esi
je 0x59206f
call fcn.004cb120
mov ebp, eax
cmp ebp, esi
je 0x59206f
cmp dword [edi + 0x2bc], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], 0x3f800000
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
jle 0x591e0a
mov eax, dword [edi + 0x2e0]
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 8]
push eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x14], esi
call fcn.004ae770
cmp eax, esi
je 0x591e0a
add eax, 0x90
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 8]
mov eax, dword [edi + 0x2bc]
mov dword [esp + 0x30], ecx
xor ecx, ecx
cmp eax, esi
mov dword [esp + 0x34], edx
jle 0x591db6
mov edx, dword [edi + 0x2b8]
mov ebx, eax
fld dword [edx + 8]
fsub dword [esp + 0x34]
fld dword [edx + 4]
fsub dword [esp + 0x30]
fld dword [edx]
fsub dword [esp + 0x2c]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp st(3)
fstp st(0)
fstp st(0)
fld dword [esp + 0x10]
fmul dword [esp + 0x10]
fld st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x591dac
fsqrt
mov esi, ecx
fstp dword [esp + 0x10]
jmp 0x591dae
fstp st(0)
inc ecx
add edx, 0x10
cmp ecx, ebx
jl 0x591d65
mov eax, dword [edi + 0x2b8]
fld dword [0x741bb8]
shl esi, 4
add eax, esi
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x44], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x48], edx
mov ecx, dword [ecx + 8]
mov dword [esp + 0x4c], ecx
fsub dword [eax + 0xc]
lea edx, [esp + 0x20]
push edx
fld st(0)
lea eax, [esp + 0x60]
fsin
push eax
mov dword [esp + 0x30], 0
fxch st(1)
fcos
fstp dword [esp + 0x28]
fstp dword [esp + 0x2c]
call fcn.004ab180
add esp, 8
push 0xac8
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
call fcn.006fa7e6
add esp, 4
mov dword [esp + 0x18], eax
xor esi, esi
cmp eax, esi
mov dword [esp + 0x74], esi
je 0x591e4c
push esi
push 0x7f000000
mov ecx, eax
call fcn.004f7a10
mov esi, eax
mov ecx, dword [edi + 0x258]
mov edx, dword [ecx]
lea ebx, [edi + 0x258]
push 0
push edx
mov ecx, esi
mov dword [esp + 0x7c], 0xffffffff
call fcn.005026d0
test eax, eax
jne 0x591e93
test esi, esi
je 0x59206f
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
mov dword [esi + 0xa24], eax
mov eax, dword [esp + 0x1c]
test eax, eax
mov dword [esi + 0x9d4], 0
je 0x591f52
mov eax, dword [esi + 0x340]
lea ecx, [esp + 0x38]
push ecx
push 0
push eax
push 0x41a00000
lea edx, [esp + 0x54]
push edx
mov ecx, ebp
call fcn.004be860
cmp eax, 1
jne 0x591f19
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push 0
push 1
lea edx, [esp + 0x40]
mov dword [esp + 0x1c], ecx
push edx
mov ecx, ebp
mov dword [esp + 0x24], eax
call fcn.004bc380
fstp dword [esp + 0x10]
lea ecx, [esp + 0x20]
call fcn.005b3190
mov ecx, dword [ebx]
mov ecx, dword [ecx]
lea eax, [esp + 0x20]
mov dword [esp + 0x74], 1
push eax
jmp 0x5920c0
lea ecx, [esp + 0x20]
call fcn.005b3190
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x78], 2
call fcn.00405f70
lea ecx, [esp + 0x20]
call fcn.005e5670
lea ecx, [esp + 0x20]
mov dword [esp + 0x74], 0xffffffff
call fcn.005e5c20
mov eax, dword [esi + 0x340]
push 0x42200000
lea ecx, [esp + 0x3c]
push ecx
push 0
push eax
lea edx, [edi + 0x90]
push edx
mov ecx, ebp
call fcn.004bee30
cmp eax, 1
jne 0x591fbb
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push 0
push 1
lea edx, [esp + 0x40]
mov dword [esp + 0x1c], ecx
push edx
mov ecx, ebp
mov dword [esp + 0x24], eax
call fcn.004bc380
fstp dword [esp + 0x10]
lea ecx, [esp + 0x20]
call fcn.005b3190
mov ecx, dword [ebx]
mov ecx, dword [ecx]
lea eax, [esp + 0x20]
mov dword [esp + 0x74], 3
push eax
jmp 0x5920c0
fld dword [esp + 0x38]
fcomp dword [0x740cbc]
fnstsw ax
test ah, 0x44
jp 0x592082
fld dword [esp + 0x3c]
fcomp dword [0x740cbc]
fnstsw ax
test ah, 0x44
jp 0x592082
fld dword [esp + 0x40]
fcomp dword [0x740cbc]
fnstsw ax
test ah, 0x44
jp 0x592082
lea ecx, [esp + 0x20]
call fcn.005b3190
mov eax, dword [ebx]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x78], 4
call fcn.00405f70
lea ecx, [esp + 0x20]
call fcn.005e5670
or edi, 0xffffffff
lea ecx, [esp + 0x20]
mov dword [esp + 0x74], edi
call fcn.005e5c20
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
lea ecx, [esp + 0x2c]
call fcn.005b3190
mov edx, dword [ebx]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [edx]
mov dword [esp + 0x78], 6
call fcn.00405f70
lea ecx, [esp + 0x2c]
call fcn.005e5670
lea ecx, [esp + 0x2c]
mov dword [esp + 0x74], edi
call fcn.005e5c20
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
push 0
push 1
lea eax, [esp + 0x40]
mov dword [esp + 0x20], ecx
push eax
mov ecx, ebp
mov dword [esp + 0x20], edx
call fcn.004bc380
fstp dword [esp + 0x10]
lea ecx, [esp + 0x20]
call fcn.005b3190
mov edx, dword [ebx]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [edx]
mov dword [esp + 0x78], 5
call fcn.00405f70
lea ecx, [esp + 0x20]
call fcn.005e5670
lea ecx, [esp + 0x20]
mov dword [esp + 0x74], 0xffffffff
call fcn.005e5c20
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 0
push 0
push eax
push ecx
push edx
push ebp
mov ecx, esi
call fcn.004fa100
mov eax, dword [ebp + 0x128]
test eax, eax
jle 0x592110
mov eax, dword [0x7a39fc]
mov ecx, dword [eax + 8]
push 1
jmp 0x59211b
mov ecx, dword [0x7a39fc]
mov ecx, dword [ecx + 8]
push 0
push esi
call fcn.004aed80
mov ecx, eax
call fcn.004b08a0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x59213c
lea edx, [esp + 0x50]
push edx
mov ecx, esi
call fcn.004cd170
inc dword [edi + 0x264]
mov eax, dword [ebx]
mov ecx, dword [eax]
fld dword [ecx + 0x14]
fadd dword [edi + 0x2dc]
fstp dword [edi + 0x2dc]
mov edx, dword [eax]
fld dword [edi + 0x2d8]
fsub dword [edx + 0x14]
fst dword [edi + 0x2d8]
fcomp dword [0x73d700]
fnstsw ax
test ah, 5
jp 0x59217d
mov dword [edi + 0x2d8], 0
push 0
mov ecx, ebx
call fcn.006857a0
mov ecx, dword [esp + 0x6c]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret