Function at 0x140029670
Capabilities:
Capture screenshot

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x120
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1400ab680]
xor rax, rsp
mov qword [rbp], rax
mov r13d, r8d
mov r14d, edx
mov rsi, rcx
lea rax, vtable.ATL::CImage.0
mov qword [rsp + 0x60], rax
xor r15d, r15d
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], r15
mov word [rbp - 0x78], r15w
mov qword [rbp - 0x74], 0xffffffffffffffff
mov qword [rbp - 0x68], r15
mov dword [rbp - 0x60], r15d
mov qword [rbp - 0x58], r15
call fcn.140001360
mov rbx, rax
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
inc dword [rbx + 0x30]
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
movsd xmm6, qword [rsi + 0x1b0]
mov dword [rsi + 0x14c], r15d
test r14d, r14d
je 0x14002972e
movabs rax, 0x4008000000000000
mov qword [rsi + 0x1b0], rax
lea rdx, [rsi + 0x268]
lea rcx, [rsp + 0x50]
call fcn.140002590
mov r9, qword [rsi]
mov r8, rax
lea rdx, [rbp - 0x48]
mov rcx, rsi
call qword [r9 + 0x340]
mov rdx, qword [rax]
lea rcx, [rsp + 0x60]
call fcn.140023550
mov ebx, eax
mov rdx, qword [rbp - 0x48]
add rdx, 0xffffffffffffffe8
mov ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x140029783
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
test r14d, r14d
je 0x140029790
movsd qword [rsi + 0x1b0], xmm6
test ebx, ebx
js 0x140029a7e
mov dword [rsi + 0x14c], 1
mov qword [rbp - 8], r15
lea r12, vtable.CBitmap.0
mov qword [rbp - 0x10], r12
lea rcx, [rbp - 0x30]
call fcn.14004a188
nop
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
call fcn.14004a5ec
mov rbx, rax
movsd xmm2, qword [rsi + 0x1b0]
divsd xmm2, qword [0x14009b660]
mov edx, dword [rsp + 0x78]
movd xmm0, edx
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm2
cvttsd2si r14d, xmm0
mov dword [rbp - 0x48], r14d
mov r8d, dword [rsp + 0x7c]
movd xmm1, r8d
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm2
cvttsd2si r13d, xmm1
mov dword [rbp - 0x50], r13d
mov rcx, qword [rax + 8]
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rdx, rax
lea rcx, [rbp - 0x10]
call fcn.14004a3f8
mov rcx, qword [rbx + 8]
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rdx, rax
lea rcx, [rbp - 0x30]
call fcn.14004a3a8
lea r15, [rsi + 0x270]
mov rcx, r15
call fcn.14004a4fc
lea rdi, [rsi + 0x280]
mov rcx, rdi
call fcn.14004a4d4
mov r8d, r13d
mov edx, r14d
mov rcx, qword [rbx + 8]
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rdx, rax
mov rcx, r15
call fcn.14004a3f8
mov rcx, qword [rbx + 8]
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rdx, rax
mov rcx, rdi
call fcn.14004a3a8
mov rdx, qword [rbx + 8]
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rdx, qword [rbp - 8]
mov rcx, qword [rbp - 0x28]
call fcn.14004a974
test r15, r15
jne 0x1400298b2
xor edx, edx
jmp 0x1400298b6
mov rdx, qword [r15 + 8]
mov rcx, qword [rsi + 0x288]
call fcn.14004a974
mov rbx, qword [rbp - 0x28]
mov r14d, dword [rsp + 0x7c]
mov r13d, dword [rsp + 0x78]
test rbx, rbx
je 0x14002991a
lea rcx, [rsp + 0x60]
call fcn.140023490
mov dword [rsp + 0x40], 0xcc0020
xor eax, eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], eax
mov rax, qword [rbp - 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
mov r9d, r13d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.GDI32.dll_BitBlt]
lea rcx, [rsp + 0x60]
call fcn.140023a80
mov rcx, qword [rsp + 0x68]
xor r13d, r13d
test rcx, rcx
je 0x14002994d
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x74], 0xffffffffffffffff
mov word [rbp - 0x78], r13w
call qword [sym.imp.GDI32.dll_DeleteObject]
mov r14, qword [rbp - 8]
mov ecx, 0x18
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov rbx, rax
test rax, rax
je 0x140029991
lea rax, vtable.Gdiplus::Bitmap.0
mov qword [rbx], rax
mov qword [rsp + 0x50], r13
lea r8, [rsp + 0x50]
xor edx, edx
mov rcx, r14
call qword [sym.imp.gdiplus.dll_GdipCreateBitmapFromHBITMAP]
mov dword [rbx + 0x10], eax
mov rax, qword [rsp + 0x50]
mov qword [rbx + 8], rax
jmp 0x140029994
mov rbx, r13
test rdi, rdi
mov rcx, r13
je 0x1400299a0
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x50], r13
lea rdx, [rsp + 0x50]
call qword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov edi, eax
mov r14, qword [rsp + 0x50]
mov qword [rbp - 0x40], r14
mov edx, 7
mov rcx, r14
call qword [sym.imp.gdiplus.dll_GdipSetInterpolationMode]
test eax, eax
cmovne edi, eax
test rbx, rbx
je 0x1400299d9
mov rdx, qword [rbx + 8]
jmp 0x1400299dc
mov rdx, r13
mov eax, dword [rbp - 0x50]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp - 0x48]
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.gdiplus.dll_GdipDrawImageRectI]
test eax, eax
cmovne edi, eax
mov dword [rbp - 0x38], edi
test rbx, rbx
je 0x140029a13
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
lea rcx, [rbp - 0x10]
call fcn.14004a4fc
lea rcx, [rbp - 0x30]
call fcn.14004a4d4
lea rcx, [rsi + 0x2f0]
call fcn.14004a4fc
test r15, r15
jne 0x140029a3b
mov rcx, r15
jmp 0x140029a42
mov rcx, qword [r15 + 8]
xor r15d, r15d
call qword [sym.imp.GDI32.dll_CreatePatternBrush]
mov rdx, rax
lea rcx, [rsi + 0x2f0]
call fcn.14004a3f8
nop
mov rcx, r14
call qword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
nop
lea rcx, [rbp - 0x30]
call fcn.14004a230
nop
mov qword [rbp - 0x10], r12
lea rcx, [rbp - 0x10]
call fcn.140026560
jmp 0x140029bde
cmp dword [rsi + 0x140], 0
je 0x140029aaf
lea rcx, [rsi + 0x2f0]
call fcn.14004a4fc
xor ecx, ecx
call qword [sym.imp.GDI32.dll_CreateSolidBrush]
mov rdx, rax
lea rcx, [rsi + 0x2f0]
call fcn.14004a3f8
jmp 0x140029bde
mov qword [rbp - 0x38], r15
lea r12, vtable.CBitmap.0
mov qword [rbp - 0x40], r12
lea rcx, [rbp - 0x30]
call fcn.14004a188
nop
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetDC]
mov rcx, rax
call fcn.14004a5ec
mov r15, rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x10], xmm0
lea rdx, [rbp - 0x10]
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [rbp - 8]
sub edi, dword [rbp - 0x10]
mov ebx, dword [rbp - 4]
sub ebx, dword [rbp - 0xc]
lea r14, [rsi + 0x270]
mov rcx, r14
call fcn.14004a4fc
mov r8d, ebx
mov edx, edi
mov rcx, qword [r15 + 8]
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rdx, rax
mov rcx, r14
call fcn.14004a3f8
lea rcx, [rsi + 0x280]
call fcn.14004a4d4
mov rcx, qword [r15 + 8]
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rdx, rax
lea rcx, [rsi + 0x280]
call fcn.14004a3a8
test r14, r14
jne 0x140029b56
xor edx, edx
jmp 0x140029b5a
mov rdx, qword [r14 + 8]
mov rcx, qword [rsi + 0x288]
call fcn.14004a974
lea rbx, [rsi + 0x2f0]
mov rcx, rbx
call fcn.14004a4fc
mov ecx, 0x202020
mov eax, 0xffffff
test r13d, r13d
cmove ecx, eax
call qword [sym.imp.GDI32.dll_CreateSolidBrush]
mov rdx, rax
mov rcx, rbx
call fcn.14004a3f8
test rbx, rbx
jne 0x140029ba0
xor r8d, r8d
jmp 0x140029ba4
mov r8, qword [rbx + 8]
lea rdx, [rbp - 0x10]
mov rcx, qword [rsi + 0x288]
call qword [sym.imp.USER32.dll_FillRect]
mov rdx, qword [r15 + 8]
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_ReleaseDC]
nop
lea rcx, [rbp - 0x30]
call fcn.14004a230
nop
mov qword [rbp - 0x40], r12
lea rcx, [rbp - 0x40]
call fcn.140026560
xor r15d, r15d
lea rax, vtable.ATL::CImage.0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140029c23
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], 0
mov qword [rbp - 0x80], 0
mov qword [rbp - 0x74], 0xffffffffffffffff
mov word [rbp - 0x78], 0
call qword [sym.imp.GDI32.dll_DeleteObject]
call fcn.140001360
mov rbx, rax
lea rcx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [rbx + 0x30], 1
jne 0x140029c60
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [rbx]
test rcx, rcx
je 0x140029c53
call qword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov qword [rbx], r15
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rbx + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14005df90
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret