Function at 0x1008383
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 [0x100c090]
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 0x10083cd
push 1
call fcn.01006fd9
push edi
push edi
push 0xc8
push dword [0x100c028]
call esi
push edi
push edi
push 0xb8
push dword [0x100c028]
call esi
push edi
neg eax
push edi
sbb eax, eax
push 0xe
push dword [0x100c028]
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]
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x1008429
cmp dword [ebp - 0xc], edi
je 0x100841d
push edi
push 1
push 0xc8
push dword [0x100c028]
call esi
push dword [ebp - 8]
call ebx
xor eax, eax
jmp 0x10085d9
lea eax, [ebp - 0x38]
push eax
push dword [0x100c020]
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 [0x100c028]
call esi
push edi
push dword [0x100c08c]
push 0xf
push dword [0x100c020]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push edi
push edi
push dword [ebp + 8]
push 0x10015c0
push 0x1002ac4
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp + 8], eax
cmp eax, edi
jne 0x10084bc
push dword [ebp - 8]
call ebx
cmp dword [ebp - 0xc], edi
je 0x10084a5
push edi
push 1
push 0xc8
push dword [0x100c028]
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1008422
push 0xffffffffffffffec
push dword [0x100c028]
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 [0x100c088]
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 0x100851e
push dword [ebp - 8]
call ebx
cmp dword [ebp - 0xc], edi
je 0x1008513
push edi
push 1
push 0xc8
push dword [0x100c028]
call esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x10084a5
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [0x100c028]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp + 8]
push edi
push edi
push 0xbd
push eax
mov dword [0x100c028], eax
call esi
push edi
push edi
push 0xc5
push dword [0x100c028]
mov dword [0x100c098], eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 5
push dword [0x100c020]
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push dword [ebp - 0x18]
push 0xb9
push dword [0x100c028]
call esi
push dword [0x100c028]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [ebp - 8]
call ebx
cmp dword [0x100c02c], edi
je 0x10085d6
lea eax, [ebp - 0x28]
push eax
push dword [0x100c020]
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.01001e38
push 1
call fcn.010015c7
push 5
push dword [0x100c024]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4