Function at 0x404e4a
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 0x404f39
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.0045179a
mov edi, eax
cmp edi, esi
pop ecx
mov dword [ebp - 4], esi
je 0x404eb3
lea esi, [edi - 1]
jmp 0x404eaf
movzx eax, word [ebp + esi*2 - 0x228]
push eax
call fcn.004519a7
dec esi
test eax, eax
pop ecx
je 0x404eb3
inc dword [ebp - 4]
test esi, esi
jge 0x404e98
mov eax, dword [ebx + 0x7c]
cmp eax, edi
jle 0x4050d7
mov ecx, dword [ebx + 0x80]
cmp ecx, dword [ebp - 4]
jle 0x4050d7
sub eax, ecx
add eax, dword [ebp - 4]
cmp edi, eax
jne 0x4050d7
mov eax, dword [ebx + 0x14]
push edi
lea ecx, [ebp - 0x228]
push ecx
push eax
call fcn.004519f1
add esp, 0xc
test eax, eax
jne 0x4050d7
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.00451a26
push dword [ebx + 0x14]
lea eax, [ebp - 0xa2c]
push eax
call fcn.0045190a
add esp, 0x18
test eax, eax
jne 0x4050d7
mov eax, dword [ebp + 8]
mov dword [ebx + 0x38], eax
jmp 0x4050d3
test al, 0x10
je 0x404f8c
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.00410005
lea esi, [ebx + 0x4c]
lea edi, [ebp - 0x14]
call fcn.004078b2
push dword [ebp - 0x14]
call fcn.0044f971
pop ecx
call fcn.004078e6
test al, al
je 0x404f85
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
mov eax, dword [ebx + 4]
test al, 0x20
je 0x404fae
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp dword [ebx + 0x2c], eax
jne 0x4050d7
mov dword [ebx + 0x38], esi
jmp 0x4050d3
test al, 0xc0
mov esi, 0x100
jne 0x404fc1
test ax, 0x300
je 0x405042
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 0x405002
mov ecx, dword [ebx + 0x3c]
cmp ecx, dword [ebp - 0x10]
jne 0x404fff
inc dword [ebp - 4]
inc dword [ebp - 8]
test al, al
jns 0x405014
mov ecx, dword [ebx + 0x40]
cmp ecx, dword [ebp - 0xc]
jne 0x405011
inc dword [ebp - 4]
inc dword [ebp - 8]
test esi, eax
je 0x405029
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
cmp dword [ebx + 0x44], ecx
jne 0x405026
inc dword [ebp - 4]
inc dword [ebp - 8]
test ax, 0x200
je 0x405045
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
cmp dword [ebx + 0x40], ecx
jne 0x40503d
inc dword [ebp - 4]
inc dword [ebp - 8]
jmp 0x405045
mov edi, dword [ebp + 8]
test al, 1
je 0x405074
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.0045190a
test eax, eax
pop ecx
pop ecx
jne 0x405071
inc dword [ebp - 4]
inc dword [ebp - 8]
test byte [ebx + 4], 4
je 0x4050a9
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.0045190a
test eax, eax
pop ecx
pop ecx
jne 0x4050a6
inc dword [ebp - 4]
inc dword [ebp - 8]
test byte [ebx + 4], 2
je 0x4050c8
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jne 0x4050c5
inc dword [ebx + 0x78]
mov eax, dword [ebx + 0x78]
cmp eax, dword [ebx + 0x30]
jne 0x4050c5
inc dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x4050d7
mov dword [ebx + 0x38], edi
xor eax, eax
jmp 0x4050da
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4