Function at 0x140052f30
Capabilities:
Capture screenshot

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf8
movzx esi, byte [rsp + 0x180]
mov edi, r9d
mov rbx, qword [rsp + 0x178]
mov ebp, r8d
mov r14d, edx
mov r15, rcx
test sil, sil
jne 0x140052f85
lea rdx, str.Fast
mov rcx, rbx
call fcn.1400ab710
mov byte [rsp + 0x148], sil
test rax, rax
je 0x140052f8d
mov byte [rsp + 0x148], 1
lea rdx, [0x1400e8790]
mov rcx, rbx
call fcn.1400ab710
mov r12d, dword [rsp + 0x168]
test rax, rax
mov ecx, r12d
movzx r8d, r12w
setne byte [rsp + 0x158]
shr ecx, 0x10
movzx edx, cl
and r8d, 0xffffff00
or r8d, edx
movzx ecx, r12b
shl ecx, 0x10
or r8d, ecx
test rax, rax
je 0x140052fe7
mov dword [rsp + 0x58], r12d
mov r12d, r8d
mov dword [rsp + 0x168], r8d
jmp 0x140052fec
mov dword [rsp + 0x58], r8d
mov rax, qword [0x140103f30]
mov qword [rsp + 0x68], rax
test sil, sil
je 0x140053003
xor esi, esi
mov ebx, esi
jmp 0x140053014
xor esi, esi
cmp byte [r15 + 1], 1
mov ebx, esi
cmova rbx, qword [0x140103f38]
mov qword [rsp + 0xa0], rbx
mov rcx, 0xffffffffffffffff
test rax, rax
je 0x140053044
mov r8, rcx
mov byte [rsp + 0x20], 1
mov rcx, rax
xor r9d, r9d
xor edx, edx
call fcn.1400afca0
mov rcx, 0xffffffffffffffff
test rbx, rbx
je 0x14005305e
mov r8, rcx
mov byte [rsp + 0x20], 1
mov rcx, rbx
xor r9d, r9d
xor edx, edx
call fcn.1400afca0
xor r8d, r8d
mov qword [rsp + 0x80], rsi
lea rdx, [rsp + 0x84]
lea rcx, [rsp + 0x80]
call fcn.1400aca00
mov r8d, dword [rsp + 0x84]
mov r13d, 0xff
mov rbx, qword [rsp + 0x80]
lea r15d, [r8 + rbp]
mov ebp, dword [rsp + 0x160]
add ebp, r8d
lea edx, [rbx + r14]
lea ecx, [rbx + rdi]
mov dword [rsp + 0x64], edx
cmp edx, ecx
mov dword [rsp + 0x60], ecx
mov eax, ecx
mov edi, edx
cmovle eax, edx
cmovle edi, ecx
cmp r15d, ebp
mov dword [rsp + 0x70], eax
mov eax, ebp
mov r14d, r15d
cmovle eax, r15d
cmovle r14d, ebp
mov dword [rsp + 0x54], eax
mov ecx, esi
mov eax, dword [rsp + 0x170]
test eax, eax
cmovns ecx, eax
mov dword [rsp + 0x50], ecx
cmp ecx, r13d
jle 0x14005310a
mov eax, dword [rsp + 0x168]
mov byte [rsp + 0x160], r12b
shr r12w, 8
shr eax, 0x10
mov dword [rsp + 0x50], r13d
jmp 0x140053147
test ecx, ecx
jle 0x140053127
mov eax, dword [rsp + 0x168]
mov byte [rsp + 0x160], r12b
shr r12w, 8
shr eax, 0x10
jmp 0x140053147
movzx eax, byte [rsp + 0x180]
movzx r12d, byte [rsp + 0x180]
mov byte [rsp + 0x160], al
movzx eax, byte [rsp + 0x180]
xor ecx, ecx
mov dword [rsp + 0x5c], eax
call qword [sym.imp.USER32.dll_GetDC]
mov qword [rsp + 0x78], rax
mov r9, rax
test rax, rax
je 0x140053a18
cmp byte [rsp + 0x148], 0
mov byte [rsp + 0x150], 0
je 0x14005373e
sub r14d, dword [rsp + 0x54]
mov rcx, rax
sub edi, dword [rsp + 0x70]
inc r14d
mov qword [rsp + 0x90], rsi
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0xa8], rsi
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov qword [rsp + 0x88], rax
test rax, rax
je 0x140053629
mov rcx, qword [rsp + 0x78]
lea edx, [rdi + 1]
mov r8d, r14d
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov qword [rsp + 0x90], rax
test rax, rax
je 0x140053629
mov rcx, qword [rsp + 0x88]
mov rdx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov qword [rsp + 0xa8], rax
test rax, rax
je 0x140053629
mov eax, dword [rsp + 0x54]
lea r9d, [rdi + 1]
mov rdi, qword [rsp + 0x88]
xor r8d, r8d
mov dword [rsp + 0x40], 0xcc0020
xor edx, edx
mov dword [rsp + 0x38], eax
mov rcx, rdi
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
call qword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x140053629
mov rcx, qword [rsp + 0x90]
lea rax, [rsp + 0x170]
mov dword [rsp + 0x28], 8
lea r9, [rsp + 0x150]
lea r8, [rsp + 0x148]
mov qword [rsp + 0x20], rax
mov rdx, rdi
call fcn.140052cb0
mov qword [rsp + 0x98], rax
mov r10, rax
test rax, rax
je 0x140053629
mov r14d, dword [rsp + 0x148]
mov r9d, r14d
imul r9d, dword [rsp + 0x150]
movzx r8d, byte [rsp + 0x170]
test r8b, r8b
je 0x140053372
mov edi, esi
test r9d, r9d
jle 0x140053340
cmp r9d, 0x10
jb 0x140053340
mov ecx, r9d
and ecx, 0x8000000f
jge 0x1400532d7
dec ecx
or ecx, 0xfffffff0
inc ecx
movdqa xmm2, xmmword [0x1400ee2a0]
mov eax, r9d
sub eax, ecx
mov rcx, rsi
movsxd rdx, eax
lea rax, [r10 + 0x20]
nop
movdqu xmm0, xmmword [rax - 0x20]
lea rax, [rax + 0x40]
add edi, 0x10
movdqa xmm1, xmm2
add rcx, 0x10
pand xmm1, xmm0
movdqu xmmword [rax - 0x60], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x50]
pand xmm0, xmm2
movdqu xmmword [rax - 0x50], xmm0
movdqu xmm0, xmmword [rax - 0x40]
pand xmm1, xmm0
movdqu xmmword [rax - 0x40], xmm1
movdqu xmm0, xmmword [rax - 0x30]
pand xmm0, xmm2
movdqu xmmword [rax - 0x30], xmm0
cmp rcx, rdx
jl 0x1400532f0
movsxd rcx, edi
movsxd rdx, r9d
cmp rcx, rdx
jge 0x140053379
mov eax, edx
sub eax, ecx
add edi, eax
nop dword [rax]
nop word [rax + rax]
and dword [r10 + rcx*4], 0xf8f8f8f8
inc rcx
cmp rcx, rdx
jl 0x140053360
jmp 0x140053379
mov edi, dword [rsp + 0x180]
cmp byte [rsp + 0x180], 0
je 0x1400533f4
mov r8d, dword [r10]
and r8d, 0xffffff
cmp byte [rsp + 0x158], 0
jne 0x1400533b1
movzx ecx, r8w
movzx eax, r8b
and ecx, 0xffffff00
shl eax, 0x10
or ecx, eax
shr r8d, 0x10
or r8d, ecx
lea rdx, str.0x_06X
lea rcx, [rsp + 0xb0]
call fcn.140005bf0
mov r15, qword [rsp + 0x68]
lea rdx, [rsp + 0xb0]
mov r12, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
mov r8, r12
mov rcx, r15
xor r9d, r9d
call fcn.1400afca0
mov bpl, 1
jmp 0x140053647
mov r11d, dword [rsp + 0x50]
cmp r11d, 1
jge 0x140053499
mov r11d, dword [rsp + 0x58]
test r8b, r8b
je 0x140053414
and r11d, 0xf8f8f8f8
test r9d, r9d
jle 0x140053638
mov r12d, dword [rsp + 0x60]
lea r8d, [r9 - 1]
mov r13d, dword [rsp + 0x64]
nop dword [rax + rax]
cmp r13d, r12d
jle 0x140053452
cmp r15d, ebp
jle 0x14005343f
mov edi, r8d
jmp 0x140053470
mov eax, esi
cdq
idiv r14d
lea edi, [rax + 1]
imul edi, r14d
sub edi, edx
dec edi
jmp 0x140053470
cmp r15d, ebp
jle 0x14005346e
mov eax, r8d
cdq
idiv r14d
mov edi, eax
mov eax, esi
cdq
imul edi, r14d
idiv r14d
add edi, edx
jmp 0x140053470
mov edi, esi
movsxd rax, edi
mov ecx, dword [r10 + rax*4]
and ecx, 0xffffff
cmp ecx, r11d
je 0x140053491
inc esi
dec r8d
cmp esi, r9d
jl 0x140053430
jmp 0x140053638
mov bpl, 1
jmp 0x14005363b
movzx edx, byte [rsp + 0x160]
test r8b, r8b
mov r8d, dword [rsp + 0x5c]
je 0x1400534b6
and dl, 0xf8
and r12b, 0xf8
and r8b, 0xf8
mov ebx, dword [rsp + 0x50]
movzx eax, dl
sub al, r11b
movzx ecx, dl
movzx eax, al
cmp r11d, ecx
mov r10d, esi
movzx r11d, r12b
cmovle r10d, eax
mov dword [rsp + 0x148], esi
movzx eax, r12b
mov dword [rsp + 0x158], r10d
sub al, bl
mov r10d, esi
movzx eax, al
cmp ebx, r11d
cmovle r10d, eax
movzx eax, r8b
mov dword [rsp + 0x150], eax
movzx eax, r8b
sub al, bl
mov dword [rsp + 0x58], r10d
cmp ebx, dword [rsp + 0x150]
mov ebx, esi
movzx eax, al
cmovle ebx, eax
mov eax, r13d
sub eax, ecx
mov dword [rsp + 0x148], ebx
mov ecx, dword [rsp + 0x50]
cmp ecx, eax
jle 0x140053539
mov byte [rsp + 0x160], r13b
jmp 0x140053542
add cl, dl
mov byte [rsp + 0x160], cl
mov eax, r13d
sub eax, r11d
mov r11d, dword [rsp + 0x50]
cmp r11d, eax
jle 0x140053558
movzx r12d, r13b
jmp 0x14005355b
add r12d, r11d
sub r13d, dword [rsp + 0x150]
cmp r11d, r13d
jle 0x14005356d
mov r11b, 0xff
jmp 0x140053570
add r11b, r8b
mov rbx, qword [rsp + 0x80]
mov r10, qword [rsp + 0x98]
test r9d, r9d
jle 0x140053638
movzx r13d, byte [rsp + 0x160]
lea r8d, [r9 - 1]
mov eax, dword [rsp + 0x64]
cmp eax, dword [rsp + 0x60]
jle 0x1400535bd
cmp r15d, ebp
jle 0x1400535aa
mov edi, r8d
jmp 0x1400535db
mov eax, esi
cdq
idiv r14d
lea edi, [rax + 1]
imul edi, r14d
sub edi, edx
dec edi
jmp 0x1400535db
cmp r15d, ebp
jle 0x1400535d9
mov eax, r8d
cdq
idiv r14d
mov edi, eax
mov eax, esi
cdq
imul edi, r14d
idiv r14d
add edi, edx
jmp 0x1400535db
mov edi, esi
movsxd rax, edi
mov edx, dword [r10 + rax*4]
mov ecx, edx
movzx eax, dx
shr ecx, 0x10
shr ax, 8
cmp cl, byte [rsp + 0x158]
jb 0x140053619
cmp cl, r13b
ja 0x140053619
cmp al, byte [rsp + 0x58]
jb 0x140053619
cmp al, r12b
ja 0x140053619
cmp dl, byte [rsp + 0x148]
jb 0x140053619
cmp dl, r11b
jbe 0x140053491
inc esi
dec r8d
cmp esi, r9d
jl 0x140053596
jmp 0x140053638
mov r14d, dword [rsp + 0x148]
mov edi, dword [rsp + 0x180]
xor bpl, bpl
mov r15, qword [rsp + 0x68]
mov r12, 0xffffffffffffffff
mov rdx, qword [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rsi, qword [rsp + 0x88]
test rsi, rsi
je 0x140053683
mov rax, qword [rsp + 0xa8]
test rax, rax
je 0x14005367a
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, rsi
call qword [sym.imp.GDI32.dll_DeleteDC]
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x140053699
mov rcx, rax
call qword [sym.imp.GDI32.dll_DeleteObject]
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x140053a1f
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp byte [rsp + 0x180], 0
jne 0x14005370a
test bpl, bpl
je 0x14005370a
test r15, r15
je 0x1400536e1
mov eax, edi
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
cdq
mov rcx, r15
idiv r14d
sub edx, ebx
add edx, dword [rsp + 0x70]
movsxd rdx, edx
call fcn.1400014c0
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x14005370a
mov eax, edi
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
cdq
idiv r14d
sub eax, dword [rsp + 0x84]
add eax, dword [rsp + 0x54]
movsxd rdx, eax
call fcn.1400014c0
mov rcx, qword [0x140101c20]
lea rdx, [0x1400cb6f4]
test bpl, bpl
mov byte [rsp + 0x20], 1
lea rax, [0x1400e0c2c]
mov r8, r12
cmovne rax, rdx
xor r9d, r9d
mov rdx, rax
call fcn.1400afca0
jmp 0x140053a86
mov r11d, dword [rsp + 0x50]
test r11d, r11d
jle 0x14005381e
movzx ecx, byte [rsp + 0x160]
mov r8d, ecx
cmp r11d, ecx
jle 0x140053766
mov byte [rsp + 0x180], 0
jmp 0x140053773
movzx eax, cl
sub al, r11b
mov byte [rsp + 0x180], al
mov edx, dword [rsp + 0x5c]
movzx eax, r12b
sub al, r11b
movzx r9d, r12b
movzx eax, al
cmp r11d, r9d
mov r14d, esi
movzx r10d, dl
cmovle r14d, eax
mov edi, esi
movzx eax, dl
mov dword [rsp + 0x158], r14d
sub al, r11b
movzx eax, al
cmp r11d, r10d
cmovle edi, eax
mov eax, r13d
sub eax, r8d
mov dword [rsp + 0x54], edi
cmp r11d, eax
jle 0x1400537c5
mov byte [rsp + 0x160], r13b
jmp 0x1400537d0
lea eax, [rcx + r11]
mov byte [rsp + 0x160], al
mov eax, r13d
sub eax, r9d
cmp r11d, eax
jle 0x1400537e5
mov byte [rsp + 0x170], r13b
jmp 0x1400537f0
lea ecx, [r12 + r11]
mov byte [rsp + 0x170], cl
mov r12d, dword [rsp + 0x50]
sub r13d, r10d
mov r9, qword [rsp + 0x78]
cmp r12d, r13d
jle 0x14005380c
mov byte [rsp + 0x148], 0xff
jmp 0x14005387a
lea eax, [rdx + r12]
mov dword [rsp + 0x158], r14d
mov dword [rsp + 0x54], edi
jmp 0x140053873
movzx eax, byte [rsp + 0x180]
mov r12d, dword [rsp + 0x50]
mov byte [rsp + 0x180], al
movzx eax, byte [rsp + 0x180]
mov dword [rsp + 0x158], eax
movzx eax, byte [rsp + 0x180]
mov dword [rsp + 0x54], eax
movzx eax, byte [rsp + 0x180]
mov byte [rsp + 0x160], al
movzx eax, byte [rsp + 0x180]
mov byte [rsp + 0x170], al
movzx eax, byte [rsp + 0x180]
mov byte [rsp + 0x148], al
mov edx, dword [rsp + 0x64]
mov r8, 0xffffffffffffffff
mov edi, dword [rsp + 0x180]
mov r14d, edx
mov r13d, dword [rsp + 0x168]
mov ecx, dword [rsp + 0x60]
nop dword [rax + rax]
mov eax, esi
cmp edx, ecx
jle 0x1400538ae
cmp r14d, ecx
setge al
jmp 0x1400538b4
cmp r14d, ecx
setle al
test eax, eax
je 0x140053901
mov edi, r15d
nop dword [rax + rax]
mov eax, esi
cmp r15d, ebp
jle 0x1400538ce
cmp edi, ebp
setge al
jmp 0x1400538d3
cmp edi, ebp
setle al
test eax, eax
je 0x1400539a2
mov r8d, edi
mov edx, r14d
mov rcx, r9
call qword [sym.imp.GDI32.dll_GetPixel]
cmp r12d, 1
jge 0x140053940
cmp eax, r13d
jne 0x140053983
mov byte [rsp + 0x150], 1
mov rdx, qword [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
cmp byte [rsp + 0x150], 0
jne 0x1400539bd
mov rcx, qword [0x140101c20]
lea rdx, [0x1400e0c2c]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400afca0
jmp 0x140053a86
movzx ecx, ax
mov edx, eax
shr cx, 8
shr edx, 0x10
cmp al, byte [rsp + 0x180]
jb 0x140053983
cmp al, byte [rsp + 0x160]
ja 0x140053983
cmp cl, byte [rsp + 0x158]
jb 0x140053983
cmp cl, byte [rsp + 0x170]
ja 0x140053983
cmp dl, byte [rsp + 0x54]
jb 0x140053983
cmp dl, byte [rsp + 0x148]
jbe 0x1400538f9
mov r9, qword [rsp + 0x78]
cmp r15d, ebp
mov eax, 1
mov r8, 0xffffffffffffffff
cmovg eax, r8d
add edi, eax
jmp 0x1400538c0
mov ecx, dword [rsp + 0x60]
mov eax, 1
mov edx, dword [rsp + 0x64]
cmp edx, ecx
cmovg eax, r8d
add r14d, eax
jmp 0x1400538a0
mov r15, qword [rsp + 0x68]
test r15, r15
je 0x1400539d8
sub r14d, ebx
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
movsxd rdx, r14d
mov rcx, r15
call fcn.1400014c0
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x1400539f7
sub edi, dword [rsp + 0x84]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
movsxd rdx, edi
call fcn.1400014c0
mov rcx, qword [0x140101c20]
lea rdx, [0x1400cb6f4]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400afca0
jmp 0x140053a86
mov r12, 0xffffffffffffffff
cmp byte [rsp + 0x180], 0
lea rax, [0x1400e0c2c]
lea rdx, [0x1400e1194]
cmovne rdx, rax
cmp word [rdx], 0x30
jne 0x140053a46
cmp word [rdx + 2], 0
je 0x140053a56
mov rax, qword [0x1400fe060]
test byte [rax + 0x140], 1
jne 0x140053a6f
mov rcx, qword [0x140101c20]
xor r9d, r9d
mov r8, r12
mov byte [rsp + 0x20], 1
call fcn.1400afca0
jmp 0x140053a86
mov rcx, qword [rsp + 0x140]
lea r9, [0x1400cb664]
xor r8d, r8d
call fcn.1400465b0
add rsp, 0xf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret