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

Disassembly:
push 0xffffffffffffffff
push 0x4618f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov esi, ecx
mov dword [esp + 0x18], ebx
xor edi, edi
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x40690c
mov ecx, dword [esi + 0x6c]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x18]
cmp eax, edx
jae 0x40690c
mov ecx, dword [esi + 0x78]
mov edx, dword [esi + 0x18]
xor ebx, ebx
xor ebp, ebp
mov bx, word [ecx + edi]
lea eax, [ecx + edi]
xor ecx, ecx
mov cx, word [eax + 2]
shl ecx, 4
shl ebx, 4
fld dword [ecx + edx]
fsub dword [ebx + edx]
mov ecx, dword [esi + 0x58]
xor ebx, ebx
fstp dword [esp + 0x1c]
mov bx, word [eax + 2]
mov bp, word [eax]
fld dword [ecx + ebx*8]
fsub dword [ecx + ebp*8]
xor ebx, ebx
xor ebp, ebp
fstp dword [esp + 0x20]
mov bx, word [eax + 2]
mov bp, word [eax]
fld dword [ecx + ebx*8 + 4]
fsub dword [ecx + ebp*8 + 4]
xor ebx, ebx
xor ebp, ebp
fstp dword [esp + 0x24]
mov bx, word [eax + 4]
mov bp, word [eax]
shl ebx, 4
shl ebp, 4
fld dword [ebx + edx]
fsub dword [edx + ebp]
xor edx, edx
xor ebx, ebx
fstp dword [esp + 0x28]
mov dx, word [eax + 4]
mov bx, word [eax]
fld dword [ecx + edx*8]
fsub dword [ecx + ebx*8]
xor edx, edx
xor ebx, ebx
fstp dword [esp + 0x2c]
mov dx, word [eax + 4]
mov bx, word [eax]
lea eax, [esp + 0x28]
fld dword [ecx + edx*8 + 4]
fsub dword [ecx + ebx*8 + 4]
lea ecx, [esp + 0x1c]
push eax
lea edx, [esp + 0x8c]
push ecx
push edx
fstp dword [esp + 0x3c]
call fcn.00404420
mov ecx, dword [eax]
xor ebx, ebx
mov dword [esp + 0x60], ecx
mov ecx, dword [esi + 0x78]
mov edx, dword [eax + 4]
mov bx, word [ecx + edi]
mov dword [esp + 0x64], edx
mov eax, dword [eax + 8]
mov edx, dword [esi + 0x18]
mov dword [esp + 0x68], eax
lea eax, [ecx + edi]
xor ecx, ecx
mov cx, word [eax + 2]
shl ecx, 4
shl ebx, 4
fld dword [ecx + edx + 4]
fsub dword [ebx + edx + 4]
mov ecx, dword [esi + 0x58]
xor ebx, ebx
xor ebp, ebp
fstp dword [esp + 0x28]
mov bx, word [eax + 2]
mov bp, word [eax]
fld dword [ecx + ebx*8]
fsub dword [ecx + ebp*8]
xor ebx, ebx
xor ebp, ebp
fstp dword [esp + 0x2c]
mov bx, word [eax + 2]
mov bp, word [eax]
fld dword [ecx + ebx*8 + 4]
fsub dword [ecx + ebp*8 + 4]
xor ebx, ebx
xor ebp, ebp
fstp dword [esp + 0x30]
mov bx, word [eax + 4]
mov bp, word [eax]
shl ebx, 4
shl ebp, 4
fld dword [ebx + edx + 4]
fsub dword [edx + ebp + 4]
xor edx, edx
xor ebx, ebx
fstp dword [esp + 0x34]
mov dx, word [eax + 4]
mov bx, word [eax]
fld dword [ecx + edx*8]
fsub dword [ecx + ebx*8]
xor edx, edx
xor ebx, ebx
fstp dword [esp + 0x38]
mov dx, word [eax + 4]
mov bx, word [eax]
lea eax, [esp + 0x34]
fld dword [ecx + edx*8 + 4]
fsub dword [ecx + ebx*8 + 4]
lea ecx, [esp + 0x28]
push eax
lea edx, [esp + 0x8c]
push ecx
push edx
fstp dword [esp + 0x48]
call fcn.00404420
mov ecx, dword [eax]
xor ebx, ebx
mov dword [esp + 0x78], ecx
mov ecx, dword [esi + 0x78]
mov edx, dword [eax + 4]
xor ebp, ebp
mov bx, word [ecx + edi]
mov dword [esp + 0x7c], edx
mov eax, dword [eax + 8]
mov edx, dword [esi + 0x18]
mov dword [esp + 0x80], eax
lea eax, [ecx + edi]
xor ecx, ecx
mov cx, word [eax + 2]
shl ecx, 4
shl ebx, 4
fld dword [ecx + edx + 8]
fsub dword [ebx + edx + 8]
mov ecx, dword [esi + 0x58]
xor ebx, ebx
fstp dword [esp + 0x34]
mov bx, word [eax + 2]
mov bp, word [eax]
fld dword [ecx + ebx*8]
fsub dword [ecx + ebp*8]
xor ebx, ebx
xor ebp, ebp
fstp dword [esp + 0x38]
mov bx, word [eax + 2]
mov bp, word [eax]
fld dword [ecx + ebx*8 + 4]
fsub dword [ecx + ebp*8 + 4]
xor ebx, ebx
xor ebp, ebp
fstp dword [esp + 0x3c]
mov bx, word [eax + 4]
mov bp, word [eax]
shl ebx, 4
shl ebp, 4
fld dword [ebx + edx + 8]
fsub dword [edx + ebp + 8]
fstp dword [esp + 0x40]
xor edx, edx
xor ebx, ebx
mov dx, word [eax + 4]
mov bx, word [eax]
fld dword [ecx + edx*8]
fsub dword [ecx + ebx*8]
xor edx, edx
xor ebx, ebx
fstp dword [esp + 0x44]
mov dx, word [eax + 4]
mov bx, word [eax]
lea eax, [esp + 0x40]
fld dword [ecx + edx*8 + 4]
fsub dword [ecx + ebx*8 + 4]
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x88]
push ecx
push edx
fstp dword [esp + 0x54]
call fcn.00404420
fld dword [esp + 0x7c]
fdiv dword [esp + 0x78]
mov ecx, dword [eax]
add esp, 0x24
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x78]
mov edx, dword [eax + 4]
add edi, 0x34
mov dword [esp + 0x48], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x4c], eax
fchs
fstp dword [ecx + edi - 0x1c]
fld dword [esp + 0x64]
fdiv dword [esp + 0x60]
mov edx, dword [esi + 0x78]
fchs
fstp dword [edx + edi - 0x18]
fld dword [esp + 0x48]
fdiv dword [esp + 0x44]
mov eax, dword [esi + 0x78]
fchs
fstp dword [eax + edi - 0x14]
fld dword [esp + 0x5c]
fdiv dword [esp + 0x54]
mov ecx, dword [esi + 0x78]
fchs
fstp dword [ecx + edi - 0x10]
fld dword [esp + 0x68]
fdiv dword [esp + 0x60]
mov edx, dword [esi + 0x78]
mov ecx, dword [esp + 0x18]
inc ecx
xor ebx, ebx
mov dword [esp + 0x18], ecx
fchs
fstp dword [edx + edi - 0xc]
fld dword [esp + 0x4c]
fdiv dword [esp + 0x44]
mov eax, dword [esi + 0x78]
fchs
fstp dword [eax + edi - 8]
jmp 0x406609
mov cl, byte [esp + 0x17]
mov dword [esp + 0x38], ebx
mov byte [esp + 0x34], cl
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dl, byte [esp + 0x17]
mov dword [esp + 0x9c], ebx
mov byte [esp + 0x6c], dl
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov eax, dword [esi + 0x18]
mov byte [esp + 0x9c], 1
cmp eax, ebx
jne 0x406a35
xor edi, edi
lea ecx, [esp + 0x34]
call fcn.00409880
cmp edi, eax
jae 0x406975
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
shl edi, 4
add edi, ecx
lea ecx, [esp + 0x38]
push edi
call fcn.0040aee0
mov edx, dword [esp + 0x70]
mov byte [esp + 0x9c], 0
push edx
call fcn.004273b2
add esp, 4
xor edi, edi
xor ebp, ebp
mov eax, dword [esi + 0x68]
cmp eax, ebx
je 0x406a58
mov ecx, dword [esi + 0x6c]
sub ecx, eax
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edi, edx
jae 0x406a58
mov ecx, dword [esi + 0x78]
mov eax, dword [esp + 0x38]
xor edx, edx
mov dword [esp + 0x10], edi
mov dx, word [ecx + ebp]
mov ecx, edx
shl ecx, 4
add ecx, eax
lea eax, [esp + 0x10]
push eax
push 1
mov edx, dword [ecx + 8]
push edx
call fcn.00409410
mov eax, dword [esi + 0x78]
mov edx, dword [esp + 0x38]
xor ecx, ecx
mov dword [esp + 0x10], edi
mov cx, word [eax + ebp + 2]
shl ecx, 4
add ecx, edx
lea edx, [esp + 0x10]
push edx
push 1
mov eax, dword [ecx + 8]
push eax
call fcn.00409410
mov ecx, dword [esi + 0x78]
mov eax, dword [esp + 0x38]
xor edx, edx
mov dword [esp + 0x10], edi
mov dx, word [ecx + ebp + 4]
mov ecx, edx
shl ecx, 4
add ecx, eax
lea eax, [esp + 0x10]
push eax
push 1
mov edx, dword [ecx + 8]
push edx
call fcn.00409410
inc edi
add ebp, 0x34
jmp 0x40698e
mov edi, dword [esi + 0x1c]
sub edi, eax
sar edi, 4
je 0x406950
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x34]
push eax
push edi
push ebx
call fcn.0040ac50
jmp 0x406975
xor ebp, ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], ebp
xor edi, edi
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x406c1a
mov ecx, dword [esi + 0x1c]
sub ecx, eax
mov eax, dword [esp + 0x18]
sar ecx, 4
cmp eax, ecx
jae 0x406c1a
mov ecx, dword [0x475b44]
mov eax, dword [0x475b40]
mov edx, dword [0x475b48]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], edx
mov eax, dword [ecx + edi + 4]
cmp eax, ebx
jne 0x406abc
xor edx, edx
jmp 0x406ac5
mov edx, dword [ecx + edi + 8]
sub edx, eax
sar edx, 2
xor eax, eax
cmp edx, ebx
mov dword [esp + 0x50], edx
jle 0x406b81
mov edx, dword [esi + 0x78]
mov ebx, dword [ecx + edi + 4]
inc eax
fld dword [esp + 0x1c]
mov ebx, dword [ebx + eax*4 - 4]
lea ebp, [ebx + ebx*2]
lea ebx, [ebx + ebp*4]
fadd dword [edx + ebx*4 + 0x18]
fstp dword [esp + 0x1c]
mov ebx, dword [ecx + edi + 4]
fld dword [esp + 0x20]
mov ebx, dword [ebx + eax*4 - 4]
lea ebp, [ebx + ebx*2]
lea ebx, [ebx + ebp*4]
fadd dword [edx + ebx*4 + 0x1c]
fstp dword [esp + 0x20]
mov ebx, dword [ecx + edi + 4]
fld dword [esp + 0x24]
mov ebx, dword [ebx + eax*4 - 4]
lea ebp, [ebx + ebx*2]
lea ebx, [ebx + ebp*4]
fadd dword [edx + ebx*4 + 0x20]
fstp dword [esp + 0x24]
mov ebx, dword [ecx + edi + 4]
fld dword [esp + 0x28]
mov ebx, dword [ebx + eax*4 - 4]
lea ebp, [ebx + ebx*2]
lea ebx, [ebx + ebp*4]
fadd dword [edx + ebx*4 + 0x24]
fstp dword [esp + 0x28]
mov ebx, dword [ecx + edi + 4]
fld dword [esp + 0x2c]
mov ebx, dword [ebx + eax*4 - 4]
lea ebp, [ebx + ebx*2]
lea ebx, [ebx + ebp*4]
fadd dword [edx + ebx*4 + 0x28]
fstp dword [esp + 0x2c]
mov ebx, dword [ecx + edi + 4]
fld dword [esp + 0x30]
mov ebx, dword [ebx + eax*4 - 4]
lea ebp, [ebx + ebx*2]
lea ebx, [ebx + ebp*4]
fadd dword [edx + ebx*4 + 0x2c]
cmp eax, dword [esp + 0x50]
fstp dword [esp + 0x30]
jl 0x406ad6
mov ebp, dword [esp + 0x10]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x6c]
push edx
push eax
call fcn.004043a0
mov edx, eax
mov ebx, ebp
add ebx, dword [esi + 0x48]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x48]
add eax, ebp
push eax
add ecx, ebp
lea eax, [esp + 0x88]
push ecx
push eax
call fcn.00404420
mov ecx, dword [eax]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x58]
mov edx, dword [eax + 4]
push ecx
mov dword [esp + 0x60], edx
lea edx, [esp + 0xa0]
mov eax, dword [eax + 8]
push edx
mov dword [esp + 0x68], eax
call fcn.004043a0
mov ebx, dword [esi + 0x38]
mov edx, eax
add ebx, ebp
add esp, 0x1c
mov eax, dword [edx]
add ebp, 0xc
add edi, 0x10
mov dword [esp + 0x10], ebp
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ebx + 8], edx
mov edx, dword [esp + 0x18]
inc edx
xor ebx, ebx
mov dword [esp + 0x18], edx
jmp 0x406a64
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
cmp eax, ecx
mov dword [esp + 0x9c], 0xffffffff
mov ebx, ecx
je 0x406c72
lea esi, [eax + 4]
mov ebp, dword [esi + 4]
mov edi, dword [esi]
cmp edi, ebp
je 0x406c4f
push edi
call fcn.00403b20
add edi, 4
add esp, 4
cmp edi, ebp
jne 0x406c3f
mov eax, dword [esi]
push eax
call fcn.004273b2
xor eax, eax
add esp, 4
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
add esi, 0x10
lea ecx, [esi - 4]
cmp ecx, ebx
jne 0x406c36
mov eax, dword [esp + 0x38]
push eax
call fcn.004273b2
mov ecx, dword [esp + 0x98]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret