Function at 0x404cf6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
mov eax, dword [ebx + 4]
push esi
xor esi, esi
test al, 8
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
je 0x404de5
push 0x100
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0x228]
push eax
call fcn.0045177a
mov edi, eax
cmp edi, esi
pop ecx
mov dword [ebp - 4], esi
je 0x404d5f
lea esi, [edi - 1]
jmp 0x404d5b
movzx eax, word [ebp + esi*2 - 0x228]
push eax
call fcn.00451987
dec esi
test eax, eax
pop ecx
je 0x404d5f
inc dword [ebp - 4]
test esi, esi
jge 0x404d44
mov eax, dword [ebx + 0x7c]
cmp eax, edi
jle 0x404f83
mov ecx, dword [ebx + 0x80]
cmp ecx, dword [ebp - 4]
jle 0x404f83
sub eax, ecx
add eax, dword [ebp - 4]
cmp edi, eax
jne 0x404f83
mov eax, dword [ebx + 0x14]
push edi
lea ecx, [ebp - 0x228]
push ecx
push eax
call fcn.004519d1
add esp, 0xc
test eax, eax
jne 0x404f83
inc dword [ebx + 0x78]
push dword [ebx + 0x78]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0xa2c]
push str._s_u
push eax
call fcn.00451a06
push dword [ebx + 0x14]
lea eax, [ebp - 0xa2c]
push eax
call fcn.004518ea
add esp, 0x18
test eax, eax
jne 0x404f83
mov eax, dword [ebp + 8]
mov dword [ebx + 0x38], eax
jmp 0x404f7f
test al, 0x10
je 0x404e38
push 0x400
lea eax, [ebp - 0xa2c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [ebp - 0xa2c]
push eax
lea esi, [ebp - 0x14]
call fcn.0040ffd4
lea esi, [ebx + 0x4c]
lea edi, [ebp - 0x14]
call fcn.00407881
push dword [ebp - 0x14]
call fcn.0044f951
pop ecx
call fcn.004078b5
test al, al
je 0x404e31
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
mov eax, dword [ebx + 4]
test al, 0x20
je 0x404e5a
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp dword [ebx + 0x2c], eax
jne 0x404f83
mov dword [ebx + 0x38], esi
jmp 0x404f7f
test al, 0xc0
mov esi, 0x100
jne 0x404e6d
test ax, 0x300
je 0x404eee
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebx + 4]
test al, 0x40
je 0x404eae
mov ecx, dword [ebx + 0x3c]
cmp ecx, dword [ebp - 0x10]
jne 0x404eab
inc dword [ebp - 4]
inc dword [ebp - 8]
test al, al
jns 0x404ec0
mov ecx, dword [ebx + 0x40]
cmp ecx, dword [ebp - 0xc]
jne 0x404ebd
inc dword [ebp - 4]
inc dword [ebp - 8]
test esi, eax
je 0x404ed5
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
cmp dword [ebx + 0x44], ecx
jne 0x404ed2
inc dword [ebp - 4]
inc dword [ebp - 8]
test ax, 0x200
je 0x404ef1
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
cmp dword [ebx + 0x40], ecx
jne 0x404ee9
inc dword [ebp - 4]
inc dword [ebp - 8]
jmp 0x404ef1
mov edi, dword [ebp + 8]
test al, 1
je 0x404f20
push esi
lea eax, [ebp - 0xa2c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameW]
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0xa2c]
push ecx
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
jne 0x404f1d
inc dword [ebp - 4]
inc dword [ebp - 8]
test byte [ebx + 4], 4
je 0x404f55
push 0x400
lea eax, [ebp - 0xa2c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebx + 0x20]
lea ecx, [ebp - 0xa2c]
push ecx
push eax
call fcn.004518ea
test eax, eax
pop ecx
pop ecx
jne 0x404f52
inc dword [ebp - 4]
inc dword [ebp - 8]
test byte [ebx + 4], 2
je 0x404f74
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jne 0x404f71
inc dword [ebx + 0x78]
mov eax, dword [ebx + 0x78]
cmp eax, dword [ebx + 0x30]
jne 0x404f71
inc dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x404f83
mov dword [ebx + 0x38], edi
xor eax, eax
jmp 0x404f86
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4