Function at 0x40c090
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x658
push esi
mov esi, ecx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi + 0x740c]
je 0x40c126
cmp dword [esi + 0x744c], 0
jne 0x40c302
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov dword [esi + 0x744c], 1
mov dword [0x50b340], eax
mov eax, dword [ebp + 0x18]
mov dword [0x50b348], edx
mov edx, dword [ebp + 0x20]
mov dword [0x50b338], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [0x50b35c], eax
mov eax, dword [ebp + 0x10]
push 0x50b334
mov dword [0x50b350], edx
mov edx, dword [0x50b384]
mov dword [0x50b334], 0x30
mov dword [0x50b360], ecx
mov ecx, dword [esi + 0x7448]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
mov esp, ebp
pop ebp
ret 0x1c
cmp byte [0x50b332], 0
jne 0x40c302
push ebx
push edi
push 0x228
lea eax, [ebp - 0x654]
push 0
push eax
mov dword [ebp - 0x658], 0x22c
call fcn.004b03e0
push 0x424
lea ecx, [ebp - 0x428]
push 0
push ecx
mov dword [ebp - 0x42c], 0x428
call fcn.004b03e0
mov edx, dword [ebp + 0x14]
add esp, 0x18
push edx
push 8
xor ebx, ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
test edi, edi
je 0x40c204
cmp edi, 0xffffffff
je 0x40c204
lea eax, [ebp - 0x42c]
push eax
push edi
xor esi, esi
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x40c1f9
lea ecx, [ecx]
mov ecx, dword [ebp + 0x14]
cmp dword [ebp - 0x424], ecx
jne 0x40c1e2
mov ax, word [ebp - 0x20c]
test esi, esi
jne 0x40c1c7
lea esi, [ebp - 0x20c]
test ax, ax
jne 0x40c1c7
lea esi, [ebp - 0x40c]
mov edx, dword [ebp + 0x18]
or edx, dword [ebp + 0x1c]
je 0x40c294
mov ecx, dword [ebp + 0x18]
cmp dword [ebp - 0x410], ecx
je 0x40c294
lea edx, [ebp - 0x42c]
push edx
push edi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x40c1a0
test esi, esi
je 0x40c1f9
mov ebx, esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x40c258
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x40c253
cmp esi, 0xffffffff
je 0x40c253
lea eax, [ebp - 0x658]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40c24c
lea esp, [esp]
mov ecx, dword [ebp - 0x650]
cmp ecx, dword [ebp + 0x14]
je 0x40c24c
lea edx, [ebp - 0x658]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40c230
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x4c1318
mov eax, ebx
mov byte [0x50b332], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c264
sub eax, edx
sar eax, 1
add eax, 0xff
push 2
push eax
call fcn.004412c0
mov esi, eax
mov eax, dword [ebp + 0x10]
add esp, 8
cmp eax, 1
jne 0x40c2af
mov eax, 0x4c2cc0
jmp 0x40c2bd
test ax, ax
je 0x40c2a4
lea ebx, [ebp - 0x20c]
jmp 0x40c1f9
lea ebx, [ebp - 0x40c]
jmp 0x40c1f9
test eax, eax
mov eax, str.ConEmu.dll_and_Far_plugins
je 0x40c2bd
mov eax, str.ConEmuC.exe_and_ConEmu.dll
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push eax
mov eax, dword [ebp + 0x14]
push eax
push 0x7e
push ecx
push edx
push str.ConEmu_received_wrong_version_packet__nCommandID:__i__Version:__i__ReqVersion:__i__PID:__u_nPlease_check__s_n_s
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [ebp - 4]
push 0
lea eax, [edi + 0x45c8]
push eax
push 0x40
push esi
call fcn.00420020
push esi
call fcn.00441300
add esp, 0x34
mov dword [edi + 0x744c], 0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0x1c