Function at 0x403260
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 8]
push ebx
sub esp, 0x74
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x44], 0x404650
mov dword [ebp - 0x40], 0x416bc8
mov dword [ebp - 0x38], 0x4035a1
mov dword [ebp - 0x34], esp
mov dword [esp], eax
call fcn.0040f050
cmp byte [0x41f150], 0
jne 0x4032ad
mov dword [esp], 0x41f150
call fcn.00404da0
test eax, eax
jne 0x403533
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0x58], 0xffffffff
call sub.USER32.dll_IsWindow
mov dword [ebp - 0x60], 0
sub esp, 4
test eax, eax
jne 0x4032e0
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call fcn.0040f1d0
mov eax, dword [ebp - 0x60]
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov dword [esp + 4], 0xfffffff0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_GetWindowLongA
mov ecx, dword [ebp + 0xc]
sub esp, 8
mov dword [ecx + 0xc], eax
mov dword [esp + 4], 0xffffffec
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_GetWindowLongA
mov ecx, dword [ebp + 0xc]
sub esp, 8
mov dword [ecx + 0x10], eax
mov dword [esp + 4], 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_GetWindow
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
sub esp, 8
mov dword [esp], eax
call sub.USER32.dll_GetParent
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x41f144]
sub esp, 4
cmp dword [ebp + 8], edx
mov dword [ecx + 8], eax
je 0x403580
mov ebx, dword [ebp + 0xc]
cmp eax, dword [ebx + 4]
je 0x403570
cmp eax, edx
je 0x403570
mov ebx, dword [ebp + 0xc]
test eax, eax
mov edx, 1
mov dword [ebx + 0x14], 1
jne 0x403396
jmp 0x4033b5
cmp eax, dword [0x41f144]
je 0x4033b5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x14]
mov ecx, dword [ebp + 0xc]
add edx, 1
mov dword [ecx + 0x14], edx
mov dword [esp], eax
mov dword [ebp - 0x58], 0xffffffff
call sub.USER32.dll_GetParent
sub esp, 4
test eax, eax
jne 0x403388
lea eax, [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0x58], 0xffffffff
call sub.USER32.dll_GetWindowRect
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp + 0xc]
mov dword [eax + 0x34], ecx
mov dword [eax + 0x30], edx
mov eax, dword [ebp - 0x10]
sub esp, 8
sub eax, ecx
mov dword [ebx + 0x28], eax
mov eax, dword [ebp - 0xc]
sub eax, edx
cmp dword [ebx + 0x14], 1
mov dword [ebx + 0x2c], eax
jle 0x403426
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [esp], eax
call sub.USER32.dll_ScreenToClient
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp + 0xc]
mov dword [ebx + 0x34], eax
mov eax, dword [ebp - 0x1c]
sub esp, 8
mov dword [ebx + 0x30], eax
mov eax, dword [ebp + 0xc]
add eax, 0x18
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0x58], 0xffffffff
call sub.USER32.dll_GetWindowThreadProcessId
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x18]
sub esp, 8
mov dword [esp], eax
call fcn.004031e0
mov ebx, dword [ebp + 0xc]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.USER32.dll_GetWindowTextLengthA
sub esp, 4
test eax, eax
je 0x403520
add eax, 1
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x58], 0xffffffff
call sub.KERNEL32.dll_GetProcessHeap
mov ebx, dword [ebp - 0x60]
mov dword [esp + 4], 0
mov dword [esp + 8], ebx
mov dword [esp], eax
call sub.KERNEL32.dll_HeapAlloc
mov ebx, dword [ebp + 0xc]
sub esp, 0xc
test eax, eax
mov dword [ebx + 0x1c], eax
je 0x403590
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [ebp - 0x58], 0xffffffff
call sub.USER32.dll_GetWindowTextLengthA
sub esp, 4
test eax, eax
mov eax, dword [ebp - 0x64]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
je 0x403555
call sub.USER32.dll_GetWindowTextA
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
sub esp, 0xc
movzx edx, byte [eax]
test dl, dl
jne 0x4034fd
jmp 0x40350f
add eax, 1
movzx edx, byte [eax]
test dl, dl
je 0x40350f
cmp dl, 0xa
jne 0x4034f3
mov byte [eax], 0x5f
add eax, 1
movzx edx, byte [eax]
test dl, dl
jne 0x4034fd
mov dword [ebp - 0x60], 1
jmp 0x4032cd
mov dword [ebp - 0x60], 0x40
mov dword [ebp - 0x64], 0x40
jmp 0x403478
mov dword [ebp - 0x58], 1
call sub.USER32.dll_GetDesktopWindow
mov dword [esp], 0x41f150
mov dword [0x41f144], eax
call fcn.00405070
jmp 0x4032ad
mov dword [ebp - 0x58], 0xffffffff
call sub.USER32.dll_GetClassNameA
mov dword [ebp - 0x60], 1
sub esp, 0xc
jmp 0x4032cd
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x14], 1
jmp 0x4033b5
mov dword [ecx + 0x14], 0
jmp 0x4033b5
mov dword [esp], 0
call fcn.00401410