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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x55c
mov eax, dword [0x10036040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x320]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x554], esi
call fcn.1000ea10
add esp, 0xc
lea ecx, [ebp - 0x320]
call fcn.10004be0
cmp dword [0x1003ba64], 1
mov ebx, eax
mov dword [ebp - 0x55c], ebx
jne 0x10005425
push 0x104
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1000ea10
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.1000a440
test eax, eax
jne 0x1000537c
mov eax, dword [0x1003ba70]
cmp eax, 3
je 0x1000528b
cmp eax, 9
je 0x1000528b
push eax
push str.0x_X
lea eax, [ebp - 0x218]
push 0x80
push eax
call fcn.10001250
add esp, 0x10
jmp 0x1000537c
push 0x104
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.1000ea10
mov esi, dword [str.zzwsl_lilz]
lea ecx, [ebp - 0x110]
mov eax, ecx
add esp, 0xc
mov edx, 0x104
sub esi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x100052cf
mov al, byte [esi + ecx]
test al, al
je 0x100052cf
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x100052b6
test edx, edx
lea eax, [ecx - 1]
lea edx, [ebp - 0x110]
cmovne eax, ecx
lea ecx, [edx + 1]
mov byte [eax], 0
mov al, byte [edx]
inc edx
test al, al
jne 0x100052e3
sub edx, ecx
lea ecx, [ebp - 0x110]
call fcn.10009c80
lea ecx, [ebp - 0x110]
call fcn.10004f10
mov esi, eax
test esi, esi
je 0x10005357
push 0x104
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.1000ea10
add esp, 0xc
lea edx, [ebp - 0x428]
mov ecx, esi
call fcn.10004fc0
test eax, eax
je 0x10005376
lea eax, [ebp - 0x428]
push eax
push dword [0x1003ba70]
lea eax, [ebp - 0x218]
push str.0x_X__s
push 0x80
push eax
call fcn.10001250
add esp, 0x14
jmp 0x10005376
push dword [0x1003ba70]
lea eax, [ebp - 0x218]
push 0x100319ec
push 0x80
push eax
call fcn.10001250
add esp, 0x10
mov esi, dword [ebp - 0x554]
push 0x114
lea eax, [ebp - 0x540]
push 0
push eax
call fcn.1000ea10
add esp, 0xc
mov dword [ebp - 0x540], 1
lea ecx, [ebp - 0x540]
call fcn.10009d00
test eax, eax
jne 0x100053ea
cmp dword [0x1003cbb0], 1
jne 0x100053cf
call fcn.10007100
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x218]
push eax
push str._s___s__Failed__d_
jmp 0x10005404
call fcn.10007560
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x218]
push eax
push str._s___s__Failed__d_
jmp 0x10005404
lea eax, [ebp - 0x530]
push eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x218]
push eax
push str._s___s__s
push 0x80
push esi
call fcn.10001250
add esp, 0x18
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d0c5
mov esp, ebp
pop ebp
ret
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push 0x104
mov ebx, eax
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.1000ea10
add esp, 0xc
mov dword [ebp - 0x558], 0
lea eax, [ebp - 0x558]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0x558], 0
je 0x10005524
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000551e
push 0x124
lea eax, [ebp - 0x54c]
push 0
push eax
call fcn.1000ea10
add esp, 0xc
mov dword [ebp - 0x550], 0x128
lea eax, [ebp - 0x550]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10005517
mov edi, dword [sym.imp.KERNEL32.dll_Process32Next]
nop word [eax + eax]
mov eax, dword [ebp - 0x548]
cmp eax, dword [ebp - 0x558]
je 0x100054de
lea eax, [ebp - 0x550]
push eax
push esi
call edi
test eax, eax
jne 0x100054c0
jmp 0x10005517
lea ecx, [ebp - 0x110]
mov edx, 0x104
lea edi, [ebp - 0x52c]
mov eax, ecx
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1000550c
mov al, byte [edi + ecx]
test al, al
je 0x1000550c
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x100054f3
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x554]
push 0x104
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.1000ea10
add esp, 0xc
lea eax, [ebp - 0x428]
push 0x80
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x10005590
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x320]
push eax
push str.__s___s___s
push 0x80
push esi
call fcn.10001250
mov eax, dword [ebp - 0x55c]
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d0c5
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x320]
push eax
push str.__s___s__null
push 0x80
push esi
call fcn.10001250
mov ecx, dword [ebp - 4]
add esp, 0x14
mov eax, dword [ebp - 0x55c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1000d0c5
mov esp, ebp
pop ebp
ret