Function at 0x406180
Capabilities:
Enumerate gui resources
Enumerate process modules
Resolve function by parsing pe exports
Terminate process

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x40d36e
push eax
mov eax, 0x214c
mov dword fs:[0], esp
call fcn.0040b920
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00405200
push ecx
lea eax, [esi + 0x9c]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esi + 0x98]
xor ebx, ebx
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov dword [esp + 0x2170], ebx
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edi, [esi + 0x94]
mov ecx, esp
mov dword [esp + 0x44], esp
push edi
mov byte [esp + 0x2174], 1
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esi + 0x90]
mov dword [esp + 0x2170], 0xffffffff
call fcn.004011b0
test al, al
jne 0x406222
mov eax, dword [edi]
cmp dword [eax - 8], ebx
je 0x406222
push 0x411618
push ebx
mov ecx, esi
call fcn.00406bd0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x15c]
push ecx
push 0x400
push edx
call sub.PSAPI.DLL_EnumProcesses
mov edx, dword [esp + 0x18]
shr edx, 2
cmp eax, ebx
mov dword [esp + 0x18], edx
jne 0x40625d
push 0x411600
push 1
mov ecx, esi
call fcn.00406bd0
xor eax, eax
jmp 0x406722
mov eax, dword [esp + 0x18]
mov dword [esp + 0x38], ebx
cmp eax, ebx
jbe 0x40669b
lea ebx, [esp + 0x15c]
mov dword [esp + 0x14], ebx
mov eax, dword [ebx]
push eax
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
mov dword [esp + 0x28], edi
je 0x40667f
lea ecx, [esp + 0x44]
lea edx, [esp + 0x115c]
push ecx
push 0x400
push edx
push edi
call sub.PSAPI.DLL_EnumProcessModules
mov edx, dword [esp + 0x44]
shr edx, 2
test eax, eax
mov dword [esp + 0x44], edx
je 0x406678
mov ecx, dword [esp + 0x115c]
lea eax, [esp + 0x58]
push 0x104
push eax
push ecx
push edi
call sub.PSAPI.DLL_GetModuleFileNameExA
mov eax, dword [esi + 0x74]
xor ebp, ebp
test eax, eax
jbe 0x406678
xor edi, edi
mov edx, dword [esi + 0x78]
mov ecx, dword [edi + edx + 0xc]
lea eax, [edi + edx]
test ecx, ecx
jne 0x40630b
mov eax, dword [eax]
lea ecx, [esp + 0x58]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
je 0x40631b
mov eax, dword [esi + 0x74]
inc ebp
add edi, 0x48
cmp ebp, eax
jb 0x4062e8
jmp 0x406674
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x34]
mov dword [esp + 0x2164], 2
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebx]
lea edx, [esp + 0x34]
lea eax, [esp + 0x40]
push edx
push eax
push ebp
push ecx
mov ecx, esi
mov byte [esp + 0x2174], 3
call fcn.00405f00
mov edx, eax
and edx, 1
jne 0x40637b
mov edi, dword [esi + 0x78]
lea ecx, [ebp + ebp*8]
shl ecx, 3
mov dword [ecx + edi + 0xc], 1
mov edi, dword [esi + 0x78]
mov ebx, dword [ebx]
mov dword [ecx + edi + 8], ebx
mov ebx, dword [esp + 0x14]
test edx, edx
je 0x406430
mov edx, dword [esp + 0x28]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, eax
test edi, edi
jne 0x4063b1
mov ecx, dword [esi + 0x78]
lea eax, [ebp + ebp*8]
shl eax, 3
mov dword [eax + ecx + 0xc], 2
mov edx, dword [esi + 0x78]
mov ecx, dword [ebx]
mov dword [eax + edx + 8], ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
test edi, edi
mov byte [esp + 0x2164], 4
je 0x4063dd
mov eax, dword [esi + 0x78]
lea edx, [ebp + ebp*8]
mov ecx, dword [eax + edx*8]
lea edx, [esp + 0x10]
push ecx
push 0x4115dc
push edx
jmp 0x4063f2
mov ecx, dword [esi + 0x78]
lea eax, [ebp + ebp*8]
mov edx, dword [ecx + eax*8]
lea eax, [esp + 0x10]
push edx
push 0x4115b4
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
push 1
mov ecx, esi
call fcn.00406bd0
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
push 0x41159c
push ebp
call fcn.00406d00
lea ecx, [esp + 0x10]
mov byte [esp + 0x2164], 3
call sub.MFC42.DLL_CString::CString
jmp 0x40664f
test al, 2
je 0x40664f
mov ecx, dword [esi + 0x78]
lea eax, [ebp + ebp*8]
shl eax, 3
mov dword [esp + 0x48], eax
add eax, ecx
mov dword [esp + 0x20], eax
mov ecx, dword [eax + 0x40]
mov eax, 0x88888889
imul ecx
add edx, ecx
mov ebx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, 0x2aaaaaab
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov edi, edx
lea eax, [edi + edi*4]
lea edx, [eax + eax*8]
mov eax, 0x88888889
shl edx, 5
sub ebx, edx
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov ebx, edx
mov ecx, 0x3c
cdq
idiv ecx
lea eax, [edi + edi*2]
lea eax, [ebx + eax*8]
mov ecx, eax
shl ecx, 4
sub ecx, eax
lea eax, [edx + ecx*4]
mov edx, dword [esp + 0x20]
mov edi, eax
shl edi, 4
sub edi, eax
mov eax, dword [edx + 0x44]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x3c]
push eax
shl edi, 2
call sub.MFC42.DLL_CTime::GetTickCount
push ecx
lea edx, [esp + 0x54]
mov dword [esp + 0x24], esp
mov eax, esp
push ecx
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov dword [eax], edi
call fcn.00406750
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x44]
push eax
call fcn.00406760
mov ecx, eax
call fcn.00406740
test eax, eax
je 0x40664b
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x34]
mov edx, dword [esi + 0x78]
mov eax, dword [esp + 0x48]
push ecx
mov byte [esp + 0x2168], 5
mov ecx, dword [eax + edx]
lea edx, [esp + 0x20]
push ecx
push 0x41157c
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov ecx, esi
push eax
push 4
call fcn.00406bd0
mov ecx, dword [esp + 0x1c]
push ecx
push 0x411560
push ebp
mov ecx, esi
call fcn.00406d00
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString_1
lea edx, [esi + 0x6c]
push str.HLMonitor.ini
lea eax, [esp + 0x50]
push edx
push eax
mov byte [esp + 0x2170], 6
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x2168], 7
call fcn.0040b67e
lea ecx, [esp + 0x4c]
mov byte [esp + 0x2164], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x24]
push ecx
push 0x41155c
push edx
mov byte [esp + 0x2170], 8
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_1
push ebp
lea eax, [esp + 0x34]
push str.LastMailTime_d
push eax
mov byte [esp + 0x2170], 9
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
add esp, 0xc
push ecx
push edx
push eax
push str.Tasks
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x30]
mov byte [esp + 0x2164], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x2164], 6
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x2164], 5
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2164], 3
call sub.MFC42.DLL_CString::CString
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x34]
mov byte [esp + 0x2164], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov dword [esp + 0x2164], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x18]
inc eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], ebx
jb 0x406278
push esi
push 0x405a70
call dword [sym.imp.USER32.dll_EnumWindows]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x74]
xor ebp, ebp
xor ebx, ebx
test eax, eax
jbe 0x406719
xor edi, edi
mov ecx, dword [esi + 0x78]
lea eax, [edi + ecx]
mov ecx, dword [edi + ecx + 0xc]
test ecx, ecx
jne 0x406709
mov eax, dword [eax + 0x10]
push ebx
dec eax
mov ecx, esi
je 0x4066f9
call fcn.00406780
test eax, eax
je 0x4066ec
mov edx, dword [esi + 0x78]
mov dword [edi + edx + 0xc], 1
jmp 0x406709
mov eax, dword [esi + 0x78]
mov dword [edi + eax + 0xc], 2
jmp 0x40670a
call fcn.00406f80
mov ecx, dword [esi + 0x78]
mov dword [edi + ecx + 0xc], 1
inc ebp
mov eax, dword [esi + 0x74]
inc ebx
add edi, 0x48
cmp ebx, eax
jb 0x4066bf
test ebp, ebp
jne 0x40671d
xor eax, eax
jmp 0x406722
mov eax, 1
mov ecx, dword [esp + 0x215c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x2158
ret