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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
push 0xffffffffffffffff
push 0x43f6c5
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x44dd70]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 4], 0
je 0x40df9e
mov eax, 0xa
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
fld qword [0x443490]
fld qword [ebp + 0x18]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x40dfce
fld qword [ebp + 8]
fcom st(1)
fnstsw ax
test ah, 0x41
jnp 0x40dfcc
fld qword [ebp + 0x10]
fcom st(2)
fnstsw ax
test ah, 0x41
jp 0x40dfea
fstp st(2)
fstp st(1)
fstp st(0)
mov eax, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
fxch st(2)
mov eax, dword [ebp + 0x20]
fst qword [esi + 0x48]
mov edi, 1
fxch st(2)
mov dword [esi + 0x24], edi
fst qword [esi + 0x40]
mov dword [esi + 0x34], eax
fstp qword [esi + 0x38]
mov dword [esi + 0x78], edi
fldz
fstp qword [esi + 0x58]
fst qword [esi + 0x50]
fdivp st(1)
fld1
fsubrp st(1)
call sub.MSVCR90.dll__CIacos
fadd st(0), st(0)
fdivr qword [0x443840]
call fcn.0043cdf0
sub edi, eax
cmp edi, 3
mov dword [esp + 0x14], edi
jge 0x40e03f
mov dword [esp + 0x14], 3
mov edi, dword [esp + 0x14]
fild dword [esp + 0x14]
lea edx, [edi*4]
lea eax, [edi + edi*2]
add eax, eax
fdivr qword [0x443838]
mov ebx, edx
lea ecx, [edi + edi + 2]
sub ebx, eax
add ebx, ecx
mov dword [esi], ecx
mov dword [esi + 0xc], edx
mov dword [esi + 0x1c], eax
fstp qword [esp + 0x3c]
cmp ebx, 2
je 0x40e091
mov ecx, esi
call fcn.0040db40
mov eax, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
push edx
push eax
push ecx
mov ecx, esi
call fcn.0040dc90
mov ebx, eax
test ebx, ebx
je 0x40e0bf
mov ecx, esi
call fcn.0040db40
mov eax, ebx
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
fldz
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x3c]
push edx
sub esp, 0x10
fstp qword [esp + 8]
lea ecx, [esp + 0x54]
fld qword [esp + 0x54]
fstp qword [esp]
push edi
call fcn.0040d3e0
mov ecx, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x80], ebx
cmp ecx, ebx
je 0x40e2eb
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x40e2eb
test edi, edi
jle 0x40e178
sub ecx, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], ecx
jmp 0x40e11c
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
fld qword [ecx + eax]
sub esp, 0x18
fld qword [ebp + 8]
mov ecx, esi
fmul st(1), st(0)
fxch st(1)
fst qword [esp + 0x3c]
fld qword [eax]
fmulp st(2)
fxch st(1)
fst qword [esp + 0x44]
fldz
fstp qword [esp + 0x10]
fstp qword [esp + 8]
fstp qword [esp]
push ebx
call fcn.0040da20
fld qword [esi + 0x40]
sub esp, 0x18
fstp qword [esp + 0x10]
lea eax, [ebx + edi]
fld qword [esp + 0x44]
fstp qword [esp + 8]
fld qword [esp + 0x3c]
fstp qword [esp]
push eax
call fcn.0040da20
add dword [esp + 0x1c], 8
inc ebx
cmp ebx, edi
jl 0x40e114
fldz
mov eax, dword [esi]
sub esp, 0x18
fst qword [esp + 0x10]
fst qword [esp + 8]
sub eax, 2
fstp qword [esp]
mov ecx, esi
push eax
mov dword [esp + 0x48], eax
call fcn.0040da20
fld qword [esi + 0x40]
mov eax, dword [esi]
sub esp, 0x18
fstp qword [esp + 0x10]
dec eax
fldz
mov dword [esp + 0x50], eax
fst qword [esp + 8]
fstp qword [esp]
push eax
call fcn.0040da20
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], eax
dec eax
xor edi, edi
xor ebx, ebx
test eax, eax
jle 0x40e241
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x2c]
push ebx
lea eax, [ebx + 1]
push eax
inc ecx
push edx
mov dword [esp + 0x28], ecx
push edi
mov ecx, esi
mov dword [esp + 0x30], eax
call fcn.0040da70
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push ebx
inc edi
push edi
mov ecx, esi
call fcn.0040da70
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push edx
push eax
push ebx
inc edi
push edi
mov ecx, esi
call fcn.0040da70
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
inc edi
push edi
mov ecx, esi
call fcn.0040da70
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
inc edi
sub dword [esp + 0x24], 1
mov dword [esp + 0x18], ecx
jne 0x40e1ce
mov edx, dword [esp + 0x2c]
push ebx
push 0
push edx
push edi
mov ecx, esi
call fcn.0040da70
mov eax, dword [esp + 0x14]
push eax
push 0
push ebx
inc edi
push edi
mov ecx, esi
call fcn.0040da70
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
push ebx
inc edi
push edi
mov ecx, esi
call fcn.0040da70
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x38]
push eax
push ecx
push edx
inc edi
push edi
mov ecx, esi
call fcn.0040da70
inc edi
cmp edi, dword [esi + 0xc]
je 0x40e2ac
push 0x1f0
push 0x4434e0
push 0x4434fc
call dword [sym.imp.MSVCR90.dll__wassert]
add esp, 0xc
fldz
mov ecx, esi
fst dword [esi + 0x28]
fstp dword [esi + 0x2c]
fld1
fstp dword [esi + 0x30]
call fcn.0040d930
lea ecx, [esp + 0x3c]
mov dword [esp + 0x80], 0xffffffff
call fcn.0040d3b0
xor eax, eax
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
mov ecx, esi
call fcn.0040db40
lea ecx, [esp + 0x3c]
mov dword [esp + 0x80], 0xffffffff
call fcn.0040d3b0
mov eax, 4
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c