Function at 0x14014ccc0
Capabilities:
Capture webcam image

Disassembly:
mov r11, rsp
push rbp
push rdi
lea rbp, [r11 - 0x1d8]
sub rsp, 0x2c8
mov rax, qword [0x1402c0040]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rdi, rcx
mov ecx, dword [rcx + 0x18]
sub ecx, 1
je 0x14014d13c
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x28], r15
cmp ecx, 0x10000
jne 0x14014d138
mov rcx, qword ds:[rdi + 0x20]
xorps xmm0, xmm0
xor eax, eax
mov dword [rsp + 0x48], 0x30
mov edx, 1
mov qword [rsp + 0x70], rax
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x4c], 0x2d
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.GDI32.dll_SetBkMode]
mov r8, qword [rdi + 0x38]
xor r13d, r13d
mov rcx, qword [rdi]
xor r9d, r9d
mov edx, 0x419
mov dword [rsp + 0x44], r13d
mov dword [rsp + 0x40], r13d
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi]
xor r9d, r9d
xor r8d, r8d
mov ebx, eax
mov edx, 0x447
call qword [sym.imp.USER32.dll_SendMessageW]
mov r8, qword [rdi + 0x38]
xor r9d, r9d
mov rcx, qword [rdi]
mov edx, 0x40b
mov r15, rax
call qword [sym.imp.USER32.dll_SendMessageW]
mov r8, qword [rdi + 0x38]
xor r9d, r9d
mov rcx, qword [rdi]
mov edx, 0x409
call qword [sym.imp.USER32.dll_SendMessageW]
mov r8d, dword ds:[rdi + 0x38]
lea r9, [rsp + 0x48]
mov rcx, qword [rdi]
mov edx, 0x43f
mov r12, rax
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rax, 0xffffffffffffffff
je 0x14014d138
mov rcx, qword [rdi + 0x20]
mov edx, 0xffffff
mov qword [rsp + 0x2f0], rsi
mov qword [rsp + 0x2b8], r14
movzx r14d, byte [rsp + 0x59]
shr r14b, 7
cmp r15, rbx
jne 0x14014ce09
call qword [sym.imp.GDI32.dll_SetTextColor]
mov rcx, qword [rdi + 0x20]
mov edx, 0x808080
jmp 0x14014ce2b
movzx ebx, byte [rsp + 0x58]
call qword [sym.imp.GDI32.dll_SetTextColor]
mov rcx, qword [rdi + 0x20]
test bl, 2
jne 0x14014ce26
mov r8, qword [0x1402cba40]
jmp 0x14014ce43
mov edx, 0x606060
call qword [sym.imp.GDI32.dll_SetDCBrushColor]
mov ecx, 0x12
call qword [sym.imp.GDI32.dll_GetStockObject]
mov rcx, qword [rdi + 0x20]
mov r8, rax
lea rdx, [rdi + 0x28]
call qword [sym.imp.USER32.dll_FillRect]
mov rcx, qword [rdi]
call sym.SystemInformer.exe_PhGetWindowDpi
mov rcx, qword [rdi]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x31
mov r15d, eax
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0x20]
mov rdx, rax
call qword [sym.imp.GDI32.dll_SelectObject]
cmp dword ds:[rsp + 0x54], 0xffffffff
je 0x14014d134
mov rcx, qword [rdi]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x431
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, rax
test rax, rax
je 0x14014d008
mov rax, qword [rax]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x44]
mov rcx, rbx
mov rax, qword [rax + 0x80]
call qword [case.0x14013dbaa.0]
test byte [rsp + 0x59], 0x40
je 0x14014cf0f
mov rax, qword [0x1402ceb18]
test rax, rax
je 0x14014cef5
test r15d, r15d
je 0x14014cef5
mov edx, r15d
mov ecx, 0x2d
call qword [case.0x14013dbaa.0]
add dword [rdi + 0x28], eax
mov r9d, dword [rdi + 0x28]
jmp 0x14014cf2f
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetSystemMetrics]
add dword [rdi + 0x28], eax
mov r9d, dword [rdi + 0x28]
jmp 0x14014cf2f
mov eax, dword [rdi + 0x30]
sub eax, dword [rdi + 0x28]
sub eax, dword [rsp + 0x44]
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
movzx eax, r14b
shl eax, 2
sub r9d, eax
add r9d, dword [rdi + 0x28]
mov ecx, dword [rdi + 0x2c]
mov eax, dword [rdi + 0x34]
mov r8, qword [rdi + 0x20]
sub eax, ecx
sub eax, dword [rsp + 0x40]
cdq
sub eax, edx
sar eax, 1
test r12, r12
lea edx, [rcx + rax]
sete al
mov byte [rsp + 0x30], al
mov rcx, rbx
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], edx
mov edx, dword [rsp + 0x54]
call sym.SystemInformer.exe_PhImageListDrawIcon
test r14b, r14b
je 0x14014d008
mov ecx, dword [rdi + 0x30]
mov eax, dword [rdi + 0x34]
sub ecx, 0xb
sub eax, dword [rdi + 0x2c]
mov rbx, qword [rdi + 0x20]
cdq
sub eax, edx
mov dword [rsp + 0x78], ecx
sar eax, 1
lea edx, [rax - 2]
lea eax, [rcx + 6]
mov dword [rsp + 0x7c], edx
mov dword [rbp - 0x80], eax
lea eax, [rcx + 3]
mov dword [rbp - 0x78], eax
mov rcx, rbx
lea eax, [rdx + 3]
mov dword [rbp - 0x7c], edx
mov edx, 0xdedede
mov dword [rbp - 0x74], eax
call qword [sym.imp.GDI32.dll_SetDCPenColor]
mov edx, 0xdedede
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SetDCBrushColor]
mov ecx, 0x13
call qword [sym.imp.GDI32.dll_GetStockObject]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
mov ecx, 0x12
call qword [sym.imp.GDI32.dll_GetStockObject]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
mov r8d, 3
lea rdx, [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_Polygon]
test byte [rsp + 0x59], 0x40
je 0x14014d0e6
movups xmm0, xmmword [rdi + 0x28]
xor edx, edx
mov word [rbp - 0x70], r13w
mov r8d, 0x206
lea rcx, [rbp - 0x6e]
movups xmmword [rsp + 0x78], xmm0
call fcn.14020ba80
mov r8d, dword [rdi + 0x38]
lea r9, [rbp - 0x70]
mov rcx, qword [rdi]
mov edx, 0x44b
call qword [sym.imp.USER32.dll_SendMessageW]
movzx eax, r14b
lea r8, [rbp - 0x70]
and r8, 0xfffffffffffffff1
xorps xmm1, xmm1
lea ecx, [rax + rax*2]
mov eax, dword [rsp + 0x44]
shl ecx, 2
sub eax, ecx
lea rcx, [rbp - 0x70]
add dword [rsp + 0x78], eax
and ecx, 0xf
je 0x14014d08f
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [r8]
pmovmskb eax, xmm0
shr eax, cl
bsf ecx, eax
je 0x14014d08b
mov r8d, ecx
shr r8, 1
jmp 0x14014d0ca
add r8, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [r8]
pmovmskb eax, xmm0
bsf ecx, eax
jne 0x14014d0b8
add r8, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [r8]
pmovmskb eax, xmm0
bsf ecx, eax
je 0x14014d0a2
lea rax, [rbp - 0x70]
sub r8, rax
mov eax, ecx
shr rax, 1
sar r8, 1
add r8, rax
mov rcx, qword ds:[rdi + 0x20]
lea r9, [rsp + 0x78]
lea rdx, [rbp - 0x70]
mov dword [rsp + 0x20], 0x100025
call qword [sym.imp.USER32.dll_DrawTextW]
mov eax, 4
mov r14, qword [rsp + 0x2b8]
mov rsi, qword [rsp + 0x2f0]
mov r12, qword [rsp + 0x2f8]
mov r13, qword [rsp + 0x2c0]
mov rbx, qword [rsp + 0x2e8]
mov r15, qword [rsp + 0x2b0]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1401e5e20
add rsp, 0x2c8
pop rdi
pop rbp
ret
xor eax, eax
jmp 0x14014d0eb
xor eax, eax
jmp 0x14014d0fb
mov eax, 0x30
jmp 0x14014d11b