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

Disassembly:
sub esp, 0xdc
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x28], ebp
mov eax, dword [ebp + 0x30]
test eax, eax
jg 0x4595f6
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xdc
ret 0x14
mov al, byte [0x961a94]
test al, 1
jne 0x459617
mov dl, al
push 0x45a190
or dl, 1
mov byte [0x961a94], dl
call fcn.007a2d4c
add esp, 4
mov al, byte [0x961a94]
test al, 2
jne 0x459638
mov dl, al
push 0x45a180
or dl, 2
mov byte [0x961a94], dl
call fcn.007a2d4c
add esp, 4
mov al, byte [0x961a94]
test al, 4
jne 0x459659
mov dl, al
push 0x45a170
or dl, 4
mov byte [0x961a94], dl
call fcn.007a2d4c
add esp, 4
mov al, byte [0x961a94]
test al, 8
jne 0x45967a
mov dl, al
push 0x45a160
or dl, 8
mov byte [0x961a94], dl
call fcn.007a2d4c
add esp, 4
mov al, byte [0x961a94]
test al, 0x10
jne 0x45969b
mov dl, al
push 0x45a150
or dl, 0x10
mov byte [0x961a94], dl
call fcn.007a2d4c
add esp, 4
mov cl, byte [0x961a94]
mov al, 0x20
test al, cl
jne 0x4596be
mov dl, cl
push 0x45a140
or dl, al
mov byte [0x961a94], dl
call fcn.007a2d4c
add esp, 4
mov cl, byte [0x961a94]
mov al, 0x40
test al, cl
jne 0x4596e1
mov dl, cl
push 0x45a130
or dl, al
mov byte [0x961a94], dl
call fcn.007a2d4c
add esp, 4
mov ebx, dword [esp + 0xf0]
mov dword [0x9619d8], 0x7f7fffff
push ebx
push 0
push 0x961910
call fcn.0076fc8e
mov eax, dword [esp + 0xf4]
mov ecx, 0x10
fld dword [0x961910]
mov esi, 0x961910
mov edi, 0x961a50
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x10
mov esi, ebx
mov edi, 0x961958
mov dword [0x961a80], 0
mov dword [0x961a84], 0
mov dword [0x961a88], 0
rep movsd dword es:[edi], dword [esi]
mov dword [0x961988], 0
mov dword [0x96198c], 0
mov dword [0x961990], 0
fmul dword [eax]
fld dword [0x961930]
fmul dword [eax + 8]
faddp st(1)
fld dword [0x961920]
fmul dword [eax + 4]
faddp st(1)
fadd dword [0x961940]
fld dword [0x961934]
fmul dword [eax + 8]
fld dword [0x961924]
fmul dword [eax + 4]
faddp st(1)
fld dword [0x961914]
fmul dword [eax]
faddp st(1)
fadd dword [0x961944]
fst dword [esp + 0x30]
fld dword [0x961938]
fmul dword [eax + 8]
fld dword [0x961928]
fmul dword [eax + 4]
faddp st(1)
fld dword [0x961918]
fmul dword [eax]
faddp st(1)
fadd dword [0x961948]
fstp dword [esp + 0x34]
mov eax, dword [esp + 0x34]
fld st(1)
mov dword [0x961aa0], eax
mov eax, dword [esp + 0xf8]
fstp dword [0x961a98]
fstp dword [0x961a9c]
fld dword [0x961930]
fmul dword [eax + 8]
fld dword [0x961920]
fmul dword [eax + 4]
faddp st(1)
fld dword [0x961910]
fmul dword [eax]
faddp st(1)
fadd dword [0x961940]
fld dword [0x961914]
fmul dword [eax]
fld dword [0x961934]
fmul dword [eax + 8]
faddp st(1)
fld dword [0x961924]
fmul dword [eax + 4]
faddp st(1)
fadd dword [0x961944]
fst dword [esp + 0x3c]
fld dword [0x961938]
fmul dword [eax + 8]
fld dword [0x961928]
fmul dword [eax + 4]
faddp st(1)
fld dword [0x961918]
fmul dword [eax]
faddp st(1)
fadd dword [0x961948]
fstp dword [esp + 0x40]
fld st(1)
mov ecx, dword [esp + 0x40]
fstp dword [0x9619e8]
mov dword [0x9619f0], ecx
fstp dword [0x9619ec]
fsubrp st(1)
fld dword [esp + 0x3c]
fsub dword [esp + 0x30]
fstp dword [esp + 0x48]
fld dword [esp + 0x40]
fsub dword [esp + 0x34]
mov edx, dword [esp + 0x48]
mov dword [0x9619fc], edx
fstp dword [esp + 0x4c]
mov eax, dword [esp + 0x4c]
fstp dword [0x9619f8]
mov dword [0x961a00], eax
mov ecx, dword [ebp + 0x38]
test ecx, ecx
jle 0x4598cd
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
mov dword [esp + 0x24], edx
jmp 0x4598e2
mov ecx, dword [ebp + 0x30]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x24], edx
test edx, edx
jle 0x459ff1
mov eax, 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jmp 0x459905
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 0x38]
test ecx, ecx
jle 0x459929
mov ecx, dword [ebp + 0x34]
mov edx, dword [esp + 0x14]
lea esi, [ecx + edx]
xor ecx, ecx
xor edx, edx
xor eax, eax
mov cx, word [esi]
mov dx, word [esi + 2]
mov ax, word [esi + 4]
jmp 0x45992f
lea ecx, [eax - 2]
lea edx, [eax - 1]
lea edi, [eax + eax*2]
mov eax, dword [ebp + 0x2c]
shl edi, 2
lea ebx, [ecx + ecx*2]
lea esi, [eax + edi]
mov dword [esp + 0x20], esi
lea esi, [edx + edx*2]
shl esi, 2
shl ebx, 2
lea edx, [esi + eax]
lea ebp, [ebx + eax]
mov al, byte [0x9eeb10]
test al, 1
mov dword [esp + 0x10], edx
jne 0x459976
mov dl, al
push fcn.004e4740
or dl, 1
mov byte [0x9eeb10], dl
call fcn.007a2d4c
add esp, 4
mov al, byte [0x9eeb10]
test al, 2
jne 0x459997
mov dl, al
push fcn.004e4740
or dl, 2
mov byte [0x9eeb10], dl
call fcn.007a2d4c
add esp, 4
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc8]
push ebp
push eax
call fcn.004254e0
mov ecx, dword [eax]
push ebp
mov dword [0x9eeb20], ecx
mov edx, dword [eax + 4]
lea ecx, [esp + 0xb4]
mov dword [0x9eeb24], edx
mov eax, dword [eax + 8]
push ecx
mov ecx, dword [esp + 0x28]
mov dword [0x9eeb28], eax
call fcn.004254e0
push eax
mov ecx, 0x9eeb30
call fcn.00426b10
push 0x9eeb30
push 0x9eeb20
lea ecx, [esp + 0x4c]
call fcn.00436a40
push 0x9619f8
lea ecx, [esp + 0x48]
call fcn.00436a20
fcomp dword [0x7e5ffc]
fnstsw ax
test ah, 0x41
je 0x459fc4
push 0x9eeb30
push 0x9619f8
lea ecx, [esp + 0x4c]
call fcn.00436a40
lea edx, [esp + 0x44]
mov ecx, 0x9eeb20
push edx
call fcn.00436a20
fst dword [esp + 0x10]
fcomp dword [0x7e5ff8]
fnstsw ax
test ah, 1
jne 0x459fc4
lea eax, [esp + 0x80]
push ebp
push eax
mov ecx, 0x961a98
call fcn.004254e0
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x84]
call fcn.00436a20
fst dword [0x961a48]
fcomp dword [0x7e5664]
fnstsw ax
test ah, 1
jne 0x459fc4
fld dword [0x961a48]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
je 0x459fc4
lea edx, [esp + 0x80]
push 0x9eeb20
push edx
lea ecx, [esp + 0x94]
call fcn.00436a40
lea eax, [esp + 0x8c]
push eax
push 0x9619f8
call fcn.00436980
fst dword [0x9619dc]
fcomp dword [0x7e5664]
add esp, 8
fnstsw ax
test ah, 1
jne 0x459fc4
fld dword [0x961a48]
fadd dword [0x9619dc]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 0x41
je 0x459fc4
fld dword [0x7e5668]
fdiv dword [esp + 0x10]
lea ecx, [esp + 0x8c]
push ecx
push 0x9eeb30
fstp dword [esp + 0x18]
call fcn.00436980
fmul dword [esp + 0x18]
mov edx, 0x961ae8
add esp, 8
test edx, edx
fstp dword [0x9619e0]
fld dword [esp + 0x10]
fmul dword [0x961a48]
fstp dword [0x961a48]
fld dword [esp + 0x10]
fmul dword [0x9619dc]
fstp dword [0x9619dc]
je 0x459b84
mov eax, dword [0x9619e0]
lea ecx, [esp + 0xe0]
push eax
push ecx
mov ecx, 0x9619f8
call fcn.00436040
lea edx, [esp + 0xd4]
push eax
push edx
mov ecx, 0x961a98
call fcn.00435ff0
push eax
mov ecx, 0x961ae8
call fcn.00426b10
fld dword [0x9619e0]
fcomp dword [0x7e5664]
fnstsw ax
test ah, 1
jne 0x459fc4
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x2c]
lea ecx, [eax + edi]
lea edx, [esi + eax]
lea ebp, [ebx + eax]
mov al, byte [0x9eeb3c]
test al, 1
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], edx
jne 0x459bd4
mov dl, al
push fcn.004e4740
or dl, 1
mov byte [0x9eeb3c], dl
call fcn.007a2d4c
add esp, 4
mov al, byte [0x9eeb3c]
test al, 2
jne 0x459bf5
mov dl, al
push fcn.004e4740
or dl, 2
mov byte [0x9eeb3c], dl
call fcn.007a2d4c
add esp, 4
mov al, byte [0x9eeb3c]
test al, 4
jne 0x459c16
mov dl, al
push fcn.004e4740
or dl, 4
mov byte [0x9eeb3c], dl
call fcn.007a2d4c
add esp, 4
mov al, byte [0x9eeb3c]
test al, 8
jne 0x459c37
mov dl, al
push fcn.004e4740
or dl, 8
mov byte [0x9eeb3c], dl
call fcn.007a2d4c
add esp, 4
mov al, byte [0x9eeb3c]
test al, 0x10
jne 0x459c58
mov dl, al
push fcn.004e4740
or dl, 0x10
mov byte [0x9eeb3c], dl
call fcn.007a2d4c
add esp, 4
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xbc]
push ebp
push eax
call fcn.004254e0
push eax
mov ecx, 0x9eeb40
call fcn.00426b10
lea ecx, [esp + 0xa4]
push ebp
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004254e0
push eax
mov ecx, 0x9eeb50
call fcn.00426b10
push 0x9eeb50
push 0x9eeb40
mov ecx, 0x9eeb60
call fcn.00436a40
push 0x9619f8
mov ecx, 0x9eeb60
call fcn.00436a20
fst dword [0x9eeb6c]
fcomp dword [0x7e5ffc]
fnstsw ax
test ah, 0x41
je 0x459de2
push 0x9eeb50
push 0x9619f8
mov ecx, 0x9eeb60
call fcn.00436a40
push 0x9eeb60
mov ecx, 0x9eeb40
call fcn.00436a20
fst dword [0x9eeb6c]
fcomp dword [0x7e5ff8]
fnstsw ax
test ah, 1
jne 0x459de2
lea edx, [esp + 0x98]
push ebp
push edx
mov ecx, 0x9619e8
call fcn.004254e0
push eax
mov ecx, 0x9eeb70
call fcn.00426b10
push 0x9eeb60
mov ecx, 0x9eeb70
call fcn.00436a20
fst dword [0x9eeb7c]
fcomp dword [0x7e5664]
fnstsw ax
test ah, 1
jne 0x459de2
fld dword [0x9eeb7c]
fcomp dword [0x9eeb6c]
fnstsw ax
test ah, 0x41
je 0x459de2
push 0x9eeb40
push 0x9eeb70
mov ecx, 0x9eeb80
call fcn.00436a40
push 0x9eeb80
push 0x9619f8
call fcn.00436980
fst dword [0x9eeb8c]
fcomp dword [0x7e5664]
add esp, 8
fnstsw ax
test ah, 1
jne 0x459de2
fld dword [0x9eeb8c]
fadd dword [0x9eeb7c]
fcomp dword [0x9eeb6c]
fnstsw ax
test ah, 0x41
je 0x459de2
push 0x9eeb80
push 0x9eeb50
call fcn.00436980
fdiv dword [0x9eeb6c]
add esp, 8
fst dword [0x9eeb90]
fcomp dword [0x7e5664]
fnstsw ax
test ah, 1
je 0x459fc4
fld dword [0x961a98]
fsub dword [0x961ae8]
fld dword [0x961a9c]
fsub dword [0x961aec]
fld dword [0x961aa0]
fsub dword [0x961af0]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fst dword [0x961a90]
fcomp dword [0x9619d8]
fnstsw ax
test ah, 1
je 0x459fc4
mov ecx, dword [esp + 0xfc]
mov eax, dword [0x961a90]
test ecx, ecx
mov dword [0x9619d8], eax
je 0x459ed2
mov eax, dword [esp + 0xf0]
fld dword [0x961af0]
fmul dword [eax + 0x20]
fld dword [0x961aec]
fmul dword [eax + 0x10]
faddp st(1)
fld dword [0x961ae8]
fmul dword [eax]
faddp st(1)
fadd dword [eax + 0x30]
fld dword [0x961af0]
fmul dword [eax + 0x24]
fld dword [0x961aec]
fmul dword [eax + 0x14]
faddp st(1)
fld dword [0x961ae8]
fmul dword [eax + 4]
faddp st(1)
fadd dword [eax + 0x34]
fstp dword [esp + 0x60]
fld dword [0x961af0]
fmul dword [eax + 0x28]
fld dword [0x961aec]
fmul dword [eax + 0x18]
mov edx, dword [esp + 0x60]
faddp st(1)
fld dword [0x961ae8]
fmul dword [eax + 8]
faddp st(1)
fadd dword [eax + 0x38]
mov dword [ecx + 4], edx
fstp dword [esp + 0x64]
mov eax, dword [esp + 0x64]
fstp dword [ecx]
mov dword [ecx + 8], eax
mov ebp, dword [esp + 0x100]
test ebp, ebp
je 0x459fc4
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx + 0x2c]
fld dword [eax + edi]
fsub dword [esi + eax]
fstp dword [esp + 0x2c]
fld dword [eax + edi + 4]
fsub dword [esi + eax + 4]
mov edx, dword [esp + 0x2c]
fstp dword [esp + 0x30]
fld dword [eax + edi + 8]
fsub dword [esi + eax + 8]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], ecx
fstp dword [esp + 0x34]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x70], edx
fld dword [esi + eax]
fsub dword [ebx + eax]
fstp dword [esp + 0x38]
fld dword [esi + eax + 4]
fsub dword [ebx + eax + 4]
fstp dword [esp + 0x3c]
fld dword [esi + eax + 8]
fsub dword [ebx + eax + 8]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
lea eax, [esp + 0x68]
lea ecx, [esp + 0x74]
fstp dword [esp + 0x40]
mov edx, dword [esp + 0x40]
push eax
push ecx
mov ecx, ebp
mov dword [esp + 0x84], edx
call fcn.00436a40
push 0x961958
mov ecx, ebp
call fcn.0044bcd0
fld dword [ebp + 8]
fld dword [ebp + 4]
fld dword [ebp]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fsqrt
fstp st(3)
fstp st(0)
fstp st(0)
fcom dword [0x7e5664]
fnstsw ax
test ah, 0x40
jne 0x459fc2
fld dword [ebp]
fdiv st(1)
fstp dword [ebp]
fld dword [ebp + 4]
fdiv st(1)
fstp dword [ebp + 4]
fld dword [ebp + 8]
fdiv st(1)
fstp dword [ebp + 8]
fstp st(0)
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x28]
add edx, 6
add ecx, 3
dec eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jne 0x459901
mov edx, dword [esp + 0x24]
fld dword [0x9619d8]
fcomp dword [0x7e6300]
fnstsw ax
test ah, 0x40
je 0x45a11f
xor eax, eax
cmp edx, eax
mov dword [esp + 0x1c], eax
jle 0x45a11f
mov edx, dword [ebp + 0x2c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edx
mov edx, 2
mov dword [esp + 0x14], edx
jmp 0x45a030
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x38]
test eax, eax
jle 0x45a054
mov eax, dword [ebp + 0x34]
mov ecx, dword [esp + 0x18]
lea esi, [eax + ecx]
xor eax, eax
xor ecx, ecx
xor edx, edx
mov ax, word [esi]
mov cx, word [esi + 2]
mov dx, word [esi + 4]
jmp 0x45a05a
lea eax, [edx - 2]
lea ecx, [edx - 1]
mov ebx, dword [ebp + 0x2c]
lea edi, [ecx + ecx*2]
shl edi, 2
lea esi, [eax + eax*2]
lea ecx, [esp + 0x98]
lea eax, [edi + ebx]
lea edx, [edx + edx*2]
push eax
push ecx
lea ecx, [ebx + edx*4]
shl esi, 2
call fcn.004254e0
push eax
lea eax, [esi + ebx]
lea ecx, [esp + 0xa8]
push eax
push ecx
lea ecx, [edi + ebx]
call fcn.004254e0
push eax
lea ecx, [esp + 0x58]
call fcn.00436a40
mov eax, dword [ebp + 0x2c]
fld dword [esp + 0x50]
fmul dword [esi + eax]
fchs
fld dword [esp + 0x54]
fmul dword [esi + eax + 4]
fsubp st(1)
fld dword [esp + 0x58]
fmul dword [esi + eax + 8]
fsubp st(1)
fld dword [0x961aa0]
fmul dword [esp + 0x58]
faddp st(1)
fld dword [0x961a9c]
fmul dword [esp + 0x54]
faddp st(1)
fld dword [0x961a98]
fmul dword [esp + 0x50]
faddp st(1)
fcomp dword [0x7e5664]
fnstsw ax
test ah, 0x41
je 0x4595e7
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
inc eax
add esi, 6
add edx, 3
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], edx
jl 0x45a02c
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xdc
ret 0x14