Function at 0x40e670
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x482ecc
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x4b13bc]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push esi
push edi
mov eax, dword [0x4b13bc]
xor eax, esp
push eax
lea eax, [esp + 0x108]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.00413b8b
push 3
xor eax, eax
mov esi, 7
xor edi, edi
push 0x48931c
lea ecx, [esp + 0xbc]
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd0], edi
mov word [esp + 0xc0], ax
call fcn.0040dce0
xor ecx, ecx
push 2
mov word [esp + 0x84], cx
push 0x489314
lea ecx, [esp + 0x84]
mov dword [esp + 0x118], edi
mov dword [esp + 0x9c], esi
mov dword [esp + 0x98], edi
call fcn.0040dce0
push 4
xor edx, edx
push str..exe
lea ecx, [esp + 0x68]
mov byte [esp + 0x118], 1
mov dword [esp + 0x80], esi
mov dword [esp + 0x7c], edi
mov word [esp + 0x6c], dx
call fcn.0040dce0
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0x11c], 2
call fcn.0040e130
lea ecx, [esp + 0x6c]
push ecx
push eax
lea edx, [esp + 0xac]
push edx
mov byte [esp + 0x128], 3
call fcn.0040e130
add esp, 0x18
cmp dword [esp + 0x48], 8
mov byte [esp + 0x110], 5
jb 0x40e79e
mov eax, dword [esp + 0x34]
push eax
call fcn.00410354
add esp, 4
mov eax, dword [esp + 0x9c]
xor ecx, ecx
cmp dword [esp + 0xb0], 8
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], edi
mov word [esp + 0x34], cx
jae 0x40e7c5
lea eax, [esp + 0x9c]
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp eax, edi
jne 0x40e87f
mov ebx, 8
cmp dword [esp + 0xb0], ebx
jb 0x40e7f4
mov edx, dword [esp + 0x9c]
push edx
call fcn.00410354
add esp, 4
xor eax, eax
mov dword [esp + 0xb0], esi
mov dword [esp + 0xac], edi
mov word [esp + 0x9c], ax
cmp dword [esp + 0x78], ebx
jb 0x40e81f
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00410354
add esp, 4
xor edx, edx
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], edi
mov word [esp + 0x64], dx
cmp dword [esp + 0x94], ebx
jb 0x40e847
mov eax, dword [esp + 0x80]
push eax
call fcn.00410354
add esp, 4
xor ecx, ecx
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], edi
mov word [esp + 0x80], cx
cmp dword [esp + 0xcc], ebx
jb 0x40e878
mov edx, dword [esp + 0xb8]
push edx
call fcn.00410354
add esp, 4
xor eax, eax
jmp 0x40ebf2
call fcn.00408790
test eax, eax
je 0x40e893
push 0xffff00c9
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebx + 0x20]
push edi
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.00423577
mov dword [esp + 0x1c], eax
cmp eax, edi
je 0x40e97a
call fcn.00423f19
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x40e8ca
push 0x80004005
call fcn.004014d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
push 0x65
mov byte [esp + 0x114], 6
call fcn.00423e22
cmp eax, edi
je 0x40e8fd
push 0x65
push eax
lea ecx, [esp + 0x20]
call fcn.00402fb0
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], edi
je 0x40e929
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 4]
push edi
push edi
push 0x800
push edx
call dword [sym.imp.USER32.dll_AppendMenuA]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
push esi
push 0x10
push edi
push ecx
call dword [sym.imp.USER32.dll_AppendMenuA]
mov ecx, 0xb
mov esi, 0x4892d8
lea edi, [esp + 0xd0]
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0xd0]
push 0x2e
push edx
movsw word es:[edi], word [esi]
call fcn.0040deb0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
mov byte [esp + 0x110], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e978
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
mov ecx, dword [ebx + 0x1b8]
mov edx, dword [ebx + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push ecx
push 1
push 0x80
push edx
call esi
mov eax, dword [ebx + 0x1b8]
mov ecx, dword [ebx + 0x20]
push eax
push edi
push 0x80
push ecx
call esi
mov edx, dword [ebx + 0x74]
mov eax, dword [edx + 0x14c]
push 0x996633
lea esi, [ebx + 0x74]
push 0xff0000
push 0xff0000
mov ecx, esi
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push str.http:__www.ucancode.net_Products_free_20product_colorpicker.htm
call fcn.0040e1e0
mov edx, dword [esi]
mov eax, dword [edx + 0x144]
mov ecx, esi
call eax
push 0x3e8
mov ecx, ebx
call fcn.0041d155
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x20]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x20]
push eax
mov ecx, ebx
call fcn.00420dd4
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x24]
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], edi
lea esi, [ebx + 0x1c4]
fstp qword [esp + 0x4c]
fild dword [esp + 0x14]
fstp qword [esp + 0x54]
mov eax, dword [esp + 0x18]
fild dword [esp + 0x18]
fld qword [0x4892d0]
cdq
and edx, 7
add eax, edx
mov edi, eax
sar edi, 3
mov dword [esp + 0x14], edi
call fcn.004547aa
call fcn.004539f0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
fld qword [esp + 0x4c]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
fmul st(1), st(0)
mov dword [esp + 0x38], ecx
fld qword [0x489138]
mov dword [esp + 0x3c], edx
fmul st(2), st(0)
fxch st(2)
call fcn.004539f0
fild dword [esp + 0x14]
fld qword [esp + 0x54]
sub ebx, eax
fmul st(1), st(0)
fxch st(1)
fmul st(3)
call fcn.004539f0
mov ecx, dword [esp + 0x24]
sub ecx, eax
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
mov dword [esp + 0x34], ecx
fmulp st(2)
fxch st(1)
fmul st(2)
call fcn.004539f0
mov ecx, dword [esp + 0x20]
inc edi
mov dword [esp + 0x14], edi
fild dword [esp + 0x14]
sub ecx, eax
mov dword [esp + 0x38], ecx
fmulp st(1)
fmulp st(1)
call fcn.004539f0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x34]
sub ecx, eax
mov eax, dword [esp + 0x38]
mov dword [esi], ebx
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
inc eax
mov dword [esi + 0xc], ecx
add esi, 0x20
cmp eax, 0x40
mov dword [esp + 0x18], eax
jl 0x40ea3c
mov eax, 0xff
movzx ecx, ax
mov eax, ecx
shl ecx, 0x10
or eax, ecx
mov esi, 8
mov dword [0x4b2bc4], eax
mov dword [0x4b2bc8], eax
mov dword [0x4b2bcc], eax
mov dword [0x4b2bd0], eax
cmp dword [esp + 0xb0], esi
jb 0x40eb62
mov edx, dword [esp + 0x9c]
push edx
call fcn.00410354
add esp, 4
xor ebx, ebx
xor eax, eax
mov edi, 7
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], ax
cmp dword [esp + 0x78], esi
jb 0x40eb94
mov ecx, dword [esp + 0x64]
push ecx
call fcn.00410354
add esp, 4
xor edx, edx
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], dx
cmp dword [esp + 0x94], esi
jb 0x40ebbc
mov eax, dword [esp + 0x80]
push eax
call fcn.00410354
add esp, 4
xor ecx, ecx
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], ebx
mov word [esp + 0x80], cx
cmp dword [esp + 0xcc], esi
jb 0x40ebed
mov edx, dword [esp + 0xb8]
push edx
call fcn.00410354
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.0045380a
mov esp, ebp
pop ebp
ret