Function at 0x40479c
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0xff0]
mov eax, 0x1070
call fcn.00406900
mov eax, dword [0x4161a0]
xor eax, ebp
mov dword [ebp + 0xfec], eax
mov eax, dword [ebp + 0xffc]
push ebx
mov ebx, dword [ebp + 0xff8]
push esi
push edi
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x24]
push edx
push eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
call fcn.00404692
mov byte [ebp - 0x15], al
lea eax, [ebp - 0x60]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x70]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [ebp - 0x58]
sub edi, dword [ebp - 0x68]
mov esi, dword [ebp - 0x54]
mov eax, dword [ebp - 0x64]
sub edi, dword [ebp - 0x60]
sub esi, eax
sub esi, dword [ebp - 0x5c]
inc edi
inc esi
cmp byte [ebp - 0x15], 0
je 0x404847
cmp byte [ebp + 0x1000], 0
jne 0x40488b
imul eax, dword [ebp - 0x1c]
push 0x206
cdq
push 0x64
pop ecx
idiv ecx
add eax, esi
push eax
mov eax, dword [ebp - 0x68]
imul eax, dword [ebp - 0x24]
cdq
idiv ecx
add eax, edi
push eax
xor eax, eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp byte [ebp + 0x1000], 0
jne 0x40488b
push 0x400
lea eax, [ebp + 0x7ec]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
push 1
push 0x400
lea eax, [ebp + 0x7ec]
push eax
push eax
call fcn.004044e8
lea eax, [ebp + 0x7ec]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 8
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 5
push ebx
sub esi, eax
call dword [sym.imp.USER32.dll_GetWindow]
and dword [ebp - 0x20], 0
mov ebx, eax
mov dword [ebp - 0x40], ebx
jmp 0x4049e9
cmp dword [ebp - 0x20], 0x200
jge 0x4049f1
push 0x400
lea eax, [ebp + 0x7ec]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp + 0x7ec], 0
je 0x4048fe
push dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
push 1
push 0x400
lea eax, [ebp + 0x7ec]
push eax
push eax
call fcn.004044e8
lea eax, [ebp + 0x7ec]
push eax
push ebx
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp byte [ebp - 0x15], 0
je 0x4049d6
lea eax, [ebp - 0x50]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, edi
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x50]
sar ecx, 1
sub eax, ecx
sub eax, dword [ebp - 0x60]
push 0x64
imul eax, dword [ebp - 0x24]
cdq
pop ecx
idiv ecx
push 0x400
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x5c]
sub eax, esi
imul eax, dword [ebp - 0x1c]
cdq
idiv ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x50]
inc eax
imul eax, dword [ebp - 0x24]
cdq
idiv ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x44]
sub eax, dword [ebp - 0x4c]
inc eax
imul eax, dword [ebp - 0x1c]
cdq
idiv ecx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
push 0x412344
lea eax, [ebp - 0x14]
push eax
call fcn.00404e81
test eax, eax
jne 0x4049bc
push 0xfffffffffffffff0
push ebx
call dword [sym.imp.USER32.dll_GetWindowLongW]
and al, 3
cmp al, 1
je 0x4049bc
lea eax, [ebp - 0x80]
push eax
push 0
push 0x152
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp - 0x7c]
push 0x64
inc eax
imul eax, dword [ebp - 0x1c]
cdq
pop ecx
idiv ecx
add dword [ebp - 0x28], eax
push 0x204
push dword [ebp - 0x28]
push dword [ebp - 0x3c]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 2
push ebx
call dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
cmp ebx, dword [ebp - 0x40]
je 0x4049f1
inc dword [ebp - 0x20]
test ebx, ebx
jne 0x4048ac
mov ecx, dword [ebp + 0xfec]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004068ab
add ebp, 0xff0
leave
ret 0xc