Function at 0x404b7e
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x40b0ac
call fcn.0040a520
sub esp, 0x140
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x2e4], 0
je 0x404c46
push 0x40f2dc
lea ecx, [ebp - 0x18]
call fcn.0040102d
mov edi, eax
and dword [ebp - 4], 0
lea eax, [esi + 0x2f4]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040106e
mov ebx, eax
lea eax, [esi + 0x2e8]
lea ecx, [ebp - 0x24]
push eax
mov byte [ebp - 4], 1
call fcn.0040106e
push ebx
push eax
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
call fcn.00401452
push edi
push eax
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
call fcn.00401452
add esp, 0x18
lea ebx, [esi + 0x39c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.004010c2
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.004010b2
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.004010b2
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004010b2
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.004010b2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
jmp 0x404d9e
cmp byte [esi + 0x240], 0
je 0x404cfc
push 0x40f4f0
lea ecx, [ebp - 0x48]
call fcn.0040102d
mov edi, eax
lea eax, [esi + 0x2f4]
lea ecx, [ebp - 0x3c]
push eax
mov dword [ebp - 4], 5
call fcn.0040106e
mov ebx, eax
lea eax, [esi + 0x2e8]
lea ecx, [ebp - 0x24]
push eax
mov byte [ebp - 4], 6
call fcn.0040106e
push ebx
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 7
push eax
call fcn.00401452
push edi
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 8
push eax
call fcn.00401452
add esp, 0x18
lea ebx, [esi + 0x39c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 9
call fcn.004010c2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.004010b2
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 7
call fcn.004010b2
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.004010b2
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 5
call fcn.004010b2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
jmp 0x404d9e
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.0040102d
mov edi, eax
lea eax, [esi + 0x2f4]
lea ecx, [ebp - 0x3c]
push eax
mov dword [ebp - 4], 0xa
call fcn.0040106e
mov ebx, eax
lea eax, [esi + 0x2e8]
lea ecx, [ebp - 0x24]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040106e
push ebx
push eax
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xc
push eax
call fcn.00401452
push edi
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 0xd
push eax
call fcn.00401452
add esp, 0x18
lea ebx, [esi + 0x39c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 0xe
call fcn.004010c2
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xd
call fcn.004010b2
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xc
call fcn.004010b2
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xb
call fcn.004010b2
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xa
call fcn.004010b2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.004010b2
and byte [ebp - 0x14c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x14b]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14c]
push eax
push dword [esi + 0x398]
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [ebp - 0x14c]
lea ecx, [ebp - 0x18]
push eax
call fcn.0040102d
push ebx
push eax
mov dword [ebp - 4], 0xf
call fcn.00401428
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
mov byte [ebp + 0xb], al
lea ecx, [ebp - 0x18]
call fcn.004010b2
cmp byte [ebp + 0xb], 0
je 0x404e46
cmp byte [ebp + 0xc], 0
je 0x404e29
mov ecx, ebx
call fcn.00401170
push eax
push dword [esi + 0x398]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov byte [esi + 0x27c], 1
jmp 0x404e46
cmp byte [esi + 0x27c], 0
jne 0x404e46
mov ecx, ebx
call fcn.00401170
push eax
push dword [esi + 0x398]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8