Function at 0x1005b61
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 [0x100ae84]
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 0x1005bab
push 1
call fcn.01001bb9
push edi
push edi
push 0xc8
push dword [0x1009818]
call esi
push edi
push edi
push 0xb8
push dword [0x1009818]
call esi
push edi
neg eax
push edi
sbb eax, eax
push 0xe
push dword [0x1009818]
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 0x1005c05
cmp dword [ebp - 0xc], edi
je 0x1005bfb
push edi
push 1
push 0xc8
push dword [0x1009818]
call esi
push dword [ebp - 8]
call ebx
jmp 0x1005cf5
lea eax, [ebp - 0x38]
push eax
push dword [0x1009810]
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 [0x1009818]
call esi
push edi
push dword [0x100ae80]
push 0xf
push dword [0x1009810]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push edi
push edi
push dword [ebp + 8]
push 0x10013a4
push 0x10017a4
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x1005c83
push dword [ebp - 8]
call ebx
cmp dword [ebp - 0xc], edi
je 0x1005ce3
push edi
push 1
push 0xc8
push dword [0x1009818]
call esi
jmp 0x1005ce3
push 0xffffffffffffffec
push dword [0x1009818]
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 [0x100ae7c]
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 0x1005cfc
push dword [ebp - 8]
call ebx
cmp dword [ebp - 0xc], edi
je 0x1005cda
push edi
push 1
push 0xc8
push dword [0x1009818]
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 0x1005db7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push dword [0x1009818]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp + 8]
mov dword [0x1009818], eax
mov eax, dword [0x100ae8c]
cmp eax, edi
je 0x1005d29
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 4]
push edi
push edi
push 0xc5
push dword [0x1009818]
mov dword [0x100ae8c], eax
call dword [sym.imp.USER32.dll_PostMessageW]
push 5
push dword [0x1009810]
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push dword [ebp - 0x18]
push 0xb9
push dword [0x1009818]
call esi
push dword [0x1009818]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [ebp - 8]
call ebx
cmp dword [0x1009820], edi
je 0x1005db4
lea eax, [ebp - 0x28]
push eax
push dword [0x1009810]
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.01001a00
push 1
call fcn.01001c62
push 5
push dword [0x1009814]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4