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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, ebx
sub eax, esi
push edi
mov edi, ecx
cmp eax, 1
jbe 0x4043a3
lea ebx, [ebx + ebx*2]
add ebx, ebx
add ebx, ebx
add ebx, ebx
mov dword [esp + 0x2c], ebx
jmp 0x403ff7
mov ebx, dword [esp + 0x2c]
mov eax, dword [edi + 0x18]
fldz
mov edx, dword [ebx + eax]
lea esi, [esi + esi*2]
add esi, esi
mov dword [esp + 0x10], edx
mov edx, dword [ebx + eax + 4]
add esi, esi
add esi, esi
lea ecx, [eax + esi]
mov dword [esp + 0x14], edx
mov edx, dword [ebx + eax + 8]
mov eax, dword [ebx + eax + 0xc]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x10]
xor eax, eax
sub ecx, edx
fld qword [esp + eax*8 + 0x10]
lea edx, [ecx + eax*8]
fsub qword [esp + edx + 0x10]
inc eax
fstp qword [esp + eax*8 + 8]
cmp eax, 2
jb 0x40402f
mov eax, dword [esp + 0x10]
fld st(0)
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], edx
mov dword [esp + 0xb8], 0
xor eax, eax
fld qword [esp + eax*8 + 0xa8]
inc eax
fmul st(0), st(0)
faddp st(1)
cmp eax, 2
jb 0x40407f
mov edx, dword [ebp + 8]
fld st(1)
lea ecx, [edx + 1]
mov ebx, edx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ecx
cmp ecx, dword [ebp + 0xc]
jae 0x40433b
lea ecx, [ecx + ecx*2]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov edx, dword [edi + 0x18]
mov eax, dword [edx + ecx]
mov dword [esp + 0x30], eax
mov eax, dword [edx + ecx + 4]
mov dword [esp + 0x34], eax
mov eax, dword [edx + ecx + 8]
mov dword [esp + 0x38], eax
mov eax, dword [edx + ecx + 0xc]
mov dword [esp + 0x3c], eax
add edx, esi
lea ebx, [esp + 0x30]
xor eax, eax
sub edx, ebx
fld qword [esp + eax*8 + 0x30]
lea ebx, [edx + eax*8]
fsub qword [esp + ebx + 0x30]
inc eax
fstp qword [esp + eax*8 + 0x28]
cmp eax, 2
jb 0x4040e0
mov eax, dword [esp + 0x34]
fld st(2)
mov edx, dword [esp + 0x30]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x80], ebx
xor eax, eax
fld qword [esp + eax + 0x70]
add eax, 8
fmul qword [esp + eax + 0xa0]
faddp st(1)
cmp eax, 0x10
jb 0x404122
fcom st(3)
fnstsw ax
test ah, 0x41
jp 0x40419b
mov eax, dword [edi + 0x18]
fstp st(0)
mov ebx, dword [eax + ecx]
mov dword [esp + 0x60], ebx
mov ebx, dword [eax + ecx + 4]
lea edx, [eax + esi]
mov dword [esp + 0x64], ebx
mov ebx, dword [eax + ecx + 8]
mov eax, dword [eax + ecx + 0xc]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], eax
lea ebx, [esp + 0x60]
xor eax, eax
sub edx, ebx
fld qword [esp + eax*8 + 0x60]
lea ebx, [edx + eax*8]
fsub qword [esp + ebx + 0x60]
inc eax
fstp qword [esp + eax*8 + 0x58]
cmp eax, 2
jb 0x40416f
fld st(2)
xor eax, eax
fld qword [esp + eax*8 + 0x60]
inc eax
fmul st(0), st(0)
faddp st(1)
cmp eax, 2
jb 0x404188
jmp 0x404308
fcom st(2)
fnstsw ax
test ah, 1
jne 0x404202
mov eax, dword [edi + 0x18]
fstp st(0)
mov ebx, dword [eax + ecx]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x50], ebx
mov ebx, dword [eax + ecx + 4]
add edx, eax
mov dword [esp + 0x54], ebx
mov ebx, dword [eax + ecx + 8]
mov eax, dword [eax + ecx + 0xc]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], eax
lea ebx, [esp + 0x50]
xor eax, eax
sub edx, ebx
fld qword [esp + eax*8 + 0x50]
lea ebx, [edx + eax*8]
fsub qword [esp + ebx + 0x50]
inc eax
fstp qword [esp + eax*8 + 0x48]
cmp eax, 2
jb 0x4041d6
fld st(2)
xor eax, eax
fld qword [esp + eax*8 + 0x50]
inc eax
fmul st(0), st(0)
faddp st(1)
cmp eax, 2
jb 0x4041ef
jmp 0x404308
mov eax, dword [esp + 0x14]
fdiv st(2)
mov edx, dword [esp + 0x10]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x94], eax
mov dword [esp + 0x90], edx
xor eax, eax
fld st(0)
inc eax
fmul qword [esp + eax*8 + 0x80]
fstp qword [esp + eax*8 + 0x80]
cmp eax, 2
jb 0x404232
mov edx, dword [edi + 0x18]
fstp st(0)
mov eax, dword [edx + esi]
mov dword [esp + 0x40], eax
mov eax, dword [edx + esi + 4]
mov dword [esp + 0x44], eax
mov eax, dword [edx + esi + 8]
mov dword [esp + 0x48], eax
mov eax, dword [edx + esi + 0xc]
mov dword [esp + 0x4c], eax
xor eax, eax
fld qword [esp + eax + 0x88]
add eax, 8
fadd qword [esp + eax + 0x38]
fstp qword [esp + eax + 0x38]
cmp eax, 0x10
jb 0x40426e
mov eax, dword [esp + 0x40]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x7c], eax
mov eax, dword [edx + ecx]
mov dword [esp + 0x98], eax
mov eax, dword [edx + ecx + 4]
mov dword [esp + 0x9c], eax
mov eax, dword [edx + ecx + 8]
mov edx, dword [edx + ecx + 0xc]
mov dword [esp + 0xa0], eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0xa4], edx
xor eax, eax
fld qword [esp + eax + 0x98]
add eax, 8
fsub qword [esp + eax + 0x68]
fstp qword [esp + eax + 0x90]
cmp eax, 0x10
jb 0x4042d9
fld st(2)
xor eax, eax
fld qword [esp + eax*8 + 0x98]
inc eax
fmul st(0), st(0)
faddp st(1)
cmp eax, 2
jb 0x4042f7
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x40431d
mov ebx, dword [esp + 0x24]
fstp st(1)
mov dword [esp + 0x28], ebx
jmp 0x404323
mov ebx, dword [esp + 0x28]
fstp st(0)
mov eax, dword [esp + 0x24]
inc eax
add ecx, 0x18
mov dword [esp + 0x24], eax
cmp eax, dword [ebp + 0xc]
jb 0x4040b4
mov edx, dword [ebp + 8]
fstp st(2)
fstp st(0)
fcomp qword [edi + 0x28]
fnstsw ax
test ah, 0x41
jne 0x4043a3
mov eax, dword [edi + 8]
xor ecx, ecx
test ebx, ebx
je 0x40437e
jge 0x404371
mov ecx, ebx
neg ecx
je 0x404371
or ecx, 0xffffffff
sub ecx, ebx
shr ecx, 5
add ecx, ecx
add ecx, ecx
mov esi, 0xfffffffc
sub esi, ecx
add eax, esi
jmp 0x404379
mov ecx, ebx
shr ecx, 5
lea eax, [eax + ecx*4]
mov ecx, ebx
and ecx, 0x1f
mov esi, 1
shl esi, cl
push ebx
push edx
mov ecx, edi
or dword [eax], esi
call fcn.00403fc0
mov edx, dword [ebp + 0xc]
sub edx, ebx
mov esi, ebx
mov dword [ebp + 8], esi
cmp edx, 1
ja 0x403ff3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8