Function at 0x1801f5f00
Capabilities:
Capture screenshot

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x170], rbx
mov rax, qword [0x1804e0010]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov qword [rsp + 0x68], r9
mov byte [rsp + 0x50], r8b
mov rbx, rdx
mov qword [rsp + 0x60], rdx
mov rdi, rcx
call fcn.1801f1790
mov rsi, rax
mov r15, qword [rax]
mov qword [rbp - 0x10], r15
test r15, r15
jne 0x1801f5fa1
mov ecx, 0x500
call fcn.180393f74
mov rbx, rax
mov qword [rbp - 0x58], rax
xor edx, edx
mov r8d, 0x500
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call fcn.1801f96d0
mov r15, rax
mov qword [rbp - 0x10], rax
mov qword [rsi], rax
mov rbx, qword [rsp + 0x60]
test rax, rax
je 0x1801f6d89
test rbx, rbx
je 0x1801f6d89
xor eax, eax
mov qword [rbp - 8], rax
mov qword [rbp], rax
lea rdx, [rbp - 8]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [rbp]
sub esi, dword [rbp - 8]
mov r14d, dword [rbp + 4]
sub r14d, dword [rbp - 4]
xor r12b, r12b
xor r13d, r13d
cmp qword [rdi + 0xf8], r13
jne 0x1801f617e
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov qword [rdi + 0xf8], rax
mov r8d, r14d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov qword [rdi + 0x100], rax
mov rcx, rbx
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov qword [rdi + 0x108], rax
mov r8d, r14d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov qword [rdi + 0x110], rax
mov rdx, qword [rdi + 0x100]
mov rcx, qword [rdi + 0xf8]
call qword [sym.imp.GDI32.dll_SelectObject]
mov qword [rdi + 0x118], rax
mov rdx, qword [rdi + 0x110]
mov rcx, qword [rdi + 0x108]
call qword [sym.imp.GDI32.dll_SelectObject]
mov qword [rdi + 0x120], rax
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov rax, qword [r15]
lea r8, [rbp - 0x70]
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [rax + 0x58]
mov rax, qword [r15]
lea rdx, [rbp - 0x58]
mov rcx, r15
call qword [rax + 0x78]
mov r9d, dword [rbp - 0x68]
add r9d, dword [rbp - 0x70]
add r9d, esi
mov edx, dword [rbp - 0x64]
add edx, dword [rbp - 0x6c]
add edx, r14d
mov dword [rsp + 0x20], edx
lea r8, [rbp - 8]
mov rdx, rbx
mov rcx, rdi
call fcn.1801f33c0
mov byte [rdi + 0x130], 1
mov r9b, 1
mov rdx, qword [rdi + 0xf8]
mov rcx, rdi
call fcn.1801f6f00
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov rax, qword [rdi + 0xf8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
mov r9d, esi
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi + 0x108]
call qword [sym.imp.GDI32.dll_BitBlt]
xor r9d, r9d
mov rdx, qword [rdi + 0x108]
mov rcx, rdi
call fcn.1801f6f00
mov rdx, qword [rdi + 0x108]
mov rcx, rdi
call fcn.1801f8ae0
mov rax, qword [rdi + 0x68]
test rax, rax
je 0x1801f615b
mov rdx, qword [rdi + 0x108]
mov rcx, rax
call fcn.180200c40
mov rax, qword [rdi + 0x68]
mov eax, dword [rax + 0x44]
mov dword [rdi + 0xf0], eax
mov eax, dword [rdi + 0x98]
mov dword [rdi + 0xec], eax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov r12b, 1
mov rax, qword [rdi + 0x68]
mov ecx, dword [rax + 0x44]
cmp dword [rdi + 0xf0], ecx
je 0x1801f628a
call fcn.1801f2d20
mov qword [rsp + 0x78], r13
mov rcx, qword [rax]
test rcx, rcx
je 0x1801f61b5
mov rax, qword [rcx]
mov rdx, qword [rdi + 0xf8]
call qword [rax + 0x20]
mov rbx, rax
jmp 0x1801f61b8
mov rbx, r13
mov qword [rsp + 0x78], rbx
test rbx, rbx
je 0x1801f61cb
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
nop
test rbx, rbx
jne 0x1801f61d2
jmp 0x1801f61eb
lea r9, [rbp - 8]
xor r8d, r8d
mov rdx, rbx
call fcn.1801f6db0
nop
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov r9b, 1
mov rdx, qword [rdi + 0xf8]
mov rcx, rdi
call fcn.1801f6f00
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov rax, qword [rdi + 0xf8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
mov r9d, esi
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi + 0x108]
call qword [sym.imp.GDI32.dll_BitBlt]
xor r9d, r9d
mov rdx, qword [rdi + 0x108]
mov rcx, rdi
call fcn.1801f6f00
mov rdx, qword [rdi + 0x108]
mov rcx, rdi
call fcn.1801f8ae0
mov rax, qword [rdi + 0x68]
test rax, rax
je 0x1801f6272
mov rdx, qword [rdi + 0x108]
mov rcx, rax
call fcn.180200c40
mov rax, qword [rdi + 0x68]
mov eax, dword [rax + 0x44]
mov dword [rdi + 0xf0], eax
mov eax, dword [rdi + 0x98]
mov dword [rdi + 0xec], eax
mov r12b, 1
cmp byte [rdi + 0x130], 0
je 0x1801f6435
xor eax, eax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov rax, qword [r15]
lea r8, [rbp - 0x30]
lea rdx, [rbp - 0x48]
mov rcx, r15
call qword [rax + 0x58]
lea rdx, [rbp - 0x20]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [rbp - 0x2c]
mov r13d, dword [rbp - 0x24]
add r13d, edx
add r13d, r14d
mov rcx, qword [rbp - 0x30]
mov eax, dword [rbp - 0x28]
add eax, ecx
add eax, esi
mov dword [rsp + 0x54], eax
mov eax, dword [rbp - 0x1c]
sub eax, edx
mov dword [rsp + 0x58], eax
mov eax, dword [rbp - 0x20]
sub eax, ecx
mov dword [rsp + 0x5c], eax
call fcn.1801f1790
mov rsi, rax
mov r15, qword [rax]
test r15, r15
jne 0x1801f633e
mov ecx, 0x500
call fcn.180393f74
mov rbx, rax
mov qword [rbp - 0x70], rax
xor edx, edx
mov r8d, 0x500
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call fcn.1801f96d0
mov r15, rax
mov qword [rsi], rax
test rax, rax
je 0x1801f6432
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rsi, rax
mov rcx, rax
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov r14, rax
mov rdx, qword [rdi + 0x128]
mov rcx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov rbx, rax
mov word [rbp - 0x60], 0
mov rdx, qword [r15]
mov rcx, r15
call qword [rdx + 0xf8]
mov byte [rbp - 0x5e], al
mov byte [rbp - 0x5d], 1
mov dword [rsp + 0x30], 0x50
mov dword [rsp + 0x28], r13d
mov r15d, dword [rsp + 0x54]
mov dword [rsp + 0x20], r15d
mov r9d, dword [rsp + 0x58]
mov r8d, dword [rsp + 0x5c]
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x7c], eax
mov dword [rbp + 8], r15d
mov dword [rbp + 0xc], r13d
xor r13d, r13d
mov qword [rbp - 0x58], r13
mov dword [rsp + 0x40], 2
lea rax, [rbp - 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r13d
lea rax, [rbp - 0x58]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rbp + 8]
lea r8, [rsp + 0x78]
mov rdx, rsi
mov rcx, qword [rdi + 0x20]
call qword [sym.imp.USER32.dll_UpdateLayeredWindow]
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.GDI32.dll_SelectObject]
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, r14
call qword [sym.imp.GDI32.dll_DeleteDC]
mov byte [rdi + 0x130], r13b
jmp 0x1801f6435
xor r13d, r13d
mov cl, 1
mov rax, qword [rdi + 0x60]
test rax, rax
je 0x1801f6444
movzx ecx, byte [rax + 0x3f]
test r12b, r12b
jne 0x1801f6901
test cl, cl
jne 0x1801f645a
cmp byte [rax + 0x3c], cl
je 0x1801f6901
mov eax, dword [rdi + 0x1b0]
cmp dword [rdi + 0x1a0], eax
jne 0x1801f647a
mov eax, dword [rdi + 0x1b4]
cmp dword [rdi + 0x1a4], eax
jne 0x1801f647a
mov dl, 1
jmp 0x1801f647c
xor dl, dl
mov eax, dword [rdi + 0x1b8]
cmp dword [rdi + 0x1a8], eax
jne 0x1801f649c
mov eax, dword [rdi + 0x1bc]
cmp dword [rdi + 0x1ac], eax
jne 0x1801f649c
mov cl, 1
jmp 0x1801f649e
xor cl, cl
lea r14, [rdi + 0xe0]
lea r15, [rdi + 0xdc]
mov eax, dword [r14]
cmp dword [r15], eax
jne 0x1801f64c0
test dl, dl
je 0x1801f64c0
test cl, cl
jne 0x1801f6901
xor eax, eax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x70], r13
mov qword [rbp - 0x68], r13
call fcn.18016a7e0
mov qword [rbp - 0x70], rax
movsxd rcx, dword [r15]
cmp ecx, 0xffffffff
jle 0x1801f65ab
mov rdx, qword [rdi + 0x188]
mov rax, qword [rdi + 0x190]
sub rax, rdx
sar rax, 3
cmp eax, ecx
jle 0x1801f65ab
mov rbx, qword [rdx + rcx*8]
mov edx, 0x10
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x1801f6529
lea rdx, [rbx + 0x60]
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_CopyRect]
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x20], al
mov r9, r15
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x70]
call fcn.1801f9120
mov eax, dword [rdi + 0x1a4]
cmp dword [rbp - 0x1c], eax
movsxd rax, dword [r15]
jne 0x1801f6568
test eax, eax
jle 0x1801f65ab
lea edx, [rax - 1]
mov rcx, rax
mov rax, qword [rdi + 0x188]
mov rcx, qword [rax + rcx*8 - 8]
jmp 0x1801f6582
lea edx, [rax + 1]
cmp edx, dword [rdi + 0xac]
jge 0x1801f65ab
mov rcx, rax
mov rax, qword [rdi + 0x188]
mov rcx, qword [rax + rcx*8 + 8]
mov eax, dword [rcx + 0x30]
shr eax, 2
test al, 1
jne 0x1801f65ab
movzx eax, byte [rsp + 0x50]
mov dword [rsp + 0x54], edx
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x54]
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x70]
call fcn.1801f9120
movsxd rcx, dword [r14]
cmp ecx, 0xffffffff
jle 0x1801f667b
mov rdx, qword [rdi + 0x188]
mov rax, qword [rdi + 0x190]
sub rax, rdx
sar rax, 3
cmp eax, ecx
jle 0x1801f667b
mov rbx, qword [rdx + rcx*8]
mov edx, 0x10
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x1801f65f9
lea rdx, [rbx + 0x60]
lea rcx, [rbp - 0x20]
call qword [sym.imp.USER32.dll_CopyRect]
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x20], al
mov r9, r14
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x70]
call fcn.1801f9120
mov eax, dword [rdi + 0x1b4]
cmp dword [rbp - 0x1c], eax
movsxd rax, dword [r14]
jne 0x1801f6638
test eax, eax
jle 0x1801f667b
lea edx, [rax - 1]
mov rcx, rax
mov rax, qword [rdi + 0x188]
mov rcx, qword [rax + rcx*8 - 8]
jmp 0x1801f6652
lea edx, [rax + 1]
cmp edx, dword [rdi + 0xac]
jge 0x1801f667b
mov rcx, rax
mov rax, qword [rdi + 0x188]
mov rcx, qword [rax + rcx*8 + 8]
mov eax, dword [rcx + 0x30]
shr eax, 2
test al, 1
jne 0x1801f667b
movzx eax, byte [rsp + 0x50]
mov dword [rsp + 0x54], edx
mov byte [rsp + 0x20], al
lea r9, [rsp + 0x54]
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x70]
call fcn.1801f9120
mov ecx, dword [rdi + 0xec]
mov eax, dword [rdi + 0x98]
cmp ecx, eax
je 0x1801f66d5
cmp ecx, 0xffffffff
jle 0x1801f66b3
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x20], al
lea r9, [rdi + 0xec]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x70]
call fcn.1801f9120
mov eax, dword [rdi + 0x98]
cmp eax, 0xffffffff
jle 0x1801f66d5
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x20], al
lea r9, [rdi + 0x98]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x70]
call fcn.1801f9120
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov rax, qword [rbp - 0x70]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1801f67cd
nop
movsxd rcx, dword [rbx + 0x1c]
mov rax, qword [rdi + 0x188]
mov rsi, qword [rax + rcx*8]
mov edx, 0x10
lea rcx, [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x1801f6720
lea rdx, [rsi + 0x60]
lea rcx, [rbp - 0x58]
call qword [sym.imp.USER32.dll_CopyRect]
mov r8d, dword [rbp - 0x54]
sub r8d, 2
mov dword [rbp - 0x54], r8d
mov ecx, dword [rbp - 0x4c]
add ecx, 2
mov dword [rbp - 0x4c], ecx
mov r9d, dword [rbp - 0x50]
inc r9d
mov dword [rbp - 0x50], r9d
sub ecx, r8d
mov edx, dword [rbp - 0x58]
sub r9d, edx
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], edx
mov rax, qword [rdi + 0xf8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, qword [rdi + 0x108]
call qword [sym.imp.GDI32.dll_BitBlt]
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x1801f67a8
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1801f67a3
nop dword [rax + rax]
cmp rbx, qword [rax + 0x10]
jne 0x1801f67a3
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1801f6790
mov rbx, rax
jmp 0x1801f67c0
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1801f67c0
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1801f67b4
mov rax, qword [rbp - 0x70]
cmp rbx, rax
jne 0x1801f66f0
mov rbx, qword [rax]
cmp rbx, rax
je 0x1801f6842
movsxd rax, dword [rbx + 0x1c]
mov rcx, qword [rdi + 0x188]
mov rdx, qword [rdi + 0x108]
mov rcx, qword [rcx + rax*8]
call fcn.1801fea20
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x1801f681c
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1801f6817
cmp rbx, qword [rax + 0x10]
jne 0x1801f6817
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1801f6804
mov rbx, rax
jmp 0x1801f683c
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1801f683c
nop dword [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1801f6830
cmp rbx, qword [rbp - 0x70]
jne 0x1801f67d5
mov rdx, qword [rdi + 0x108]
mov rcx, rdi
call fcn.1801f8ae0
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x1801f6866
mov rdx, qword [rdi + 0x108]
call fcn.180200c40
mov eax, dword [rdi + 0x98]
mov dword [rdi + 0xec], eax
mov eax, dword [r15]
mov dword [r14], eax
mov rax, qword [rdi + 0x1a0]
mov qword [rdi + 0x1b0], rax
mov rax, qword [rdi + 0x1a8]
mov qword [rdi + 0x1b8], rax
mov rax, qword [rbp - 0x70]
mov r14, rax
mov rsi, qword [rax + 8]
mov rbx, rsi
cmp byte [rsi + 0x19], 0
jne 0x1801f68da
nop dword [rax + rax]
mov rdx, qword [rbx + 0x10]
lea rcx, [rbp - 0x70]
call fcn.18016a820
mov rbx, qword [rbx]
mov edx, 0x20
mov rcx, rsi
call fcn.180393fb0
mov rsi, rbx
cmp byte [rbx + 0x19], 0
je 0x1801f68b0
mov rax, qword [rbp - 0x70]
mov qword [rax + 8], r14
mov rax, qword [rbp - 0x70]
mov qword [rax], r14
mov rax, qword [rbp - 0x70]
mov qword [rax + 0x10], r14
xor r13d, r13d
mov qword [rbp - 0x68], r13
lea edx, [r13 + 0x20]
mov rcx, qword [rbp - 0x70]
call fcn.180393fb0
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
mov r14, r13
mov qword [rbp - 0x38], r13
mov edx, r13d
mov dword [rsp + 0x58], edx
mov r8, qword [rdi + 0x190]
mov rcx, qword [rdi + 0x188]
mov rax, r8
sub rax, rcx
sar rax, 3
mov rbx, qword [rbp - 0x40]
test eax, eax
jle 0x1801f69af
mov esi, r13d
nop dword [rax + rax]
movsxd rax, esi
mov rcx, qword [rcx + rax*8]
cmp byte [rcx + 0x498], 0
je 0x1801f698a
cmp r14, rbx
je 0x1801f6971
mov dword [rbx], edx
add rbx, 4
mov qword [rbp - 0x40], rbx
jmp 0x1801f698a
lea r8, [rsp + 0x58]
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.1800ab350
mov r14, qword [rbp - 0x38]
mov rbx, qword [rbp - 0x40]
lea edx, [rsi + 1]
mov dword [rsp + 0x58], edx
mov r8, qword [rdi + 0x190]
mov rcx, qword [rdi + 0x188]
mov esi, edx
mov rax, r8
sub rax, rcx
sar rax, 3
cmp edx, eax
jl 0x1801f6950
mov eax, dword [rdi + 0xec]
cmp eax, dword [rdi + 0x98]
je 0x1801f6a55
test eax, eax
js 0x1801f69fd
sub r8, rcx
sar r8, 3
cmp eax, r8d
jge 0x1801f69fd
cmp r14, rbx
je 0x1801f69e2
mov dword [rbx], eax
add rbx, 4
mov qword [rbp - 0x40], rbx
jmp 0x1801f69fd
lea r8, [rdi + 0xec]
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.1800ab350
mov r14, qword [rbp - 0x38]
mov rbx, qword [rbp - 0x40]
mov ecx, dword [rdi + 0x98]
test ecx, ecx
js 0x1801f6a49
mov rax, qword [rdi + 0x190]
sub rax, qword [rdi + 0x188]
sar rax, 3
cmp ecx, eax
jge 0x1801f6a49
cmp r14, rbx
je 0x1801f6a2e
mov dword [rbx], ecx
add rbx, 4
mov qword [rbp - 0x40], rbx
jmp 0x1801f6a49
lea r8, [rdi + 0x98]
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.1800ab350
mov r14, qword [rbp - 0x38]
mov rbx, qword [rbp - 0x40]
mov eax, dword [rdi + 0x98]
mov dword [rdi + 0xec], eax
mov r13, rbx
mov r15, qword [rbp - 0x48]
sub r13, r15
sar r13, 2
movzx r9d, byte [rsp + 0x50]
mov r8, r13
mov rdx, rbx
mov rcx, r15
call fcn.1800aba40
cmp r15, rbx
je 0x1801f6bf9
xor eax, eax
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], rax
xor ebx, ebx
mov rdx, qword [rdi + 0x68]
test rdx, rdx
je 0x1801f6abe
add rdx, 0x10
lea rcx, [rsp + 0x78]
call qword [sym.imp.USER32.dll_CopyRect]
mov r9d, dword [rbp - 0x7c]
mov r8d, dword [rbp - 0x80]
mov edx, dword [rsp + 0x7c]
mov ecx, dword [rsp + 0x78]
call qword [sym.imp.GDI32.dll_CreateRectRgn]
mov rbx, rax
xor esi, esi
test r13, r13
je 0x1801f6beb
nop dword [rax]
xor eax, eax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
movsxd rax, dword [r15 + rsi*4]
lea r12, [rax*8]
mov rax, qword [rdi + 0x188]
mov rax, qword [r12 + rax]
mov qword [rbp - 0x58], rax
mov edx, 0x10
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x1801f6b1a
mov rdx, qword [rbp - 0x58]
add rdx, 0x60
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_CopyRect]
mov r8d, dword [rbp - 0x6c]
dec r8d
mov dword [rbp - 0x6c], r8d
mov ecx, dword [rbp - 0x64]
inc ecx
mov dword [rbp - 0x64], ecx
mov eax, dword [rdi + 0x98]
cmp dword [r15 + rsi*4], eax
je 0x1801f6b3c
inc dword [rbp - 0x68]
test rbx, rbx
je 0x1801f6b64
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x20], xmm0
lea r8, [rsp + 0x78]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x70]
call qword [sym.imp.USER32.dll_IntersectRect]
mov ecx, dword [rbp - 0x64]
mov r8d, dword [rbp - 0x6c]
sub ecx, r8d
mov r9d, dword [rbp - 0x68]
mov edx, dword [rbp - 0x70]
sub r9d, edx
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], edx
mov rax, qword [rdi + 0xf8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, qword [rdi + 0x108]
call qword [sym.imp.GDI32.dll_BitBlt]
test rbx, rbx
je 0x1801f6bb4
mov rdx, rbx
mov rcx, qword [rdi + 0x108]
call qword [sym.imp.GDI32.dll_SelectClipRgn]
mov rcx, qword [rdi + 0x188]
mov rdx, qword [rdi + 0x108]
mov rcx, qword [r12 + rcx]
call fcn.1801fea20
test rbx, rbx
je 0x1801f6bdf
xor edx, edx
mov rcx, qword [rdi + 0x108]
call qword [sym.imp.GDI32.dll_SelectClipRgn]
inc rsi
cmp rsi, r13
jb 0x1801f6ad0
test rbx, rbx
je 0x1801f6bf9
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
cmp byte [rsp + 0x50], 0
jne 0x1801f6cf3
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1801f6cf3
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1801f6c33
mov edx, 0xffffffec
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
shr eax, 0x13
and al, 1
je 0x1801f6cf3
mov word [rbp - 0x60], 0
mov rcx, qword [rbp - 0x10]
mov rax, qword [rcx]
call qword [rax + 0xf8]
mov byte [rbp - 0x5e], al
mov byte [rbp - 0x5d], 1
xor eax, eax
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], rax
lea rdx, [rbp - 0x30]
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rcx, qword [rbp - 0x30]
mov dword [rsp + 0x78], ecx
mov edx, dword [rbp - 0x2c]
mov dword [rsp + 0x7c], edx
mov eax, dword [rbp - 0x28]
sub eax, ecx
mov dword [rbp - 0x10], eax
mov eax, dword [rbp - 0x24]
sub eax, edx
mov dword [rbp - 0xc], eax
mov qword [rbp - 0x58], 0
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov rbx, rax
mov dword [rsp + 0x40], 2
lea rax, [rbp - 0x60]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
lea rax, [rbp - 0x58]
mov qword [rsp + 0x28], rax
mov rcx, qword [rdi + 0x108]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x10]
lea r8, [rsp + 0x78]
mov rdx, rbx
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.USER32.dll_UpdateLayeredWindow]
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
jmp 0x1801f6d3a
mov rax, qword [rsp + 0x68]
mov r8d, dword [rax + 4]
mov edx, dword [rax]
mov r10d, dword [rax + 0xc]
sub r10d, r8d
mov r9d, dword [rax + 8]
sub r9d, edx
mov dword [rsp + 0x40], 0xcc0020
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x30], edx
mov rax, qword [rdi + 0x108]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r10d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.GDI32.dll_BitBlt]
nop
test r15, r15
je 0x1801f6d89
sub r14, r15
and r14, 0xfffffffffffffffc
mov rax, r15
cmp r14, 0x1000
jb 0x1801f6d6e
add r14, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801f6d6e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r14
mov rcx, r15
call fcn.180393fb0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], 0
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.180393f50
mov rbx, qword [rsp + 0x170]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret