Function at 0x180197200
Capabilities:
Capture screenshot

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0x100
mov rax, qword [0x1802d1460]
xor rax, rsp
mov qword [rbp - 0x19], rax
mov rax, qword gs:[0x58]
mov rdi, rcx
mov r15, qword [rbp + 0x67]
mov rbx, rdx
mov r14, qword [rbp + 0x6f]
mov rsi, r9
mov qword [rsp + 0x60], rcx
mov r12, r8
mov ecx, dword [0x1802efab8]
mov edx, 4
mov qword [rsp + 0x70], r9
mov qword [rbp - 0x59], r8
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1802f16e8], ecx
jle 0x1801972af
lea rcx, [0x1802f16e8]
call fcn.1801c7ad4
cmp dword [0x1802f16e8], 0xffffffff
jne 0x1801972af
lea rcx, str.msimg32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.AlphaBlend
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x1802f16e8]
mov qword [0x1802f16f0], rax
call fcn.1801c7a74
mov rax, qword [0x1802f16f0]
lea rcx, [0x180195fa0]
test rax, rax
cmove rax, rcx
mov qword [0x1802f16f0], rax
test rbx, rbx
je 0x180198410
mov rcx, rdi
mov qword [rsp + 0xf8], r13
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov rcx, rax
mov qword [rbp - 0x71], rax
mov rdx, rbx
mov r13, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov edx, 3
mov rcx, rdi
mov qword [rbp - 0x41], rax
call qword [sym.imp.GDI32.dll_SetStretchBltMode]
xor eax, eax
cmp qword [0x1802f16f0], rax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rax
je 0x180197c4b
movzx ecx, byte [rbp + 0x7f]
cmp byte [rbp + 0x77], al
jne 0x18019733b
cmp cl, 0xff
jae 0x180197c4b
mov word [rsp + 0x68], ax
mov byte [rsp + 0x6a], cl
mov byte [rsp + 0x6b], 1
mov ebx, dword [rsp + 0x68]
cmp byte [rbp + 0x87], al
jne 0x18019765c
mov eax, dword [r14]
lea r8, [rbp - 0x39]
add eax, dword [r12]
lea rcx, [rbp - 0x29]
mov dword [rbp - 0x39], eax
mov rdx, rsi
mov eax, dword [r12 + 4]
add eax, dword [r14 + 4]
mov dword [rbp - 0x35], eax
mov eax, dword [r12 + 8]
sub eax, dword [r14 + 8]
mov dword [rbp - 0x31], eax
mov eax, dword [r12 + 0xc]
sub eax, dword [r14 + 0xc]
mov dword [rbp - 0x2d], eax
call qword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x18019765c
cmp byte [rbp + 0x8f], 0
jne 0x1801974e6
mov esi, dword [r15 + 0xc]
mov eax, dword [r14 + 4]
sub esi, eax
sub esi, dword [r14 + 0xc]
sub esi, dword [r15 + 4]
cmp byte [rbp + 0x97], 0
mov r8d, dword [rbp - 0x35]
jne 0x18019742c
mov ecx, dword [r15]
mov edi, dword [rbp - 0x2d]
mov r9d, dword [rbp - 0x31]
sub edi, r8d
mov r11d, dword [r15 + 8]
sub r11d, dword [r14 + 8]
add eax, dword [r15 + 4]
sub r11d, ecx
add ecx, dword [r14]
sub r11d, dword [r14]
mov edx, dword [rbp - 0x39]
sub r9d, edx
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x48], esi
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rbp - 0x2d], edi
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], edi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
mov dword [rbp - 0x31], r9d
call qword [0x1802f16f0]
jmp 0x180197657
mov ecx, dword [rbp - 0x2d]
mov eax, esi
sub eax, r8d
dec eax
add eax, ecx
cdq
idiv esi
test eax, eax
jle 0x180197657
mov edx, eax
xor r12d, r12d
mov qword [rbp - 0x61], rdx
nop dword [rax]
lea eax, [r12 + rsi]
lea edi, [rax + r8]
lea r13d, [r12 + r8]
mov r8d, esi
lea r12d, [rax]
cmp edi, ecx
jle 0x18019746e
sub r8d, edi
mov edi, ecx
add r8d, ecx
mov eax, dword [r15]
sub edi, r13d
mov ecx, dword [r14 + 4]
add ecx, dword [r15 + 4]
mov r9d, dword [rbp - 0x31]
mov r11d, dword [r15 + 8]
sub r11d, dword [r14 + 8]
mov edx, dword [rbp - 0x39]
sub r11d, eax
add eax, dword [r14]
sub r9d, edx
sub r11d, dword [r14]
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x48], r8d
mov r8d, r13d
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], eax
mov rax, qword [rbp - 0x71]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
mov dword [rbp - 0x31], r9d
call qword [0x1802f16f0]
sub qword [rbp - 0x61], 1
je 0x18019764f
mov ecx, dword [rbp - 0x2d]
mov r8d, dword [rbp - 0x35]
jmp 0x180197450
mov esi, dword [r15 + 8]
sub esi, dword [r14]
sub esi, dword [r14 + 8]
sub esi, dword [r15]
cmp byte [rbp + 0x97], 0
mov eax, esi
je 0x180197b8e
mov r9d, dword [rbp - 0x39]
sub eax, r9d
mov r8d, dword [rbp - 0x31]
dec eax
mov ecx, dword [r15 + 0xc]
add eax, r8d
sub ecx, dword [r14 + 4]
cdq
sub ecx, dword [r15 + 4]
sub ecx, dword [r14 + 0xc]
mov r11d, dword [rbp - 0x2d]
mov r10d, dword [rbp - 0x35]
idiv esi
mov dword [rsp + 0x68], ecx
sub ecx, r10d
mov dword [rbp - 0x69], eax
lea eax, [r11 - 1]
add eax, ecx
cdq
idiv dword [rsp + 0x68]
mov ecx, eax
test eax, eax
jle 0x180197657
mov edx, dword [rsp + 0x68]
xor r12d, r12d
mov eax, r12d
mov qword [rsp + 0x78], rcx
mov dword [rbp - 0x79], eax
mov edi, ecx
nop dword [rax]
nop word [rax + rax]
lea ecx, [rax + r10]
mov dword [rbp - 0x51], edx
add eax, edx
mov dword [rbp - 0x61], eax
lea r13d, [rax + r10]
cmp r13d, r11d
jle 0x180197593
mov eax, edx
sub eax, r13d
mov r13d, r11d
add eax, r11d
mov dword [rbp - 0x51], eax
mov eax, dword [rbp - 0x69]
test eax, eax
jle 0x180197635
mov edi, r12d
mov qword [rbp - 0x49], rax
mov r12d, dword [rbp - 0x51]
sub r13d, ecx
nop dword [rax]
lea r11d, [rdi + r9]
mov edx, esi
add edi, esi
add r9d, edi
cmp r9d, r8d
jle 0x1801975c9
sub edx, r9d
mov r9d, r8d
add edx, r8d
mov ecx, dword [r14 + 4]
sub r9d, r11d
mov eax, dword [r14]
add ecx, dword [r15 + 4]
add eax, dword [r15]
mov r8d, dword [rbp - 0x79]
mov dword [rsp + 0x50], ebx
add r8d, r10d
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x40], edx
mov edx, r11d
mov dword [rsp + 0x38], ecx
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp - 0x71]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
call qword [0x1802f16f0]
sub qword [rbp - 0x49], 1
mov r8d, dword [rbp - 0x31]
mov r10d, dword [rbp - 0x35]
mov r9d, dword [rbp - 0x39]
jne 0x1801975b0
mov r11d, dword [rbp - 0x2d]
xor r12d, r12d
mov edx, dword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
mov eax, dword [rbp - 0x61]
sub rdi, 1
mov qword [rsp + 0x78], rdi
mov dword [rbp - 0x79], eax
jne 0x180197570
mov rdi, qword [rsp + 0x60]
mov r12, qword [rbp - 0x59]
mov r13, qword [rbp - 0x71]
mov rsi, qword [rsp + 0x70]
mov edx, dword [r14]
test edx, edx
jle 0x1801976ef
mov r8d, dword [r14 + 4]
test r8d, r8d
jle 0x1801976ef
mov ecx, dword [r12 + 4]
mov eax, dword [r12]
mov dword [rbp - 0x39], eax
add eax, edx
mov dword [rbp - 0x31], eax
mov rdx, rsi
lea eax, [rcx + r8]
mov dword [rbp - 0x35], ecx
lea r8, [rbp - 0x39]
mov dword [rbp - 0x2d], eax
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1801976ef
mov ecx, dword [rbp - 0x2d]
mov eax, dword [r14 + 4]
mov r9d, dword [rbp - 0x31]
mov r8d, dword [rbp - 0x35]
sub ecx, r8d
mov edx, dword [rbp - 0x39]
sub r9d, edx
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x48], eax
mov eax, dword [r14]
mov dword [rsp + 0x40], eax
mov eax, dword [r15 + 4]
mov dword [rsp + 0x38], eax
mov eax, dword [r15]
mov dword [rsp + 0x30], eax
mov dword [rbp - 0x2d], ecx
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], ecx
mov rcx, rdi
mov dword [rbp - 0x31], r9d
call qword [0x1802f16f0]
mov edx, dword [r14 + 4]
test edx, edx
jle 0x180197795
mov ecx, dword [r12 + 4]
lea r8, [rbp - 0x39]
mov eax, dword [r14]
add eax, dword [r12]
mov dword [rbp - 0x39], eax
mov eax, dword [r12 + 8]
sub eax, dword [r14 + 8]
mov dword [rbp - 0x31], eax
lea eax, [rcx + rdx]
mov dword [rbp - 0x35], ecx
mov rdx, rsi
lea rcx, [rbp - 0x29]
mov dword [rbp - 0x2d], eax
call qword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x180197795
mov ecx, dword [r14]
mov eax, dword [r14 + 4]
mov r9d, dword [rbp - 0x31]
mov r11d, dword [rbp - 0x2d]
mov r10d, dword [r15 + 8]
sub r10d, dword [r14 + 8]
sub r10d, dword [r15]
mov edx, dword [rbp - 0x39]
sub r10d, ecx
add ecx, dword [r15]
sub r9d, edx
mov r8d, dword [rbp - 0x35]
sub r11d, r8d
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x48], eax
mov eax, dword [r15 + 4]
mov dword [rsp + 0x40], r10d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, rdi
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r11d
mov dword [rbp - 0x31], r9d
mov dword [rbp - 0x2d], r11d
call qword [0x1802f16f0]
mov edx, dword [r14 + 8]
test edx, edx
jle 0x180197838
mov r8d, dword [r14 + 4]
test r8d, r8d
jle 0x180197838
mov ecx, dword [r12 + 8]
mov eax, ecx
sub eax, edx
mov dword [rbp - 0x31], ecx
mov dword [rbp - 0x39], eax
lea rcx, [rbp - 0x29]
mov eax, dword [r12 + 4]
mov rdx, rsi
mov dword [rbp - 0x35], eax
add eax, r8d
lea r8, [rbp - 0x39]
mov dword [rbp - 0x2d], eax
call qword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x180197838
mov ecx, dword [r14 + 8]
mov eax, dword [r14 + 4]
mov r9d, dword [rbp - 0x31]
mov r11d, dword [rbp - 0x2d]
mov r10d, dword [r15 + 8]
mov edx, dword [rbp - 0x39]
sub r10d, ecx
mov r8d, dword [rbp - 0x35]
sub r9d, edx
mov dword [rsp + 0x50], ebx
sub r11d, r8d
mov dword [rsp + 0x48], eax
mov eax, dword [r15 + 4]
mov dword [rsp + 0x40], ecx
mov rcx, rdi
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r10d
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r11d
mov dword [rbp - 0x31], r9d
mov dword [rbp - 0x2d], r11d
call qword [0x1802f16f0]
mov edx, dword [r14]
test edx, edx
jle 0x1801978df
mov ecx, dword [r12]
lea r8, [rbp - 0x39]
mov eax, dword [r12 + 4]
add eax, dword [r14 + 4]
mov dword [rbp - 0x35], eax
lea eax, [rcx + rdx]
mov dword [rbp - 0x39], ecx
mov dword [rbp - 0x31], eax
lea rcx, [rbp - 0x29]
mov eax, dword [r12 + 0xc]
mov rdx, rsi
sub eax, dword [r14 + 0xc]
mov dword [rbp - 0x2d], eax
call qword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1801978df
mov ecx, dword [r14 + 4]
mov eax, dword [r14]
mov r9d, dword [rbp - 0x31]
mov r11d, dword [rbp - 0x2d]
mov r10d, dword [r15 + 0xc]
sub r10d, dword [r15 + 4]
mov edx, dword [rbp - 0x39]
sub r10d, ecx
add ecx, dword [r15 + 4]
sub r9d, edx
sub r10d, dword [r14 + 0xc]
mov r8d, dword [rbp - 0x35]
sub r11d, r8d
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x48], r10d
mov dword [rsp + 0x40], eax
mov eax, dword [r15]
mov dword [rsp + 0x38], ecx
mov rcx, rdi
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r11d
mov dword [rbp - 0x31], r9d
mov dword [rbp - 0x2d], r11d
call qword [0x1802f16f0]
mov edx, dword [r14 + 8]
test edx, edx
jle 0x180197991
mov ecx, dword [r12 + 8]
lea r8, [rbp - 0x39]
mov eax, ecx
mov dword [rbp - 0x31], ecx
sub eax, edx
lea rcx, [rbp - 0x29]
mov dword [rbp - 0x39], eax
mov rdx, rsi
mov eax, dword [r12 + 4]
add eax, dword [r14 + 4]
mov dword [rbp - 0x35], eax
mov eax, dword [r12 + 0xc]
sub eax, dword [r14 + 0xc]
mov dword [rbp - 0x2d], eax
call qword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x180197991
mov edi, dword [rbp - 0x2d]
mov eax, dword [r15 + 4]
mov ecx, dword [r15 + 8]
mov r11d, dword [r14 + 8]
sub ecx, r11d
mov r9d, dword [rbp - 0x31]
mov r10d, dword [r15 + 0xc]
mov r8d, dword [rbp - 0x35]
sub r10d, eax
sub r10d, dword [r14 + 4]
sub edi, r8d
sub r10d, dword [r14 + 0xc]
add eax, dword [r14 + 4]
mov edx, dword [rbp - 0x39]
sub r9d, edx
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x48], r10d
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov dword [rbp - 0x2d], edi
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], edi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
mov dword [rbp - 0x31], r9d
call qword [0x1802f16f0]
mov r8d, dword [r14]
test r8d, r8d
jle 0x180197a31
mov r9d, dword [r14 + 0xc]
test r9d, r9d
jle 0x180197a31
mov edx, dword [r12 + 0xc]
mov eax, edx
mov ecx, dword [r12]
sub eax, r9d
mov dword [rbp - 0x35], eax
mov dword [rbp - 0x39], ecx
mov dword [rbp - 0x2d], edx
mov rdx, rsi
lea eax, [rcx + r8]
lea r8, [rbp - 0x39]
mov dword [rbp - 0x31], eax
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x180197a31
mov eax, dword [r14 + 0xc]
mov ecx, dword [r15 + 0xc]
mov r9d, dword [rbp - 0x31]
sub ecx, eax
mov r10d, dword [rbp - 0x2d]
mov edx, dword [rbp - 0x39]
sub r9d, edx
mov r8d, dword [rbp - 0x35]
sub r10d, r8d
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x48], eax
mov eax, dword [r14]
mov dword [rsp + 0x40], eax
mov eax, dword [r15]
mov dword [rsp + 0x38], ecx
mov rcx, rdi
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r10d
mov dword [rbp - 0x31], r9d
mov dword [rbp - 0x2d], r10d
call qword [0x1802f16f0]
mov edx, dword [r14 + 0xc]
test edx, edx
jle 0x180197ad9
mov ecx, dword [r12 + 0xc]
lea r8, [rbp - 0x39]
mov eax, dword [r14]
add eax, dword [r12]
mov dword [rbp - 0x39], eax
mov eax, ecx
sub eax, edx
mov dword [rbp - 0x2d], ecx
mov dword [rbp - 0x35], eax
lea rcx, [rbp - 0x29]
mov eax, dword [r12 + 8]
mov rdx, rsi
sub eax, dword [r14 + 8]
mov dword [rbp - 0x31], eax
call qword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x180197ad9
mov eax, dword [r15]
mov ecx, dword [r15 + 0xc]
mov edi, dword [r14 + 0xc]
sub ecx, edi
mov r9d, dword [rbp - 0x31]
mov esi, dword [rbp - 0x2d]
mov r11d, dword [r15 + 8]
mov edx, dword [rbp - 0x39]
sub r11d, eax
sub r11d, dword [r14]
sub r9d, edx
sub r11d, dword [r14 + 8]
add eax, dword [r14]
mov r8d, dword [rbp - 0x35]
sub esi, r8d
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], ecx
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], esi
mov dword [rbp - 0x31], r9d
mov dword [rbp - 0x2d], esi
call qword [0x1802f16f0]
mov ecx, dword [r14 + 8]
test ecx, ecx
jle 0x1801983f2
mov r9d, dword [r14 + 0xc]
test r9d, r9d
jle 0x1801983f2
mov r8d, dword [r12 + 8]
mov eax, r8d
mov rdx, qword [rsp + 0x70]
sub eax, ecx
mov ecx, dword [r12 + 0xc]
mov dword [rbp - 0x39], eax
mov eax, ecx
sub eax, r9d
mov dword [rbp - 0x31], r8d
mov dword [rbp - 0x2d], ecx
lea r8, [rbp - 0x39]
lea rcx, [rbp - 0x29]
mov dword [rbp - 0x35], eax
call qword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1801983f2
mov r10d, dword [r14 + 0xc]
mov r11d, dword [r14 + 8]
mov r9d, dword [rbp - 0x31]
mov esi, dword [rbp - 0x2d]
mov edi, dword [r15 + 0xc]
mov eax, dword [r15 + 8]
sub edi, r10d
mov edx, dword [rbp - 0x39]
sub eax, r11d
mov r8d, dword [rbp - 0x35]
sub r9d, edx
mov rcx, qword [rsp + 0x60]
sub esi, r8d
mov dword [rsp + 0x50], ebx
mov dword [rsp + 0x48], r10d
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], esi
mov dword [rbp - 0x31], r9d
mov dword [rbp - 0x2d], esi
call qword [0x1802f16f0]
jmp 0x1801983f2
mov r8d, dword [rbp - 0x39]
sub eax, r8d
mov ecx, dword [rbp - 0x31]
dec eax
add eax, ecx
cdq
idiv esi
test eax, eax
jle 0x180197657
mov edx, eax
xor r12d, r12d
mov qword [rsp + 0x78], rdx
lea eax, [r12 + rsi]
mov edx, esi
lea r9d, [rax + r8]
lea r13d, [r12 + r8]
lea r12d, [rax]
cmp r9d, ecx
jle 0x180197bcf
sub edx, r9d
mov r9d, ecx
add edx, ecx
mov eax, dword [r15 + 4]
sub r9d, r13d
mov ecx, dword [r14 + 4]
mov edi, dword [rbp - 0x2d]
mov r11d, dword [r15 + 0xc]
mov r8d, dword [rbp - 0x35]
sub r11d, eax
lea r10d, [rax + rcx]
mov dword [rsp + 0x50], ebx
mov eax, dword [r14]
sub edi, r8d
add eax, dword [r15]
sub r11d, ecx
sub r11d, dword [r14 + 0xc]
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x40], edx
mov edx, r13d
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], eax
mov rax, qword [rbp - 0x71]
mov qword [rsp + 0x28], rax
mov dword [rbp - 0x2d], edi
mov dword [rsp + 0x20], edi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
call qword [0x1802f16f0]
sub qword [rsp + 0x78], 1
je 0x18019764f
mov ecx, dword [rbp - 0x31]
mov r8d, dword [rbp - 0x39]
jmp 0x180197bb1
mov edx, dword [r12 + 8]
mov eax, edx
mov ecx, dword [r15 + 8]
mov r8d, dword [r12]
sub eax, r8d
sub ecx, dword [r15]
cmp eax, ecx
jne 0x180197d0b
mov ecx, dword [r15 + 0xc]
mov eax, dword [r12 + 0xc]
sub ecx, dword [r15 + 4]
sub eax, dword [r12 + 4]
cmp eax, ecx
jne 0x180197d0b
cmp dword [r14], 0
jne 0x180197d0b
cmp dword [r14 + 8], 0
jne 0x180197d0b
cmp dword [r14 + 4], 0
jne 0x180197d0b
cmp dword [r14 + 0xc], 0
jne 0x180197d0b
mov r8, r12
lea rcx, [rbp - 0x29]
mov rdx, rsi
call qword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1801983f2
mov ecx, dword [r15]
mov r8d, dword [rbp - 0x25]
sub ecx, dword [r12]
mov rdx, qword [rbp - 0x29]
mov r10d, dword [r15 + 4]
add ecx, edx
sub r10d, dword [r12 + 4]
mov eax, dword [rbp - 0x1d]
add r10d, r8d
mov r9d, dword [rbp - 0x21]
sub eax, r8d
mov dword [rsp + 0x40], 0xcc0020
sub r9d, edx
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], ecx
mov rcx, rdi
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], eax
call qword [sym.imp.GDI32.dll_BitBlt]
jmp 0x1801983f2
cmp byte [rbp + 0x87], 0
jne 0x180197ead
mov ecx, dword [r14]
sub edx, dword [r14 + 8]
add ecx, r8d
mov eax, dword [r12 + 4]
lea r8, [rbp - 0x39]
add eax, dword [r14 + 4]
mov dword [rbp - 0x35], eax
mov eax, dword [r12 + 0xc]
sub eax, dword [r14 + 0xc]
mov dword [rbp - 0x39], ecx
lea rcx, [rbp - 0x29]
mov dword [rbp - 0x31], edx
mov rdx, rsi
mov dword [rbp - 0x2d], eax
call qword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x180197ead
cmp byte [rbp + 0x8f], 0
jne 0x18019842e
mov edi, dword [r15 + 0xc]
mov eax, dword [r14 + 4]
sub edi, eax
mov esi, dword [r15 + 4]
sub edi, esi
sub edi, dword [r14 + 0xc]
cmp byte [rbp + 0x97], 0
mov r8d, dword [rbp - 0x35]
jne 0x180197de9
mov ecx, dword [r15]
add eax, esi
mov r9d, dword [rbp - 0x31]
mov ebx, dword [rbp - 0x2d]
mov r11d, dword [r15 + 8]
sub ebx, r8d
mov edx, dword [rbp - 0x39]
sub r11d, ecx
add ecx, dword [r14]
sub r9d, edx
sub r11d, dword [r14]
sub r11d, dword [r14 + 8]
mov dword [rsp + 0x50], 0xcc0020
mov dword [rsp + 0x48], edi
mov rdi, qword [rsp + 0x60]
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, rdi
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], ebx
mov dword [rbp - 0x31], r9d
mov dword [rbp - 0x2d], ebx
call qword [sym.imp.GDI32.dll_StretchBlt]
jmp 0x180197ea8
mov ecx, dword [rbp - 0x2d]
mov eax, edi
sub eax, r8d
dec eax
add eax, ecx
cdq
idiv edi
test eax, eax
jle 0x180197ea3
mov edx, eax
xor r12d, r12d
mov qword [rsp + 0x78], rdx
nop word [rax + rax]
lea eax, [r12 + rdi]
lea ebx, [rax + r8]
lea esi, [r12 + r8]
mov r8d, edi
lea r12d, [rax]
cmp ebx, ecx
jle 0x180197e2e
sub r8d, ebx
mov ebx, ecx
add r8d, ecx
mov eax, dword [r15]
sub ebx, esi
mov ecx, dword [r14 + 4]
add ecx, dword [r15 + 4]
mov r9d, dword [rbp - 0x31]
mov r11d, dword [r15 + 8]
mov edx, dword [rbp - 0x39]
sub r11d, eax
sub r11d, dword [r14]
sub r9d, edx
sub r11d, dword [r14 + 8]
add eax, dword [r14]
mov dword [rsp + 0x50], 0xcc0020
mov dword [rsp + 0x48], r8d
mov r8d, esi
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], ecx
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], ebx
mov dword [rbp - 0x31], r9d
call qword [sym.imp.GDI32.dll_StretchBlt]
sub qword [rsp + 0x78], 1
je 0x180197e9f
mov ecx, dword [rbp - 0x2d]
mov r8d, dword [rbp - 0x35]
jmp 0x180197e10
mov r12, qword [rbp - 0x59]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov edx, dword [r14]
test edx, edx
jle 0x180197f48
mov r8d, dword [r14 + 4]
test r8d, r8d
jle 0x180197f48
mov ecx, dword [r12 + 4]
mov eax, dword [r12]
mov dword [rbp - 0x39], eax
add eax, edx
mov dword [rbp - 0x31], eax
mov rdx, rsi
lea eax, [rcx + r8]
mov dword [rbp - 0x35], ecx
lea r8, [rbp - 0x39]
mov dword [rbp - 0x2d], eax
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x180197f48
mov ecx, dword [rbp - 0x2d]
mov eax, dword [r14 + 4]
mov r9d, dword [rbp - 0x31]
mov r8d, dword [rbp - 0x35]
sub ecx, r8d
mov edx, dword [rbp - 0x39]
sub r9d, edx
mov dword [rsp + 0x50], 0xcc0020
mov dword [rsp + 0x48], eax
mov eax, dword [r14]
mov dword [rsp + 0x40], eax
mov eax, dword [r15 + 4]
mov dword [rsp + 0x38], eax
mov eax, dword [r15]
mov dword [rsp + 0x30], eax
mov dword [rbp - 0x2d], ecx
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], ecx
mov rcx, rdi
mov dword [rbp - 0x31], r9d
call qword [sym.imp.GDI32.dll_StretchBlt]
mov edx, dword [r14 + 4]
test edx, edx
jle 0x180197ff2
mov ecx, dword [r12 + 4]
lea r8, [rbp - 0x39]
mov eax, dword [r14]
add eax, dword [r12]
mov dword [rbp - 0x39], eax
mov eax, dword [r12 + 8]
sub eax, dword [r14 + 8]
mov dword [rbp - 0x31], eax
lea eax, [rcx + rdx]
mov dword [rbp - 0x35], ecx
mov rdx, rsi
lea rcx, [rbp - 0x29]
mov dword [rbp - 0x2d], eax
call qword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x180197ff2
mov ecx, dword [r14]
mov eax, dword [r14 + 4]
mov r9d, dword [rbp - 0x31]
mov r11d, dword [rbp - 0x2d]
mov r10d, dword [r15 + 8]
sub r10d, dword [r15]
mov edx, dword [rbp - 0x39]
sub r10d, ecx
add ecx, dword [r15]
sub r9d, edx
sub r10d, dword [r14 + 8]
mov r8d, dword [rbp - 0x35]
sub r11d, r8d
mov dword [rsp + 0x50], 0xcc0020
mov dword [rsp + 0x48], eax
mov eax, dword [r15 + 4]
mov dword [rsp + 0x40], r10d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, rdi
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r11d
mov dword [rbp - 0x31], r9d
mov dword [rbp - 0x2d], r11d
call qword [sym.imp.GDI32.dll_StretchBlt]
mov edx, dword [r14 + 8]
test edx, edx
jle 0x180198099
mov r8d, dword [r14 + 4]
test r8d, r8d
jle 0x180198099
mov ecx, dword [r12 + 8]
mov eax, ecx
sub eax, edx
mov dword [rbp - 0x31], ecx
mov dword [rbp - 0x39], eax
lea rcx, [rbp - 0x29]
mov eax, dword [r12 + 4]
mov rdx, rsi
mov dword [rbp - 0x35], eax
add eax, r8d
lea r8, [rbp - 0x39]
mov dword [rbp - 0x2d], eax
call qword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x180198099
mov ecx, dword [r14 + 8]
mov eax, dword [r14 + 4]
mov r9d, dword [rbp - 0x31]
mov r11d, dword [rbp - 0x2d]
mov r10d, dword [r15 + 8]
mov edx, dword [rbp - 0x39]
sub r10d, ecx
mov r8d, dword [rbp - 0x35]
sub r9d, edx
mov dword [rsp + 0x50], 0xcc0020
sub r11d, r8d
mov dword [rsp + 0x48], eax
mov eax, dword [r15 + 4]
mov dword [rsp + 0x40], ecx
mov rcx, rdi
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], r10d
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r11d
mov dword [rbp - 0x31], r9d
mov dword [rbp - 0x2d], r11d
call qword [sym.imp.GDI32.dll_StretchBlt]
mov edx, dword [r14]
test edx, edx
jle 0x180198144
mov ecx, dword [r12]
lea r8, [rbp - 0x39]
mov eax, dword [r12 + 4]
add eax, dword [r14 + 4]
mov dword [rbp - 0x35], eax
lea eax, [rcx + rdx]
mov dword [rbp - 0x39], ecx
mov dword [rbp - 0x31], eax
lea rcx, [rbp - 0x29]
mov eax, dword [r12 + 0xc]
mov rdx, rsi
sub eax, dword [r14 + 0xc]
mov dword [rbp - 0x2d], eax
call qword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x180198144
mov ecx, dword [r14 + 4]
mov eax, dword [r14]
mov r9d, dword [rbp - 0x31]
mov r11d, dword [rbp - 0x2d]
mov r10d, dword [r15 + 0xc]
sub r10d, dword [r15 + 4]
mov edx, dword [rbp - 0x39]
sub r10d, ecx
add ecx, dword [r15 + 4]
sub r9d, edx
sub r10d, dword [r14 + 0xc]
mov r8d, dword [rbp - 0x35]
sub r11d, r8d
mov dword [rsp + 0x50], 0xcc0020
mov dword [rsp + 0x48], r10d
mov dword [rsp + 0x40], eax
mov eax, dword [r15]
mov dword [rsp + 0x38], ecx
mov rcx, rdi
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r11d
mov dword [rbp - 0x31], r9d
mov dword [rbp - 0x2d], r11d
call qword [sym.imp.GDI32.dll_StretchBlt]
mov edx, dword [r14 + 8]
test edx, edx
jle 0x1801981f5
mov ecx, dword [r12 + 8]
lea r8, [rbp - 0x39]
mov eax, ecx
mov dword [rbp - 0x31], ecx
sub eax, edx
lea rcx, [rbp - 0x29]
mov dword [rbp - 0x39], eax
mov rdx, rsi
mov eax, dword [r12 + 4]
add eax, dword [r14 + 4]
mov dword [rbp - 0x35], eax
mov eax, dword [r12 + 0xc]
sub eax, dword [r14 + 0xc]
mov dword [rbp - 0x2d], eax
call qword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1801981f5
mov eax, dword [r15 + 4]
mov ecx, dword [r15 + 8]
mov r11d, dword [r14 + 8]
sub ecx, r11d
mov r9d, dword [rbp - 0x31]
mov ebx, dword [rbp - 0x2d]
mov r10d, dword [r15 + 0xc]
mov edx, dword [rbp - 0x39]
sub r10d, eax
sub r10d, dword [r14 + 4]
sub r9d, edx
sub r10d, dword [r14 + 0xc]
add eax, dword [r14 + 4]
mov r8d, dword [rbp - 0x35]
sub ebx, r8d
mov dword [rsp + 0x50], 0xcc0020
mov dword [rsp + 0x48], r10d
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, rdi
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], ebx
mov dword [rbp - 0x31], r9d
mov dword [rbp - 0x2d], ebx
call qword [sym.imp.GDI32.dll_StretchBlt]
mov r8d, dword [r14]
test r8d, r8d
jle 0x180198299
mov r9d, dword [r14 + 0xc]
test r9d, r9d
jle 0x180198299
mov edx, dword [r12 + 0xc]
mov eax, edx
mov ecx, dword [r12]
sub eax, r9d
mov dword [rbp - 0x35], eax
mov dword [rbp - 0x39], ecx
mov dword [rbp - 0x2d], edx
mov rdx, rsi
lea eax, [rcx + r8]
lea r8, [rbp - 0x39]
mov dword [rbp - 0x31], eax
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x180198299
mov eax, dword [r14 + 0xc]
mov ecx, dword [r15 + 0xc]
mov r9d, dword [rbp - 0x31]
sub ecx, eax
mov r10d, dword [rbp - 0x2d]
mov edx, dword [rbp - 0x39]
sub r9d, edx
mov r8d, dword [rbp - 0x35]
sub r10d, r8d
mov dword [rsp + 0x50], 0xcc0020
mov dword [rsp + 0x48], eax
mov eax, dword [r14]
mov dword [rsp + 0x40], eax
mov eax, dword [r15]
mov dword [rsp + 0x38], ecx
mov rcx, rdi
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], r10d
mov dword [rbp - 0x31], r9d
mov dword [rbp - 0x2d], r10d
call qword [sym.imp.GDI32.dll_StretchBlt]
mov edx, dword [r14 + 0xc]
test edx, edx
jle 0x180198348
mov ecx, dword [r12 + 0xc]
lea r8, [rbp - 0x39]
mov eax, dword [r14]
add eax, dword [r12]
mov dword [rbp - 0x39], eax
mov eax, ecx
sub eax, edx
mov dword [rbp - 0x2d], ecx
mov dword [rbp - 0x35], eax
lea rcx, [rbp - 0x29]
mov eax, dword [r12 + 8]
mov rdx, rsi
sub eax, dword [r14 + 8]
mov dword [rbp - 0x31], eax
call qword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x180198348
mov edi, dword [rbp - 0x2d]
mov eax, dword [r15]
mov ecx, dword [r15 + 0xc]
mov ebx, dword [r14 + 0xc]
sub ecx, ebx
mov r9d, dword [rbp - 0x31]
mov r11d, dword [r15 + 8]
mov r8d, dword [rbp - 0x35]
sub r11d, eax
sub r11d, dword [r14]
sub edi, r8d
sub r11d, dword [r14 + 8]
add eax, dword [r14]
mov edx, dword [rbp - 0x39]
sub r9d, edx
mov dword [rsp + 0x50], 0xcc0020
mov dword [rsp + 0x48], ebx
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x30], eax
mov dword [rbp - 0x2d], edi
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], edi
mov rdi, qword [rsp + 0x60]
mov rcx, rdi
mov dword [rbp - 0x31], r9d
call qword [sym.imp.GDI32.dll_StretchBlt]
mov ecx, dword [r14 + 8]
test ecx, ecx
jle 0x1801983f2
mov r8d, dword [r14 + 0xc]
test r8d, r8d
jle 0x1801983f2
mov edx, dword [r12 + 8]
mov eax, edx
sub eax, ecx
mov dword [rbp - 0x31], edx
mov ecx, dword [r12 + 0xc]
mov rdx, rsi
mov dword [rbp - 0x39], eax
mov eax, ecx
sub eax, r8d
mov dword [rbp - 0x2d], ecx
lea r8, [rbp - 0x39]
mov dword [rbp - 0x35], eax
lea rcx, [rbp - 0x29]
call qword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x1801983f2
mov ecx, dword [r14 + 0xc]
mov r10d, dword [r14 + 8]
mov r9d, dword [rbp - 0x31]
mov ebx, dword [rbp - 0x2d]
mov r11d, dword [r15 + 0xc]
mov eax, dword [r15 + 8]
sub r11d, ecx
mov edx, dword [rbp - 0x39]
sub eax, r10d
mov r8d, dword [rbp - 0x35]
sub r9d, edx
mov dword [rsp + 0x50], 0xcc0020
sub ebx, r8d
mov dword [rsp + 0x48], ecx
mov rcx, rdi
mov dword [rsp + 0x40], r10d
mov dword [rsp + 0x38], r11d
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], ebx
mov dword [rbp - 0x31], r9d
mov dword [rbp - 0x2d], ebx
call qword [sym.imp.GDI32.dll_StretchBlt]
mov rdx, qword [rbp - 0x41]
mov rcx, r13
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, r13
call qword [sym.imp.GDI32.dll_DeleteDC]
mov r13, qword [rsp + 0xf8]
mov rcx, qword [rbp - 0x19]
xor rcx, rsp
call fcn.1801c74b0
add rsp, 0x100
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov edi, dword [r15 + 8]
sub edi, dword [r14]
sub edi, dword [r14 + 8]
sub edi, dword [r15]
cmp byte [rbp + 0x97], 0
mov eax, edi
je 0x180198562
mov r9d, dword [rbp - 0x39]
sub eax, r9d
mov r10d, dword [rbp - 0x31]
dec eax
mov ebx, dword [r15 + 0xc]
add eax, r10d
sub ebx, dword [r14 + 4]
cdq
sub ebx, dword [r15 + 4]
sub ebx, dword [r14 + 0xc]
mov r11d, dword [rbp - 0x2d]
mov ecx, ebx
mov r8d, dword [rbp - 0x35]
sub ecx, r8d
idiv edi
mov dword [rbp - 0x69], ebx
mov esi, eax
mov dword [rbp - 0x79], eax
lea eax, [r11 - 1]
add eax, ecx
cdq
idiv ebx
test eax, eax
jle 0x180197ea3
xor r12d, r12d
mov edx, eax
mov r13d, r12d
mov qword [rsp + 0x78], rdx
lea ecx, [rbx + r13]
lea ebx, [rcx + r8]
mov dword [rbp - 0x61], ecx
cmp ebx, r11d
lea eax, [r8 + r13]
cmovg ebx, r11d
test esi, esi
jle 0x180198540
mov esi, r12d
sub ebx, eax
mov r12d, dword [rbp - 0x79]
nop dword [rax + rax]
mov ecx, dword [r14 + 4]
lea edx, [rsi + r9]
mov eax, dword [r14]
add esi, edi
add r9d, esi
mov dword [rsp + 0x40], 0xcc0020
cmp r9d, r10d
cmovg r9d, r10d
add ecx, dword [r15 + 4]
add eax, dword [r15]
sub r9d, edx
mov dword [rsp + 0x38], ecx
add r8d, r13d
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x30], eax
mov rax, qword [rbp - 0x71]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
call qword [sym.imp.GDI32.dll_BitBlt]
mov r10d, dword [rbp - 0x31]
mov r8d, dword [rbp - 0x35]
mov r9d, dword [rbp - 0x39]
sub r12, 1
jne 0x1801984d0
mov r11d, dword [rbp - 0x2d]
xor r12d, r12d
mov ecx, dword [rbp - 0x61]
mov rdx, qword [rsp + 0x78]
mov esi, dword [rbp - 0x79]
mov ebx, dword [rbp - 0x69]
sub rdx, 1
mov qword [rsp + 0x78], rdx
mov r13d, ecx
jne 0x1801984a1
mov r12, qword [rbp - 0x59]
mov r13, qword [rbp - 0x71]
jmp 0x180197ea3
mov r8d, dword [rbp - 0x39]
sub eax, r8d
mov ecx, dword [rbp - 0x31]
dec eax
add eax, ecx
cdq
idiv edi
test eax, eax
jle 0x180198626
mov edx, eax
xor r12d, r12d
mov qword [rsp + 0x78], rdx
nop word [rax + rax]
lea eax, [r12 + rdi]
mov edx, edi
lea r9d, [rax + r8]
lea esi, [r12 + r8]
lea r12d, [rax]
cmp r9d, ecx
jle 0x1801985ae
sub edx, r9d
mov r9d, ecx
add edx, ecx
mov ecx, dword [r14 + 4]
sub r9d, esi
mov eax, dword [r15 + 4]
mov ebx, dword [rbp - 0x2d]
mov r11d, dword [r15 + 0xc]
mov r8d, dword [rbp - 0x35]
sub r11d, eax
mov dword [rsp + 0x50], 0xcc0020
lea r10d, [rax + rcx]
mov eax, dword [r14]
sub r11d, ecx
sub r11d, dword [r14 + 0xc]
sub ebx, r8d
add eax, dword [r15]
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x40], edx
mov edx, esi
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], ebx
mov dword [rbp - 0x2d], ebx
call qword [sym.imp.GDI32.dll_StretchBlt]
sub qword [rsp + 0x78], 1
je 0x180197e9f
mov ecx, dword [rbp - 0x31]
mov r8d, dword [rbp - 0x39]
jmp 0x180198590
mov rdi, qword [rsp + 0x60]
jmp 0x180197ead