Function at 0x412510
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x478
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.0042f9fb
test eax, eax
je 0x412542
cmp eax, ebx
je 0x412542
mov eax, dword [eax + 0x1c]
mov ecx, dword [ebx + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x41256b
mov edx, dword [0x45eac4]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41255a
mov eax, dword [0x45eac4]
jmp 0x412564
call dword [0x45eecc]
test eax, eax
je 0x41256b
push eax
call dword [sym.imp.USER32.dll_SetFocus]
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
mov dword [ebx + 0xe4], 0
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4127fa
mov ebp, dword [sym.imp.USER32.dll_GetClassNameW]
lea ecx, [esp + 0x54]
push 0x104
push ecx
push esi
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea edx, [esp + 0x54]
push str.OpusApp
push edx
call edi
test eax, eax
jne 0x4125c5
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x478
ret
lea eax, [esp + 0x54]
push str.XLMAIN
push eax
call edi
test eax, eax
jne 0x4125e5
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x478
ret
lea ecx, [esp + 0x54]
push str.PP12FrameClass
push ecx
call edi
test eax, eax
jne 0x412605
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x478
ret
lea edx, [esp + 0x54]
push str.PP11FrameClass
push edx
call edi
test eax, eax
jne 0x412625
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x478
ret
lea eax, [esp + 0x54]
push str.PP10FrameClass
push eax
call edi
test eax, eax
jne 0x412645
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x478
ret
lea ecx, [esp + 0x54]
push str.PP9FrameClass
push ecx
call edi
test eax, eax
jne 0x412665
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x478
ret
lea edx, [esp + 0x54]
push str.TfmMain
push edx
call edi
test eax, eax
je 0x412727
lea eax, [esp + 0x54]
push str.TfmMain.UnicodeClass
push eax
call edi
test eax, eax
je 0x412727
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4127fa
lea ecx, [esp + 0x54]
push 0x104
push ecx
push esi
call ebp
lea edx, [esp + 0x54]
push str._WwG
push edx
call edi
test eax, eax
jne 0x4126d1
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x478
ret
lea eax, [esp + 0x54]
push 6
lea ecx, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea edx, [esp + 0x14]
push str.Excel
push edx
call edi
test eax, eax
jne 0x412703
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x478
ret
lea eax, [esp + 0x54]
push str.paneClassDC
push eax
call edi
test eax, eax
jne 0x4127fa
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x478
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
test ebp, ebp
je 0x4127fa
lea edx, [esp + 0x25c]
mov dword [esp + 0x25c], 0x22c
push edx
push ebp
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4127fa
mov eax, dword [esp + 0x264]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
je 0x41278a
lea ecx, [esp + 0x25c]
push ecx
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x4127fa
jmp 0x412767
lea edx, [esp + 0x280]
push str.wps.exe
push edx
call edi
test eax, eax
jne 0x4127ad
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
add esp, 0x478
ret
lea eax, [esp + 0x280]
push str.et.exe
push eax
call edi
test eax, eax
jne 0x4127fa
mov edi, dword [sym.imp.USER32.dll_FindWindowExW]
push eax
push str.TShellControl
push eax
push esi
call edi
test eax, eax
mov dword [ebx + 0xe4], eax
jne 0x4127ea
push eax
push str.TShellControl.UnicodeClass
push eax
push esi
call edi
mov dword [ebx + 0xe4], eax
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
add esp, 0x478
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x478
ret