Function at 0x404dbe
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x52c
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 0x404ead
push 0x100
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [ebp - 0x128]
push eax
call fcn.00451730
mov edi, eax
cmp edi, esi
pop ecx
mov dword [ebp - 4], esi
je 0x404e27
lea esi, [edi - 1]
jmp 0x404e23
movsx eax, byte [ebp + esi - 0x128]
push eax
call fcn.0045158e
dec esi
test eax, eax
pop ecx
je 0x404e27
inc dword [ebp - 4]
test esi, esi
jge 0x404e0c
mov eax, dword [ebx + 0x7c]
cmp eax, edi
jle 0x40504b
mov ecx, dword [ebx + 0x80]
cmp ecx, dword [ebp - 4]
jle 0x40504b
sub eax, ecx
add eax, dword [ebp - 4]
cmp edi, eax
jne 0x40504b
mov eax, dword [ebx + 0x14]
push edi
lea ecx, [ebp - 0x128]
push ecx
push eax
call fcn.004517bb
add esp, 0xc
test eax, eax
jne 0x40504b
inc dword [ebx + 0x78]
push dword [ebx + 0x78]
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x52c]
push str._s_u
push eax
call fcn.00451879
push dword [ebx + 0x14]
lea eax, [ebp - 0x52c]
push eax
call fcn.00451490
add esp, 0x18
test eax, eax
jne 0x40504b
mov eax, dword [ebp + 8]
mov dword [ebx + 0x38], eax
jmp 0x405047
test al, 0x10
je 0x404f00
push 0x400
lea eax, [ebp - 0x52c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [ebp - 0x52c]
push eax
lea esi, [ebp - 0x14]
call fcn.0040fcfe
lea esi, [ebx + 0x4c]
lea edi, [ebp - 0x14]
call fcn.00407818
push dword [ebp - 0x14]
call fcn.0044f500
pop ecx
call fcn.00407849
test al, al
je 0x404ef9
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
mov eax, dword [ebx + 4]
test al, 0x20
je 0x404f22
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp dword [ebx + 0x2c], eax
jne 0x40504b
mov dword [ebx + 0x38], esi
jmp 0x405047
test al, 0xc0
mov esi, 0x100
jne 0x404f35
test ax, 0x300
je 0x404fb6
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 0x404f76
mov ecx, dword [ebx + 0x3c]
cmp ecx, dword [ebp - 0x10]
jne 0x404f73
inc dword [ebp - 4]
inc dword [ebp - 8]
test al, al
jns 0x404f88
mov ecx, dword [ebx + 0x40]
cmp ecx, dword [ebp - 0xc]
jne 0x404f85
inc dword [ebp - 4]
inc dword [ebp - 8]
test esi, eax
je 0x404f9d
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
cmp dword [ebx + 0x44], ecx
jne 0x404f9a
inc dword [ebp - 4]
inc dword [ebp - 8]
test ax, 0x200
je 0x404fb9
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
cmp dword [ebx + 0x40], ecx
jne 0x404fb1
inc dword [ebp - 4]
inc dword [ebp - 8]
jmp 0x404fb9
mov edi, dword [ebp + 8]
test al, 1
je 0x404fe8
push esi
lea eax, [ebp - 0x52c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameA]
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x52c]
push ecx
push eax
call fcn.00451490
test eax, eax
pop ecx
pop ecx
jne 0x404fe5
inc dword [ebp - 4]
inc dword [ebp - 8]
test byte [ebx + 4], 4
je 0x40501d
push 0x400
lea eax, [ebp - 0x52c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [ebx + 0x20]
lea ecx, [ebp - 0x52c]
push ecx
push eax
call fcn.00451490
test eax, eax
pop ecx
pop ecx
jne 0x40501a
inc dword [ebp - 4]
inc dword [ebp - 8]
test byte [ebx + 4], 2
je 0x40503c
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jne 0x405039
inc dword [ebx + 0x78]
mov eax, dword [ebx + 0x78]
cmp eax, dword [ebx + 0x30]
jne 0x405039
inc dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x40504b
mov dword [ebx + 0x38], edi
xor eax, eax
jmp 0x40504e
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4