Function at 0x421cf0
Capabilities:
Enumerate processes
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x44f37c
mov eax, dword fs:[0]
push eax
sub esp, 0x480
mov eax, dword [0x46b114]
xor eax, esp
mov dword [esp + 0x47c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46b114]
xor eax, esp
push eax
lea eax, [esp + 0x494]
mov dword fs:[0], eax
mov esi, edx
push 0x45aa58
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], esi
call dword [0x45434c]
mov dword [esi], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebp, eax
push 0x104
lea eax, [esp + 0x28c]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, 0x45c8fc
lea eax, [esp + 0x288]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x421d96
test dx, dx
je 0x421d92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x421d96
add eax, 4
add ecx, 4
test dx, dx
jne 0x421d70
xor eax, eax
jmp 0x421d9b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x421da6
mov dword [esi], eax
jmp 0x421ed5
test ebp, ebp
je 0x421ed5
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
push 1
mov edi, eax
call esi
mov ebx, eax
xor eax, eax
cmp edi, eax
jle 0x421ed5
cmp ebx, eax
jle 0x421ed5
lea ecx, [esp + 0x14]
push ecx
push ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
je 0x421ed5
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.USER32.dll_ClientToScreen]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x20]
push eax
push ebp
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
call esi
test eax, eax
je 0x421ed5
lea ecx, [esp + 0x28]
push ecx
push ebp
call esi
test eax, eax
je 0x421ed5
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], esi
test eax, eax
jg 0x421e73
test ecx, ecx
jg 0x421e73
cmp edx, edi
jl 0x421e73
cmp esi, ebx
jl 0x421e73
mov eax, 1
jmp 0x421e75
xor eax, eax
mov edx, dword [esp + 0x3c]
mov dword [edx], eax
lea eax, [esp + 0x24]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [esp + 0x24], 0
je 0x421ed5
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x421ed5
lea ecx, [esp + 0x5c]
push ecx
push esi
mov dword [esp + 0x64], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x421ece
mov edx, dword [esp + 0x24]
cmp edx, dword [esp + 0x64]
je 0x421efd
lea eax, [esp + 0x5c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x421eb5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x494]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x47c]
xor ecx, esp
call fcn.004390e8
add esp, 0x48c
ret
lea ecx, [esp + 0x80]
push ecx
lea edx, [esp + 0x44]
push edx
call fcn.0043fc4a
add esp, 8
mov dword [esp + 0x49c], 0
cmp dword [esp + 0x58], 8
mov eax, dword [esp + 0x44]
jae 0x421f2c
lea eax, [esp + 0x44]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x54]
push ecx
push edx
push eax
call fcn.0043eefa
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x40]
mov dword [esp + 0x49c], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x421ed5