Function at 0x1007834
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x30
push ebx
mov ebx, dword [esp + 0x38]
push ebp
push esi
push edi
push dword [0x100cbe4]
shr ebx, 0x14
and ebx, 1
call dword [sym.imp.USER32.dll_SetCursor]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
cmp ebx, edi
mov dword [esp + 0x14], eax
je 0x1007877
push 1
call fcn.01003bec
push edi
push edi
push 0xc8
push dword [0x100baa0]
call esi
push edi
push edi
push 0xb8
push dword [0x100baa0]
call esi
push edi
push edi
mov ebp, eax
neg ebp
push 0xe
push dword [0x100baa0]
sbb ebp, ebp
neg ebp
call esi
mov dword [esp + 0x18], eax
lea eax, [eax + eax + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x10078d6
cmp ebx, edi
je 0x10078c7
push edi
push 1
push 0xc8
push dword [0x100baa0]
call esi
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x10079dd
lea eax, [esp + 0x30]
push eax
push dword [0x100ba98]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalLock]
push eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
inc eax
push eax
push 0xd
push dword [0x100baa0]
call esi
push edi
push dword [0x100cbe0]
push 0xf
push dword [0x100ba98]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push edi
push edi
push dword [esp + 0x64]
push 0x100135c
push 0x100171c
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp eax, edi
mov dword [esp + 0x44], eax
jne 0x1007960
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursor]
cmp ebx, edi
je 0x10079c9
push edi
push 1
push 0xc8
push dword [0x100baa0]
call esi
jmp 0x10079c9
push 0xffffffffffffffec
push dword [0x100baa0]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x200
push eax
push 0xffffffffffffffec
push dword [esp + 0x4c]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
push dword [0x100cbdc]
push 0x30
push dword [esp + 0x50]
call esi
push dword [esp + 0x1c]
push edi
push 0xc
push dword [esp + 0x50]
call esi
test eax, eax
jne 0x10079e4
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursor]
cmp ebx, edi
je 0x10079bf
push edi
push 1
push 0xc8
push dword [0x100baa0]
call esi
push dword [esp + 0x44]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x1007aa6
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push dword [0x100baa0]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0x44]
mov dword [0x100baa0], eax
mov eax, dword [0x100cbec]
cmp eax, edi
je 0x1007a14
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
push edi
push 0xc5
push dword [0x100baa0]
mov dword [0x100cbec], ebx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [0x100ba98]
call ebx
push edi
push ebp
push 0xb9
push dword [0x100baa0]
call esi
push dword [0x100baa0]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [0x100baa8], edi
je 0x1007aa3
lea eax, [esp + 0x20]
push eax
push dword [0x100ba98]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push eax
call fcn.01003bad
push 1
call fcn.0100407d
push 5
push dword [0x100ba9c]
call ebx
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4