Function at 0x40300c
Capabilities:
Get graphical window text

Disassembly:
push ebp
push ebx
sub esp, 0x74
mov dword [esp + 0x34], 0x4043d8
mov dword [esp + 0x38], 0x40f438
lea eax, [esp + 0x70]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0x4033d5
mov dword [esp + 0x44], esp
lea edx, [esp + 0x1c]
mov dword [esp], edx
call fcn.0040dc58
cmp byte [0x418170], 0
jne 0x40305e
mov dword [esp], 0x418170
call fcn.00404b08
test eax, eax
jne 0x403338
mov ecx, dword [esp + 0x80]
mov dword [esp], ecx
mov dword [esp + 0x20], 0xffffffff
call sub.USER32.dll_IsWindow
push edx
test eax, eax
jne 0x403098
mov dword [esp + 0x10], 0
lea ebx, [esp + 0x1c]
mov dword [esp], ebx
call fcn.0040dd6c
mov eax, dword [esp + 0x10]
add esp, 0x74
pop ebx
pop ebp
ret
mov eax, dword [esp + 0x80]
mov ebx, dword [esp + 0x84]
mov dword [ebx], eax
mov dword [esp + 4], 0xfffffff0
mov dword [esp], eax
call sub.USER32.dll_GetWindowLongA
sub esp, 8
mov dword [ebx + 0xc], eax
mov dword [esp + 4], 0xffffffec
mov edx, dword [esp + 0x80]
mov dword [esp], edx
call sub.USER32.dll_GetWindowLongA
sub esp, 8
mov dword [ebx + 0x10], eax
mov dword [esp + 4], 4
mov ecx, dword [esp + 0x80]
mov dword [esp], ecx
call sub.USER32.dll_GetWindow
sub esp, 8
mov dword [ebx + 4], eax
mov ebx, dword [esp + 0x80]
mov dword [esp], ebx
call sub.USER32.dll_GetParent
push ebp
mov edx, dword [esp + 0x84]
mov dword [edx + 8], eax
mov edx, dword [0x418178]
cmp ebx, edx
je 0x4033b0
mov ebx, dword [esp + 0x84]
cmp eax, dword [ebx + 4]
je 0x40339c
cmp eax, edx
je 0x40339c
mov edx, dword [esp + 0x84]
mov dword [edx + 0x14], 1
test eax, eax
je 0x403186
mov edx, 1
jmp 0x40315e
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx + 0x14]
inc edx
mov ecx, dword [esp + 0x84]
mov dword [ecx + 0x14], edx
mov dword [esp], eax
mov dword [esp + 0x20], 0xffffffff
call sub.USER32.dll_GetParent
push edx
test eax, eax
je 0x403186
cmp eax, dword [0x418178]
jne 0x403154
lea eax, [esp + 0x60]
mov dword [esp + 4], eax
mov ebx, dword [esp + 0x80]
mov dword [esp], ebx
mov dword [esp + 0x20], 0xffffffff
call sub.USER32.dll_GetWindowRect
sub esp, 8
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x84]
mov dword [eax + 0x34], ecx
mov edx, dword [esp + 0x64]
mov dword [eax + 0x30], edx
mov eax, dword [esp + 0x68]
sub eax, ecx
mov ebx, dword [esp + 0x84]
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x6c]
sub eax, edx
mov dword [ebx + 0x2c], eax
cmp dword [ebx + 0x14], 1
jle 0x403208
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], edx
lea eax, [esp + 0x58]
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.USER32.dll_ScreenToClient
sub esp, 8
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x34], eax
mov eax, dword [esp + 0x5c]
mov dword [ebx + 0x30], eax
mov eax, dword [esp + 0x84]
add eax, 0x18
mov dword [esp + 4], eax
mov eax, dword [esp + 0x80]
mov dword [esp], eax
mov dword [esp + 0x20], 0xffffffff
call sub.USER32.dll_GetWindowThreadProcessId
sub esp, 8
mov edx, dword [esp + 0x84]
mov eax, dword [edx + 0x18]
mov dword [esp], eax
call fcn.00402f9c
mov ecx, dword [esp + 0x84]
mov dword [ecx + 0x20], eax
mov ebx, dword [esp + 0x80]
mov dword [esp], ebx
call sub.USER32.dll_GetWindowTextLengthA
push ebx
test eax, eax
je 0x403320
inc eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0xffffffff
call sub.KERNEL32.dll_GetProcessHeap
mov edx, dword [esp + 0x18]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_HeapAlloc
sub esp, 0xc
mov ecx, dword [esp + 0x84]
mov dword [ecx + 0x1c], eax
test eax, eax
je 0x4033c4
mov ebx, dword [esp + 0x80]
mov dword [esp], ebx
mov dword [esp + 0x20], 0xffffffff
call sub.USER32.dll_GetWindowTextLengthA
push ecx
test eax, eax
je 0x40335c
mov eax, dword [esp + 0x14]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x84]
mov eax, dword [edx + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.USER32.dll_GetWindowTextA
sub esp, 0xc
mov ecx, dword [esp + 0x84]
mov eax, dword [ecx + 0x1c]
mov dl, byte [eax]
test dl, dl
jne 0x403303
jmp 0x403312
inc eax
mov dl, byte [eax]
test dl, dl
je 0x403312
cmp dl, 0xa
jne 0x4032fc
mov byte [eax], 0x5f
inc eax
mov dl, byte [eax]
test dl, dl
jne 0x403303
mov dword [esp + 0x10], 1
jmp 0x403082
mov dword [esp + 0x18], 0x40
mov dword [esp + 0x14], 0x40
jmp 0x40326d
mov dword [esp + 0x20], 1
call sub.USER32.dll_GetDesktopWindow
mov dword [0x418178], eax
mov dword [esp], 0x418170
call fcn.00404d3c
jmp 0x40305e
mov ebx, dword [esp + 0x14]
mov dword [esp + 8], ebx
mov edx, dword [esp + 0x84]
mov eax, dword [edx + 0x1c]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x80]
mov dword [esp], ecx
mov dword [esp + 0x20], 0xffffffff
call sub.USER32.dll_GetClassNameA
sub esp, 0xc
mov dword [esp + 0x10], 1
jmp 0x403082
mov eax, dword [esp + 0x84]
mov dword [eax + 0x14], 1
jmp 0x403186
mov ecx, dword [esp + 0x84]
mov dword [ecx + 0x14], 0
jmp 0x403186
mov dword [esp], 0
call fcn.004013e4