Function at 0x4015c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x418e5d
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x4210a0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [esi + 4]
lea eax, [ebp - 0xb4]
push eax
push ecx
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb0], ebx
mov dword [ebp - 0xac], ebx
mov dword [ebp - 0xa8], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0xb4]
push edx
lea eax, [ebp - 0xe0]
push eax
call fcn.00407700
mov byte [ebp - 4], 1
mov edx, dword [esi + 4]
lea ecx, [ebp - 0xa4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0xa4]
mov edi, eax
push ecx
push edi
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x401675
lea edx, [ebp - 0x9c]
push edx
push edi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0xa4]
push ebx
mov ebx, dword [sym.imp.GDI32.dll_SetViewportOrgEx]
neg eax
push eax
mov eax, dword [ebp - 0xe0]
neg ecx
push ecx
push eax
call ebx
mov ecx, dword [ebp - 0xe0]
push 0
push ecx
push 0xf
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0xe0]
push 0
push 0
push 0
push edx
call ebx
cmp dword [esi + 0x48], 0
je 0x4017f4
mov eax, dword [esi + 4]
mov bl, byte [esi + 0x24]
push eax
and bl, 1
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x4016e1
mov ecx, dword [esi + 0x38]
mov dword [ebp - 0xbc], ecx
jmp 0x40170a
mov eax, dword [esi + 0x44]
test al, 4
je 0x4016f3
mov edx, dword [esi + 0x30]
mov dword [ebp - 0xbc], edx
jmp 0x40170a
test bl, bl
jne 0x4016fd
test al, 2
jne 0x401701
jmp 0x401713
test al, 1
je 0x401713
mov eax, dword [esi + 0x34]
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0xbc], 0xffffffff
jne 0x40171c
mov ecx, dword [esi + 0x2c]
mov dword [ebp - 0xbc], ecx
mov edi, dword [esi + 0x48]
mov eax, dword [edi + 4]
lea edx, [ebp - 0xb8]
push edx
push eax
mov dword [ebp - 0xb8], 0
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x401741
mov dword [edi + 8], eax
mov eax, dword [ebp - 0xb8]
xor edx, edx
div dword [esi + 0x4c]
mov ebx, dword [esi + 0x48]
mov edx, dword [ebx + 4]
lea ecx, [ebp - 0xc0]
push ecx
push edx
mov dword [ebp - 0xc0], 0
mov edi, eax
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x401773
mov dword [ebx + 8], eax
mov ecx, dword [ebp - 0xe0]
lea eax, [ebp - 0xb8]
push eax
push ecx
mov dword [ebp - 0xb8], 0
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov ebx, dword [ebp - 0xb8]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x9c], ebx
mov byte [ebp - 4], 2
mov eax, dword [esi + 0x48]
test eax, eax
je 0x4017b3
mov ecx, dword [eax + 4]
jmp 0x4017b5
xor ecx, ecx
mov eax, dword [ebp - 0xc0]
push 0
push 0
push 0
push 2
push eax
mov edx, edi
imul edx, dword [ebp - 0xbc]
push edi
push 0
push edx
push eax
push edi
push 0
push 0
push ecx
push ebx
call dword [sym.imp.gdiplus.dll_GdipDrawImageRectRectI]
test eax, eax
je 0x4017e9
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 1
push ebx
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
xor eax, eax
push 0x7e
push eax
lea ecx, [ebp - 0x92]
push ecx
mov word [ebp - 0x94], ax
call fcn.0040c8a0
mov eax, dword [esi + 4]
add esp, 0xc
push 0x40
lea edx, [ebp - 0x94]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x94], 0
je 0x40192b
test byte [esi + 0x44], 4
mov ecx, dword [ebp - 0xb4]
mov edx, dword [ebp - 0xb0]
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xa4], ecx
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0xa0], edx
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], ecx
je 0x401877
push 1
push 1
lea edx, [ebp - 0xa4]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0xe0]
mov edi, dword [sym.imp.GDI32.dll_SetBkMode]
push 1
push eax
call edi
push 0x11
mov ebx, eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov ecx, dword [ebp - 0xe0]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [esi + 0x50]
mov edx, dword [ebp - 0xe0]
push esi
mov esi, dword [sym.imp.GDI32.dll_SetTextColor]
push edx
mov dword [ebp - 0xc0], eax
call esi
mov dword [ebp - 0xb8], eax
lea eax, [ebp - 0x94]
lea ecx, [eax + 2]
jmp 0x4018d0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4018d0
sub eax, ecx
push 0x25
lea ecx, [ebp - 0xa4]
push ecx
sar eax, 1
push eax
mov eax, dword [ebp - 0xe0]
lea edx, [ebp - 0x94]
push edx
push eax
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [ebp - 0xe0]
push ebx
push ecx
call edi
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 0xe0]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0xb8]
mov edx, dword [ebp - 0xe0]
push ecx
push edx
call esi
mov byte [ebp - 4], 0
lea eax, [ebp - 0xe0]
push eax
call fcn.00407610
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040bbb3
mov esp, ebp
pop ebp
ret 4