Function at 0x1005626
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x30
push ebx
mov ebx, dword [esp + 0x38]
push ebp
push esi
push edi
push dword [0x1009b84]
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 0x1005669
push 1
call fcn.01001b05
push edi
push edi
push 0xc8
push dword [0x1008818]
call esi
push edi
push edi
push 0xb8
push dword [0x1008818]
call esi
push edi
push edi
mov ebp, eax
neg ebp
push 0xe
push dword [0x1008818]
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 0x10056c8
cmp ebx, edi
je 0x10056b9
push edi
push 1
push 0xc8
push dword [0x1008818]
call esi
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursor]
jmp 0x10057cf
lea eax, [esp + 0x30]
push eax
push dword [0x1008810]
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 [0x1008818]
call esi
push edi
push dword [0x1009b80]
push 0xf
push dword [0x1008810]
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push edi
push edi
push dword [esp + 0x64]
push 0x1001384
push 0x1001784
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp eax, edi
mov dword [esp + 0x44], eax
jne 0x1005752
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursor]
cmp ebx, edi
je 0x10057bb
push edi
push 1
push 0xc8
push dword [0x1008818]
call esi
jmp 0x10057bb
push 0xffffffffffffffec
push dword [0x1008818]
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 [0x1009b7c]
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 0x10057d6
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursor]
cmp ebx, edi
je 0x10057b1
push edi
push 1
push 0xc8
push dword [0x1008818]
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 0x1005898
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
push dword [0x1008818]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [esp + 0x44]
mov dword [0x1008818], eax
mov eax, dword [0x1009b8c]
cmp eax, edi
je 0x1005806
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
push edi
push 0xc5
push dword [0x1008818]
mov dword [0x1009b8c], ebx
call dword [sym.imp.USER32.dll_PostMessageW]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [0x1008810]
call ebx
push edi
push ebp
push 0xb9
push dword [0x1008818]
call esi
push dword [0x1008818]
call dword [sym.imp.USER32.dll_SetFocus]
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [0x1008820], edi
je 0x1005895
lea eax, [esp + 0x20]
push eax
push dword [0x1008810]
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.0100195b
push 1
call fcn.01001b9a
push 5
push dword [0x1008814]
call ebx
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4