Function at 0x10017fe70
Capabilities:
Capture screenshot

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x158
mov rbp, rsp
mov qword [rbp + 0x68], rbp
mov qword [rbp + 0x180], rcx
mov qword [rbp + 0x188], rdx
mov qword [rbp + 0x190], r8
mov qword [rbp + 0x198], r9
mov rax, qword [rbp + 0x1a0]
mov qword [rbp + 0x1a0], rax
mov qword [rbp + 0x120], 0
mov rax, qword [rbp + 0x198]
cmp dword [rax + 0x20], 0
je 0x10017fee6
mov rax, qword [rbp + 0x198]
cmp dword [rax + 0x24], 0
je 0x1001807dc
mov rax, qword [rbp + 0x198]
cmp dword [rax + 0x28], 0
je 0x1001807dc
mov rax, qword [rbp + 0x198]
cmp dword [rax + 0x20], 0
jne 0x10017ff15
mov rax, qword [rbp + 0x198]
cmp dword [rax + 4], 0
je 0x1001807dc
mov rax, qword [rbp + 0x198]
cmp dword [rax + 8], 0
je 0x1001807dc
mov rcx, qword [rbp + 0x180]
call fcn.10017f770
mov dword [rbp + 0xc0], 0
cmp qword [rbp + 0x180], 0
je 0x10017ff57
mov rcx, qword [rbp + 0x180]
mov edx, 0x68
lea r8, [rbp + 0xa0]
call sub.gdi32.dll_GetObjectW
cmp eax, 0x20
jge 0x10017ff57
call fcn.100178030
xor ecx, ecx
call sub.user32.dll_GetDC
mov rcx, rax
call fcn.1001781c0
mov qword [rbp + 0x118], rax
mov rcx, qword [rbp + 0x118]
call sub.gdi32.dll_CreateCompatibleDC
mov rcx, rax
call fcn.1001781c0
mov qword [rbp + 0x138], rax
nop
mov rax, qword [rbp + 0x198]
cmp dword [rax + 0x20], 0x28
jae 0x10018002e
mov rax, qword [rbp + 0x198]
mov rcx, qword [rbp + 0x198]
movzx rax, word [rax + 0x10]
or ax, word [rcx + 0x12]
cmp ax, 1
jne 0x10017fff9
mov rax, qword [rbp + 0x198]
mov ecx, dword [rax + 4]
mov rax, qword [rbp + 0x198]
mov edx, dword [rax + 8]
mov r8d, 1
mov r9d, 1
mov qword [rsp + 0x20], 0
call sub.gdi32.dll_CreateBitmap
mov rcx, rax
call fcn.1001781c0
mov qword [rbp + 0x120], rax
jmp 0x1001803a4
mov rcx, qword [rbp + 0x118]
mov rax, qword [rbp + 0x198]
mov edx, dword [rax + 4]
mov rax, qword [rbp + 0x198]
mov r8d, dword [rax + 8]
call sub.gdi32.dll_CreateCompatibleBitmap
mov rcx, rax
call fcn.1001781c0
mov qword [rbp + 0x120], rax
jmp 0x1001803a4
mov ecx, 0x42c
call fcn.1000091b0
mov qword [rbp + 0x148], rax
nop
mov rax, qword [rbp + 0x198]
mov dword [rax + 0x20], 0x28
mov rax, qword [rbp + 0x198]
mov word [rax + 0x2c], 1
mov rax, qword [rbp + 0x198]
cmp word [rax + 0x2e], 0
jne 0x10018009c
mov rcx, qword [rbp + 0x118]
mov edx, 0xc
call sub.gdi32.dll_GetDeviceCaps
mov ebx, eax
mov rcx, qword [rbp + 0x118]
mov edx, 0xe
call sub.gdi32.dll_GetDeviceCaps
mov rcx, qword [rbp + 0x198]
imul bx, ax
mov word [rcx + 0x2e], bx
mov rdi, qword [rbp + 0x148]
mov rax, qword [rbp + 0x198]
lea rsi, [rax + 0x20]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
movsq qword [rdi], qword [rsi]
mov rax, qword [rbp + 0x198]
mov rcx, qword [rbp + 0x198]
mov ecx, dword [rcx + 0x24]
mov dword [rax + 4], ecx
mov rax, qword [rbp + 0x198]
mov eax, dword [rax + 0x28]
movsxd rcx, eax
shr rcx, 0x20
xor eax, ecx
mov rdx, qword [rbp + 0x198]
sub eax, ecx
mov dword [rdx + 8], eax
mov rax, qword [rbp + 0x198]
cmp word [rax + 0x2e], 8
ja 0x10018023b
mov rax, qword [rbp + 0x198]
cmp word [rax + 0x2e], 1
jne 0x100180140
cmp qword [rbp + 0x180], 0
je 0x10018011f
cmp qword [rbp + 0xb8], 0
jne 0x100180140
mov rax, qword [rbp + 0x148]
mov dword [rax + 0x28], 0
mov rax, qword [rbp + 0x148]
mov dword [rax + 0x2c], 0xffffff
jmp 0x100180291
cmp qword [rbp + 0x190], 0
je 0x10018016c
mov rcx, qword [rbp + 0x190]
mov rax, qword [rbp + 0x148]
lea rdx, [rax + 0x28]
mov r8d, 0xff
call fcn.100178e20
jmp 0x100180291
cmp qword [rbp + 0x180], 0
je 0x100180291
mov rcx, qword [rbp + 0x138]
mov rdx, qword [rbp + 0x180]
call sub.gdi32.dll_SelectObject
mov qword [rbp + 0x128], rax
cmp dword [rbp + 0xc0], 0
jbe 0x1001801d2
cmp qword [rbp + 0xb8], 0
je 0x1001801d2
mov rcx, qword [rbp + 0x138]
xor edx, edx
mov r8d, pe_nt_image_headers64
mov rax, qword [rbp + 0x148]
lea r9, [rax + 0x28]
call sub.gdi32.dll_GetDIBColorTable
mov rcx, qword [rbp + 0x198]
mov dword [rcx + 0x40], eax
jmp 0x100180226
mov rax, qword [rbp + 0x198]
mov eax, dword [rax + 0x28]
movsxd rcx, eax
shr rcx, 0x20
xor eax, ecx
mov rdx, qword [rbp + 0x138]
mov r8, qword [rbp + 0x180]
xor r9, r9
sub eax, ecx
mov qword [rsp + 0x20], 0
mov rcx, qword [rbp + 0x148]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x30], 0
mov rcx, rdx
mov rdx, r8
mov r8d, r9d
mov r9d, eax
call sub.gdi32.dll_GetDIBits
mov rcx, qword [rbp + 0x138]
mov rdx, qword [rbp + 0x128]
call sub.gdi32.dll_SelectObject
jmp 0x100180291
mov rax, qword [rbp + 0x198]
movzx rax, word [rax + 0x2e]
cmp ax, 0x10
je 0x100180253
cmp ax, 0x20
jne 0x100180291
mov rax, qword [rbp + 0x198]
mov eax, dword [rax + 0x30]
test eax, 3
je 0x100180291
mov rcx, qword [rbp + 0x198]
call fcn.10017fe20
mov rax, qword [rbp + 0x198]
lea rcx, [rax + 0x48]
mov rax, qword [rbp + 0x148]
lea rdx, [rax + 0x28]
mov r8d, 0xc
call fcn.100009830
mov rcx, qword [rbp + 0x118]
mov rdx, qword [rbp + 0x148]
xor r8, r8
lea r9, [rbp + 0x90]
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
call sub.gdi32.dll_CreateDIBSection
mov rcx, rax
call fcn.1001781c0
mov qword [rbp + 0x120], rax
cmp qword [rbp + 0x90], 0
jne 0x1001802dd
call fcn.100178100
cmp qword [rbp + 0x180], 0
je 0x100180385
mov rax, qword [rbp + 0x198]
mov ecx, dword [rbp + 0xa4]
cmp ecx, dword [rax + 0x24]
jne 0x100180385
mov rax, qword [rbp + 0x198]
mov eax, dword [rax + 0x28]
movsxd rcx, eax
shr rcx, 0x20
xor eax, ecx
sub eax, ecx
cmp dword [rbp + 0xa8], eax
jne 0x100180385
mov rax, qword [rbp + 0x198]
cmp word [rax + 0x2e], 8
jbe 0x100180385
mov rax, qword [rbp + 0x198]
mov eax, dword [rax + 0x28]
movsxd rcx, eax
shr rcx, 0x20
xor eax, ecx
mov rdx, qword [rbp + 0x138]
mov r8, qword [rbp + 0x180]
xor r9, r9
sub eax, ecx
mov rcx, qword [rbp + 0x90]
mov qword [rsp + 0x20], rcx
mov rcx, qword [rbp + 0x148]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x30], 0
mov rcx, rdx
mov rdx, r8
mov r8d, r9d
mov r9d, eax
call sub.gdi32.dll_GetDIBits
jmp 0x100180394
nop
mov rcx, qword [rbp + 0x148]
call fcn.1000091e0
jmp 0x1001803a4
xor ecx, ecx
mov rdx, qword [rbp + 0x68]
call fcn.1001807f0
jmp 0x1001807d1
mov rcx, qword [rbp + 0x120]
call fcn.1001781c0
mov rcx, qword [rbp + 0x138]
mov rdx, qword [rbp + 0x120]
call sub.gdi32.dll_SelectObject
mov rcx, rax
call fcn.1001781c0
mov qword [rbp + 0x128], rax
nop
nop
mov qword [rbp + 0x130], 0
mov qword [rbp + 0x98], 0
cmp qword [rbp + 0x190], 0
je 0x10018041d
mov rcx, qword [rbp + 0x138]
mov rdx, qword [rbp + 0x190]
xor r8, r8
call sub.gdi32.dll_SelectPalette
mov qword [rbp + 0x130], rax
mov rcx, qword [rbp + 0x138]
call sub.gdi32.dll_RealizePalette
nop
cmp qword [rbp + 0x1a0], 0
je 0x100180552
lea rcx, [rbp + 0x58]
xor edx, edx
xor r8, r8
mov rax, qword [rbp + 0x198]
mov r9d, dword [rax + 4]
mov rax, qword [rbp + 0x198]
mov eax, dword [rax + 8]
mov dword [rsp + 0x20], eax
call fcn.10001e6a0
mov rax, qword [rbp + 0x1a0]
mov rcx, qword [rax + 0x80]
call fcn.100175e10
mov rcx, qword [rbp + 0x138]
lea rdx, [rbp + 0x58]
mov r8, rax
call sub.user32.dll_FillRect
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x70]
mov ecx, dword [rax + 0x28]
call fcn.1001742d0
mov rcx, qword [rbp + 0x138]
mov edx, eax
call sub.gdi32.dll_SetTextColor
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x80]
mov qword [rbp + 0x80], rax
mov rax, qword [rbp + 0x80]
mov rax, qword [rax + 0x18]
mov ecx, dword [rax + 0x28]
call fcn.1001742d0
mov rcx, qword [rbp + 0x138]
mov edx, eax
call sub.gdi32.dll_SetBkColor
mov rax, qword [rbp + 0x198]
cmp word [rax + 0x2e], 1
jne 0x100180584
mov rax, qword [rbp + 0x198]
cmp qword [rax + 0x18], 0
je 0x100180584
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x70]
mov ecx, dword [rax + 0x28]
call fcn.1001742d0
mov dword [rbp + 0x88], eax
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x80]
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
mov rax, qword [rax + 0x18]
mov ecx, dword [rax + 0x28]
call fcn.1001742d0
mov dword [rbp + 0x8c], eax
mov rcx, qword [rbp + 0x138]
xor edx, edx
mov r8d, 2
lea r9, [rbp + 0x88]
call sub.gdi32.dll_SetDIBColorTable
jmp 0x100180584
mov rcx, qword [rbp + 0x138]
xor edx, edx
xor r8, r8
mov rax, qword [rbp + 0x198]
mov r9d, dword [rax + 4]
mov rax, qword [rbp + 0x198]
mov eax, dword [rax + 8]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], 0xff0062
call sub.gdi32.dll_PatBlt
cmp qword [rbp + 0x180], 0
je 0x1001806f5
mov rcx, qword [rbp + 0x118]
call sub.gdi32.dll_CreateCompatibleDC
mov rcx, rax
call fcn.1001781c0
mov qword [rbp + 0x140], rax
nop
mov rcx, qword [rbp + 0x140]
mov rdx, qword [rbp + 0x180]
call sub.gdi32.dll_SelectObject
mov rcx, rax
call fcn.1001781c0
mov qword [rbp + 0x108], rax
cmp qword [rbp + 0x188], 0
je 0x100180603
mov rcx, qword [rbp + 0x140]
mov rdx, qword [rbp + 0x188]
xor r8, r8
call sub.gdi32.dll_SelectPalette
mov qword [rbp + 0x98], rax
mov rcx, qword [rbp + 0x140]
call sub.gdi32.dll_RealizePalette
cmp qword [rbp + 0x1a0], 0
je 0x10018065e
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x70]
mov ecx, dword [rax + 0x28]
call fcn.1001742d0
mov rcx, qword [rbp + 0x140]
mov edx, eax
call sub.gdi32.dll_SetTextColor
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x80]
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x70]
mov rax, qword [rax + 0x18]
mov ecx, dword [rax + 0x28]
call fcn.1001742d0
mov rcx, qword [rbp + 0x140]
mov edx, eax
call sub.gdi32.dll_SetBkColor
mov rcx, qword [rbp + 0x138]
xor edx, edx
xor r8, r8
mov rax, qword [rbp + 0x198]
mov r9d, dword [rax + 4]
mov rax, qword [rbp + 0x198]
mov eax, dword [rax + 8]
mov dword [rsp + 0x20], eax
mov rax, qword [rbp + 0x140]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x40], 0xcc0020
call sub.gdi32.dll_BitBlt
cmp qword [rbp + 0x188], 0
je 0x1001806cd
mov rcx, qword [rbp + 0x140]
mov rdx, qword [rbp + 0x98]
or r8d, 0xffffffff
call sub.gdi32.dll_SelectPalette
mov rcx, qword [rbp + 0x140]
mov rdx, qword [rbp + 0x108]
call sub.gdi32.dll_SelectObject
mov rcx, rax
call fcn.1001781c0
nop
mov rcx, qword [rbp + 0x140]
call sub.gdi32.dll_DeleteDC
nop
cmp qword [rbp + 0x190], 0
je 0x100180717
mov rcx, qword [rbp + 0x138]
mov rdx, qword [rbp + 0x130]
or r8d, 0xffffffff
call sub.gdi32.dll_SelectPalette
nop
mov rcx, qword [rbp + 0x138]
mov rdx, qword [rbp + 0x128]
call sub.gdi32.dll_SelectObject
jmp 0x100180746
nop
mov rcx, qword [rbp + 0x138]
call sub.gdi32.dll_DeleteDC
xor ecx, ecx
mov rdx, qword [rbp + 0x118]
call sub.user32.dll_ReleaseDC
cmp qword [rbp + 0x120], 0
je 0x1001807dc
mov rax, qword [rbp + 0x198]
mov eax, dword [rax + 0x28]
mov dword [rbp + 0x114], eax
mov rcx, qword [rbp + 0x120]
mov edx, 0x68
mov r8, qword [rbp + 0x198]
call sub.gdi32.dll_GetObjectW
mov rax, qword [rbp + 0x198]
mov eax, dword [rax + 0x28]
movsxd rcx, eax
shr rcx, 0x20
xor eax, ecx
mov edx, dword [rbp + 0x114]
movsxd r8, edx
shr r8, 0x20
xor edx, r8d
sub eax, ecx
sub edx, r8d
cmp eax, edx
jne 0x1001807dc
mov rax, qword [rbp + 0x198]
mov ecx, dword [rbp + 0x114]
mov dword [rax + 0x28], ecx
jmp 0x1001807dc
xor ecx, ecx
mov rdx, qword [rbp + 0x68]
call fcn.1001808a0
mov rax, qword [rbp + 0x120]
lea rsp, [rbp + 0x158]
pop rbx
pop rsi
pop rdi
pop rbp
ret