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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
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 0x403c73
shl ebx, 4
mov dword [esp + 0x10], ebx
jmp 0x403984
mov ebx, dword [esp + 0x10]
mov eax, dword [edi + 0x18]
fldz
mov edx, dword [ebx + eax]
mov dword [esp + 0x18], edx
mov edx, dword [ebx + eax + 4]
shl esi, 4
lea ecx, [eax + esi]
mov dword [esp + 0x1c], edx
mov edx, dword [ebx + eax + 8]
mov eax, dword [ebx + eax + 0xc]
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
lea edx, [esp + 0x18]
xor eax, eax
sub ecx, edx
fld qword [esp + eax*8 + 0x18]
lea edx, [ecx + eax*8]
fsub qword [esp + edx + 0x18]
inc eax
fstp qword [esp + eax*8 + 0x10]
cmp eax, 2
jb 0x4039b6
fld st(0)
xor eax, eax
fld qword [esp + eax*8 + 0x18]
inc eax
fmul st(0), st(0)
faddp st(1)
cmp eax, 2
jb 0x4039cf
mov edx, dword [ebp + 8]
fld st(1)
lea ecx, [edx + 1]
mov ebx, edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], ecx
cmp ecx, dword [ebp + 0xc]
jae 0x403c0b
shl ecx, 4
mov edx, dword [edi + 0x18]
mov eax, dword [edx + ecx]
mov dword [esp + 0x28], eax
mov eax, dword [edx + ecx + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [edx + ecx + 8]
mov dword [esp + 0x30], eax
mov eax, dword [edx + ecx + 0xc]
mov dword [esp + 0x34], eax
add edx, esi
lea ebx, [esp + 0x28]
xor eax, eax
sub edx, ebx
fld qword [esp + eax*8 + 0x28]
lea ebx, [edx + eax*8]
fsub qword [esp + ebx + 0x28]
inc eax
fstp qword [esp + eax*8 + 0x20]
cmp eax, 2
jb 0x403a27
fld st(2)
xor eax, eax
fld qword [esp + eax + 0x28]
add eax, 8
fmul qword [esp + eax + 0x10]
faddp st(1)
cmp eax, 0x10
jb 0x403a40
fcom st(3)
fnstsw ax
test ah, 0x41
jp 0x403ab6
mov eax, dword [edi + 0x18]
fstp st(0)
mov ebx, dword [eax + ecx]
mov dword [esp + 0x38], ebx
mov ebx, dword [eax + ecx + 4]
lea edx, [eax + esi]
mov dword [esp + 0x3c], ebx
mov ebx, dword [eax + ecx + 8]
mov eax, dword [eax + ecx + 0xc]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], eax
lea ebx, [esp + 0x38]
xor eax, eax
sub edx, ebx
fld qword [esp + eax*8 + 0x38]
lea ebx, [edx + eax*8]
fsub qword [esp + ebx + 0x38]
inc eax
fstp qword [esp + eax*8 + 0x30]
cmp eax, 2
jb 0x403a8a
fld st(2)
xor eax, eax
fld qword [esp + eax*8 + 0x38]
inc eax
fmul st(0), st(0)
faddp st(1)
cmp eax, 2
jb 0x403aa3
jmp 0x403bd8
fcom st(2)
fnstsw ax
test ah, 1
jne 0x403b1d
mov eax, dword [edi + 0x18]
fstp st(0)
mov ebx, dword [eax + ecx]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x48], ebx
mov ebx, dword [eax + ecx + 4]
add edx, eax
mov dword [esp + 0x4c], ebx
mov ebx, dword [eax + ecx + 8]
mov eax, dword [eax + ecx + 0xc]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], eax
lea ebx, [esp + 0x48]
xor eax, eax
sub edx, ebx
fld qword [esp + eax*8 + 0x48]
lea ebx, [edx + eax*8]
fsub qword [esp + ebx + 0x48]
inc eax
fstp qword [esp + eax*8 + 0x40]
cmp eax, 2
jb 0x403af1
fld st(2)
xor eax, eax
fld qword [esp + eax*8 + 0x48]
inc eax
fmul st(0), st(0)
faddp st(1)
cmp eax, 2
jb 0x403b0a
jmp 0x403bd8
mov eax, dword [esp + 0x1c]
fdiv st(2)
mov edx, dword [esp + 0x18]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], edx
xor eax, eax
fld st(0)
inc eax
fmul qword [esp + eax*8 + 0x50]
fstp qword [esp + eax*8 + 0x50]
cmp eax, 2
jb 0x403b41
mov edx, dword [edi + 0x18]
fstp st(0)
mov eax, dword [edx + esi]
mov dword [esp + 0x68], eax
mov eax, dword [edx + esi + 4]
mov dword [esp + 0x6c], eax
mov eax, dword [edx + esi + 8]
mov dword [esp + 0x70], eax
mov eax, dword [edx + esi + 0xc]
mov dword [esp + 0x74], eax
xor eax, eax
fld qword [esp + eax + 0x58]
add eax, 8
fadd qword [esp + eax + 0x60]
fstp qword [esp + eax + 0x60]
cmp eax, 0x10
jb 0x403b77
mov eax, dword [edx + ecx]
mov dword [esp + 0x78], eax
mov eax, dword [edx + ecx + 4]
mov dword [esp + 0x7c], eax
mov eax, dword [edx + ecx + 8]
mov edx, dword [edx + ecx + 0xc]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edx
xor eax, eax
fld qword [esp + eax + 0x78]
add eax, 8
fsub qword [esp + eax + 0x60]
fstp qword [esp + eax + 0x70]
cmp eax, 0x10
jb 0x403bb2
fld st(2)
xor eax, eax
fld qword [esp + eax*8 + 0x78]
inc eax
fmul st(0), st(0)
faddp st(1)
cmp eax, 2
jb 0x403bca
fcom st(1)
fnstsw ax
test ah, 0x41
jne 0x403bed
mov ebx, dword [esp + 0xc]
fstp st(1)
mov dword [esp + 0x14], ebx
jmp 0x403bf3
mov ebx, dword [esp + 0x14]
fstp st(0)
mov eax, dword [esp + 0xc]
inc eax
add ecx, 0x10
mov dword [esp + 0xc], eax
cmp eax, dword [ebp + 0xc]
jb 0x4039fb
mov edx, dword [ebp + 8]
fstp st(2)
fstp st(0)
fcomp qword [edi + 0x28]
fnstsw ax
test ah, 0x41
jne 0x403c73
mov eax, dword [edi + 8]
xor ecx, ecx
test ebx, ebx
je 0x403c4e
jge 0x403c41
mov ecx, ebx
neg ecx
je 0x403c41
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 0x403c49
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.00403950
mov edx, dword [ebp + 0xc]
sub edx, ebx
mov esi, ebx
mov dword [ebp + 8], esi
cmp edx, 1
ja 0x403980
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8