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

Disassembly:
mov eax, dword fs:[0]
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push 0x42e060
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
mov ebx, dword [esp + 0x68]
push ebp
mov ebp, dword [esp + 0x68]
push esi
push edi
mov edi, dword [esp + 0x6c]
cmp edi, ebx
jne 0x40cf28
cmp ebp, edx
je 0x40d534
xor ecx, ecx
mov dword [esp + 0x2c], 0x432c68
mov dword [esp + 0x30], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], ecx
xor eax, eax
cmp edi, ebx
setle al
mov dword [esp + 0x60], ecx
mov dword [esp + 0x74], eax
xor eax, eax
cmp ebp, edx
setg al
mov dword [esp + 0x10], eax
mov eax, ebp
sub eax, edx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov eax, edi
sub eax, ebx
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fstp qword [esp + 0x1c]
fld qword [0x432ca0]
fld st(1)
fucompp
fnstsw ax
test ah, 0x44
jp 0x40cf91
fld qword [0x432c98]
jmp 0x40cfb2
fld qword [0x432ca0]
fld qword [esp + 0x1c]
fucompp
fnstsw ax
test ah, 0x44
jp 0x40cfac
fld qword [0x432c90]
jmp 0x40cfb2
fld qword [esp + 0x1c]
fdivr st(1)
fstp qword [esp + 0x14]
fild dword [esp + 0x70]
fild dword [esp + 0x6c]
fmul qword [esp + 0x14]
fsubp st(1)
fstp qword [esp + 0x24]
fld qword [0x432c98]
fld qword [esp + 0x14]
fucompp
fnstsw ax
test ah, 0x44
jp 0x40d0bb
mov eax, dword [esp + 0x74]
fstp st(0)
xor esi, esi
test eax, eax
je 0x40d053
cmp edi, ebx
jg 0x40d31c
push esi
push esi
lea eax, [esi + edi]
push ebp
push eax
lea ecx, [esp + 0x50]
call fcn.0040bf50
mov edx, dword [eax]
sub esp, 0x18
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x78], 1
call fcn.0040c9e0
lea ecx, [esp + 0x40]
mov byte [esp + 0x60], 0
call fcn.0040bef0
inc esi
lea ecx, [esi + edi]
cmp ecx, ebx
jle 0x40cff3
jmp 0x40d318
cmp edi, ebx
jl 0x40d31c
jmp 0x40d060
push esi
push esi
push ebp
push edi
lea ecx, [esp + 0x50]
call fcn.0040bf50
mov ecx, dword [eax]
sub esp, 0x18
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov ecx, dword [eax + 0xc]
mov dword [edx + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [edx + 0x10], ecx
lea ecx, [esp + 0x44]
mov byte [esp + 0x78], 2
mov dword [edx + 0x14], eax
call fcn.0040c9e0
lea ecx, [esp + 0x40]
mov byte [esp + 0x60], 0
call fcn.0040bef0
inc esi
dec edi
cmp edi, ebx
jge 0x40d060
jmp 0x40d318
fld qword [0x432c90]
fld qword [esp + 0x14]
fucompp
fnstsw ax
test ah, 0x44
jp 0x40d1b3
mov eax, dword [esp + 0x10]
fstp st(0)
xor esi, esi
test eax, eax
je 0x40d146
cmp ebp, edx
jl 0x40d31c
mov bl, 3
push esi
push esi
push ebp
push edi
lea ecx, [esp + 0x50]
call fcn.0040bf50
mov edx, dword [eax]
sub esp, 0x18
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x78], bl
call fcn.0040c9e0
lea ecx, [esp + 0x40]
mov byte [esp + 0x60], 0
call fcn.0040bef0
mov eax, dword [esp + 0x78]
inc esi
dec ebp
cmp ebp, eax
jge 0x40d0e8
jmp 0x40d318
cmp ebp, edx
jg 0x40d31c
mov bl, 4
push esi
push esi
lea eax, [esi + ebp]
push eax
push edi
lea ecx, [esp + 0x50]
call fcn.0040bf50
mov edx, dword [eax]
sub esp, 0x18
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x78], bl
call fcn.0040c9e0
lea ecx, [esp + 0x40]
mov byte [esp + 0x60], 0
call fcn.0040bef0
mov eax, dword [esp + 0x78]
inc esi
lea ecx, [esi + ebp]
cmp ecx, eax
jle 0x40d150
jmp 0x40d318
fabs
mov esi, 0
fld qword [esp + 0x1c]
fabs
fxch st(1)
fcompp
fnstsw ax
test ah, 5
jp 0x40d26f
mov eax, ebx
sub eax, edi
cdq
mov ebp, eax
xor ebp, edx
sub ebp, edx
js 0x40d31c
mov dword [esp + 0x78], edi
mov eax, dword [esp + 0x74]
test eax, eax
lea ebx, [esi + edi]
jne 0x40d1f3
mov ebx, dword [esp + 0x78]
mov dword [esp + 0x70], ebx
fild dword [esp + 0x70]
fmul qword [esp + 0x14]
fadd qword [esp + 0x24]
call fcn.00418dc8
push esi
push esi
push eax
push ebx
lea ecx, [esp + 0x50]
call fcn.0040bf50
mov ecx, dword [eax]
sub esp, 0x18
mov edx, esp
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov ecx, dword [eax + 0xc]
mov dword [edx + 0xc], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [edx + 0x10], ecx
lea ecx, [esp + 0x44]
mov byte [esp + 0x78], 5
mov dword [edx + 0x14], eax
call fcn.0040c9e0
lea ecx, [esp + 0x40]
mov byte [esp + 0x60], 0
call fcn.0040bef0
mov ecx, dword [esp + 0x78]
inc esi
dec ecx
cmp esi, ebp
mov dword [esp + 0x78], ecx
jle 0x40d1e4
jmp 0x40d318
mov eax, edx
sub eax, ebp
cdq
mov edi, eax
xor edi, edx
sub edi, edx
js 0x40d31c
fld qword [0x432c88]
mov dword [esp + 0x78], ebp
fdiv qword [esp + 0x14]
fstp qword [esp + 0x1c]
mov eax, dword [esp + 0x10]
test eax, eax
mov ebx, dword [esp + 0x78]
jne 0x40d2a1
lea ebx, [esi + ebp]
mov dword [esp + 0x70], ebx
fild dword [esp + 0x70]
fsub qword [esp + 0x24]
fmul qword [esp + 0x1c]
call fcn.00418dc8
push esi
push esi
push ebx
push eax
lea ecx, [esp + 0x50]
call fcn.0040bf50
mov edx, dword [eax]
sub esp, 0x18
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], eax
lea ecx, [esp + 0x44]
mov byte [esp + 0x78], 6
call fcn.0040c9e0
lea ecx, [esp + 0x40]
mov byte [esp + 0x60], 0
call fcn.0040bef0
mov ecx, dword [esp + 0x78]
inc esi
dec ecx
cmp esi, edi
mov dword [esp + 0x78], ecx
jle 0x40d292
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x80]
xor esi, esi
test eax, eax
je 0x40d3cc
test ecx, ecx
mov ebx, dword [esp + 0x7c]
jle 0x40d4f0
mov ebp, dword [esp + 0x68]
xor edi, edi
nop
test edi, edi
jl 0x40d549
cmp esi, ecx
jge 0x40d549
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x24]
add ecx, edi
push edx
call fcn.0040bf00
mov edx, dword [eax + 4]
mov eax, dword [eax]
lea ecx, [ebx + esi + 1]
push ecx
push esi
push edx
push eax
lea ecx, [esp + 0x50]
call fcn.0040bf50
mov edx, dword [eax]
sub esp, 0x18
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], eax
mov ecx, ebp
mov byte [esp + 0x78], 7
call fcn.0040c9e0
lea ecx, [esp + 0x40]
mov byte [esp + 0x60], 0
call fcn.0040bef0
mov ecx, dword [esp + 0x34]
inc esi
add edi, 0x18
cmp esi, ecx
jl 0x40d340
jmp 0x40d4f0
mov edx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x68]
lea eax, [ecx - 1]
test eax, eax
lea edi, [ecx + edx]
jle 0x40d46b
xor ebp, ebp
test ebp, ebp
jl 0x40d549
cmp esi, ecx
jge 0x40d549
mov ecx, dword [esp + 0x30]
lea edx, [esp + 0x24]
add ecx, ebp
push edx
call fcn.0040bf00
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push edi
push esi
push ecx
push edx
lea ecx, [esp + 0x50]
call fcn.0040bf50
mov edx, dword [eax]
sub esp, 0x18
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], eax
mov ecx, ebx
mov byte [esp + 0x78], 8
call fcn.0040c9e0
lea ecx, [esp + 0x40]
mov byte [esp + 0x60], 0
call fcn.0040bef0
mov ecx, dword [esp + 0x34]
dec edi
inc esi
lea edx, [ecx - 1]
add ebp, 0x18
cmp esi, edx
jl 0x40d3e4
lea eax, [ecx - 1]
test eax, eax
jl 0x40d549
cmp eax, ecx
jge 0x40d549
mov ecx, dword [esp + 0x30]
lea eax, [eax + eax*2]
lea edx, [esp + 0x24]
lea ecx, [ecx + eax*8]
push edx
call fcn.0040bf00
mov ecx, dword [esp + 0x84]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edi
push ecx
push edx
push eax
lea ecx, [esp + 0x50]
call fcn.0040bf50
mov edx, dword [eax]
sub esp, 0x18
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], eax
mov ecx, ebx
mov byte [esp + 0x78], 9
call fcn.0040c9e0
lea ecx, [esp + 0x40]
mov byte [esp + 0x60], 0
call fcn.0040bef0
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
test eax, eax
mov dword [esp + 0x60], 0xffffffff
mov dword [esp + 0x2c], 0x432c68
je 0x40d534
xor esi, esi
test ecx, ecx
jle 0x40d527
xor edi, edi
mov ecx, dword [esp + 0x30]
add ecx, edi
call fcn.0040bef0
mov eax, dword [esp + 0x34]
inc esi
add edi, 0x18
cmp esi, eax
jl 0x40d510
mov edx, dword [esp + 0x30]
push edx
call fcn.00424067
add esp, 4
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x54
ret 0x20
call fcn.0042385a
int3