Function at 0x404cda
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 0x404dc9
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.00451750
mov edi, eax
cmp edi, esi
pop ecx
mov dword [ebp - 4], esi
je 0x404d43
lea esi, [edi - 1]
jmp 0x404d3f
movsx eax, byte [ebp + esi - 0x128]
push eax
call fcn.004515ae
dec esi
test eax, eax
pop ecx
je 0x404d43
inc dword [ebp - 4]
test esi, esi
jge 0x404d28
mov eax, dword [ebx + 0x7c]
cmp eax, edi
jle 0x404f67
mov ecx, dword [ebx + 0x80]
cmp ecx, dword [ebp - 4]
jle 0x404f67
sub eax, ecx
add eax, dword [ebp - 4]
cmp edi, eax
jne 0x404f67
mov eax, dword [ebx + 0x14]
push edi
lea ecx, [ebp - 0x128]
push ecx
push eax
call fcn.004517db
add esp, 0xc
test eax, eax
jne 0x404f67
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.00451899
push dword [ebx + 0x14]
lea eax, [ebp - 0x52c]
push eax
call fcn.004514b0
add esp, 0x18
test eax, eax
jne 0x404f67
mov eax, dword [ebp + 8]
mov dword [ebx + 0x38], eax
jmp 0x404f63
test al, 0x10
je 0x404e1c
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.0040fd2f
lea esi, [ebx + 0x4c]
lea edi, [ebp - 0x14]
call fcn.00407849
push dword [ebp - 0x14]
call fcn.0044f520
pop ecx
call fcn.0040787a
test al, al
je 0x404e15
mov dword [ebp - 4], 1
mov dword [ebp - 8], 1
mov eax, dword [ebx + 4]
test al, 0x20
je 0x404e3e
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
cmp dword [ebx + 0x2c], eax
jne 0x404f67
mov dword [ebx + 0x38], esi
jmp 0x404f63
test al, 0xc0
mov esi, 0x100
jne 0x404e51
test ax, 0x300
je 0x404ed2
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 0x404e92
mov ecx, dword [ebx + 0x3c]
cmp ecx, dword [ebp - 0x10]
jne 0x404e8f
inc dword [ebp - 4]
inc dword [ebp - 8]
test al, al
jns 0x404ea4
mov ecx, dword [ebx + 0x40]
cmp ecx, dword [ebp - 0xc]
jne 0x404ea1
inc dword [ebp - 4]
inc dword [ebp - 8]
test esi, eax
je 0x404eb9
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
cmp dword [ebx + 0x44], ecx
jne 0x404eb6
inc dword [ebp - 4]
inc dword [ebp - 8]
test ax, 0x200
je 0x404ed5
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 0x20]
cmp dword [ebx + 0x40], ecx
jne 0x404ecd
inc dword [ebp - 4]
inc dword [ebp - 8]
jmp 0x404ed5
mov edi, dword [ebp + 8]
test al, 1
je 0x404f04
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.004514b0
test eax, eax
pop ecx
pop ecx
jne 0x404f01
inc dword [ebp - 4]
inc dword [ebp - 8]
test byte [ebx + 4], 4
je 0x404f39
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.004514b0
test eax, eax
pop ecx
pop ecx
jne 0x404f36
inc dword [ebp - 4]
inc dword [ebp - 8]
test byte [ebx + 4], 2
je 0x404f58
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jne 0x404f55
inc dword [ebx + 0x78]
mov eax, dword [ebx + 0x78]
cmp eax, dword [ebx + 0x30]
jne 0x404f55
inc dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], eax
jne 0x404f67
mov dword [ebx + 0x38], edi
xor eax, eax
jmp 0x404f6a
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4