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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push edi
push esi
push ebx
sub esp, 0xb4
mov edi, dword [ebp + 8]
mov dword [edi + 0x30], 0
mov edx, 0x30
xor eax, eax
mov dword [edi + edx - 4], eax
mov dword [edi + edx - 8], eax
mov dword [edi + edx - 0xc], eax
mov dword [edi + edx - 0x10], eax
sub edx, 0x10
jne 0x40be8e
fld1
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
fstp dword [esp + 0x48]
mov dword [edi + 0x24], eax
fild dword [ebx]
fmul dword [0x43a88c]
fstp qword [esp]
call fcn.0041f2f0
fstp qword [esp + 0x30]
fld qword [0x43a810]
fstp qword [esp]
call fcn.0041f2f0
fld qword [esp + 0x30]
fdivrp st(1)
fld qword [0x43a808]
fadd st(1), st(0)
fxch st(1)
fld st(0)
frndint
fcom st(1)
fnstsw ax
sahf
fstp st(1)
jbe 0x40bef9
fld1
fsubp st(1)
fsub dword [esp + 0x48]
call fcn.00431790
fld dword [0x43a890]
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x70], edx
fild dword [esp + 0x70]
fst dword [esp + 0x24]
mov dword [edi + 0x20], eax
fmulp st(1)
fmulp st(1)
mov dword [esp + 0x70], esi
fild dword [esp + 0x70]
fdiv st(1), st(0)
fstp qword [esp + 0x78]
fstp qword [esp]
inc eax
mov ecx, eax
mov edx, 1
shl edx, cl
mov dword [esp + 0x70], edx
fild dword [esp + 0x70]
fstp qword [esp + 0x28]
call fcn.0041f2f0
fild dword [ebx]
fxch st(1)
fmul qword [0x43a818]
fsub qword [0x43a820]
fmul qword [esp + 0x28]
fsubrp st(1)
call fcn.00431790
mov dword [esp + 0x70], esi
fild dword [esp + 0x70]
mov ebx, eax
fadd dword [0x43a890]
fmul dword [esp + 0x24]
fmul qword [0x43a808]
fdiv qword [esp + 0x78]
mov dword [edi + 0x1c], ebx
fstp qword [esp]
call fcn.0041f2f0
fmul qword [0x43a818]
fsub qword [0x43a820]
fmul qword [esp + 0x28]
fadd qword [0x43a808]
call fcn.00431790
lea edx, [esi*4]
mov dword [esp + 0x24], edx
push edx
sub eax, ebx
inc eax
mov dword [edi + 0x28], eax
call fcn.0042a60c
push dword [esp + 0x28]
mov dword [edi + 0x10], eax
call fcn.0042a60c
push dword [esp + 0x2c]
mov dword [edi + 0x14], eax
call fcn.0042a60c
add esp, 0xc
mov edx, dword [ebp + 0xc]
fld1
mov dword [edi + 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 4], edx
mov dword [edi], esi
mov dword [edi + 0x2c], eax
cmp eax, 0x6590
jge 0x40c000
fstp st(0)
mov dword [edi + 0x30], 0
jmp 0x40c02b
cmp dword [ebp + 0x18], 0x9470
jge 0x40c014
fstp st(0)
mov dword [edi + 0x30], 0x3f70a3d7
jmp 0x40c02b
cmp dword [ebp + 0x18], 0xb3b0
jle 0x40c028
fstp st(0)
mov dword [edi + 0x30], 0x3fa33333
jmp 0x40c02b
fstp dword [edi + 0x30]
fld qword [0x43a828]
fstp st(0)
fld qword [0x43a830]
fstp st(0)
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x70], edx
fild dword [esp + 0x70]
fstp qword [esp + 0x80]
mov dword [esp + 0x6c], edi
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x28], eax
mov esi, eax
lea edi, [esi + 1]
mov dword [esp + 0x70], edi
fild dword [esp + 0x70]
fmul qword [0x43a830]
fsub qword [0x43a810]
fadd qword [0x43a820]
fmul qword [0x43a828]
fstp qword [esp]
call fcn.0041f2c0
fadd st(0)
fmul qword [esp + 0x78]
fdiv qword [esp + 0x80]
fadd qword [0x43a808]
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
and eax, 0xfffff3ff
or eax, 0x400
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp dword [esp + 0x70]
fldcw word [esp + 0x18]
fld dword [esi*4 + 0x434ce0]
mov eax, dword [esp + 0x70]
cmp ebx, eax
jge 0x40c11e
fld dword [esi*4 + 0x434ce4]
mov edx, dword [esp + 0x28]
mov esi, dword [ebp + 0x14]
fsub st(1)
lea ecx, [eax + edx]
mov dword [esp + 0x70], ecx
fild dword [esp + 0x70]
fdivp st(1)
mov ecx, edx
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x6c]
cmp ebx, esi
jge 0x40c110
fld qword [0x43a838]
fadd st(2)
fxch st(1)
fadd st(2), st(0)
mov edx, dword [edi + 0x10]
fxch st(1)
fstp dword [edx + ebx*4]
dec ecx
inc ebx
cmp ebx, eax
jl 0x40c0f2
fstp st(1)
fstp st(0)
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x28], ecx
jmp 0x40c120
fstp st(0)
mov esi, edi
cmp edi, 0x57
jl 0x40c05b
mov esi, dword [ebp + 0x14]
mov edi, dword [esp + 0x6c]
cmp ebx, esi
jge 0x40c145
mov edx, dword [edi + 0x10]
mov eax, dword [edx + ebx*4 - 4]
mov dword [edx + ebx*4], eax
inc ebx
cmp ebx, esi
jl 0x40c136
test esi, esi
jle 0x40c3a6
fld qword [0x43a840]
fstp st(0)
fld qword [0x43a848]
fstp st(0)
mov eax, dword [ebp + 0x18]
fld dword [0x43a8a0]
fstp st(0)
fld dword [0x43a8a4]
fstp st(0)
cdq
mov dword [esp + 0x40], 0xffffff9d
mov dword [esp + 0x6c], edi
lea ecx, [esi + esi]
idiv ecx
imul ecx, eax, 0xffffff9d
mov dword [esp + 0x3c], ecx
mov ebx, eax
mov dword [esp + 0x38], ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x64], eax
mov edx, eax
imul edx, eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x20], 1
mov esi, dword [esp + 0x20]
mov dword [esp + 0x4c], 0
mov edi, dword [esp + 0x4c]
fld dword [0x43a89c]
mov eax, dword [esp + 0x64]
imul eax, edi
mov dword [esp + 0x70], eax
fild dword [esp + 0x70]
fmul st(1), st(0)
fstp dword [esp + 0x44]
fstp qword [esp]
call fcn.0041f320
fstp qword [esp + 0x18]
mov eax, edi
imul eax, edi
imul eax, dword [esp + 0x58]
mov dword [esp + 0x70], eax
fild dword [esp + 0x70]
fmul dword [0x43a8a0]
fstp qword [esp]
call fcn.0041f320
fmul qword [0x43a848]
mov edx, dword [esp + 0x40]
fld qword [esp + 0x18]
fmul qword [0x43a840]
faddp st(1)
mov eax, dword [ebx + 0x78]
fld dword [esp + 0x44]
fmul dword [0x43a8a4]
faddp st(1)
lea ecx, [edx + eax]
cmp edi, ecx
jle 0x40c2db
fld dword [ebx + 0x70]
mov ebx, dword [esp + 0x3c]
fxch st(1)
fst qword [esp + 0x18]
fsubrp st(1)
fstp dword [esp + 0x5c]
mov dword [esp + 0x4c], edi
mov edi, eax
mov dword [esp + 0x20], esi
mov esi, edx
fld dword [0x43a89c]
mov dword [esp + 0x70], ebx
fild dword [esp + 0x70]
fst dword [esp + 0x60]
fmulp st(1)
fstp qword [esp]
call fcn.0041f320
fstp qword [esp + 0x50]
mov edx, esi
imul edx, esi
imul edx, dword [esp + 0x58]
mov dword [esp + 0x70], edx
fild dword [esp + 0x70]
fmul dword [0x43a8a0]
fstp qword [esp]
call fcn.0041f320
fmul qword [0x43a848]
fld qword [esp + 0x50]
fmul qword [0x43a840]
faddp st(1)
fld dword [esp + 0x60]
fmul dword [0x43a8a4]
faddp st(1)
fld dword [esp + 0x5c]
fcompp
fnstsw ax
sahf
jbe 0x40c2c4
add ebx, dword [esp + 0x64]
inc esi
lea edx, [edi + esi]
cmp edx, dword [esp + 0x4c]
jl 0x40c24d
fld qword [esp + 0x18]
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x3c], ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x20]
cmp esi, dword [ebp + 0x14]
jg 0x40c566
fstp qword [esp + 0x18]
mov eax, edi
add eax, dword [ebx + 0x7c]
mov dword [esp + 0x68], eax
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x38]
cmp esi, dword [esp + 0x68]
jl 0x40c36b
fld dword [0x43a89c]
mov dword [esp + 0x70], edi
fild dword [esp + 0x70]
fst qword [esp + 0x30]
fmulp st(1)
fstp qword [esp]
call fcn.0041f320
fstp qword [esp + 0x28]
mov eax, esi
imul eax, esi
imul eax, dword [esp + 0x58]
mov dword [esp + 0x70], eax
fild dword [esp + 0x70]
fmul dword [0x43a8a0]
fstp qword [esp]
call fcn.0041f320
fmul qword [0x43a848]
fld dword [ebx + 0x74]
fadd qword [esp + 0x18]
fld qword [esp + 0x30]
fmul dword [0x43a8a4]
fld qword [esp + 0x28]
fmul qword [0x43a840]
faddp st(1)
faddp st(2)
fcompp
fnstsw ax
sahf
jbe 0x40c375
add edi, dword [esp + 0x64]
inc esi
cmp esi, dword [ebp + 0x14]
jle 0x40c2f9
mov dword [esp + 0x38], edi
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x6c]
shl eax, 0x10
lea ecx, [eax + esi - 0x10001]
mov eax, dword [edx + 0x18]
mov dword [eax + edi*4], ecx
inc edi
cmp edi, dword [ebp + 0x14]
jl 0x40c1b7
mov esi, dword [ebp + 0x14]
mov edi, edx
test esi, esi
fld qword [0x43a808]
fmul qword [esp + 0x80]
jle 0x40c414
fstp qword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x70], ebx
fild dword [esp + 0x70]
fadd dword [0x43a890]
fmul qword [esp + 0x18]
fdiv qword [esp + 0x78]
fstp qword [esp]
call fcn.0041f2f0
fmul qword [0x43a818]
fsub qword [0x43a820]
mov ecx, dword [edi + 0x20]
inc ecx
mov edx, 1
shl edx, cl
mov dword [esp + 0x70], edx
fild dword [esp + 0x70]
fmulp st(1)
fadd qword [0x43a808]
call fcn.00431790
mov edx, dword [edi + 0x14]
mov dword [edx + ebx*4], eax
inc ebx
cmp ebx, esi
jl 0x40c3bb
fld qword [esp + 0x18]
fdiv qword [esp + 0x78]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x18]
fstp dword [esp + 4]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebx + 0x1c]
lea eax, [ebx + 0x24]
mov dword [esp + 0x10], ecx
mov edx, esi
call fcn.0040b370
push 0xc
mov dword [edi + 8], eax
call fcn.0042a60c
pop ecx
mov esi, dword [esp + 0x24]
mov dword [edi + 0xc], eax
xor ebx, ebx
push esi
call fcn.0042a60c
pop ecx
mov edx, dword [edi + 0xc]
mov dword [edx + ebx*4], eax
inc ebx
cmp ebx, 3
jl 0x40c44b
mov esi, dword [ebp + 0x14]
test esi, esi
jle 0x40c559
fld qword [esp + 0x78]
fadd st(0)
fld dword [0x43a8a8]
fstp st(0)
fstp qword [esp + 0x78]
fldz
fstp dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0x70], ebx
fild dword [esp + 0x70]
fadd qword [0x43a808]
fmul qword [esp + 0x80]
fdiv qword [esp + 0x78]
fstp qword [esp]
call fcn.0041f2f0
fmul qword [0x43a818]
fsub qword [0x43a820]
fmul qword [0x43a810]
fld dword [esp + 0x18]
fcom st(1)
fnstsw ax
sahf
jbe 0x40c4c3
fst st(1)
fstp st(0)
fld dword [0x43a8a8]
fcom st(1)
fnstsw ax
sahf
jae 0x40c4d6
jp 0x40c4d6
fst st(1)
fstp st(0)
fld st(0)
call fcn.00431790
fld dword [esp + 0x48]
mov edx, dword [edi + 4]
fld dword [edx + eax*4 + 0x84]
mov ecx, dword [edi + 0xc]
fld dword [edx + eax*4 + 0x88]
mov edx, dword [ecx]
mov dword [esp + 0x70], eax
fild dword [esp + 0x70]
fsubp st(4)
fmul st(3)
fxch st(2)
fsub st(3)
fmul st(1), st(0)
fxch st(2)
faddp st(1)
fstp dword [edx + ebx*4]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 0xc]
fld dword [ecx + eax*4 + 0xc8]
fmul st(1)
fld dword [ecx + eax*4 + 0xcc]
fmul st(3)
faddp st(1)
mov ecx, dword [edx + 4]
fstp dword [ecx + ebx*4]
mov edx, dword [edi + 4]
fmul dword [edx + eax*4 + 0x10c]
fxch st(1)
fmul dword [edx + eax*4 + 0x110]
faddp st(1)
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 8]
fstp dword [eax + ebx*4]
inc ebx
cmp ebx, esi
jl 0x40c483
add esp, 0xb4
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
fstp st(0)
jmp 0x40c37d