Function at 0x612020
Capabilities:
Capture screenshot
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x691349
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x745694]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x54], esi
mov edx, dword [ebp + 0xc]
mov edi, dword [edx + 0x18]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x74], 0
mov al, byte [esi + 0x39]
mov byte [ebp - 4], 1
test al, 4
je 0x612091
test byte [edx + 0x10], 1
jne 0x612086
test al, 8
jne 0x612086
mov al, byte [esi + 0x38]
xor cl, cl
and al, 0xfb
or al, cl
jmp 0x61209f
mov al, byte [esi + 0x38]
mov cl, 4
and al, 0xfb
or al, cl
jmp 0x61209f
mov al, byte [edx + 0x10]
shl al, 2
xor al, byte [esi + 0x38]
and al, 4
xor al, byte [esi + 0x38]
mov byte [esi + 0x38], al
mov ecx, dword [edx + 0x10]
shr ecx, 4
shl cl, 3
xor cl, al
and cl, 8
xor cl, al
mov byte [esi + 0x38], cl
mov eax, dword [edx + 0x10]
shr eax, 2
shl al, 4
xor al, cl
and al, 0x10
xor al, cl
mov byte [esi + 0x38], al
lea eax, [edx + 0x1c]
push eax
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov cl, byte [esi + 0x38]
test cl, 0x40
jne 0x612126
test cl, 8
jne 0x6120f4
test byte [esi + 0x39], 2
je 0x612126
push 0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
lea eax, [ebp - 0x20]
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_FrameRect]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
test esi, esi
je 0x612123
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [ebp - 0x54]
test byte [esi + 0x38], 2
je 0x612231
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [ebp - 0x54]
xorps xmm0, xmm0
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x30]
push eax
movups xmmword [ebp - 0x30], xmm0
push dword [ecx + 4]
movups xmmword [ebp - 0x50], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x54]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x50]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x61218a
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x54]
mov edx, dword [eax + 0x3c]
test edx, edx
jne 0x6121ff
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp - 0x54]
mov dword [ecx + 0x3c], eax
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
push ecx
push eax
push dword [ebp - 0x60]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [ebp - 0x54]
push eax
mov dword [ecx + 0x40], eax
push dword [ecx + 0x3c]
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x2c]
push 0xcc0020
push dword [ebp - 0x4c]
mov dword [edx + 0x44], eax
push dword [ebp - 0x50]
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x60]
sub eax, dword [ebp - 0x30]
push ecx
push eax
push 0
push 0
push dword [edx + 0x3c]
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 0x54]
mov edx, dword [eax + 0x3c]
mov ecx, dword [ebp - 0x24]
sub ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
push 0xcc0020
push 0
push 0
push edx
push ecx
push eax
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp - 0x60]
push esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov esi, dword [ebp - 0x54]
jmp 0x61223d
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
push ecx
push edi
mov ecx, esi
call dword [eax + 0x10]
mov cl, byte [esi + 0x38]
mov eax, dword [sym.imp.USER32.dll_GetSysColor]
test cl, 4
je 0x612296
test cl, 0x40
je 0x612269
test cl, 0x20
je 0x612451
mov eax, dword [esi]
lea ecx, [ebp - 0x20]
push ecx
push edi
mov ecx, esi
call dword [eax + 0x14]
jmp 0x612451
push 0x10
call eax
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
lea eax, [ebp - 0x20]
push esi
push eax
push edi
call dword [sym.imp.USER32.dll_FrameRect]
test esi, esi
je 0x612451
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x612451
push 0x14
call eax
mov esi, dword [sym.imp.GDI32.dll_CreatePen]
push eax
push 0
push 0
call esi
push 0x16
mov dword [ebp - 0x58], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 0
push 0
call esi
push 0x10
mov dword [ebp - 0x64], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 0
push 0
call esi
push 0x15
mov dword [ebp - 0x70], eax
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 0
push 0
call esi
mov esi, eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x60], esi
mov al, byte [eax + 0x38]
test al, 0x40
je 0x61231a
and al, 0x21
cmp al, 0x21
jne 0x61241e
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 0x10
call edi
push eax
push 0x14
call edi
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00612d60
mov edi, dword [ebp - 0x6c]
jmp 0x61241e
push dword [ebp - 0x58]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, eax
mov eax, dword [ebp - 0x14]
push 0
dec eax
mov dword [ebp - 0x74], esi
push eax
push dword [ebp - 0x20]
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push edi
call dword [sym.imp.GDI32.dll_LineTo]
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.GDI32.dll_LineTo]
push dword [ebp - 0x64]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
dec ecx
push 0
push ecx
inc eax
push eax
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
inc ecx
push ecx
inc eax
push eax
push edi
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [ebp - 0x1c]
inc eax
push eax
push dword [ebp - 0x18]
push edi
call dword [sym.imp.GDI32.dll_LineTo]
push dword [ebp - 0x60]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp - 0x14]
push 0
dec eax
push eax
push dword [ebp - 0x20]
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
dec ecx
push ecx
dec eax
push eax
push edi
call dword [sym.imp.GDI32.dll_LineTo]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
dec ecx
push ecx
dec eax
push eax
push edi
call dword [sym.imp.GDI32.dll_LineTo]
push dword [ebp - 0x70]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
add ecx, 0xfffffffe
push 0
inc eax
push ecx
push eax
push edi
call dword [sym.imp.GDI32.dll_MoveToEx]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
add ecx, 0xfffffffe
push ecx
add eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.GDI32.dll_LineTo]
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x1c]
add eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.GDI32.dll_LineTo]
push esi
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [ebp - 0x60]
test esi, esi
je 0x61242d
push esi
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
jmp 0x612433
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x61243d
push eax
call esi
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x612447
push eax
call esi
mov eax, dword [ebp - 0x58]
test eax, eax
je 0x612451
push eax
call esi
call fcn.005b3a70
mov ecx, eax
test ecx, ecx
je 0x61279f
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x58], esi
mov eax, dword [ebp - 0x54]
mov byte [ebp - 4], 2
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 0x64], eax
test eax, eax
js 0x612795
mov ecx, dword [esi - 8]
mov edx, 1
sub edx, dword [esi - 4]
sub ecx, eax
or ecx, edx
jge 0x6124a8
push eax
lea ecx, [ebp - 0x58]
call fcn.005f9650
mov esi, dword [ebp - 0x58]
mov eax, dword [ebp - 0x64]
cmp eax, dword [esi - 8]
jg 0x612795
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
inc eax
push eax
mov eax, dword [ebp - 0x54]
push esi
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push dword [ebp - 0x68]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [ebp - 0x54]
cmp dword [ecx + 0x260], 0
je 0x6125a5
mov dl, byte [ecx + 0x38]
mov al, dl
mov byte [ebp - 0x59], dl
shr al, 2
and al, 1
test byte [ecx + 0x39], 4
mov byte [ebp - 0x58], al
je 0x61250d
xor edx, edx
test al, al
jne 0x612525
cmp dword [ecx + 0x26c], edx
setne dl
jmp 0x612525
test dl, 1
jne 0x612523
test al, al
jne 0x612523
xor edx, edx
cmp dword [ecx + 0x26c], edx
setne dl
jmp 0x612525
xor edx, edx
cmp dword [esi - 0xc], 0
lea eax, [edx + edx*2]
lea eax, [ecx + eax*4]
xorps xmm0, xmm0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x64], eax
push ecx
push dword [eax + 0x268]
mov ecx, dword [ebp - 0x54]
lea eax, [edx + edx*2]
movups xmmword [ebp - 0x30], xmm0
push dword [ecx + eax*4 + 0x264]
lea eax, [ebp - 0x40]
push dword [ebp - 0x58]
push eax
push dword [ebp - 0x68]
setne al
movzx eax, al
push eax
call fcn.00611aa0
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
sub ecx, edx
mov dword [ebp - 0x58], eax
movzx eax, byte [ebp - 0x59]
and eax, 0x10
add eax, eax
or eax, 3
push eax
push dword [ebp - 0x58]
mov eax, dword [ebp - 0x64]
push ecx
push dword [ebp - 0x2c]
push edx
push 0
push dword [eax + 0x260]
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_DrawStateW]
mov ecx, dword [ebp - 0x54]
cmp dword [ecx + 0x278], 0
je 0x6125f2
push 0xffffff
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov edx, dword [ebp - 0x54]
mov cl, byte [edx + 0x38]
mov al, cl
shr cl, 2
shr al, 4
and cl, 1
and al, 1
cmp dword [esi - 0xc], 0
movzx eax, al
push eax
movzx eax, cl
mov ecx, edx
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x68]
setne al
movzx eax, al
push eax
push edi
call fcn.00611880
mov ecx, dword [ebp - 0x54]
cmp dword [esi - 0xc], 0
je 0x612729
test byte [ecx + 0x38], 4
je 0x612616
test byte [ecx + 0x39], 4
jne 0x612616
push 1
push 1
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
movups xmm0, xmmword [ebp - 0x40]
push 0x411
lea eax, [ebp - 0x40]
push eax
push 0xffffffffffffffff
push esi
push edi
movups xmmword [ebp - 0x50], xmm0
call dword [sym.imp.USER32.dll_DrawTextW]
movups xmm1, xmmword [ebp - 0x50]
movaps xmm0, xmm1
psrldq xmm0, 0xc
movd eax, xmm0
movaps xmm0, xmm1
psrldq xmm0, 4
movd ecx, xmm0
movaps xmm0, xmm1
psrldq xmm0, 8
sub eax, ecx
movd ecx, xmm1
sub eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x3c]
cdq
sub eax, edx
movd edx, xmm0
sar eax, 1
mov dword [ebp - 0x58], eax
sub edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
sub edx, ecx
push dword [ebp - 0x58]
add eax, 0xffffffec
add eax, edx
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [ebp - 0x54]
mov cl, byte [eax + 0x38]
test cl, 0x10
je 0x6126ea
push 1
push 1
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0x14
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x11
lea eax, [ebp - 0x40]
push eax
push 0xffffffffffffffff
push esi
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
push 0x10
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
jmp 0x612719
test cl, 5
jne 0x612701
push dword [eax + 0x54]
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [ebp - 0x54]
push dword [eax + 0x50]
jmp 0x612711
push dword [eax + 0x4c]
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov eax, dword [ebp - 0x54]
push dword [eax + 0x48]
mov eax, dword [sym.imp.GDI32.dll_SetBkColor]
push edi
call eax
push 0x11
lea eax, [ebp - 0x40]
push eax
push 0xffffffffffffffff
push esi
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [ebp - 0x54]
mov al, byte [eax + 0x38]
test al, 0x40
je 0x612737
test al, al
jns 0x61275c
test al, 8
je 0x61275c
movups xmm0, xmmword [ebp - 0x20]
push 0xfffffffffffffffd
push 0xfffffffffffffffd
lea eax, [ebp - 0x50]
push eax
movups xmmword [ebp - 0x50], xmm0
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [ebp - 0x50]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov byte [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x612778
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0065cc3a
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.005d5140
push 0x80004005
call fcn.005d5140
int3