Function at 0x2bbeed4b0
Capabilities:
Capture screenshot

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
mov rdi, qword [0x2bc041fd0]
mov rax, qword [rsp + 0x108]
mov r13d, dword [rsp + 0x100]
mov qword [rsp + 0x50], rax
mov rbp, rcx
mov rbx, rdx
mov r14, r8
mov rax, qword [rsp + 0x110]
mov esi, r9d
mov edx, 0x10
lea rcx, [0x2bc0630c0]
mov qword [rsp + 0x58], rax
mov rax, qword [rdi]
call qword [rax + 0x998]
mov r15, rax
cmp esi, dword [rax + 8]
jg 0x2bbeed8c0
mov r12, qword [rax]
movsx r10d, word [r14]
movsx ecx, word [r14 + 2]
test r13d, r13d
jne 0x2bbeed7b8
test esi, esi
jle 0x2bbeed968
movsxd r13, esi
mov r11d, ecx
mov r9d, r10d
xor eax, eax
shl r13, 2
nop dword [rax]
movsx r8d, word [r14 + rax]
movsx edx, word [r14 + rax + 2]
cmp r10d, r8d
mov dword [r12 + rax*2], r8d
cmovg r10d, r8d
cmp r9d, r8d
mov dword [r12 + rax*2 + 4], edx
cmovl r9d, r8d
cmp ecx, edx
cmovg ecx, edx
cmp r11d, edx
cmovl r11d, edx
add rax, 4
cmp rax, r13
jne 0x2bbeed548
mov eax, dword [rbx + 0x20]
sub eax, 2
cmp eax, 1
ja 0x2bbeed83d
mov r13, qword [rbx + 0x38]
test r13, r13
je 0x2bbeed83d
mov r14d, dword [r13]
cmp r14d, 1
jne 0x2bbeed98b
mov eax, dword [rbx + 0x10]
mov edi, r10d
mov r8d, dword [rbx + 0x44]
mov edx, dword [rbx + 0x40]
sub edi, eax
sub ecx, eax
add r9d, eax
add eax, r11d
sub r9d, edi
sub eax, ecx
mov dword [rsp + 0x68], edi
mov dword [rsp + 0x60], r9d
xor r9d, r9d
mov dword [rsp + 0x6c], ecx
mov rcx, rbp
mov dword [rsp + 0x64], eax
call qword [sym.imp.GDI32.dll_SetBrushOrgEx]
mov rcx, qword [r13 + 8]
call qword [sym.imp.GDI32.dll_CreatePatternBrush]
mov rdi, qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rbp
mov rdx, rax
call rdi
mov rcx, rbp
mov r15, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r8d, dword [rsp + 0x64]
mov edx, dword [rsp + 0x60]
mov rcx, rbp
mov r13, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov rcx, r13
mov rdx, rax
call rdi
mov rdx, qword [rsp + 0x50]
mov rcx, r13
mov qword [rsp + 0x78], rax
call rdi
mov ecx, dword [rsp + 0x6c]
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x80], rax
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x38], ecx
mov r9d, dword [rsp + 0x60]
mov rcx, r13
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x20], eax
mov rax, qword [sym.imp.GDI32.dll_BitBlt]
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x70], rax
call rax
test esi, esi
jle 0x2bbeed6b6
movd xmm1, dword [rsp + 0x68]
movd xmm2, dword [rsp + 0x6c]
mov edx, esi
mov rax, r12
lea rdx, [r12 + rdx*8]
punpckldq xmm1, xmm2
nop dword [rax + rax]
movq xmm0, qword [rax]
add rax, 8
psubd xmm0, xmm1
movq qword [rax - 8], xmm0
cmp rax, rdx
jne 0x2bbeed6a0
mov eax, dword [rbx + 0x24]
mov rcx, r13
test eax, eax
mov eax, 2
cmovne r14d, eax
mov edx, r14d
call qword [sym.imp.GDI32.dll_SetPolyFillMode]
mov ecx, dword [rbx + 8]
mov r14, qword [sym.imp.GDI32.dll_CreateSolidBrush]
call r14
mov rcx, r13
mov rdx, rax
call rdi
mov r9, qword [rsp + 0x58]
mov r8d, esi
mov rdx, r12
mov rcx, r13
mov qword [rsp + 0x88], rax
call sym.MakeAndStrokePath
mov eax, dword [rsp + 0x64]
mov edx, dword [rsp + 0x68]
mov rcx, rbp
mov dword [rsp + 0x40], 0xca0749
mov r9d, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r8d, dword [rsp + 0x6c]
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x70]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], r13
call rax
mov rax, qword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [rbx + 0x20], 3
mov qword [rsp + 0x50], rax
je 0x2bbeed8f8
mov rdx, qword [rsp + 0x80]
mov rcx, r13
call rdi
mov rdx, qword [rsp + 0x88]
mov rcx, r13
call rdi
mov rsi, qword [rsp + 0x50]
mov rcx, rax
call rsi
mov rdx, qword [rsp + 0x78]
mov rcx, r13
call rdi
mov rcx, rax
call rsi
mov rcx, r13
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rcx, rbp
mov rdx, r15
call rdi
mov rcx, rax
mov rax, qword [rsp + 0x50]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp rax
mov dword [r12], r10d
mov dword [r12 + 4], ecx
cmp esi, 1
jle 0x2bbeed968
lea eax, [rsi - 2]
lea r8, [r14 + 6]
mov edx, r10d
mov r11d, ecx
lea r15, [r14 + rax*4 + 0xa]
lea r13, [r12 + 0xc]
mov eax, ecx
mov r9d, r10d
nop word cs:[rax + rax]
movsx r14d, word [r8 - 2]
add edx, r14d
movsx r14d, word [r8]
mov dword [r13 - 4], edx
add eax, r14d
cmp r10d, edx
cmovg r10d, edx
cmp r9d, edx
mov dword [r13], eax
cmovl r9d, edx
cmp ecx, eax
cmovg ecx, eax
cmp r11d, eax
cmovl r11d, eax
add r8, 4
add r13, 8
cmp r8, r15
jne 0x2bbeed7f0
mov eax, dword [rbx + 0x20]
sub eax, 2
cmp eax, 1
jbe 0x2bbeed58e
mov rdx, qword [rsp + 0x50]
mov rdi, qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rbp
call rdi
mov ecx, dword [rbx + 8]
mov r13, rax
call qword [sym.imp.GDI32.dll_CreateSolidBrush]
mov rcx, rbp
mov rdx, rax
call rdi
movsxd rdx, dword [rbx]
mov rcx, rbp
mov r15, rax
lea rax, [0x2bbff7640]
mov edx, dword [rax + rdx*4]
call qword [sym.imp.GDI32.dll_SetROP2]
cmp dword [rbx + 0x24], 1
mov rcx, rbp
sbb edx, edx
add edx, 2
call qword [sym.imp.GDI32.dll_SetPolyFillMode]
mov r9, qword [rsp + 0x58]
mov r8d, esi
mov rdx, r12
mov rcx, rbp
call sym.MakeAndStrokePath
mov rdx, r13
mov rcx, rbp
call rdi
mov rax, qword [sym.imp.GDI32.dll_DeleteObject]
mov qword [rsp + 0x50], rax
jmp 0x2bbeed78f
mov rcx, qword [rax]
test rcx, rcx
je 0x2bbeed8ce
mov rax, qword [rdi]
call qword [rax + 0x30]
mov rax, qword [rdi]
movsxd rcx, esi
shl rcx, 3
call qword [rax + 0x28]
mov qword [r15], rax
mov r12, rax
test rax, rax
je 0x2bbeed973
mov dword [r15 + 8], esi
jmp 0x2bbeed51c
mov ecx, dword [rbx + 0xc]
call r14
mov rcx, r13
mov rdx, rax
call rdi
mov rcx, rax
mov rax, qword [rsp + 0x50]
call rax
mov r9, qword [rsp + 0x58]
mov r8d, esi
mov rdx, r12
mov rcx, r13
call sym.MakeAndStrokePath
mov eax, dword [rsp + 0x64]
mov edx, dword [rsp + 0x68]
mov rcx, rbp
mov dword [rsp + 0x40], 0xac0744
mov r9d, dword [rsp + 0x60]
mov dword [rsp + 0x20], eax
mov r8d, dword [rsp + 0x6c]
mov dword [rsp + 0x38], 0
mov rax, qword [rsp + 0x70]
mov dword [rsp + 0x30], 0
mov qword [rsp + 0x28], r13
call rax
jmp 0x2bbeed753
mov r11d, ecx
mov r9d, r10d
jmp 0x2bbeed57f
mov dword [r15 + 8], 0xffffffff
xor r11d, r11d
xor r9d, r9d
xor ecx, ecx
xor r10d, r10d
jmp 0x2bbeed57f
mov rax, qword [rdi]
lea rcx, [0x2bbff75a0]
call qword [rax + 0x20]
nop
nop dword [rax]