Function at 0x401250
Capabilities:
Enumerate processes
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x158
mov ecx, dword [eax + 0x10]
push ebx
push ebp
push esi
cmp ecx, 2
push edi
jne 0x40144b
push 0
push str.32770
mov dword [esp + 0x48], 0x128
mov dword [esp + 0x1c], 0x2c
call dword [sym.imp.USER32.dll_FindWindowA]
push str.Searching_Dialog
mov ebp, eax
call fcn.00401000
add esp, 4
test ebp, ebp
je 0x40143e
push 0x407108
call fcn.00401000
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea edx, [esp + 0x40]
mov ebx, eax
push edx
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40141d
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jne 0x40140a
lea ecx, [esp + 0x64]
push ecx
call fcn.00405a36
add esp, 4
lea edx, [esp + 0x64]
push edx
push str._ncandidate_process___s__n
push 0x407b40
call fcn.00401aa0
push 0x407b40
call fcn.00401000
lea eax, [esp + 0x74]
push str.insthrnt.exe
push eax
call fcn.00401a20
add esp, 0x18
test eax, eax
jne 0x401340
lea ecx, [esp + 0x64]
push str.rundll32.exe
push ecx
call fcn.00401a20
add esp, 8
test eax, eax
je 0x40140a
push ebp
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x401355
lea eax, [esp + 0x40]
push eax
jmp 0x40140f
lea ecx, [esp + 0x14]
push ecx
push ebp
call dword [sym.imp.USER32.dll_GetTitleBarInfo]
xor esi, esi
lea edi, [esp + 0x28]
mov edx, dword [edi]
push edx
push esi
push str.TitleBarInfo.rgstate__d___0x_X__n
push 0x407b40
call fcn.00401aa0
push 0x407b40
call fcn.00401000
add esp, 0x14
inc esi
add edi, 4
cmp esi, 6
jl 0x401367
mov esi, dword [esp + 0x16c]
mov eax, dword [esi + 8]
test eax, eax
jne 0x4013d4
cmp dword [esp + 0x28], 0x100000
jne 0x4013cd
mov ecx, dword [esp + 0x30]
mov eax, 0x8000
cmp ecx, eax
jne 0x4013cd
cmp dword [esp + 0x34], eax
jne 0x4013cd
cmp dword [esp + 0x38], eax
jne 0x4013cd
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x401458
lea eax, [esp + 0x40]
push eax
jmp 0x40140f
jbe 0x40146e
cmp dword [esp + 0x28], 0x100000
jne 0x401403
mov ecx, dword [esp + 0x30]
mov eax, 0x8000
cmp ecx, eax
jne 0x401403
cmp dword [esp + 0x34], eax
jne 0x401403
cmp dword [esp + 0x38], eax
jne 0x401403
cmp dword [esp + 0x3c], eax
je 0x401464
lea ecx, [esp + 0x40]
push ecx
jmp 0x40140f
lea edx, [esp + 0x40]
push edx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4012d5
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push str.32770
push ebp
push 0
call dword [sym.imp.USER32.dll_FindWindowExA]
mov ebp, eax
test ebp, ebp
jne 0x40129e
push 0x4070c4
call fcn.00401000
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x158
ret
mov dword [esi + 0x1c8], 0
jmp 0x40146e
mov dword [esi + 0x1c8], 1
push 0x4070c4
call fcn.00401000
add esp, 4
lea eax, [esp + 0x64]
push ebp
push eax
push str.Candidate_dialog_found__invoked_by__s__hWnd__0x_X__n
push 0x407b40
call fcn.00401aa0
push 0x407b40
call fcn.00401000
lea edi, [esp + 0x78]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esi + 0x94], ebp
lea edx, [esi + 0xc4]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x170]
lea esi, [esp + 0x18]
lea edi, [ecx + 0x98]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x158
ret