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

Disassembly:
sub esp, 0x364
fldz
push ebx
push ebp
xor ebp, ebp
mov dword [esp + 0xc], ebp
mov dword [esp + 0x2c], ebp
xor eax, eax
mov word [esp + 0x28], ax
mov dword [esp + 8], ebp
fst qword [esp + 0x64]
xor ecx, ecx
mov word [esp + 0x30], cx
fst qword [esp + 0x50]
fldz
xor edx, edx
fstp dword [esp + 0x1c]
mov ebx, 1
mov word [esp + 0x20], dx
add dword [esp + 0x20], ebx
fld qword [0x423750]
mov ax, word [esp + 0x20]
movsx ecx, ax
add ecx, 0x5fb9e4bf
mov dword [esp + 0x10], ecx
push esi
mov esi, dword [esp + 0x380]
fild dword [esp + 0x14]
fsubp st(1)
fstp qword [0x423750]
mov dx, word [0x4233e0]
mov ecx, dword [esp + 0xc]
movsx eax, dx
lea edx, [ecx + eax + 0x265b16fe]
mov word [0x4233e0], dx
dec dword [esp + 0xc]
lea ecx, [esp + 0x5c]
push ecx
fstp qword [esp + 0x18]
lea eax, [esp + 0x54]
mov dword [esp + 0x54], ebp
push esi
mov dword [esp + 0x58], ebp
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], eax
call fcn.00401970
add esp, 8
test eax, eax
jl 0x406c66
mov edx, dword [esi + 8]
test byte [edx], bl
je 0x406c66
lea eax, [esp + 0x28]
push esi
push eax
call fcn.004010c0
push ebp
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.004013b0
mov eax, dword [esp + 0x24]
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
fsub qword [esp + 0x68]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x28], ecx
fild dword [esp + 0x28]
mov dword [esp + 0x28], edx
faddp st(1)
fild dword [esp + 0x28]
fmulp st(1)
call fcn.0040b140
mov dword [esp + 0x24], eax
add dword [esp + 0x44], ebx
push 0x300
lea eax, [esp + 0x88]
push ebp
push eax
call fcn.0040b0c0
mov ecx, dword [esp + 0x39c]
push ecx
call fcn.004016f0
add esp, 0x24
cmp eax, 0x29f
jle 0x406535
mov dword [esp + 0x10], 6
jmp 0x406565
cmp eax, 0xef
jle 0x406546
mov dword [esp + 0x10], 5
jmp 0x406565
cmp eax, 0x4f
jle 0x406555
mov dword [esp + 0x10], 4
jmp 0x406565
xor edx, edx
cmp eax, 0x17
setg dl
lea edx, [edx + edx + 1]
mov dword [esp + 0x10], edx
mov eax, dword [0x42556c]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
push edi
fstp dword [0x4248b4]
mov edi, dword [esi + 4]
add edi, ebx
mov ebx, dword [esp + 0x378]
push edi
push ebx
call fcn.00401420
add esp, 8
mov dword [esp + 0x20], eax
cmp eax, ebp
jne 0x406bca
lea ecx, [esp + 0x80]
push edi
push ecx
call fcn.00401420
add esp, 8
mov dword [esp + 0x20], eax
cmp eax, ebp
jne 0x406bca
mov dx, word [0x423174]
mov ecx, dword [esp + 0x10]
movsx eax, dx
mov edx, dword [esp + 0x10]
dec dword [esp + 0x10]
sub eax, ecx
sub eax, edx
cmp eax, 0x502977c2
je 0x4065f2
mov ax, word [0x42351c]
movzx ecx, word [esp + 0x38]
cwde
sub ecx, eax
add ecx, 0x1c4850cd
mov word [esp + 0x38], cx
lea edx, [edi + edi]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.00401420
add esp, 8
mov dword [esp + 0x20], eax
cmp eax, ebp
jne 0x406bca
mov ebp, dword [esp + 0x388]
test ebp, ebp
je 0x40663a
cmp dword [ebp + 8], 0
je 0x40663a
mov ecx, dword [ebp]
mov edx, dword [ebp + 4]
mov eax, dword [ebp + 8]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
jmp 0x406740
movzx ecx, word [esp + 0x30]
fldz
imul ecx, ecx, 0xd30900f
mov word [esp + 0x30], cx
lea edx, [esp + 0x3c]
fstp dword [esp + 0x18]
push 1
fldz
push edx
fstp qword [esp + 0x20]
call fcn.00401420
mov edi, eax
add esp, 8
test edi, edi
jne 0x406697
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
lea ecx, [eax*4]
push ecx
push edi
push edx
call fcn.0040b0c0
mov eax, dword [esp + 0x50]
mov dword [eax], 1
add esp, 0xc
mov dword [esp + 0x3c], 1
mov dword [esp + 0x20], edi
test edi, edi
jne 0x406bd1
mov ecx, dword [esi + 4]
shl ecx, 6
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00402010
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x406bd1
lea eax, [esp + 0x3c]
push esi
push eax
mov ecx, eax
push ecx
call fcn.00405900
add esp, 0xc
mov dword [esp + 0x20], eax
test eax, eax
jne 0x406bd1
mov dx, word [esp + 0x30]
movsx eax, dx
sub eax, 0x7b320e6c
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fld qword [esp + 0x6c]
mov ecx, dword [0x4236d8]
fsub qword [0x41f788]
dec dword [esp + 0x30]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x18]
fsubp st(1)
fcompp
fnstsw ax
test ah, 0x41
jne 0x406727
mov edx, dword [esp + 0x34]
mov word [0x4256fc], dx
test ebp, ebp
je 0x406740
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov edi, dword [esp + 0x37c]
push esi
push edi
call fcn.00401970
add esp, 8
test eax, eax
jl 0x406769
push esi
lea eax, [esp + 0x84]
push edi
push eax
call fcn.00405900
add esp, 0xc
jmp 0x40677a
lea ecx, [esp + 0x80]
push edi
push ecx
call fcn.00401e50
add esp, 8
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x48]
push edx
push eax
push esi
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x90]
push edx
call fcn.00403a10
fld dword [0x423c84]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2c], eax
fisub dword [esp + 0x2c]
lea ecx, [esp + 0x50]
push ecx
push ebx
fstp dword [0x423c84]
inc dword [esp + 0x50]
call fcn.00401e50
add esp, 0x1c
mov dword [esp + 0x20], eax
test eax, eax
jne 0x406bd1
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x48]
push edx
push eax
push esi
push ebx
call fcn.00404350
mov ebx, dword [esp + 0x24]
add esp, 0x10
cmp ebx, 1
jle 0x4068f9
dec ebx
mov ecx, ebx
mov ebp, 1
shl ebp, cl
mov ecx, dword [0x4233d4]
dec dword [0x4233d4]
sub ecx, 0x735c6151
cmp ecx, 0xd2a0a54e
je 0x406826
fld dword [esp + 0x24]
fsub qword [0x41f780]
call fcn.0040b140
mov word [esp + 0x28], ax
mov edx, dword [esi + 4]
inc edx
lea edi, [ebp + ebp*2]
push edx
lea edi, [esp + edi*4 + 0x78]
push edi
call fcn.00401420
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x406bca
lea eax, [esp + 0x80]
push eax
push edi
call fcn.00401e50
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x406bca
test ebx, ebx
jle 0x40688a
lea esp, [esp]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x48]
push ecx
push edx
push esi
push edi
push edi
call fcn.00403a10
add esp, 0x14
sub ebx, 1
jne 0x406870
mov ecx, dword [esp + 0x14]
mov ebx, 1
shl ebx, cl
inc ebp
cmp ebp, ebx
jge 0x4068f9
lea edi, [ebp + ebp*2]
lea edi, [esp + edi*4 + 0x74]
mov eax, dword [esi + 4]
inc eax
push eax
push edi
call fcn.00401420
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x406bca
lea ecx, [edi - 0xc]
push ecx
push edi
call fcn.00401e50
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
jne 0x406bca
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x48]
push edx
push eax
push esi
lea ecx, [esp + 0x8c]
push ecx
push edi
call fcn.00403a10
inc ebp
add esp, 0x14
add edi, 0xc
cmp ebp, ebx
jl 0x4068a2
movzx ecx, word [esp + 0x28]
mov edx, dword [esp + 0x380]
mov eax, dword [edx + 4]
mov edx, dword [0x4248a8]
mov dword [esp + 0x18], eax
xor edi, edi
lea eax, [ecx + edx - 0x2c43d016]
mov word [esp + 0x28], ax
mov dword [esp + 0x30], edi
xor ebp, ebp
mov dword [esp + 0x28], edi
lea ebx, [ebx]
mov ebx, dword [esp + 0x2c]
jmp 0x406940
cmp dword [esp + 0x30], 0
mov dword [esp + 0x10], 0xc09e9d62
jne 0x406993
mov eax, dword [esp + 0x18]
mov ecx, eax
dec eax
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x406ac6
fld qword [0x423728]
mov dx, word [esp + 0x38]
movsx eax, dx
mov ecx, 0x1257ab15
sub ecx, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], 0x20
fild dword [esp + 0x24]
fsubp st(1)
fstp qword [0x423728]
inc dword [esp + 0x38]
add dword [esp + 0x10], 0x27abcca2
mov edx, dword [esp + 0x380]
mov eax, dword [edx + 8]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov edx, dword [eax + edx*4]
dec ecx
shr edx, cl
mov dword [esp + 0x30], ecx
and edx, 1
jne 0x4069ee
mov eax, dword [esp + 0x28]
test eax, eax
je 0x406930
cmp eax, 1
jne 0x4069ee
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x37c]
push ebx
push esi
push eax
push eax
call fcn.00403a10
add esp, 0x14
jmp 0x406940
fld dword [0x4248d8]
mov dword [esp + 0x28], 2
fsub qword [0x41f778]
fcomp qword [0x41f770]
fnstsw ax
fld dword [0x4248d8]
fadd qword [0x41f358]
fstp dword [0x4248d8]
test ah, 0x41
jp 0x406a2d
mov ecx, dword [0x423664]
mov dword [0x423120], ecx
mov eax, dword [esp + 0x14]
inc ebp
mov ecx, eax
sub ecx, ebp
shl edx, cl
or edi, edx
cmp ebp, eax
jne 0x406930
mov edx, dword [0x423120]
add edx, dword [esp + 0x10]
mov ebx, eax
mov dword [0x423120], edx
inc dword [esp + 0x10]
test ebx, ebx
jle 0x406a7d
mov ebp, dword [esp + 0x2c]
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x37c]
push ebp
push esi
push eax
push eax
call fcn.00403a10
add esp, 0x14
sub ebx, 1
jne 0x406a60
fld dword [0x4234f0]
mov ebx, dword [esp + 0x2c]
fmul qword [0x41f768]
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x37c]
push ebx
fstp dword [0x4234f0]
lea edx, [edi + edi*2]
push esi
lea eax, [esp + edx*4 + 0x80]
push eax
push ecx
call fcn.00403a10
add esp, 0x14
xor ebp, ebp
mov dword [esp + 0x28], 1
xor edi, edi
jmp 0x406940
mov ecx, dword [esp + 0x14]
mov eax, 1
rol eax, cl
mov dword [esp + 0x24], eax
test ebp, ebp
jle 0x406b2d
mov dword [esp + 0x18], ebp
lea ecx, [ecx]
mov ebp, dword [esp + 0x378]
lea edx, [esp + 0x48]
push edx
push ebx
push esi
push ebp
push ebp
call fcn.00403a10
fld dword [0x41f760]
add edi, edi
fstp dword [0x4230e0]
add esp, 0x14
test dword [esp + 0x24], edi
je 0x406b24
lea eax, [esp + 0x48]
push eax
push ebx
push esi
lea ecx, [esp + 0x8c]
push ecx
push ebp
call fcn.00403a10
add esp, 0x14
sub dword [esp + 0x18], 1
jne 0x406ae0
jmp 0x406b34
mov ebp, dword [esp + 0x378]
fld qword [0x423ce0]
fld1
fsub st(1), st(0)
fxch st(1)
fstp qword [0x423ce0]
mov edx, dword [0x423398]
mov dword [esp + 0x24], edx
fild dword [esp + 0x24]
fld qword [0x425620]
fsub qword [0x423ce0]
fadd dword [0x423c84]
fsubp st(1)
call fcn.0040b140
mov dword [0x423398], eax
fsubr dword [0x423c84]
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x48]
push eax
fstp dword [0x423c84]
push ecx
push esi
push ebp
call fcn.00404350
fld qword [0x423440]
mov edx, dword [0x4234fc]
fsub qword [0x41f758]
mov dword [esp + 0x34], edx
fild dword [esp + 0x34]
add esp, 0x10
faddp st(1)
call fcn.0040b140
mov dword [0x4234fc], eax
fld qword [0x423440]
fadd qword [0x41f358]
fstp qword [0x423440]
mov ebp, dword [esp + 0x388]
mov esi, dword [esp + 0x14]
lea ecx, [esi - 1]
mov eax, 1
shl eax, cl
mov edx, 1
mov ecx, esi
shl edx, cl
cmp eax, edx
jge 0x406c0a
lea esi, [eax + eax*2]
sub edx, eax
lea esi, [esp + esi*4 + 0x74]
mov edi, edx
push 0
push esi
call fcn.004011b0
add esp, 8
add esi, 0xc
sub edi, 1
jne 0x406bf7
pop edi
push 0
lea eax, [esp + 0x48]
lea ecx, [esp + 0x80]
test ebp, ebp
je 0x406c28
push eax
push ecx
call fcn.004011b0
add esp, 0xc
jmp 0x406c37
lea edx, [esp + 0x3c]
push edx
push eax
push ecx
call fcn.004011b0
add esp, 0x10
mov edx, dword [esp + 0x30]
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
fld qword [esp + 0x54]
fsub qword [0x41f750]
fsubp st(1)
call fcn.0040b140
pop esi
pop ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
pop ebx
add esp, 0x364
ret
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
add esp, 0x364
ret