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

Disassembly:
sub esp, 0x50
mov eax, dword [0x4ef400]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
mov esi, dword [0x4f0690]
push edi
mov edi, ecx
mov dword [esp + 0x18], edx
cmp byte [edi + 0xc2], 0
movss xmm2, dword [edi + 0x78]
movss xmm0, dword [edi + 0x7c]
mov ecx, dword [edi + 8]
mov dword [esp + 0x14], ecx
mov byte [edi + 0xc4], 0
movss dword [esp + 0x1c], xmm2
movss dword [esp + 0x24], xmm0
je 0x40da78
cmp byte [esp + 0x64], 0
movss xmm1, dword [esi + 0x15e8]
movss dword [esp + 0x18], xmm1
movss dword [esi + 0x15e8], xmm0
je 0x40d8fa
cmp byte [esi + 0x1e9a], 0
mov ecx, 0xb
je 0x40d8ff
mov ecx, 0xc
movss xmm0, dword [edx + 8]
movss xmm1, dword [0x4e6934]
mov edi, dword [esi + 0x1c4c]
movss dword [esp + 0x28], xmm0
movss dword [esp + 0x38], xmm0
movss xmm0, dword [edx + 0xc]
movss dword [esp + 0x30], xmm0
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [edx]
movss dword [esp + 0x24], xmm0
movss dword [esp + 0x40], xmm0
movss xmm0, dword [edx + 4]
push 0
push ecx
movss dword [esp + 0x1c], xmm0
movss dword [esp + 0x4c], xmm0
movss dword [esp], xmm2
call fcn.00404de0
mov ecx, dword [edi + 0x278]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x50]
push eax
call fcn.0042eb30
movss xmm2, dword [esi + 0x15e8]
comiss xmm2, dword [0x4e6890]
movss dword [esp + 0x20], xmm2
jbe 0x40da57
movss xmm0, dword [0x4e6934]
sub esp, 0x10
movss xmm1, dword [esp + 0x38]
mov ecx, 6
addss xmm1, xmm0
movss xmm4, dword [esp + 0x2c]
movss dword [esp + 0xc], xmm2
movss dword [esp + 4], xmm4
movss dword [esp + 0x38], xmm1
movss xmm1, dword [esp + 0x40]
addss xmm1, xmm0
movss dword [esp + 0x3c], xmm1
movss xmm1, dword [esp + 0x34]
addss xmm1, xmm0
movss dword [esp + 0x40], xmm1
movss xmm1, dword [esp + 0x24]
addss xmm1, xmm0
movss dword [esp + 0x44], xmm1
movaps xmm1, xmm0
call fcn.00404de0
mov ecx, dword [edi + 0x278]
add esp, 4
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0042ea40
movss xmm0, dword [esp + 0x20]
sub esp, 0x10
movss xmm1, dword [0x4e6934]
mov ecx, 5
movss dword [esp + 0xc], xmm0
movss xmm0, dword [esp + 0x2c]
movss dword [esp + 4], xmm0
call fcn.00404de0
mov ecx, dword [edi + 0x278]
add esp, 4
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.0042ea40
movss xmm0, dword [esp + 0x18]
movss dword [esi + 0x15e8], xmm0
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.004ca5c5
add esp, 0x50
ret
movss xmm7, dword [0x4e6934]
mov ebp, 1
test cl, cl
js 0x40dc85
xor bl, bl
cmp byte [esi + 0x1fcc], bl
je 0x40dafe
mov eax, dword [esi + 0x1be8]
sub eax, dword [esi + 0x2038]
cmp eax, ebp
jg 0x40dafe
cmp byte [esi + 0xb3], bl
je 0x40dafe
cmp dword [esi + 0x1fec], 0xffffffff
je 0x40dafe
lea ecx, [esi + 0x1ff0]
mov eax, str._IMWINDOW
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40dae3
test dl, dl
je 0x40dadf
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40dae3
add eax, 2
add ecx, 2
test dl, dl
jne 0x40dac3
xor eax, eax
jmp 0x40dae8
sbb eax, eax
or eax, 1
mov ecx, dword [esp + 0x14]
test eax, eax
jne 0x40dafe
mov eax, dword [esi + 0x1fdc]
movzx ebx, bl
cmp dword [eax], edi
cmove ebx, ebp
test ecx, 0x6000000
je 0x40db0d
mov ecx, 4
jmp 0x40db1c
and ecx, 0x1000000
or ecx, 0x2000000
shr ecx, 0x18
movaps xmm1, xmm7
call fcn.00404de0
cmp byte [edi + 0xbe], 0
mov edx, eax
je 0x40db53
or edx, 0xff000000
xorps xmm4, xmm4
test bl, bl
je 0x40dbb3
mov ecx, dword [edi + 0x2c]
movss xmm0, dword [ecx + 0x60]
mulss xmm0, dword [0x4e68f0]
movss dword [ecx + 0x60], xmm0
jmp 0x40dbb3
mov eax, dword [esi + 0x1d2c]
movaps xmm1, xmm7
and eax, 0x40
je 0x40db69
movss xmm1, dword [esi + 0x1d84]
movss xmm2, dword [0x4e68f0]
test bl, bl
je 0x40db7b
mulss xmm1, xmm2
jmp 0x40db7f
test eax, eax
je 0x40dbb0
xorps xmm4, xmm4
comiss xmm4, xmm1
jbe 0x40db8c
xorps xmm0, xmm0
jmp 0x40db93
movaps xmm0, xmm7
minss xmm0, xmm1
mulss xmm0, dword [0x4e6a50]
and edx, 0xffffff
addss xmm0, xmm2
cvttss2si eax, xmm0
shl eax, 0x18
or edx, eax
jmp 0x40dbb3
xorps xmm4, xmm4
test byte [edi + 8], 1
movss xmm2, dword [edi + 0x40]
movss xmm3, dword [edi + 0x44]
movaps xmm0, xmm2
addss xmm0, dword [edi + 0x48]
mov ecx, dword [0x4f0690]
movss dword [esp + 0x40], xmm0
movaps xmm0, xmm3
addss xmm0, dword [edi + 0x4c]
movss dword [esp + 0x44], xmm0
je 0x40dbea
xorps xmm1, xmm1
jmp 0x40dc24
movss xmm0, dword [ecx + 0x19e8]
mulss xmm0, dword [edi + 0x26c]
mov eax, dword [edi + 0x30c]
mulss xmm0, dword [edi + 0x270]
test eax, eax
je 0x40dc14
mulss xmm0, dword [eax + 0x26c]
movss xmm1, dword [ecx + 0x15e0]
addss xmm1, xmm1
addss xmm1, xmm0
mov ebp, dword [esp + 0x14]
addss xmm2, xmm4
movss xmm0, dword [esp + 0x1c]
addss xmm3, xmm1
mov ebx, ebp
mov ecx, 0
and ebx, 1
mov eax, 0xc0
cmovne eax, ecx
movss dword [esp + 0x38], xmm2
push eax
push ecx
mov ecx, dword [edi + 0x278]
lea eax, [esp + 0x48]
movss dword [esp], xmm0
push edx
push eax
lea eax, [esp + 0x48]
movss dword [esp + 0x4c], xmm3
push eax
call fcn.0042eb30
movss xmm7, dword [0x4e6934]
movss xmm2, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
jmp 0x40dc8d
mov ebx, ecx
and ebx, ebp
mov ebp, dword [esp + 0x14]
test ebx, ebx
jne 0x40dcc3
test byte [edi + 0x359], 1
jne 0x40dcc3
push 0x30
push ecx
movzx ecx, byte [esp + 0x6c]
movaps xmm1, xmm7
add ecx, 0xa
movss dword [esp], xmm2
call fcn.00404de0
mov ecx, dword [edi + 0x278]
push eax
lea eax, [edx + 8]
push eax
push edx
call fcn.0042eb30
test ebp, 0x400
je 0x40de1c
lea eax, [esp + 0x4c]
mov ecx, edi
push eax
call fcn.00403260
movss xmm0, dword [edi + 0x40]
xorps xmm2, xmm2
movss xmm5, dword [esp + 0x4c]
movss xmm1, dword [edi + 0x44]
maxss xmm5, xmm0
movss xmm6, dword [esp + 0x50]
movss xmm3, dword [esp + 0x54]
maxss xmm6, xmm1
addss xmm0, dword [edi + 0x48]
addss xmm1, dword [edi + 0x4c]
movss dword [esp + 0x20], xmm5
minss xmm3, xmm0
movss xmm0, dword [esp + 0x58]
minss xmm0, xmm1
movss dword [esp + 0x54], xmm3
movss dword [esp + 0x18], xmm0
movss dword [esp + 0x58], xmm0
test ebx, ebx
je 0x40dd3e
movss xmm4, dword [esp + 0x1c]
jmp 0x40dd41
xorps xmm4, xmm4
subss xmm3, dword [esp + 0x24]
movss xmm1, dword [0x4e6934]
subss xmm0, xmm2
addss xmm6, xmm2
push 0x30
push ecx
mov ecx, 0xd
movss dword [esp + 0x48], xmm3
movss dword [esp + 0x4c], xmm0
movaps xmm0, xmm5
addss xmm0, dword [esp + 0x2c]
movss dword [esp + 0x44], xmm6
movss dword [esp], xmm4
movss dword [esp + 0x40], xmm0
call fcn.00404de0
mov ecx, dword [edi + 0x278]
push eax
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0042eb30
movss xmm2, dword [esi + 0x15e8]
comiss xmm2, dword [0x4e6890]
jbe 0x40de1c
movss xmm0, dword [edi + 0x44]
addss xmm0, dword [edi + 0x4c]
movss xmm1, dword [esp + 0x18]
comiss xmm0, xmm1
jbe 0x40de1c
mov ecx, dword [esp + 0x58]
sub esp, 8
movss xmm0, dword [esp + 0x28]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x4c], ecx
mov ecx, 5
movss dword [esp + 0x44], xmm1
movss xmm1, dword [0x4e6934]
mov dword [esp + 0x48], eax
movss dword [esp + 0x40], xmm0
movss dword [esp + 4], xmm2
call fcn.00404de0
mov ecx, dword [edi + 0x278]
add esp, 4
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0042e910
test byte [edi + 0x359], 1
mov ebx, dword [edi + 0x374]
je 0x40e021
mov ecx, dword [ebx + 0x10]
mov eax, ecx
shr eax, 0xd
test al, 1
je 0x40e021
shr ecx, 0xc
test cl, 1
jne 0x40e021
movss xmm1, dword [esi + 0x19e4]
xor edx, edx
movss xmm2, dword [ebx + 0x34]
movaps xmm0, xmm1
mulss xmm1, dword [0x4e68f4]
mulss xmm0, dword [0x4e6904]
cvttss2si eax, xmm1
movss xmm1, dword [ebx + 0x38]
cvttss2si esi, xmm0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x28], xmm2
mov eax, dword [esp + 0x28]
movss dword [esp + 0x2c], xmm1
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x50], ecx
mov ecx, dword [edi + 0xf8]
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x100]
movss dword [esp + 0x18], xmm2
addss xmm2, xmm0
movss dword [esp + 0x20], xmm1
addss xmm1, xmm0
push dword [eax + ecx*4 - 4]
mov ecx, str.UNHIDE
movss dword [esp + 0x58], xmm2
movss dword [esp + 0x5c], xmm1
call fcn.00403960
mov ebp, eax
add esp, 4
mov eax, dword [0x4f0690]
cmp dword [eax + 0x1c88], ebp
jne 0x40deef
mov dword [eax + 0x1c8c], ebp
cmp dword [eax + 0x1cc4], ebp
jne 0x40defe
mov byte [eax + 0x1cc8], 1
cmp dword [eax + 0x1c70], ebp
jne 0x40df1b
push ecx
push str.UNHIDE
mov edx, 0xb
mov ecx, ebp
call fcn.00422df0
add esp, 8
push 0x800
lea eax, [esp + 0x17]
mov edx, ebp
push eax
lea eax, [esp + 0x1a]
push eax
lea ecx, [esp + 0x58]
call fcn.00438dc0
add esp, 0xc
test al, al
je 0x40df45
or byte [ebx + 0x9d], 2
jmp 0x40df83
cmp byte [esp + 0x13], 0
je 0x40df94
mov eax, dword [0x4f0690]
cmp byte [eax + 0xec], 0
je 0x40df83
movss xmm1, dword [eax + 0x30]
movss xmm0, dword [eax + 0x460]
mulss xmm1, xmm1
comiss xmm0, xmm1
setae al
test al, al
je 0x40df83
push 1
mov edx, ebx
mov ecx, edi
call fcn.00407250
add esp, 4
cmp byte [esp + 0x13], 0
mov al, byte [esp + 0x12]
je 0x40df98
test al, al
jne 0x40dfa5
jmp 0x40df98
mov al, byte [esp + 0x12]
test byte [ebx + 0x9c], 2
je 0x40dfac
test al, al
jne 0x40dfac
mov ecx, 0x17
jmp 0x40dfb6
xor ecx, ecx
test al, al
setne cl
add ecx, 0x15
movss xmm0, dword [esp + 0x18]
xorps xmm1, xmm1
movss xmm2, dword [esp + 0x20]
addss xmm0, xmm1
movd xmm3, esi
cvtdq2ps xmm3, xmm3
movss dword [esp + 0x40], xmm0
movaps xmm0, xmm3
addss xmm3, dword [esp + 0x18]
addss xmm0, xmm2
addss xmm2, xmm1
movss xmm1, dword [0x4e6934]
movss dword [esp + 0x38], xmm3
movss dword [esp + 0x44], xmm0
movss dword [esp + 0x3c], xmm2
call fcn.00404de0
mov ecx, dword [edi + 0x278]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0042ec90
cmp byte [edi + 0xbc], 0
je 0x40e031
xor ecx, ecx
call fcn.0043a330
cmp byte [edi + 0xbd], 0
je 0x40e044
mov ecx, 1
call fcn.0043a330
cmp byte [esp + 0x68], 0
je 0x40e286
test byte [esp + 0x14], 2
jne 0x40e276
xor ebp, ebp
mov dword [esp + 0x28], ebp
cmp dword [esp + 0x6c], ebp
jle 0x40e276
movss xmm4, dword [esp + 0x24]
mov ebx, 0x4ef498
movaps xmm0, xmm4
addss xmm0, dword [esp + 0x1c]
movss dword [esp + 0x20], xmm0
nop dword [eax]
nop dword [eax + eax]
movss xmm0, dword [edi + 0x40]
and ebp, 1
movss xmm1, dword [edi + 0x44]
movaps xmm2, xmm0
addss xmm2, dword [edi + 0x48]
mov ecx, dword [edi + 0x278]
mov dword [esp + 0x18], ebp
subss xmm2, xmm0
mulss xmm2, dword [ebx - 8]
addss xmm2, xmm0
movaps xmm0, xmm1
addss xmm0, dword [edi + 0x4c]
movss dword [esp + 0x14], xmm2
subss xmm0, xmm1
mulss xmm0, dword [ebx - 4]
addss xmm0, xmm1
movss dword [esp + 0x30], xmm0
je 0x40e0ea
movss xmm3, dword [esp + 0x74]
movaps xmm1, xmm4
jmp 0x40e0f3
movss xmm1, dword [esp + 0x74]
movaps xmm3, xmm4
mulss xmm1, dword [ebx]
lea ebp, [ecx + 0x54]
mov ecx, dword [ebp]
mulss xmm3, dword [ebx + 4]
mov esi, dword [ebp + 4]
addss xmm1, xmm2
addss xmm3, xmm0
movss dword [esp + 0x40], xmm1
movss dword [esp + 0x44], xmm3
cmp ecx, esi
jne 0x40e151
inc ecx
test esi, esi
je 0x40e12d
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x40e132
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, ebp
call fcn.00424000
movss xmm2, dword [esp + 0x14]
movss xmm0, dword [esp + 0x30]
movss xmm4, dword [esp + 0x24]
mov eax, dword [ebp]
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], esi
inc dword [ebp]
cmp dword [esp + 0x18], 0
mov ebp, dword [edi + 0x278]
je 0x40e181
movss xmm1, dword [esp + 0x74]
movaps xmm3, xmm4
jmp 0x40e18a
movss xmm3, dword [esp + 0x74]
movaps xmm1, xmm4
mulss xmm1, dword [ebx]
mov ecx, dword [ebp + 0x54]
mulss xmm3, dword [ebx + 4]
mov esi, dword [ebp + 0x58]
addss xmm1, xmm2
addss xmm3, xmm0
movss dword [esp + 0x38], xmm1
movss dword [esp + 0x3c], xmm3
cmp ecx, esi
jne 0x40e1da
inc ecx
test esi, esi
je 0x40e1c1
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add eax, esi
jmp 0x40e1c6
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
lea ecx, [ebp + 0x54]
call fcn.00424000
movss xmm2, dword [esp + 0x14]
mov eax, dword [ebp + 0x54]
mov ecx, dword [ebp + 0x5c]
mov edx, dword [esp + 0x38]
movss xmm0, dword [esp + 0x20]
mov esi, dword [esp + 0x3c]
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], esi
lea eax, [esp + 0x4c]
inc dword [ebp + 0x54]
mulss xmm0, dword [ebx]
mov ecx, dword [edi + 0x278]
push dword [ebx + 0xc]
push dword [ebx + 8]
addss xmm0, xmm2
movss xmm2, dword [esp + 0x24]
push eax
movss dword [esp + 0x58], xmm0
movss xmm0, dword [esp + 0x2c]
mulss xmm0, dword [ebx + 4]
addss xmm0, dword [esp + 0x3c]
movss dword [esp + 0x5c], xmm0
call fcn.0042dfc0
mov eax, dword [esp + 0x70]
mov esi, dword [edi + 0x278]
mov ecx, esi
mov ebp, dword [esp + 0x28]
push dword [eax + ebp*4]
push dword [esi + 0x54]
push dword [esi + 0x5c]
call fcn.0042d7d0
movss xmm4, dword [esp + 0x24]
inc ebp
add ebx, 0x18
mov dword [esi + 0x54], 0
mov dword [esp + 0x28], ebp
cmp ebp, dword [esp + 0x6c]
jl 0x40e090
cmp dword [edi + 0x378], 0
jne 0x40e286
mov ecx, edi
call fcn.0040d4b0
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ca5c5
add esp, 0x50
ret