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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x429b01
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 + 0x50], ecx
mov ecx, dword [ebp + 0x20]
lea edx, [esp + 0x64]
push ebx
push edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 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 0x40496f
lea esp, [esp]
push edi
push ebx
push 0x410
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x18], eax
lea esi, [esp + 0x18]
mov byte [esp + 0x588], 1
call fcn.00403c60
cmp eax, ebx
je 0x4048cc
mov edx, dword [esp + 0x18]
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 + 0x50]
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 0x4046a8
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 0x4048cc
xor ecx, ecx
mov eax, 0x400
mov edx, 4
mul edx
seto cl
mov dword [esp + 0x28], vtable.CWindowIterator.0
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
neg ecx
or ecx, eax
push ecx
call fcn.0041ae22
mov esi, 1
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x400
mov dword [esp + 0x28], vtable.CCommWindowIterator.0
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], esi
lea eax, [esp + 0x28]
push eax
push 0x403cf0
mov byte [esp + 0x590], 2
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov dword [esp + 0x38], ebx
je 0x4048bb
cmp dword [esp + 0x34], ebx
jbe 0x4048bb
mov edi, dword [eax]
cmp edi, ebx
mov dword [esp + 0x38], esi
je 0x4048bb
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40482f
mov esi, dword [esp + 0x48]
cmp esi, ebx
je 0x404859
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x404777
sub eax, edx
je 0x404859
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 esi
lea ecx, [esp + 0x270]
push 0x100
push ecx
call fcn.0041af88
add esp, 0xc
push 0xff
lea edx, [esp + 0x370]
push edx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 0x36c]
lea eax, [esp + 0x26c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x404826
cmp dl, bl
je 0x404822
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x404826
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x404806
xor eax, eax
jmp 0x40482b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x404859
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4048bb
mov ecx, dword [esp + 0x38]
cmp ecx, dword [esp + 0x34]
jae 0x4048bb
mov edi, dword [eax + ecx*4]
add ecx, 1
cmp edi, ebx
mov dword [esp + 0x38], ecx
jne 0x404757
jmp 0x4048bb
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [eax + 4]
push 3
push edx
mov edx, dword [ebp + 0xc]
push ecx
push edx
push edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0xc]
push eax
mov eax, dword [esp + 0x18]
push eax
push esi
push edi
mov edi, dword [esp + 0x54]
push edi
push ecx
push str._CommuWin_SendMessage__d_to__s:hwnd___x_ret_d_dwResult_d_Error_d_n
mov ecx, 0x43b48c
call fcn.0040a090
add esp, 0x1c
cmp esi, ebx
jne 0x4048b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5b4
je 0x404919
mov eax, dword [esp + 0x2c]
push eax
mov dword [esp + 0x2c], vtable.CWindowIterator.0
call fcn.0041b96e
add esp, 4
mov byte [esp + 0x588], bl
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4048e6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x1c]
push edx
call fcn.0041b96e
mov ecx, dword [esp + 0x58]
add esp, 4
cmp ecx, ebx
je 0x404973
mov eax, dword [esp + 0x5c]
cmp eax, dword [esp + 0x58]
jae 0x404973
mov edi, dword [ecx + eax*4]
add eax, 1
cmp edi, ebx
mov dword [esp + 0x5c], eax
jne 0x404600
jmp 0x404973
push edi
push str._CommuWin_Send_message_to__s_timeout_n
mov ecx, 0x43b48c
call fcn.0040a090
mov eax, dword [esp + 0x34]
push eax
mov dword [esp + 0x34], vtable.CWindowIterator.0
call fcn.0041b96e
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, ebx
je 0x404951
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0041b96e
mov edx, dword [esp + 0x58]
add esp, 4
push edx
call fcn.0041b96e
mov eax, 0xfffffffe
jmp 0x40497f
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x14]
push ecx
call fcn.0041b96e
mov eax, esi
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 0x1c