Function at 0x180019c98
Capabilities:
Capture webcam image

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 9], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x180048a70]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rsi, rcx
mov rbx, qword [rdx + 0x20]
mov qword [rbp - 0x11], rbx
mov eax, dword [rdx + 0x40]
mov r15d, 1
and al, r15b
cmp al, r15b
sete r13b
xor r14d, r14d
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x17], r14
mov qword [rbp - 1], r14
mov qword [rbp + 7], r14
mov r8d, dword [rcx + 0x30]
xor r9d, r9d
mov edx, 0x419
mov rcx, qword [rcx + 0x38]
call qword [sym.imp.USER32.dll_SendMessageW]
movsxd r8, eax
lea r9, [rbp + 0xf]
mov edx, 0x41d
mov rcx, qword [rsi + 0x38]
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, r15d
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SetBkMode]
mov edi, dword [rbp + 0xf]
add edi, 2
mov qword [rbp - 0x69], r14
lea rdx, [rbp - 0x69]
mov rcx, rsi
call fcn.180016eac
mov dword [rbp - 1], edi
mov eax, dword [rbp + 0x1b]
add eax, dword [rbp + 0x13]
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
mov ecx, dword [rbp - 0x65]
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
sub r8d, eax
mov dword [rbp + 3], r8d
mov edx, dword [rbp - 0x69]
add edx, edi
mov dword [rbp + 7], edx
lea r9d, [r8 + rcx]
mov dword [rbp + 0xb], r9d
test r13b, r13b
je 0x1800179af
lea eax, [rdi + 1]
mov dword [rbp - 1], eax
add edx, r15d
mov dword [rbp + 7], edx
add r8d, r15d
mov dword [rbp + 3], r8d
add r9d, r15d
mov dword [rbp + 0xb], r9d
lea rcx, [rsi + 0x40]
lea r8, [rbp - 1]
mov rdx, rbx
call fcn.1800167fc
mov r12d, dword [rbp + 7]
mov rcx, qword [rsi + 0x20]
cmp dword [rcx - 0x10], r14d
je 0x180017b6c
mov qword [rbp - 0x69], r14
add rcx, 0xffffffffffffffe8
call fcn.180003b00
add rax, 0x18
mov qword [rbp - 0x61], rax
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x61]
mov rcx, rsi
call fcn.1800175ec
lea r11d, [r12 - 4]
mov dword [rbp - 1], r11d
mov eax, dword [rbp - 0x69]
lea ecx, [rax + r11 + 4]
mov dword [rbp + 7], ecx
mov eax, dword [rbp + 0x13]
mov dword [rbp + 3], eax
mov edx, dword [rbp + 0x1b]
mov dword [rbp + 0xb], edx
test r13b, r13b
je 0x180017a33
add r11d, r15d
mov dword [rbp - 1], r11d
add ecx, r15d
mov dword [rbp + 7], ecx
inc eax
mov dword [rbp + 3], eax
lea eax, [rdx + 1]
mov dword [rbp + 0xb], eax
mov qword [rbp - 0x61], r14
lea rdx, [rbp - 0x61]
mov rcx, rbx
call sub.gdiplus.dll_GdipCreateFromHDC
mov edi, eax
mov rcx, qword [rbp - 0x61]
mov qword [rbp - 0x59], rcx
mov r12d, 2
mov edx, r12d
call sub.gdiplus.dll_GdipSetSmoothingMode
test eax, eax
cmovne edi, eax
mov dword [rbp - 0x51], edi
mov eax, dword [rbp - 0x69]
add eax, 4
mov ecx, dword [rbp + 0xb]
sub ecx, dword [rbp - 0x65]
mov dword [rsp + 0x30], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov r9d, dword [rbp - 1]
lea r8d, [r12 + 8]
lea rdx, [rbp - 0x59]
mov rcx, rsi
call fcn.1800170c4
lea r11, vtable.Gdiplus::SolidBrush.0
mov qword [rbp - 0x29], r11
mov qword [rbp - 0x61], r14
lea rdx, [rbp - 0x61]
or ecx, 0xffffffff
call sub.gdiplus.dll_GdipCreateSolidFill
mov dword [rbp - 0x19], eax
mov rdi, qword [rbp - 0x61]
mov qword [rbp - 0x21], rdi
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r12d
mov r9d, r15d
movss xmm2, dword [0x18003376c]
lea rdx, str.Arial
lea rcx, [rbp - 0x39]
call fcn.180016d78
mov qword [rbp - 0x49], r14
xor edx, edx
lea r8, [rbp - 0x49]
xor ecx, ecx
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [rbp - 0x41], eax
mov eax, dword [rbp + 0xb]
sub eax, dword [rbp - 0x65]
sub eax, r15d
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movd xmm0, dword [rbp - 1]
cvtdq2ps xmm0, xmm0
movss dword [rbp - 0x61], xmm0
movss dword [rbp - 0x5d], xmm1
mov rdx, qword [rsi + 0x20]
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x61]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x39]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x59]
call fcn.18001702c
mov rcx, qword [rbp - 0x49]
call sub.gdiplus.dll_GdipDeleteStringFormat
mov rcx, qword [rbp - 0x39]
call sub.gdiplus.dll_GdipDeleteFont
mov rcx, rdi
call sub.gdiplus.dll_GdipDeleteBrush
mov rcx, qword [rbp - 0x59]
call sub.gdiplus.dll_GdipDeleteGraphics
mov r12d, dword [rbp + 7]
add r12d, 2
mov qword [rbp - 0x69], r14
lea rdi, [rsi + 0x10]
mov rcx, qword [rdi]
sub rcx, 0x18
call fcn.180003b00
add rax, 0x18
mov qword [rbp - 0x61], rax
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x61]
mov rcx, rsi
call fcn.1800175ec
mov dword [rbp - 1], r12d
mov r8d, dword [rbp - 0x69]
add r8d, r12d
mov dword [rbp + 7], r8d
mov edx, dword [rbp + 0x13]
mov dword [rbp + 3], edx
mov ecx, dword [rbp + 0x1b]
mov dword [rbp + 0xb], ecx
test r13b, r13b
je 0x180017bd5
lea eax, [r12 + 1]
mov dword [rbp - 1], eax
add r8d, r15d
mov dword [rbp + 7], r8d
inc edx
mov dword [rbp + 3], edx
inc ecx
mov dword [rbp + 0xb], ecx
sub ecx, dword [rbp - 0x65]
sub ecx, edx
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov r12d, eax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x31]
mov rcx, qword [rsi + 0x38]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
mov rsi, rax
mov rax, qword [rdi]
mov r13d, dword [rax - 0x10]
cmp dword [rax - 8], r15d
jle 0x180017c1f
mov edx, r13d
mov rcx, rdi
call fcn.18000121c
mov rdx, qword [rdi]
mov ecx, dword [rbp + 3]
lea r8d, [r12 + rcx]
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], rdx
lea rcx, [rbp - 1]
mov qword [rsp + 0x20], rcx
mov r9d, 4
mov edx, dword [rbp - 1]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_ExtTextOutW]
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
nop
mov eax, r15d
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.18001f0c0
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
push rbx
sub rsp, 0x20
mov edx, dword [r8 + 0x38]
add rcx, 0xfffffffffffffec0
mov rbx, r8
call fcn.180019bd8
test rax, rax
je 0x180019cc6
mov rdx, rbx
mov rcx, rax
add rsp, 0x20
pop rbx
jmp 0x1800178ac
add rsp, 0x20
pop rbx
ret