Function at 0x1400657c0
Capabilities:
Capture webcam image

Disassembly:
mov r11, rsp
push rbp
push rdi
lea rbp, [r11 - 0x1d8]
sub rsp, 0x2c8
mov rax, qword [0x140155040]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rdi, rcx
mov ecx, dword [rcx + 0x18]
sub ecx, 1
je 0x140065c5c
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], r12
mov qword [r11 - 0x18], r13
cmp ecx, 0x10000
jne 0x140065c58
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 rsi, 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 0x140065c58
mov rcx, qword [rdi + 0x20]
mov edx, 0xffffff
mov qword [rsp + 0x2b8], r14
movzx r14d, byte [rsp + 0x59]
shr r14b, 7
mov qword [rsp + 0x2b0], r15
cmp rsi, rbx
jne 0x140065933
call qword [sym.imp.GDI32.dll_SetTextColor]
mov rcx, qword [rdi + 0x20]
mov edx, 0x808080
call qword [sym.imp.GDI32.dll_SetDCBrushColor]
mov rax, qword [0x140159630]
test rax, rax
jne 0x14006592d
mov ecx, 0x12
call qword [sym.imp.GDI32.dll_GetStockObject]
mov qword [0x140159630], rax
lea rsi, [rdi + 0x28]
jmp 0x140065969
movzx ebx, byte [rsp + 0x58]
call qword [sym.imp.GDI32.dll_SetTextColor]
mov rcx, qword [rdi + 0x20]
lea rsi, [rdi + 0x28]
test bl, 2
jne 0x140065954
mov r8, qword [0x140159190]
jmp 0x140065970
mov edx, 0x606060
call qword [sym.imp.GDI32.dll_SetDCBrushColor]
mov ecx, 0x12
call fcn.1400562c0
mov rcx, qword [rdi + 0x20]
mov r8, rax
mov rdx, rsi
call qword [sym.imp.USER32.dll_FillRect]
mov rcx, qword ds:[rdi]
call fcn.140056300
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 [rsp + 0x54], 0xffffffff
je 0x140065c54
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 0x140065b26
mov rax, qword [rax]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x44]
mov rcx, rbx
mov rax, qword [rax + 0x80]
call qword [case.0x140071b98.0]
test byte [rsp + 0x59], 0x40
je 0x140065a36
mov rax, qword [0x140159598]
nop
test rax, rax
je 0x140065a22
test r15d, r15d
je 0x140065a22
mov edx, r15d
mov ecx, 0x2d
call qword [case.0x140071b98.0]
add dword ds:[rdi + 0x28], eax
mov r9d, dword [rdi + 0x28]
jmp 0x140065a54
mov ecx, 0x2d
call qword [sym.imp.USER32.dll_GetSystemMetrics]
add dword [rdi + 0x28], eax
mov r9d, dword [rdi + 0x28]
jmp 0x140065a54
mov eax, dword [rdi + 0x30]
sub eax, dword [rsi]
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 [rsi]
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 fcn.140058b00
test r14b, r14b
je 0x140065b26
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 fcn.1400562c0
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
mov ecx, 0x12
call fcn.1400562c0
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 0x140065c06
movups xmm0, xmmword [rsi]
xor edx, edx
mov word [rbp - 0x70], r13w
mov r8d, 0x206
lea rcx, [rbp - 0x6e]
movups xmmword [rsp + 0x78], xmm0
call fcn.1400e6910
mov r8d, dword ds:[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 0x140065bae
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [r8]
pmovmskb eax, xmm0
shr eax, cl
bsf ecx, eax
je 0x140065baa
mov r8d, ecx
shr r8, 1
jmp 0x140065be8
add r8, 0x10
xorps xmm0, xmm0
pcmpeqw xmm0, xmmword [r8]
pmovmskb eax, xmm0
bsf ecx, eax
jne 0x140065bd6
nop
add r8, 0x10
movdqa xmm0, xmm1
pcmpeqw xmm0, xmmword [r8]
pmovmskb eax, xmm0
bsf ecx, eax
je 0x140065bc0
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 r15, qword [rsp + 0x2b0]
mov r12, qword [rsp + 0x2f8]
mov rsi, qword [rsp + 0x2f0]
mov rbx, qword [rsp + 0x2e8]
mov r13, qword [rsp + 0x2c0]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1400c6a20
add rsp, 0x2c8
pop rdi
pop rbp
ret
xor eax, eax
jmp 0x140065c0b
xor eax, eax
jmp 0x140065c1b
mov eax, 0x30
jmp 0x140065c3b