Function at 0x1005b41
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetCursor]
push esi
mov esi, dword [ebp + 8]
push edi
push dword [0x100ab84]
shr esi, 0x14
and esi, 1
mov dword [ebp - 0xc], esi
call ebx
xor edi, edi
cmp esi, edi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 8], eax
je 0x1005b8b
push 1
call fcn.01001b99
push edi
push edi
push 0xc8
push dword [0x1009838]
call esi
push edi
push edi
push 0xb8
push dword [0x1009838]
call esi
push edi
neg eax
push edi
sbb eax, eax
push 0xe
push dword [0x1009838]
neg eax
mov dword [ebp - 0x18], eax
call esi
mov dword [ebp - 0x10], eax
lea eax, [eax + eax + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x1005be5
cmp dword [ebp - 0xc], edi
je 0x1005bdb
push edi
push 1
push 0xc8
push dword [0x1009838]
call esi
push dword [ebp - 8]
call ebx
jmp 0x1005cd5
lea eax, [ebp - 0x38]
push eax
push dword [0x1009830]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalLock]
push eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
inc eax
push eax
push 0xd
push dword [0x1009838]
call esi
push edi
push dword [0x100ab80]
push 0xf
push dword [0x1009830]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push edi
push edi
push dword [ebp + 8]
push 0x1001394
push 0x1001794
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x1005c63
push dword [ebp - 8]
call ebx
cmp dword [ebp - 0xc], edi
je 0x1005cc3
push edi
push 1
push 0xc8
push dword [0x1009838]
call esi
jmp 0x1005cc3
push 0xffffffffffffffec
push dword [0x1009838]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x200
push eax
push 0xffffffffffffffec
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
push dword [0x100ab7c]
push 0x30
push dword [ebp + 8]
call esi
push dword [ebp - 0x14]
push edi
push 0xc
push dword [ebp + 8]
call esi
test eax, eax
jne 0x1005cdc
push dword [ebp - 8]
call ebx
cmp dword [ebp - 0xc], edi
je 0x1005cba
push edi
push 1
push 0xc8
push dword [0x1009838]
call esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
jmp 0x1005d97
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push dword [0x1009838]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp + 8]
mov dword [0x1009838], eax
mov eax, dword [0x100ab8c]
cmp eax, edi
je 0x1005d09
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
push edi
push edi
push 0xc5
push dword [0x1009838]
mov dword [0x100ab8c], eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 5
push dword [0x1009830]
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push dword [ebp - 0x18]
push 0xb9
push dword [0x1009838]
call esi
push dword [0x1009838]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [ebp - 8]
call ebx
cmp dword [0x1009840], edi
je 0x1005d94
lea eax, [ebp - 0x28]
push eax
push dword [0x1009830]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
push eax
call fcn.010019e0
push 1
call fcn.01001c42
push 5
push dword [0x1009834]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4