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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x429aa6
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x4382c4]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push esi
push edi
mov eax, dword [0x4382c4]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x20]
mov edi, dword [ebp + 8]
lea ebx, [ecx + 8]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 4]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 0xfffffffa
je 0x404c8d
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
je 0x404c8d
mov ecx, dword [ebx + 4]
test ecx, ecx
mov dword [esp + 0x14], esi
je 0x404dfc
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jae 0x404dfc
test ecx, ecx
je 0x404a57
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x404a5c
call fcn.0041bd8a
mov eax, dword [ebx + 4]
lea ecx, [esi*4]
mov edx, dword [eax + ecx]
add eax, ecx
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x404c38
mov edi, dword [esp + 0x24]
test edi, edi
je 0x404b60
mov eax, edi
lea edx, [eax + 1]
jmp 0x404a90
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404a90
sub eax, edx
je 0x404b60
push 0x100
lea eax, [esp + 0x50]
push 0
push eax
call fcn.00420f50
add esp, 0xc
push 0x100
lea ecx, [esp + 0x150]
push 0
push ecx
call fcn.00420f50
add esp, 0xc
push str.hjCommuTitle
lea edx, [esp + 0x50]
push 0x100
push edx
call fcn.0041af88
add esp, 0xc
push edi
lea eax, [esp + 0x50]
push 0x100
push eax
call fcn.0041af88
mov ecx, dword [ebx + 4]
add esp, 0xc
test ecx, ecx
je 0x404b09
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x404b0e
call fcn.0041bd8a
mov edx, dword [ebx + 4]
mov eax, dword [edx + esi*4]
push 0xff
lea ecx, [esp + 0x150]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edi, [esp + 0x14c]
lea eax, [esp + 0x4c]
mov cl, byte [eax]
cmp cl, byte [edi]
jne 0x404b53
test cl, cl
je 0x404b4f
mov cl, byte [eax + 1]
cmp cl, byte [edi + 1]
jne 0x404b53
add eax, 2
add edi, 2
test cl, cl
jne 0x404b33
xor eax, eax
jmp 0x404b58
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x404c0f
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x404b73
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x404b78
call fcn.0041bd8a
mov eax, dword [ebx + 4]
mov edx, dword [ebp + 0x1c]
lea ecx, [esi*4]
add eax, ecx
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [esp + 0x28]
push 3
push ecx
mov ecx, dword [edx + 4]
mov edx, dword [ebp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
mov edi, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x404bbd
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
cmp esi, ecx
jb 0x404bc2
call fcn.0041bd8a
mov eax, dword [esp + 0x14]
mov esi, dword [ebx + 4]
add eax, eax
add eax, eax
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x18]
mov edx, dword [esi]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [ebp + 0xc]
push edi
push edx
push eax
push ecx
push str._CommuWin_SendMessageEx__d_to__s:hwnd___x_ret_d_dwResult_d_Error_d_n
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 0x1c
test edi, edi
jne 0x404c0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5b4
je 0x404c17
mov esi, dword [esp + 0x14]
add esi, 1
jmp 0x404a28
mov edx, dword [esp + 0x1c]
push edx
push str._CommuWin_Send_message_to__s_timeout_n
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 8
mov eax, 0xfffffffe
jmp 0x404e00
mov edi, dword [ebx + 8]
cmp dword [ebx + 4], edi
jbe 0x404c45
call fcn.0041bd8a
mov esi, dword [ebx + 4]
cmp esi, dword [ebx + 8]
jbe 0x404c52
call fcn.0041bd8a
cmp esi, edi
je 0x404c83
mov eax, dword [ebx + 8]
sub eax, edi
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea edx, [ecx + esi]
mov dword [esp + 0x24], edx
jle 0x404c7c
push ecx
push edi
push ecx
push esi
call fcn.0041c14c
add esp, 0x10
mov eax, dword [esp + 0x24]
mov dword [ebx + 8], eax
mov eax, 0xfffffffa
jmp 0x404e00
mov dword [esp + 0x2c], vtable.CFindKillProcess.0
push esi
push 2
mov dword [esp + 0x268], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x404dfc
movzx ecx, byte [ebp + 0x18]
push ecx
mov esi, eax
call fcn.00403eb0
test eax, eax
je 0x404dfc
push eax
lea esi, [esp + 0x34]
call fcn.00403d50
mov edx, esi
push edx
push 0x403cf0
mov byte [esp + 0x268], 1
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [esp + 0x34]
test ecx, ecx
mov dword [esp + 0x40], 0
je 0x404deb
cmp dword [esp + 0x3c], 0
jbe 0x404deb
mov edi, dword [ecx]
test edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x40], 1
je 0x404deb
mov edx, dword [ebx + 4]
test edx, edx
jne 0x404d21
xor ecx, ecx
jmp 0x404d29
mov ecx, dword [ebx + 8]
sub ecx, edx
sar ecx, 2
test edx, edx
je 0x404d46
mov eax, dword [ebx + 0xc]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x404d46
mov eax, dword [ebx + 8]
mov dword [eax], edi
add eax, 4
mov dword [ebx + 8], eax
jmp 0x404d65
mov esi, dword [ebx + 8]
cmp edx, esi
jbe 0x404d52
call fcn.0041bd8a
push esi
push ebx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
mov eax, ebx
call fcn.00405390
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [edx + 4]
push 3
push ecx
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [ebp + 0xc]
push edx
push esi
push edi
mov edi, dword [esp + 0x2c]
push edi
push eax
push str._CommuWin_SendMessageTimeout__d_to__s:hwnd___x_ret_d_dwResult_d_Error_d_n
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 0x1c
test esi, esi
jne 0x404dc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5b4
je 0x404e26
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x404deb
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x3c]
jae 0x404deb
mov edi, dword [ecx + eax*4]
add eax, 1
test edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x40], eax
jne 0x404d16
push ecx
mov dword [esp + 0x34], vtable.CWindowIterator.0
call fcn.0041b96e
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.0041aec3
mov esp, ebp
pop ebp
ret 0x1c
push edi
push str._CommuWin_Send_message_to__s_timeout_n
mov ecx, 0x43b48c
call fcn.0040a090
mov ecx, dword [esp + 0x3c]
push ecx
mov dword [esp + 0x3c], vtable.CWindowIterator.0
call fcn.0041b96e
add esp, 0xc
mov eax, 0xfffffffe
jmp 0x404e00