Function at 0x180009950
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rsi, rcx
mov rcx, qword [0x18010e448]
test rcx, rcx
je 0x180009ca1
cmp qword [0x18010e410], 0
je 0x180009ca1
lea r8, [rbp + 0xa0]
mov ebx, 0x20
mov edx, ebx
call qword [sym.imp.GDI32.dll_GetObjectW]
lea r8, [rbp + 0xd0]
mov edx, ebx
mov rcx, qword [0x18010e410]
call qword [sym.imp.GDI32.dll_GetObjectW]
mov edi, dword [rbp + 0xa4]
mov r13d, dword [rbp + 0xa8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov r14, rax
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r12, rax
mov r8d, r13d
mov edx, edi
mov rcx, r14
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov r15, rax
mov rdx, rax
mov rcx, r12
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, r14
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rbx, rax
mov qword [rbp + 0x170], rax
mov rcx, r14
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov qword [rbp + 0x168], rax
mov rdx, qword [0x18010e448]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
mov rdx, qword [0x18010e410]
mov rcx, qword [rbp + 0x168]
call qword [sym.imp.GDI32.dll_SelectObject]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
mov ebx, eax
mov dword [rsp + 0x40], 0xcc0020
xor eax, eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0x170]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
mov r9d, ebx
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [rbp + 0xd4]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x40], 0xcc0020
xor ecx, ecx
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], eax
mov rax, qword [rbp + 0x168]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
mov r9d, ebx
xor r8d, r8d
mov edx, ebx
mov rcx, r12
call qword [sym.imp.GDI32.dll_BitBlt]
mov dword [rsp + 0x60], 0x28
mov dword [rsp + 0x64], edi
mov eax, r13d
neg eax
mov dword [rsp + 0x68], eax
mov qword [rsp + 0x6c], 0x200001
xor ecx, ecx
mov r8d, 0x20
mov qword [rsp + 0x74], rcx
mov qword [rsp + 0x7c], rcx
mov dword [rbp - 0x7c], ecx
mov eax, 0x4d42
mov word [rsp + 0x50], ax
mov eax, r13d
imul eax, edi
lea ebx, [rax*4]
lea eax, [rbx + 0x36]
mov dword [rsp + 0x52], eax
mov dword [rsp + 0x56], ecx
mov dword [rsp + 0x5a], 0x36
cmp qword [rsi + 0x18], 7
jbe 0x180009b25
mov rsi, qword [rsi]
mov rdx, rsi
lea rcx, [rbp - 0x70]
call fcn.180011d60
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rsi, [0x180126618]
mov qword [rbp + rcx - 0x70], rsi
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x74], edx
mov r8d, 0xe
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x70]
call fcn.1800120e0
mov r8d, 0x28
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x70]
call fcn.1800120e0
movsxd rbx, ebx
mov rcx, rbx
call fcn.180067ac4
mov rdi, rax
xor ecx, ecx
mov dword [rsp + 0x30], ecx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
mov r9d, r13d
xor r8d, r8d
mov rdx, r15
mov rcx, r14
call qword [sym.imp.GDI32.dll_GetDIBits]
mov r8, rbx
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.1800120e0
mov rcx, rdi
call fcn.180067290
lea rcx, [rbp - 0x68]
call fcn.180015cd0
test rax, rax
jne 0x180009c09
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov eax, 6
mov edx, 2
cmp qword [rbp + rcx - 0x28], 0
cmovne eax, edx
or eax, dword [rbp + rcx - 0x60]
and eax, 0x17
mov dword [rbp + rcx - 0x60], eax
and eax, dword [rbp + rcx - 0x5c]
jne 0x180009cbc
mov rcx, r15
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rcx, qword [rbp + 0x170]
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, qword [rbp + 0x168]
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, r12
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], rsi
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x68]
call fcn.180011ae0
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [0x18011a868]
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx - 0x74], edx
lea rax, [0x18011a848]
mov qword [rbp + 0x38], rax
lea rcx, [rbp + 0x38]
call fcn.180065fc4
nop
mov rbx, qword [rsp + 0x260]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test al, 4
je 0x180009cc9
lea rbx, [0x1801272a0]
jmp 0x180009cdd
test dl, al
lea rbx, [0x1801272b8]
lea rax, [0x1801272d0]
cmove rbx, rax
mov edx, 1
lea rcx, [rbp + 0xc0]
call fcn.180001950
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 0xf0]
call fcn.180002a40
lea rdx, [0x18012f858]
lea rcx, [rbp + 0xf0]
call fcn.1800694a0
int3