Function at 0x1801f0fa0
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 [0x1804cc010]
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.1801ec860
mov rsi, rax
mov r15, qword [rax]
mov qword [rbp - 0x10], r15
test r15, r15
jne 0x1801f1041
mov ecx, 0x500
call fcn.180386914
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.1801f4770
mov r15, rax
mov qword [rbp - 0x10], rax
mov qword [rsi], rax
mov rbx, qword [rsp + 0x60]
test rax, rax
je 0x1801f1e29
test rbx, rbx
je 0x1801f1e29
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 0x1801f121e
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.1801ee460
mov byte [rdi + 0x130], 1
mov r9b, 1
mov rdx, qword [rdi + 0xf8]
mov rcx, rdi
call fcn.1801f1fa0
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.1801f1fa0
mov rdx, qword [rdi + 0x108]
mov rcx, rdi
call fcn.1801f3b80
mov rax, qword [rdi + 0x68]
test rax, rax
je 0x1801f11fb
mov rdx, qword [rdi + 0x108]
mov rcx, rax
call fcn.1801fbce0
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 0x1801f132a
call fcn.1801eddc0
mov qword [rsp + 0x78], r13
mov rcx, qword [rax]
test rcx, rcx
je 0x1801f1255
mov rax, qword [rcx]
mov rdx, qword [rdi + 0xf8]
call qword [rax + 0x20]
mov rbx, rax
jmp 0x1801f1258
mov rbx, r13
mov qword [rsp + 0x78], rbx
test rbx, rbx
je 0x1801f126b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
nop
test rbx, rbx
jne 0x1801f1272
jmp 0x1801f128b
lea r9, [rbp - 8]
xor r8d, r8d
mov rdx, rbx
call fcn.1801f1e50
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.1801f1fa0
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.1801f1fa0
mov rdx, qword [rdi + 0x108]
mov rcx, rdi
call fcn.1801f3b80
mov rax, qword [rdi + 0x68]
test rax, rax
je 0x1801f1312
mov rdx, qword [rdi + 0x108]
mov rcx, rax
call fcn.1801fbce0
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 0x1801f14d5
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.1801ec860
mov rsi, rax
mov r15, qword [rax]
test r15, r15
jne 0x1801f13de
mov ecx, 0x500
call fcn.180386914
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.1801f4770
mov r15, rax
mov qword [rsi], rax
test rax, rax
je 0x1801f14d2
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 0x1801f14d5
xor r13d, r13d
mov cl, 1
mov rax, qword [rdi + 0x60]
test rax, rax
je 0x1801f14e4
movzx ecx, byte [rax + 0x3f]
test r12b, r12b
jne 0x1801f19a1
test cl, cl
jne 0x1801f14fa
cmp byte [rax + 0x3c], cl
je 0x1801f19a1
mov eax, dword [rdi + 0x1b0]
cmp dword [rdi + 0x1a0], eax
jne 0x1801f151a
mov eax, dword [rdi + 0x1b4]
cmp dword [rdi + 0x1a4], eax
jne 0x1801f151a
mov dl, 1
jmp 0x1801f151c
xor dl, dl
mov eax, dword [rdi + 0x1b8]
cmp dword [rdi + 0x1a8], eax
jne 0x1801f153c
mov eax, dword [rdi + 0x1bc]
cmp dword [rdi + 0x1ac], eax
jne 0x1801f153c
mov cl, 1
jmp 0x1801f153e
xor cl, cl
lea r14, [rdi + 0xe0]
lea r15, [rdi + 0xdc]
mov eax, dword [r14]
cmp dword [r15], eax
jne 0x1801f1560
test dl, dl
je 0x1801f1560
test cl, cl
jne 0x1801f19a1
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.180164cf0
mov qword [rbp - 0x70], rax
movsxd rcx, dword [r15]
cmp ecx, 0xffffffff
jle 0x1801f164b
mov rdx, qword [rdi + 0x188]
mov rax, qword [rdi + 0x190]
sub rax, rdx
sar rax, 3
cmp eax, ecx
jle 0x1801f164b
mov rbx, qword [rdx + rcx*8]
mov edx, 0x10
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x1801f15c9
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.1801f41c0
mov eax, dword [rdi + 0x1a4]
cmp dword [rbp - 0x1c], eax
movsxd rax, dword [r15]
jne 0x1801f1608
test eax, eax
jle 0x1801f164b
lea edx, [rax - 1]
mov rcx, rax
mov rax, qword [rdi + 0x188]
mov rcx, qword [rax + rcx*8 - 8]
jmp 0x1801f1622
lea edx, [rax + 1]
cmp edx, dword [rdi + 0xac]
jge 0x1801f164b
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 0x1801f164b
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.1801f41c0
movsxd rcx, dword [r14]
cmp ecx, 0xffffffff
jle 0x1801f171b
mov rdx, qword [rdi + 0x188]
mov rax, qword [rdi + 0x190]
sub rax, rdx
sar rax, 3
cmp eax, ecx
jle 0x1801f171b
mov rbx, qword [rdx + rcx*8]
mov edx, 0x10
lea rcx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x1801f1699
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.1801f41c0
mov eax, dword [rdi + 0x1b4]
cmp dword [rbp - 0x1c], eax
movsxd rax, dword [r14]
jne 0x1801f16d8
test eax, eax
jle 0x1801f171b
lea edx, [rax - 1]
mov rcx, rax
mov rax, qword [rdi + 0x188]
mov rcx, qword [rax + rcx*8 - 8]
jmp 0x1801f16f2
lea edx, [rax + 1]
cmp edx, dword [rdi + 0xac]
jge 0x1801f171b
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 0x1801f171b
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.1801f41c0
mov ecx, dword [rdi + 0xec]
mov eax, dword [rdi + 0x98]
cmp ecx, eax
je 0x1801f1775
cmp ecx, 0xffffffff
jle 0x1801f1753
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x20], al
lea r9, [rdi + 0xec]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x70]
call fcn.1801f41c0
mov eax, dword [rdi + 0x98]
cmp eax, 0xffffffff
jle 0x1801f1775
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x20], al
lea r9, [rdi + 0x98]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x70]
call fcn.1801f41c0
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 0x1801f186d
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 0x1801f17c0
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 0x1801f1848
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1801f1843
nop dword [rax + rax]
cmp rbx, qword [rax + 0x10]
jne 0x1801f1843
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1801f1830
mov rbx, rax
jmp 0x1801f1860
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1801f1860
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1801f1854
mov rax, qword [rbp - 0x70]
cmp rbx, rax
jne 0x1801f1790
mov rbx, qword [rax]
cmp rbx, rax
je 0x1801f18e2
movsxd rax, dword [rbx + 0x1c]
mov rcx, qword [rdi + 0x188]
mov rdx, qword [rdi + 0x108]
mov rcx, qword [rcx + rax*8]
call fcn.1801f9ac0
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x1801f18bc
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1801f18b7
cmp rbx, qword [rax + 0x10]
jne 0x1801f18b7
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1801f18a4
mov rbx, rax
jmp 0x1801f18dc
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1801f18dc
nop dword [rax + rax]
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x1801f18d0
cmp rbx, qword [rbp - 0x70]
jne 0x1801f1875
mov rdx, qword [rdi + 0x108]
mov rcx, rdi
call fcn.1801f3b80
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x1801f1906
mov rdx, qword [rdi + 0x108]
call fcn.1801fbce0
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 0x1801f197a
nop dword [rax + rax]
mov rdx, qword [rbx + 0x10]
lea rcx, [rbp - 0x70]
call fcn.180164d30
mov rbx, qword [rbx]
mov edx, 0x20
mov rcx, rsi
call fcn.180386950
mov rsi, rbx
cmp byte [rbx + 0x19], 0
je 0x1801f1950
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.180386950
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 0x1801f1a4f
mov esi, r13d
nop dword [rax + rax]
movsxd rax, esi
mov rcx, qword [rcx + rax*8]
cmp byte [rcx + 0x498], 0
je 0x1801f1a2a
cmp r14, rbx
je 0x1801f1a11
mov dword [rbx], edx
add rbx, 4
mov qword [rbp - 0x40], rbx
jmp 0x1801f1a2a
lea r8, [rsp + 0x58]
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.1800a8490
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 0x1801f19f0
mov eax, dword [rdi + 0xec]
cmp eax, dword [rdi + 0x98]
je 0x1801f1af5
test eax, eax
js 0x1801f1a9d
sub r8, rcx
sar r8, 3
cmp eax, r8d
jge 0x1801f1a9d
cmp r14, rbx
je 0x1801f1a82
mov dword [rbx], eax
add rbx, 4
mov qword [rbp - 0x40], rbx
jmp 0x1801f1a9d
lea r8, [rdi + 0xec]
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.1800a8490
mov r14, qword [rbp - 0x38]
mov rbx, qword [rbp - 0x40]
mov ecx, dword [rdi + 0x98]
test ecx, ecx
js 0x1801f1ae9
mov rax, qword [rdi + 0x190]
sub rax, qword [rdi + 0x188]
sar rax, 3
cmp ecx, eax
jge 0x1801f1ae9
cmp r14, rbx
je 0x1801f1ace
mov dword [rbx], ecx
add rbx, 4
mov qword [rbp - 0x40], rbx
jmp 0x1801f1ae9
lea r8, [rdi + 0x98]
mov rdx, rbx
lea rcx, [rbp - 0x48]
call fcn.1800a8490
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.1800a8b80
cmp r15, rbx
je 0x1801f1c99
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 0x1801f1b5e
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 0x1801f1c8b
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 0x1801f1bba
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 0x1801f1bdc
inc dword [rbp - 0x68]
test rbx, rbx
je 0x1801f1c04
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 0x1801f1c54
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.1801f9ac0
test rbx, rbx
je 0x1801f1c7f
xor edx, edx
mov rcx, qword [rdi + 0x108]
call qword [sym.imp.GDI32.dll_SelectClipRgn]
inc rsi
cmp rsi, r13
jb 0x1801f1b70
test rbx, rbx
je 0x1801f1c99
mov rcx, rbx
call qword [sym.imp.GDI32.dll_DeleteObject]
cmp byte [rsp + 0x50], 0
jne 0x1801f1d93
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1801f1d93
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1801f1cd3
mov edx, 0xffffffec
mov rcx, qword [rdi + 0x28]
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
shr eax, 0x13
and al, 1
je 0x1801f1d93
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 0x1801f1dda
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 0x1801f1e29
sub r14, r15
and r14, 0xfffffffffffffffc
mov rax, r15
cmp r14, 0x1000
jb 0x1801f1e0e
add r14, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1801f1e0e
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.180386950
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
mov qword [rbp - 0x38], 0
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1803868f0
mov rbx, qword [rsp + 0x170]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret