Function at 0x140018950
Capabilities:
Capture webcam image

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov rdi, rcx
mov dword [rbp + 0x67], 0
call fcn.1400f3b0c
movzx ebx, byte [rdi + 0x4d1]
mov edx, 0x3ff
mov rcx, rdi
call fcn.1400f1f18
mov r8d, ebx
xor r9d, r9d
mov edx, 0xf1
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
movzx ebx, byte [rdi + 0x4d2]
mov edx, 0x400
mov rcx, rdi
call fcn.1400f1f18
mov r8d, ebx
xor r9d, r9d
mov edx, 0xf1
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
movzx ebx, byte [rdi + 0x4d3]
mov edx, 0x401
mov rcx, rdi
call fcn.1400f1f18
mov r8d, ebx
xor r9d, r9d
mov edx, 0xf1
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
movzx ebx, byte [rdi + 0x4d4]
mov edx, 0x419
mov rcx, rdi
call fcn.1400f1f18
mov r8d, ebx
xor r9d, r9d
mov edx, 0xf1
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [rdi + 0x570]
mov dword [rdi + 0x4f0], eax
xor ebx, ebx
or ebx, 2
cmp eax, 2
jne 0x140018a39
lea rdx, [rdi + 0x578]
jmp 0x140018a4c
cmp eax, 1
lea rdx, [rdi + 0x580]
je 0x140018a4c
lea rdx, [rdi + 0x588]
lea rcx, [rbp + 0x6f]
call fcn.140006c10
mov dword [rbp + 0x67], ebx
lea rcx, [rdi + 0x4e8]
lea rdx, [rbp + 0x6f]
call fcn.140030d70
nop
mov rdx, qword [rbp + 0x6f]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
mov r14d, 0xffffffff
cmp eax, 0x7ffffc17
je 0x140018aa0
mov eax, dword [rdx + 0x10]
cmp eax, r14d
je 0x140018a96
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140018aa0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
cmp dword [0x1401eb6c0], 0xb23a8c33
je 0x140018ad8
mov ecx, 0x6c0
call fcn.1400f2ce0
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140018acd
mov rcx, rax
call fcn.1400302c0
mov rcx, rax
jmp 0x140018acf
xor ecx, ecx
mov qword [0x1401f7b90], rcx
jmp 0x140018adf
mov rcx, qword [0x1401f7b90]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov qword [rsp + 0x40], rax
xor esi, esi
cmp dword [rdi + 0x518], esi
jle 0x140018bd1
lea r12, vtable.JRDllString.0
nop
lea r9, [rbp - 0x69]
lea r8, [rsp + 0x40]
mov edx, esi
lea rcx, [rdi + 0x4f8]
call fcn.140013ef0
test eax, eax
je 0x140018bc3
mov rdx, qword [rsp + 0x40]
lea rcx, [rbp + 0x77]
call fcn.140002450
mov ebx, dword [rbp + 0x67]
or ebx, 1
mov dword [rbp + 0x67], ebx
mov rax, qword [rbp + 0x77]
cmp dword [rax - 0x10], 0
jle 0x140018b73
mov rcx, qword [0x1401f8178]
test rcx, rcx
je 0x140018b73
mov rax, qword [rcx]
mov dl, 1
call qword [rax + 0x38]
test rax, rax
je 0x140018b73
mov qword [rbp - 0x79], r12
lea rcx, [rbp + 0x77]
mov qword [rbp - 0x71], rcx
mov r8, qword [rax]
lea rdx, [rbp - 0x79]
mov rcx, rax
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov r9, qword [rbp + 0x77]
xor r8d, r8d
mov edx, 0x143
mov rcx, qword [rdi + 0x170]
call qword [sym.imp.USER32.dll_SendMessageW]
and ebx, 0xfffffffe
mov dword [rbp + 0x67], ebx
mov rdx, qword [rbp + 0x77]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140018bc3
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140018bb9
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140018bc3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
inc esi
cmp esi, dword [rdi + 0x518]
jl 0x140018b00
movsxd r8, dword [rdi + 0x570]
xor r9d, r9d
mov edx, 0x14e
mov rcx, qword [rdi + 0x170]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rdi
call fcn.1400199d0
call fcn.14005f310
test al, al
jne 0x140018c0f
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x308]
jmp 0x140018f37
mov rax, qword [rdi + 0x590]
mov rcx, qword [rax + 0x130]
cmp qword [rcx + 0x10], 0
je 0x140018c2b
cmp qword [rcx + 0x18], 0
jne 0x140018c6b
lea rdx, [rbp - 0x59]
lea rcx, [0x1401f7d10]
call fcn.1400f435c
test eax, eax
je 0x140018c6b
mov rax, qword [rdi + 0x590]
mov rcx, qword [rax + 0x130]
mov rax, qword [rbp - 0x49]
mov qword [rcx + 0x10], rax
mov rax, qword [rdi + 0x590]
mov rcx, qword [rax + 0x130]
mov rax, qword [rbp - 0x41]
mov qword [rcx + 0x18], rax
mov rcx, qword [rdi + 0x590]
call fcn.1401081a4
lea rdx, [rsp + 0x58]
mov rcx, qword [rdi + 0x590]
call fcn.1401081bc
nop
mov rbx, qword [rax]
cmp dword [0x1401eb6c0], 0xb23a8c33
je 0x140018cc4
mov ecx, 0x6c0
call fcn.1400f2ce0
mov qword [rsp + 0x48], rax
test rax, rax
je 0x140018cb9
mov rcx, rax
call fcn.1400302c0
mov rcx, rax
jmp 0x140018cbb
xor ecx, ecx
mov qword [0x1401f7b90], rcx
jmp 0x140018ccb
mov rcx, qword [0x1401f7b90]
mov rax, qword [rcx]
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 0
mov byte [rsp + 0x20], 0
mov r9d, r14d
mov r8d, r14d
mov rdx, rbx
call qword [rax + 0x28]
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140018d0d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rbx, str.No_printer_found
mov rax, qword [rsp + 0x48]
cmp dword [rax - 0x10], 0
cmovne rbx, rax
mov edx, 0x415
mov rcx, rdi
call fcn.1400f1f18
mov rcx, rax
mov rdx, rbx
call fcn.1400f2338
cmp dword [0x1401eb6c0], 0xb23a8c33
je 0x140018d70
mov ecx, 0x6c0
call fcn.1400f2ce0
mov qword [rbp + 0x7f], rax
test rax, rax
je 0x140018d65
mov rcx, rax
call fcn.1400302c0
mov rcx, rax
jmp 0x140018d67
xor ecx, ecx
mov qword [0x1401f7b90], rcx
jmp 0x140018d77
mov rcx, qword [0x1401f7b90]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov qword [rbp + 0x7f], rax
movsxd rdx, dword [rdi + 0x5a0]
mov r9d, 0xa
xor r8d, r8d
lea rcx, [rbp + 0x7f]
call fcn.140033f40
lea rcx, [rdi + 0x5a8]
mov rbx, qword [rbp + 0x7f]
mov rdx, rbx
call fcn.1400f2338
xor esi, esi
cmp dword [rdi + 0x5a0], esi
jle 0x140018e97
nop dword [rax + rax]
cmp dword [0x1401eb6c0], 0xb23a8c33
je 0x140018df7
mov ecx, 0x6c0
call fcn.1400f2ce0
mov qword [rbp - 0x61], rax
test rax, rax
je 0x140018dec
mov rcx, rax
call fcn.1400302c0
mov rcx, rax
jmp 0x140018dee
xor ecx, ecx
mov qword [0x1401f7b90], rcx
jmp 0x140018dfe
mov rcx, qword [0x1401f7b90]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov qword [rsp + 0x50], rax
lea eax, [rsi + 1]
mov esi, eax
movsxd rdx, eax
mov r9d, 0xa
xor r8d, r8d
lea rcx, [rsp + 0x50]
call fcn.140033f40
mov rbx, qword [rsp + 0x50]
mov r9, rbx
xor r8d, r8d
mov edx, 0x143
mov rcx, qword [rdi + 0x340]
call qword [sym.imp.USER32.dll_SendMessageW]
mov r9, rbx
xor r8d, r8d
mov edx, 0x143
mov rcx, qword [rdi + 0x428]
call qword [sym.imp.USER32.dll_SendMessageW]
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140018e87
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140018e7d
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140018e87
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
cmp esi, dword [rdi + 0x5a0]
jl 0x140018dc0
mov rbx, qword [rbp + 0x7f]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x14e
mov rcx, qword [rdi + 0x340]
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [rdi + 0x5a0]
dec eax
movsxd r8, eax
xor r9d, r9d
mov edx, 0x14e
mov rcx, qword [rdi + 0x428]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, rdi
call fcn.140018f80
nop
lea rdx, [rbx - 0x18]
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140018f05
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140018efb
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140018f05
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140018f37
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140018f2d
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140018f37
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
cmp eax, 0x7ffffc17
je 0x140018f68
mov eax, dword [rdx + 0x10]
cmp eax, 0xffffffff
je 0x140018f5e
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x140018f68
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov eax, 1
add rsp, 0x100
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret