Function at 0x14005d440
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, 0x108
movzx esi, byte [rsp + 0x190]
mov edi, r9d
mov rbx, qword [rsp + 0x188]
mov ebp, r8d
mov r14d, edx
mov r15, rcx
test sil, sil
jne 0x14005d495
lea rdx, str.Fast
mov rcx, rbx
call fcn.1400ad2f0
mov byte [rsp + 0x158], sil
test rax, rax
je 0x14005d49d
mov byte [rsp + 0x158], 1
lea rdx, [0x140118c20]
mov rcx, rbx
call fcn.1400ad2f0
mov r13d, dword [rsp + 0x178]
mov ecx, r13d
shr ecx, 0x10
movzx edx, cl
movzx r8d, r13w
and r8d, 0xffffff00
movzx ecx, r13b
shl ecx, 0x10
or r8d, edx
or r8d, ecx
mov qword [rsp + 0xb0], rax
test rax, rax
je 0x14005d4f4
mov dword [rsp + 0x54], r13d
mov r13d, r8d
mov dword [rsp + 0x178], r8d
jmp 0x14005d4f9
mov dword [rsp + 0x54], r8d
mov rax, qword [0x140136490]
mov qword [rsp + 0x78], rax
test sil, sil
je 0x14005d510
xor esi, esi
mov ebx, esi
jmp 0x14005d521
xor esi, esi
cmp byte [r15 + 1], 1
mov ebx, esi
cmova rbx, qword [0x140136498]
mov qword [rsp + 0xa8], rbx
mov rcx, 0xffffffffffffffff
test rax, rax
je 0x14005d551
mov r8, rcx
mov byte [rsp + 0x20], 1
mov rcx, rax
xor r9d, r9d
xor edx, edx
call fcn.1400b0830
mov rcx, 0xffffffffffffffff
test rbx, rbx
je 0x14005d56b
mov r8, rcx
mov byte [rsp + 0x20], 1
mov rcx, rbx
xor r9d, r9d
xor edx, edx
call fcn.1400b0830
xor r8d, r8d
mov qword [rsp + 0x90], rsi
lea rdx, [rsp + 0x94]
lea rcx, [rsp + 0x90]
call fcn.1400ae430
mov r8d, dword [rsp + 0x94]
mov r12d, 0xff
mov rbx, qword [rsp + 0x90]
lea r15d, [r8 + rbp]
mov ebp, dword [rsp + 0x170]
add ebp, r8d
lea edx, [rbx + r14]
lea ecx, [rbx + rdi]
mov dword [rsp + 0x68], edx
cmp edx, ecx
mov dword [rsp + 0x64], ecx
mov eax, ecx
mov edi, edx
cmovle eax, edx
cmovle edi, ecx
cmp r15d, ebp
mov dword [rsp + 0x80], eax
mov eax, ebp
mov r14d, r15d
cmovle eax, r15d
cmovle r14d, ebp
mov dword [rsp + 0x84], eax
mov ecx, esi
mov eax, dword [rsp + 0x180]
test eax, eax
cmovns ecx, eax
mov dword [rsp + 0x50], ecx
cmp ecx, r12d
jle 0x14005d60e
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x168], r12d
jmp 0x14005d620
mov dword [rsp + 0x168], ecx
mov dword [rsp + 0x180], ecx
test ecx, ecx
jle 0x14005d641
mov ecx, dword [rsp + 0x178]
movzx eax, cx
shr ax, 8
mov word [rsp + 0x160], ax
mov eax, ecx
shr eax, 0x10
mov dword [rsp + 0x60], eax
jmp 0x14005d666
movzx eax, byte [rsp + 0x190]
movzx ecx, byte [rsp + 0x190]
movzx r13d, byte [rsp + 0x190]
mov word [rsp + 0x160], ax
mov dword [rsp + 0x60], ecx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetDC]
mov qword [rsp + 0x58], rax
mov r9, rax
test rax, rax
je 0x14005dfe1
cmp byte [rsp + 0x158], 0
mov byte [rsp + 0x180], 0
je 0x14005dcf4
sub r14d, dword [rsp + 0x84]
mov rcx, rax
sub edi, dword [rsp + 0x80]
inc r14d
mov qword [rsp + 0xa0], rsi
mov r12, rsi
mov qword [rsp + 0x70], rsi
call qword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov qword [rsp + 0x98], rax
test rax, rax
je 0x14005db8c
mov rcx, qword [rsp + 0x58]
lea edx, [rdi + 1]
mov r8d, r14d
call qword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x14005db8c
mov rcx, qword [rsp + 0x98]
mov rdx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
mov qword [rsp + 0x70], rax
test rax, rax
je 0x14005db8c
mov eax, dword [rsp + 0x84]
lea r9d, [rdi + 1]
mov rdi, qword [rsp + 0x98]
xor r8d, r8d
mov dword [rsp + 0x40], 0xcc0020
xor edx, edx
mov dword [rsp + 0x38], eax
mov rcx, rdi
mov eax, dword [rsp + 0x80]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
call qword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
je 0x14005db8c
mov rcx, qword [rsp + 0xa0]
lea rax, [rsp + 0x170]
mov dword [rsp + 0x28], 8
lea r9, [rsp + 0x88]
lea r8, [rsp + 0x158]
mov qword [rsp + 0x20], rax
mov rdx, rdi
call fcn.14005d1e0
mov r12, rax
test rax, rax
je 0x14005db8c
mov r14d, dword [rsp + 0x158]
mov r9d, r14d
imul r9d, dword [rsp + 0x88]
movzx r8d, byte [rsp + 0x170]
test r8b, r8b
je 0x14005d872
mov edi, esi
test r9d, r9d
jle 0x14005d848
cmp r9d, 0x10
jb 0x14005d848
mov ecx, r9d
and ecx, 0x8000000f
jge 0x14005d7e7
dec ecx
or ecx, 0xfffffff0
inc ecx
movdqa xmm2, xmmword [0x14011c800]
mov eax, r9d
sub eax, ecx
mov rcx, rsi
movsxd rdx, eax
lea rax, [r12 + 0x20]
nop
movdqu xmm0, xmmword [rax - 0x20]
add edi, 0x10
lea rax, [rax + 0x40]
add rcx, 0x10
andps xmm0, xmm2
movdqu xmmword [rax - 0x60], xmm0
movdqu xmm0, xmmword [rax - 0x50]
andps xmm0, xmm2
movdqu xmmword [rax - 0x50], xmm0
movdqu xmm1, xmmword [rax - 0x40]
andps xmm1, xmm2
movdqu xmmword [rax - 0x40], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x30]
andps xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
cmp rcx, rdx
jl 0x14005d800
movsxd rcx, edi
movsxd rdx, r9d
cmp rcx, rdx
jge 0x14005d879
mov eax, edx
sub eax, ecx
add edi, eax
nop dword [rax]
and dword [r12 + rcx*4], 0xf8f8f8f8
inc rcx
cmp rcx, rdx
jl 0x14005d860
jmp 0x14005d879
mov edi, dword [rsp + 0x170]
cmp byte [rsp + 0x190], 0
je 0x14005d92d
mov r8d, dword [r12]
and r8d, 0xffffff
cmp qword [rsp + 0xb0], 0
jne 0x14005d8b7
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 + 0xc0]
call fcn.140006c50
mov rbp, qword [rsp + 0x78]
lea rdx, [rsp + 0xc0]
mov r15, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
mov r8, r15
mov rcx, rbp
xor r9d, r9d
call fcn.1400b0830
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
mov byte [rsp + 0x180], 1
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x14005dc34
mov ecx, dword [rsp + 0x50]
cmp ecx, 1
jge 0x14005d9e3
mov r10d, dword [rsp + 0x54]
test r8b, r8b
je 0x14005d94b
and r10d, 0xf8f8f8f8
test r9d, r9d
jle 0x14005d9cc
mov r11d, dword [rsp + 0x64]
lea r8d, [r9 - 1]
mov r13d, dword [rsp + 0x68]
nop
cmp r13d, r11d
jle 0x14005d988
cmp r15d, ebp
jle 0x14005d96f
mov edi, r8d
jmp 0x14005d9a6
mov eax, esi
cdq
idiv r14d
lea edi, [rax + 1]
mov eax, esi
cdq
imul edi, r14d
idiv r14d
sub edi, edx
dec edi
jmp 0x14005d9a6
cmp r15d, ebp
jle 0x14005d9a4
mov eax, r8d
cdq
idiv r14d
mov edi, eax
mov eax, esi
cdq
imul edi, r14d
idiv r14d
add edi, edx
jmp 0x14005d9a6
mov edi, esi
movsxd rax, edi
mov ecx, dword [r12 + rax*4]
and ecx, 0xffffff
cmp ecx, r10d
je 0x14005d9c4
inc esi
dec r8d
cmp esi, r9d
jl 0x14005d960
jmp 0x14005d9cc
mov byte [rsp + 0x180], 1
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rdx, qword [rsp + 0x70]
jmp 0x14005dbe2
movzx edx, word [rsp + 0x160]
test r8b, r8b
mov r8d, dword [rsp + 0x60]
je 0x14005da00
and r13b, 0xf8
and dl, 0xf8
and r8b, 0xf8
movzx r10d, r13b
cmp ecx, r10d
jle 0x14005da13
mov byte [rsp + 0x170], 0
jmp 0x14005da27
movzx eax, r13b
mov byte [rsp + 0x168], cl
sub al, cl
mov byte [rsp + 0x170], al
movzx eax, dl
movzx r11d, dl
sub al, byte [rsp + 0x168]
cmp ecx, r11d
movzx eax, al
mov ecx, esi
mov dword [rsp + 0x160], esi
cmovle ecx, eax
mov dword [rsp + 0x54], esi
mov dword [rsp + 0x160], ecx
movzx eax, r8b
sub al, byte [rsp + 0x168]
movzx ecx, r8b
cmp dword [rsp + 0x50], ecx
mov dword [rsp + 0x88], ecx
mov ecx, esi
movzx eax, al
cmovle ecx, eax
mov dword [rsp + 0x54], ecx
mov ecx, 0xff
mov eax, ecx
sub eax, r10d
mov r10d, dword [rsp + 0x50]
cmp r10d, eax
jle 0x14005da92
movzx r13d, cl
jmp 0x14005da9a
add r13b, byte [rsp + 0x168]
mov eax, ecx
sub eax, r11d
cmp r10d, eax
mov eax, dword [rsp + 0x168]
jle 0x14005dab1
movzx r10d, cl
jmp 0x14005dab5
lea r10d, [rdx + rax]
sub ecx, dword [rsp + 0x88]
cmp dword [rsp + 0x50], ecx
jle 0x14005dacc
mov byte [rsp + 0x168], 0xff
jmp 0x14005dad6
add al, r8b
mov dword [rsp + 0x168], eax
test r9d, r9d
jle 0x14005db9b
movzx r11d, byte [rsp + 0x170]
lea r8d, [r9 - 1]
nop dword [rax]
mov eax, dword [rsp + 0x68]
cmp eax, dword [rsp + 0x64]
jle 0x14005db1d
cmp r15d, ebp
jle 0x14005db04
mov edi, r8d
jmp 0x14005db3b
mov eax, esi
cdq
idiv r14d
lea edi, [rax + 1]
mov eax, esi
cdq
imul edi, r14d
idiv r14d
sub edi, edx
dec edi
jmp 0x14005db3b
cmp r15d, ebp
jle 0x14005db39
mov eax, r8d
cdq
idiv r14d
mov edi, eax
mov eax, esi
cdq
imul edi, r14d
idiv r14d
add edi, edx
jmp 0x14005db3b
mov edi, esi
movsxd rax, edi
mov edx, dword [r12 + rax*4]
mov ecx, edx
movzx eax, dx
shr ecx, 0x10
shr ax, 8
cmp cl, r11b
jb 0x14005db79
cmp cl, r13b
ja 0x14005db79
cmp al, byte [rsp + 0x160]
jb 0x14005db79
cmp al, r10b
ja 0x14005db79
cmp dl, byte [rsp + 0x54]
jb 0x14005db79
cmp dl, byte [rsp + 0x168]
jbe 0x14005d9c4
inc esi
dec r8d
cmp esi, r9d
jl 0x14005daf0
jmp 0x14005d9cc
mov r14d, dword [rsp + 0x158]
mov edi, dword [rsp + 0x170]
mov rax, qword [rsp + 0x70]
xor ecx, ecx
mov rdx, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
call qword [sym.imp.USER32.dll_ReleaseDC]
cmp qword [rsp + 0x98], 0
je 0x14005dc28
mov rdx, qword [rsp + 0x70]
xor sil, sil
mov rax, qword [rsp + 0xa0]
mov byte [rsp + 0x180], sil
mov qword [rsp + 0xa0], rax
test rdx, rdx
je 0x14005dc0c
mov rcx, qword [rsp + 0x98]
mov r15, 0xffffffffffffffff
mov rbp, qword [rsp + 0x78]
call qword [sym.imp.GDI32.dll_SelectObject]
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x14005dc34
mov rcx, qword [rsp + 0x98]
mov r15, 0xffffffffffffffff
mov rbp, qword [rsp + 0x78]
call qword [sym.imp.GDI32.dll_DeleteDC]
jmp 0x14005dc34
mov rbp, qword [rsp + 0x78]
mov r15, 0xffffffffffffffff
mov rax, qword [rsp + 0xa0]
test rax, rax
je 0x14005dc4a
mov rcx, rax
call qword [sym.imp.GDI32.dll_DeleteObject]
test r12, r12
je 0x14005dfe8
mov rcx, r12
call fcn.1400d29a8
cmp byte [rsp + 0x190], 0
movzx esi, byte [rsp + 0x180]
jne 0x14005dcc0
test sil, sil
je 0x14005dcc0
test rbp, rbp
je 0x14005dc94
mov eax, edi
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
cdq
mov rcx, rbp
idiv r14d
sub edx, ebx
add edx, dword [rsp + 0x80]
movsxd rdx, edx
call fcn.1400014b0
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x14005dcc0
mov eax, edi
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
cdq
idiv r14d
sub eax, dword [rsp + 0x94]
add eax, dword [rsp + 0x84]
movsxd rdx, eax
call fcn.1400014b0
mov rcx, qword [0x140134210]
lea rdx, [0x1400fb96c]
test sil, sil
mov byte [rsp + 0x20], 1
lea rax, [0x14011037c]
mov r8, r15
cmovne rax, rdx
xor r9d, r9d
mov rdx, rax
call fcn.1400b0830
jmp 0x14005e04f
mov r11d, dword [rsp + 0x50]
test r11d, r11d
jle 0x14005ddf9
movzx edx, r13b
cmp r11d, edx
jle 0x14005dd1c
mov edi, dword [rsp + 0x168]
mov byte [rsp + 0x190], 0
jmp 0x14005dd2e
movzx eax, r13b
movzx edi, r11b
sub al, r11b
mov byte [rsp + 0x190], al
movzx ecx, word [rsp + 0x160]
mov r8d, esi
movzx eax, cl
movzx r9d, cl
sub al, dil
mov r14d, esi
movzx eax, al
cmp r11d, r9d
cmovle r8d, eax
mov dword [rsp + 0x158], r8d
mov r8d, dword [rsp + 0x60]
movzx eax, r8b
sub al, dil
movzx r10d, r8b
movzx eax, al
cmp r11d, r10d
cmovle r14d, eax
mov eax, r12d
sub eax, edx
mov dword [rsp + 0x160], r14d
cmp r11d, eax
jle 0x14005dd8e
mov byte [rsp + 0x180], r12b
jmp 0x14005dd99
lea eax, [rdi + r13]
mov byte [rsp + 0x180], al
mov r13d, dword [rsp + 0x50]
mov eax, r12d
sub eax, r9d
cmp r13d, eax
jle 0x14005ddb3
mov byte [rsp + 0x170], r12b
jmp 0x14005ddbd
lea edx, [rcx + rdi]
mov byte [rsp + 0x170], dl
mov r9, qword [rsp + 0x58]
sub r12d, r10d
cmp r13d, r12d
jle 0x14005ddd7
mov byte [rsp + 0x168], 0xff
jmp 0x14005de58
mov ecx, dword [rsp + 0x158]
add dil, r8b
mov dword [rsp + 0x168], edi
mov dword [rsp + 0x158], ecx
mov dword [rsp + 0x160], r14d
jmp 0x14005de58
movzx eax, byte [rsp + 0x190]
mov r13d, dword [rsp + 0x50]
mov byte [rsp + 0x190], al
movzx eax, byte [rsp + 0x190]
mov dword [rsp + 0x158], eax
movzx eax, byte [rsp + 0x190]
mov dword [rsp + 0x160], eax
movzx eax, byte [rsp + 0x190]
mov byte [rsp + 0x180], al
movzx eax, byte [rsp + 0x190]
mov byte [rsp + 0x170], al
movzx eax, byte [rsp + 0x190]
mov dword [rsp + 0x168], eax
mov edx, dword [rsp + 0x68]
mov r8, 0xffffffffffffffff
mov r12d, dword [rsp + 0x178]
mov r14d, edx
mov ecx, dword [rsp + 0x64]
mov eax, esi
cmp edx, ecx
jle 0x14005de80
cmp r14d, ecx
setge al
jmp 0x14005de86
cmp r14d, ecx
setle al
test eax, eax
je 0x14005dfb5
mov edi, r15d
mov eax, esi
cmp r15d, ebp
jle 0x14005de9f
cmp edi, ebp
setge al
jmp 0x14005dea4
cmp edi, ebp
setle al
test eax, eax
je 0x14005df9a
mov r8d, edi
mov edx, r14d
mov rcx, r9
call qword [sym.imp.GDI32.dll_GetPixel]
cmp r13d, 1
jge 0x14005df35
cmp eax, r12d
jne 0x14005df7b
mov rdx, qword [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rbp, qword [rsp + 0x78]
test rbp, rbp
je 0x14005def2
sub r14d, ebx
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
movsxd rdx, r14d
mov rcx, rbp
call fcn.1400014b0
mov rcx, qword [rsp + 0xa8]
test rcx, rcx
je 0x14005df11
sub edi, dword [rsp + 0x94]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
movsxd rdx, edi
call fcn.1400014b0
mov rcx, qword [0x140134210]
lea rdx, [0x1400fb96c]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400b0830
jmp 0x14005e04f
movzx ecx, ax
mov edx, eax
shr cx, 8
shr edx, 0x10
cmp al, byte [rsp + 0x190]
jb 0x14005df7b
cmp al, byte [rsp + 0x180]
ja 0x14005df7b
cmp cl, byte [rsp + 0x158]
jb 0x14005df7b
cmp cl, byte [rsp + 0x170]
ja 0x14005df7b
cmp dl, byte [rsp + 0x160]
jb 0x14005df7b
cmp dl, byte [rsp + 0x168]
jbe 0x14005deca
mov r9, qword [rsp + 0x58]
cmp r15d, ebp
mov eax, 1
mov r8, 0xffffffffffffffff
cmovg eax, r8d
add edi, eax
jmp 0x14005de91
mov ecx, dword [rsp + 0x64]
mov eax, 1
mov edx, dword [rsp + 0x68]
cmp edx, ecx
cmovg eax, r8d
add r14d, eax
jmp 0x14005de72
mov rdx, r9
xor ecx, ecx
call qword [sym.imp.USER32.dll_ReleaseDC]
mov rcx, qword [0x140134210]
lea rdx, [0x14011037c]
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea r8, [r9 - 1]
call fcn.1400b0830
jmp 0x14005e04f
mov r15, 0xffffffffffffffff
cmp byte [rsp + 0x190], 0
lea rax, [0x14011037c]
lea rdx, [0x140110904]
cmovne rdx, rax
cmp word [rdx], 0x30
jne 0x14005e00f
cmp word [rdx + 2], 0
je 0x14005e01f
mov rax, qword [0x14012fc08]
test byte [rax + 0x140], 1
jne 0x14005e038
mov rcx, qword [0x140134210]
xor r9d, r9d
mov r8, r15
mov byte [rsp + 0x20], 1
call fcn.1400b0830
jmp 0x14005e04f
mov rcx, qword [rsp + 0x150]
lea r9, [0x1400fb87c]
xor r8d, r8d
call fcn.140050b90
add rsp, 0x108
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret