Function at 0x1005893
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
lea eax, [ebp - 0x28]
mov ebx, ecx
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetClientRect]
xor eax, eax
lea edi, [ebx + 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
je 0x10058d8
push dword [ebx]
push dword [ebp + 8]
push 0x138
push eax
call esi
test eax, eax
jne 0x10058e0
push 5
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_FillRect]
push 0
push 0
push 0xe
push dword [ebx]
call esi
mov edi, eax
lea eax, [edi + edi + 2]
push eax
call fcn.010046b5
test eax, eax
pop ecx
mov dword [ebp - 0xc], eax
je 0x1005a8a
push eax
inc edi
push edi
push 0xd
push dword [ebx]
call esi
test eax, eax
je 0x1005a81
push 0xfffffffffffffff0
push dword [ebx]
mov dword [ebp - 4], 0x810
call dword [sym.imp.USER32.dll_GetWindowLongW]
test al, 1
je 0x100593d
mov dword [ebp - 4], 0x830
mov dword [ebp - 8], eax
and dword [ebp - 8], 0x10
je 0x100594a
or dword [ebp - 4], 2
test al, 2
je 0x1005954
or word [ebp - 4], 0x4020
test al, 4
je 0x100595e
or word [ebp - 4], 0x8020
lea esi, [ebp - 0x28]
lea edi, [ebx + 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 1
push dword [ebp + 8]
movsd dword es:[edi], dword [esi]
call dword [sym.imp.GDI32.dll_SetBkMode]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x100598e
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x10], eax
mov ecx, ebx
call fcn.01004b3a
mov esi, dword [sym.imp.GDI32.dll_SetTextColor]
push eax
push dword [ebp + 8]
call esi
mov edi, dword [sym.imp.USER32.dll_InflateRect]
push 0xffffffffffffffff
mov dword [ebp - 0x14], eax
push 0xffffffffffffffff
lea eax, [ebx + 0x30]
push eax
call edi
push 0
push dword [ebp - 4]
lea eax, [ebx + 0x30]
push eax
push 0xffffffffffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawTextExW]
push dword [ebp - 0x14]
push dword [ebp + 8]
call esi
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [ebp - 4]
push 0
or eax, 0x400
push eax
lea esi, [ebx + 0x30]
push esi
push 0xffffffffffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawTextExW]
push 1
push 1
push esi
call edi
cmp dword [ebp - 8], 0
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x18], eax
je 0x1005a2d
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], edi
call fcn.0100b4b9
mov ecx, edi
sub ecx, eax
mov dword [esi], ecx
mov dword [ebx + 0x38], edi
jmp 0x1005a43
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0100b4b9
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0100b4b9
test byte [ebx + 0x2c], 2
mov dword [ebx + 0x3c], eax
je 0x1005a6f
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawFocusRect]
cmp dword [ebx + 0x28], 0
je 0x1005a81
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0xc]
call fcn.010046d6
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4