Function at 0x1005640
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
push dword [0x1008854]
not edi
shr edi, 0x14
and edi, 1
call dword [sym.imp.USER32.dll_SetCursor]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebp, ebp
cmp edi, ebp
mov dword [esp + 0x14], eax
jne 0x100567e
push ebp
push ebp
push 0xc8
push dword [0x10087d4]
call esi
push ebp
push ebp
push 0xb8
push dword [0x10087d4]
call esi
mov ebx, eax
push ebp
push ebp
push 0xe
push dword [0x10087d4]
neg ebx
sbb ebx, ebx
neg ebx
call esi
inc eax
mov dword [esp + 0x18], eax
add eax, eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, ebp
mov dword [esp + 0x10], eax
jne 0x10056dc
cmp edi, ebp
jne 0x10056cd
push ebp
push 1
push 0xc8
push dword [0x10087d4]
call esi
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x10057df
lea eax, [esp + 0x20]
push eax
push dword [0x10087d0]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_LocalLock]
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x24], eax
push 0xd
push dword [0x10087d4]
call esi
push ebp
push dword [0x1008c98]
push 0xf
push dword [0x10087d0]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push ebp
push ebp
push dword [esp + 0x54]
push 0x1001398
push 0x10017f8
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp eax, ebp
mov dword [esp + 0x34], eax
jne 0x1005764
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursor]
cmp edi, ebp
jne 0x10057cb
push ebp
push 1
push 0xc8
push dword [0x10087d4]
call esi
jmp 0x10057cb
push 0xffffffffffffffec
push dword [0x10087d4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or ah, 2
push eax
push 0xffffffffffffffec
push dword [esp + 0x3c]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 1
push dword [0x1008bd4]
push 0x30
push dword [esp + 0x40]
call esi
push dword [esp + 0x1c]
push ebp
push 0xc
push dword [esp + 0x40]
call esi
test eax, eax
jne 0x10057e6
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursor]
cmp edi, ebp
jne 0x10057c1
push ebp
push 1
push 0xc8
push dword [0x10087d4]
call esi
push dword [esp + 0x34]
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 0x100587d
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push dword [0x10087d4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0x34]
mov dword [0x10087d4], eax
mov eax, dword [0x100895c]
cmp eax, ebp
je 0x1005816
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
push ebp
push 0xc5
mov dword [0x100895c], edi
push dword [0x10087d4]
call dword [sym.imp.USER32.dll_PostMessageW]
push 5
push dword [0x10087d0]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x1008014], ebp
mov eax, dword [0x100803c]
jne 0x100584f
mov eax, 0x10089c0
push eax
call fcn.01002a91
push ebp
push ebx
push 0xb9
push dword [0x10087d4]
call esi
push dword [0x10087d4]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursor]
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4