Function at 0x40183d
Capabilities:
Get graphical window text

Disassembly:
push 0xf8
mov eax, 0x40852d
call fcn.00407f5f
mov ebx, ecx
xor edi, edi
mov dword [ebp - 4], edi
lea eax, [ebp - 0xdc]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
lea edx, [ebp - 0xdc]
call fcn.00404bc6
mov byte [ebp - 4], 1
lea eax, [ebp - 0xac]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetParent]
mov esi, dword [sym.imp.USER32.dll_ScreenToClient]
lea ecx, [ebp - 0xac]
push ecx
push eax
mov dword [ebp - 0x94], eax
call esi
test eax, eax
je 0x4018be
lea eax, [ebp - 0xa4]
push eax
push dword [ebp - 0x94]
call esi
mov eax, dword [ebp - 0xa8]
mov ecx, dword [ebp - 0xac]
mov esi, dword [sym.imp.GDI32.dll_SetViewportOrgEx]
push edi
neg eax
push eax
neg ecx
push ecx
push dword [ebp - 0x104]
call esi
push edi
push dword [ebp - 0x104]
push 0xf
push dword [ebp - 0x94]
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
push edi
push edi
push dword [ebp - 0x104]
call esi
mov al, byte [ebx + 0x24]
push dword [ebx + 4]
and al, 1
mov byte [ebp - 0x95], al
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x401925
mov eax, dword [ebx + 0x64]
mov dword [ebp - 0x94], eax
mov eax, dword [ebx + 0x38]
jmp 0x40195b
mov eax, dword [ebx + 0x44]
test al, 4
je 0x40193a
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x94], eax
mov eax, dword [ebx + 0x30]
jmp 0x40195b
cmp byte [ebp - 0x95], 0
jne 0x401c60
test al, 2
jne 0x401c68
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x94], eax
mov eax, dword [ebx + 0x2c]
cmp dword [ebx + 0x48], edi
mov dword [ebp - 0x9c], eax
je 0x401b05
cmp dword [ebx + 0x4c], edi
je 0x401b05
cmp dword [ebx + 0x50], edi
je 0x401b05
push dword [ebp - 0x104]
lea esi, [ebp - 0xa4]
call fcn.0040108d
mov byte [ebp - 4], 2
mov esi, dword [ebx + 0x48]
call fcn.0040115f
xor edx, edx
div dword [ebx + 0x54]
mov esi, dword [ebx + 0x48]
mov edi, eax
mov dword [ebp - 0xb8], edi
call fcn.0040117f
mov esi, dword [ebx + 0x4c]
mov dword [ebp - 0xe4], eax
call fcn.0040115f
xor edx, edx
div dword [ebx + 0x54]
mov esi, dword [ebx + 0x4c]
mov dword [ebp - 0xbc], eax
call fcn.0040117f
mov esi, dword [ebx + 0x50]
mov dword [ebp - 0xb0], eax
call fcn.0040115f
xor edx, edx
div dword [ebx + 0x54]
mov esi, dword [ebx + 0x50]
mov dword [ebp - 0xe0], eax
call fcn.0040117f
push dword [ebp - 0xe4]
mov ecx, dword [ebx + 0x48]
and dword [ebp - 0xcc], 0
and dword [ebp - 0xc8], 0
push edi
mov dword [ebp - 0xc4], edi
imul edi, dword [ebp - 0x9c]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xd0]
sub eax, dword [ebp - 0xd8]
push edi
mov dword [ebp - 0xc0], eax
lea eax, [ebp - 0xcc]
lea edi, [ebp - 0xa4]
call fcn.004010b7
mov eax, dword [ebp - 0xd4]
sub eax, dword [ebp - 0xdc]
mov esi, dword [ebp - 0xe0]
mov edx, dword [ebp - 0xb8]
push dword [ebp - 0xb0]
mov ecx, dword [ebp - 0xd0]
sub ecx, dword [ebp - 0xd8]
and dword [ebp - 0xc8], 0
sub eax, esi
sub eax, edx
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xbc]
imul eax, dword [ebp - 0x9c]
push 1
mov dword [ebp - 0xc0], ecx
mov ecx, dword [ebx + 0x4c]
push eax
lea eax, [ebp - 0xcc]
mov dword [ebp - 0xcc], edx
call fcn.004010b7
mov ecx, dword [ebp - 0xd4]
sub ecx, dword [ebp - 0xdc]
push dword [ebp - 0xb4]
mov eax, dword [ebp - 0xd0]
sub eax, dword [ebp - 0xd8]
and dword [ebp - 0xc8], 0
sub ecx, esi
push esi
mov dword [ebp - 0xc4], esi
imul esi, dword [ebp - 0x9c]
mov dword [ebp - 0xcc], ecx
mov ecx, dword [ebx + 0x50]
mov dword [ebp - 0xc0], eax
push esi
lea eax, [ebp - 0xcc]
call fcn.004010b7
mov byte [ebp - 4], 1
push dword [ebp - 0xa4]
call sub.gdiplus.dll_GdipDeleteGraphics
xor edi, edi
push 0x7e
lea eax, [ebp - 0x8e]
push edi
push eax
mov word [ebp - 0x90], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x40
lea eax, [ebp - 0x90]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [ebp - 0x90], di
je 0x401c44
lea esi, [ebp - 0xdc]
lea edi, [ebp - 0xac]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 0x48]
test esi, esi
je 0x401b7f
cmp dword [ebx + 0x50], 0
je 0x401b7f
call fcn.0040115f
xor edx, edx
div dword [ebx + 0x54]
mov esi, dword [ebx + 0x50]
mov edi, eax
call fcn.0040115f
xor edx, edx
div dword [ebx + 0x54]
add dword [ebp - 0xac], edi
sub dword [ebp - 0xa4], eax
test byte [ebx + 0x44], 4
je 0x401b96
push 1
push 1
lea eax, [ebp - 0xac]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov esi, dword [sym.imp.GDI32.dll_SetBkMode]
push 1
push dword [ebp - 0x104]
call esi
push 0x11
mov dword [ebp - 0xbc], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [ebp - 0x104]
call edi
push dword [ebp - 0x94]
mov ebx, dword [sym.imp.GDI32.dll_SetTextColor]
push dword [ebp - 0x104]
mov dword [ebp - 0xb0], eax
call ebx
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0xb4], eax
push 0x25
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x90]
push eax
push dword [ebp - 0xb4]
call dword [sym.imp.USER32.dll_DrawTextW]
push dword [ebp - 0xbc]
push dword [ebp - 0x104]
call esi
push dword [ebp - 0xb0]
push dword [ebp - 0x104]
call edi
push dword [ebp - 0xb8]
push dword [ebp - 0x104]
call ebx
mov byte [ebp - 4], 0
lea eax, [ebp - 0x104]
push eax
call fcn.00404b49
or dword [ebp - 4], 0xffffffff
call fcn.00407fa9
ret 4
test al, 1
je 0x40194f
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebx + 0x34]
jmp 0x40195b