Function at 0x10001f7bc
Capabilities:
Capture webcam image

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xa0
xor esi, esi
movaps xmmword [rax - 0x38], xmm6
mov rbx, rdx
mov rdi, rcx
cmp dword [rcx + 0x4c], esi
je 0x10001f80c
lea rax, [rax + 0x20]
lea rdx, [rcx + 0x60]
lea r8d, [rsi + 2]
xor r9d, r9d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.UxTheme.dll_BeginBufferedPaint]
mov rsi, rax
test rax, rax
jne 0x10001f814
mov qword [rsp + 0xe8], rbx
mov rcx, rdi
call fcn.10001fc58
mov rcx, qword [rdi + 8]
mov rbp, qword [rsp + 0xe8]
mov edx, 0xfffffff4
mov qword [rsp + 0x40], rcx
call qword [sym.imp.USER32.dll_GetWindowLongPtrW]
lea rdx, [rdi + 0x60]
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x50], 0xfffffff4
mov dword [rsp + 0x58], 4
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x48], rax
call qword [sym.imp.USER32.dll_CopyRect]
mov rcx, qword [rdi + 8]
and qword [rsp + 0x78], 0
and qword [rsp + 0x88], 0
mov dword [rsp + 0x80], 0x20
call qword [sym.imp.USER32.dll_GetParent]
mov r8, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
mov rcx, rax
mov edx, 0x4e
call qword [sym.imp.USER32.dll_SendMessageW]
cmp rax, 4
je 0x10001f945
mov rcx, qword [rdi + 8]
mov edx, 0xffffffec
call qword [sym.imp.USER32.dll_GetWindowLongW]
test al, 0x20
je 0x10001f916
mov rcx, qword [0x100025288]
lea rax, [0x100025288]
cmp rcx, rax
je 0x10001f8ef
bt dword [rcx + 0x1c], 0x1d
jae 0x10001f8ef
cmp byte [rcx + 0x19], 4
jb 0x10001f8ef
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000061b0]
mov edx, 0xa
call fcn.10000a624
mov ecx, 5
call qword [sym.imp.USER32.dll_GetSysColorBrush]
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x30]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetClientRect]
mov r8, rbx
lea rdx, [rsp + 0x30]
jmp 0x10001f93c
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetParent]
mov r9, qword [rdi + 8]
mov r8, rbp
mov rcx, rax
mov edx, 0x138
call qword [sym.imp.USER32.dll_SendMessageW]
lea rdx, [rdi + 0x60]
mov r8, rax
mov rcx, rbp
call qword [sym.imp.USER32.dll_FillRect]
mov rdx, qword [rsp + 0xe8]
movss xmm2, dword [rdi + 0xd4]
mov rcx, rdi
call fcn.10001ebc0
mov r11d, dword [rdi + 0x9c]
mov rdx, qword [rsp + 0xe8]
movss xmm6, dword [0x100007a00]
movaps xmm3, xmm6
lea r8, [rsp + 0xd0]
mov rcx, rdi
mov dword [rsp + 0xd0], r11d
call fcn.10001ee00
mov rcx, qword [rdi + 8]
mov rbp, qword [rsp + 0xe8]
lea r9, [rdi + 0x80]
xor r8d, r8d
mov edx, 0x419
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, qword [rdi + 0x50]
mov r12d, 1
lea rbx, [rdi + 0x70]
test rcx, rcx
je 0x10001f9ed
mov eax, dword [rdi + 0xa4]
mov r9d, r12d
mov rdx, rbp
neg eax
sbb r8d, r8d
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
neg r8d
add r8d, r12d
call qword [sym.imp.UxTheme.dll_DrawThemeBackground]
jmp 0x10001fa03
mov r9d, 0xf
mov rdx, rbx
mov rcx, rbp
lea r8d, [r9 - 5]
call qword [sym.imp.USER32.dll_DrawEdge]
comiss xmm6, dword [rdi + 0xd4]
mov rbp, qword [rsp + 0xe8]
jbe 0x10001face
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetParent]
mov r9, qword [rdi + 8]
mov r8, rbp
mov rcx, rax
mov edx, 0x138
call qword [sym.imp.USER32.dll_SendMessageW]
lea rdx, [rdi + 0x60]
lea rcx, [rsp + 0x30]
mov r12, rax
call qword [sym.imp.USER32.dll_CopyRect]
cmp dword [rdi + 0xa4], 0
je 0x10001fa82
mov edx, dword [rdi + 0x7c]
mov ecx, edx
sub ecx, dword [rdi + 0x74]
sub ecx, 2
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [rdi + 0xd4]
addss xmm0, dword [0x1000079f4]
cvttss2si eax, xmm0
sub edx, eax
dec edx
mov dword [rsp + 0x3c], edx
jmp 0x10001fab0
mov eax, dword [rdi + 0x7c]
sub eax, dword [rdi + 0x74]
sub eax, 2
movd xmm0, eax
mov eax, dword [rbx]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [rdi + 0xd4]
addss xmm0, dword [0x1000079f4]
cvttss2si edx, xmm0
lea edx, [rdx + rax + 1]
mov dword [rsp + 0x30], edx
movss xmm3, dword [0x100007a34]
lea rdx, [rsp + 0x30]
mov r8, r12
mov rcx, rbp
call fcn.10001eae0
mov r12d, 1
cmp dword [rdi + 0x94], 0
je 0x10001fb35
cmp dword [rdi + 0x5c], 0
mov rbx, qword [rsp + 0xe8]
jle 0x10001fb0a
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetSysColor]
mov r8d, dword [rdi + 0x5c]
mov rdx, rbx
bts eax, 0x1f
mov rcx, rdi
mov r9d, eax
mov dword [rsp + 0x20], eax
call fcn.10001f0a8
cmp dword [rdi + 0x90], 0
jne 0x10001fb3e
mov r8d, dword [rdi + 0x58]
test r8d, r8d
jle 0x10001fb35
mov r9d, 0xff339933
mov rdx, rbx
mov rcx, rdi
mov dword [rsp + 0x20], 0xff33cc33
call fcn.10001f0a8
cmp dword [rdi + 0x90], 0
je 0x10001fb49
cmp dword [rdi + 0x4c], 0
je 0x10001fb49
mov r9d, r12d
jmp 0x10001fb4c
xor r9d, r9d
movdqu xmm0, xmmword [rdi + 0x80]
mov rdx, qword [rsp + 0xe8]
lea r8, [rsp + 0x30]
mov rcx, rdi
movdqu xmmword [rsp + 0x30], xmm0
call fcn.10001f554
cmp dword [rdi + 0xb4], 0
je 0x10001fb9f
movdqu xmm0, xmmword [rdi + 0xbc]
mov r9d, dword [rdi + 0x4c]
mov rdx, qword [rsp + 0xe8]
lea r8, [rsp + 0x30]
mov rcx, rdi
movdqu xmmword [rsp + 0x30], xmm0
call fcn.10001f554
mov rbp, qword [rsp + 0xe8]
mov rbx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetFocus]
cmp rax, rbx
jne 0x10001fc1d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x129
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageW]
test r12b, al
jne 0x10001fc1d
mov ebx, 0x14
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetSysColor]
mov rcx, rbp
mov edx, eax
call qword [sym.imp.GDI32.dll_SetBkColor]
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetClientRect]
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetSysColorBrush]
lea rdx, [rsp + 0x30]
mov rcx, rbp
mov r8, rax
call qword [sym.imp.USER32.dll_FrameRect]
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.USER32.dll_DrawFocusRect]
test rsi, rsi
je 0x10001fc2e
mov edx, r12d
mov rcx, rsi
call qword [sym.imp.UxTheme.dll_EndBufferedPaint]
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret