Function at 0x404e60
Capabilities:
Enumerate gui resources
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x429a61
mov eax, dword fs:[0]
push eax
sub esp, 0x570
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x568], eax
push ebx
push esi
push edi
mov eax, dword [0x4382c4]
xor eax, esp
push eax
lea eax, [esp + 0x580]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x104
mov dword [esp + 0x4c], ecx
mov ecx, dword [ebp + 0x1c]
lea edx, [esp + 0x64]
push ebx
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x20], 0xfffffffa
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], 0xffffffff
mov dword [esp + 0x64], ebx
call fcn.00420f50
add esp, 0xc
lea esi, [esp + 0x54]
mov dword [esp + 0x588], ebx
call fcn.00403b90
mov edi, eax
cmp edi, ebx
je 0x405201
lea esp, [esp]
push edi
push ebx
push 0x410
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], 0xffffffff
mov dword [esp + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x38], eax
lea esi, [esp + 0x38]
mov byte [esp + 0x588], 1
call fcn.00403c60
cmp eax, ebx
je 0x4051b4
mov edx, dword [esp + 0x38]
push 0x104
lea ecx, [esp + 0x470]
push ecx
push eax
push edx
call sub.PSAPI.DLL_GetModuleBaseNameA
push 0x103
lea eax, [esp + 0x169]
push ebx
push eax
mov byte [esp + 0x170], bl
call fcn.00420f50
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
lea edx, [esp + 0x168]
push 0x104
push edx
call fcn.0041aff9
add esp, 0xc
cmp byte [ebp + 0x18], bl
je 0x404fa8
push str..exe
lea eax, [esp + 0x168]
push 0x104
push eax
call fcn.0041af88
add esp, 0xc
lea ecx, [esp + 0x46c]
push ecx
lea edx, [esp + 0x168]
push edx
call fcn.0041d5c0
add esp, 8
test eax, eax
jne 0x4051b4
xor ecx, ecx
mov eax, 0x400
mov edx, 4
mul edx
seto cl
mov dword [esp + 0x1c], vtable.CWindowIterator.0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
neg ecx
or ecx, eax
push ecx
call fcn.0041ae22
add esp, 4
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0x400
mov dword [esp + 0x1c], vtable.CCommWindowIterator.0
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], 1
lea eax, [esp + 0x1c]
push eax
push 0x403cf0
mov byte [esp + 0x590], 2
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov dword [esp + 0x2c], ebx
je 0x4051a3
cmp dword [esp + 0x28], ebx
jbe 0x4051a3
mov esi, dword [eax]
cmp esi, ebx
mov dword [esp + 0x2c], 1
je 0x4051a3
lea ebx, [ebx]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405139
mov edi, dword [esp + 0x4c]
cmp edi, ebx
je 0x40515f
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x405080
sub eax, edx
je 0x40515f
push 0x100
lea ecx, [esp + 0x270]
push ebx
push ecx
call fcn.00420f50
add esp, 0xc
push 0x100
lea edx, [esp + 0x370]
push ebx
push edx
call fcn.00420f50
add esp, 0xc
push str.hjCommuTitle
lea eax, [esp + 0x270]
push 0x100
push eax
call fcn.0041af88
add esp, 0xc
push edi
lea ecx, [esp + 0x270]
push 0x100
push ecx
call fcn.0041af88
add esp, 0xc
push 0xff
lea edx, [esp + 0x370]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 0x36c]
lea eax, [esp + 0x26c]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x405130
cmp dl, bl
je 0x40512c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x405130
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x405110
xor eax, eax
jmp 0x405135
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x40515f
mov eax, dword [esp + 0x20]
cmp eax, ebx
je 0x4051a3
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esp + 0x28]
jae 0x4051a3
mov esi, dword [eax + ecx*4]
add ecx, 1
cmp esi, ebx
mov dword [esp + 0x2c], ecx
jne 0x405060
jmp 0x4051a3
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x48]
mov edx, dword [ecx + 4]
mov edi, dword [ebp + 0xc]
push eax
push edx
push edi
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push eax
push esi
push ecx
push edi
push str._CommuWin_PostMessage__d_to__s:hwnd___x_ret_d_Error_d_n
mov ecx, 0x43b48c
call fcn.0040a090
mov eax, dword [esp + 0x38]
add esp, 0x18
push eax
mov dword [esp + 0x20], vtable.CWindowIterator.0
call fcn.0041b96e
add esp, 4
mov byte [esp + 0x588], bl
mov eax, dword [esp + 0x38]
cmp eax, ebx
je 0x4051ce
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x38], ebx
mov edx, dword [esp + 0x3c]
push edx
call fcn.0041b96e
mov ecx, dword [esp + 0x58]
add esp, 4
cmp ecx, ebx
je 0x405205
mov eax, dword [esp + 0x5c]
cmp eax, dword [esp + 0x58]
jae 0x405205
mov edi, dword [ecx + eax*4]
add eax, 1
cmp edi, ebx
mov dword [esp + 0x5c], eax
jne 0x404f00
jmp 0x405205
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0041b96e
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [esp + 0x580]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x568]
xor ecx, esp
call fcn.0041aec3
mov esp, ebp
pop ebp
ret 0x18