Function at 0x4885d0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4c5020
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e880c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x40], 0
je 0x48866b
lea ebx, [edi + 4]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebx]
jne 0x48866b
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x48866b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov esi, dword [ebx]
push ecx
push edx
call dword [sym.imp.USER32.dll_WindowFromPoint]
cmp eax, esi
push 0
push 0
push 0xf2
push esi
jne 0x488653
call dword [sym.imp.USER32.dll_SendMessageW]
test al, 4
jne 0x48866b
push 1
mov ecx, ebx
call fcn.00487dc0
jmp 0x4888be
call dword [sym.imp.USER32.dll_SendMessageW]
test al, 4
je 0x48866b
push 0
mov ecx, ebx
call fcn.00487dc0
jmp 0x4888be
mov eax, dword [0x4e702c]
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x48]
mov ebx, dword [esi + 0x18]
mov dword [esp + 0x38], 0
mov dword [esp + 0x48], ebx
push ebx
mov byte [esp + 0x3c], 1
call dword [sym.imp.GDI32.dll_SaveDC]
mov eax, dword [edi + 0x38]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x2c], ecx
push 0x104
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
call fcn.0040cbc0
mov edx, dword [edi + 4]
push 0x104
push eax
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [esp + 0x14]
call fcn.0040cc40
mov ebp, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 1
mov dword [ebp - 8], eax
push ebx
mov word [ebp + eax*2], 0
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test al, 4
je 0x488769
cmp dword [edi + 0x2c], 0
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
lea ecx, [edi + 0x2c]
jne 0x488732
push 0xf
call esi
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x50]
call fcn.00481740
push 0x11
call esi
push eax
jmp 0x48885d
mov edx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 0xc], edx
push ecx
lea eax, [esp + 0x5c]
push eax
mov ecx, edi
call fcn.004881b0
push 0x11
call esi
push eax
jmp 0x48885d
test al, 1
je 0x488792
cmp dword [edi + 0x28], 0
lea ecx, [edi + 0x28]
jne 0x4887c6
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x50]
call fcn.00481740
jmp 0x488859
cmp dword [edi + 0x24], 0
lea edx, [edi + 0x24]
jne 0x4887b7
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x50]
call fcn.00481740
jmp 0x488859
cmp dword [edi + 0x44], 0
je 0x4887ee
cmp dword [edi + 0x30], 0
lea ecx, [edi + 0x30]
je 0x4887ee
sub esp, 0x10
mov eax, esp
mov edx, dword [esp + 0x30]
mov dword [eax], edx
mov edx, dword [esp + 0x34]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x38]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 0xc], edx
push ecx
lea eax, [esp + 0x5c]
push eax
jmp 0x488852
test al, 0x10
je 0x48882c
cmp dword [edi + 0x34], 0
lea ecx, [edi + 0x34]
je 0x48882c
sub esp, 0x10
cmp dword [edi + 0x40], 0
mov eax, esp
je 0x4887cb
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [eax], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [edi + 0x28]
push eax
lea ecx, [esp + 0x5c]
push ecx
jmp 0x488852
mov ecx, dword [esp + 0x20]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x3c]
push edx
lea edx, [esp + 0x5c]
mov dword [eax + 0xc], ecx
push edx
mov ecx, edi
call fcn.004881b0
mov edi, dword [edi + 0x3c]
push edi
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [ebp - 8]
push 0x25
lea ecx, [esp + 0x24]
push ecx
push eax
push ebp
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.GDI32.dll_RestoreDC]
test ebx, ebx
je 0x488894
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call esi
test eax, eax
jne 0x488894
push ebx
call esi
lea edx, [ebp - 0xc]
cmp edx, dword [0x4e7028]
mov dword [esp + 0x38], 0xffffffff
je 0x4888be
lea esi, [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4888be
push esi
call fcn.0048c37a
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x10