Function at 0x18002a840
Capabilities:
Capture webcam image

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 1], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x18006cea0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r14, rcx
mov rbx, qword [rdx + 0x20]
mov qword [rbp - 9], rbx
movzx r15d, byte [rdx + 0x40]
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x17], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 7], xmm1
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 + 0x17]
mov edx, 0x41d
mov rcx, qword [r14 + 0x38]
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SetBkMode]
mov edi, dword [rbp + 0x17]
add edi, 2
lea rdx, [rbp - 0x59]
lea rcx, [r14 + 0x40]
call fcn.180026880
mov rcx, qword [rax]
mov qword [rbp - 0x59], rcx
mov dword [rbp + 7], edi
mov eax, dword [rbp + 0x23]
add eax, dword [rbp + 0x1b]
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
mov r8d, dword [rbp - 0x55]
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
sub r9d, eax
mov dword [rbp + 0xb], r9d
lea edx, [rcx + rdi]
mov dword [rbp + 0xf], edx
lea ecx, [r9 + r8]
mov dword [rbp + 0x13], ecx
and r15b, 1
je 0x180028446
lea eax, [rdi + 1]
mov dword [rbp + 7], eax
inc edx
mov dword [rbp + 0xf], edx
inc r9d
mov dword [rbp + 0xb], r9d
inc ecx
mov dword [rbp + 0x13], ecx
lea r8, [rbp + 7]
mov rdx, rbx
lea rcx, [r14 + 0x40]
call fcn.1800267c0
mov esi, dword [rbp + 0xf]
mov rcx, qword [r14 + 0x20]
xor r12d, r12d
cmp dword [rcx - 0x10], r12d
je 0x1800285f1
mov qword [rbp - 0x51], r12
add rcx, 0xffffffffffffffe8
call fcn.1800062a0
add rax, 0x18
mov qword [rbp - 0x59], rax
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x59]
mov rcx, r14
call fcn.180027880
lea ecx, [rsi - 4]
mov dword [rbp + 7], ecx
mov edx, dword [rbp - 0x51]
add edx, 4
add edx, ecx
mov dword [rbp + 0xf], edx
mov eax, dword [rbp + 0x1b]
mov dword [rbp + 0xb], eax
mov r8d, dword [rbp + 0x23]
mov dword [rbp + 0x13], r8d
test r15b, r15b
je 0x1800284c9
inc ecx
mov dword [rbp + 7], ecx
inc edx
mov dword [rbp + 0xf], edx
inc eax
mov dword [rbp + 0xb], eax
lea eax, [r8 + 1]
mov dword [rbp + 0x13], eax
mov qword [rbp - 0x59], r12
lea rdx, [rbp - 0x59]
mov rcx, rbx
call sub.gdiplus.dll_GdipCreateFromHDC
mov edi, eax
mov rcx, qword [rbp - 0x59]
mov qword [rbp - 0x29], rcx
mov edx, 2
call sub.gdiplus.dll_GdipSetSmoothingMode
test eax, eax
cmovne edi, eax
mov dword [rbp - 0x21], edi
mov eax, dword [rbp - 0x51]
add eax, 4
mov ecx, dword [rbp + 0x13]
sub ecx, dword [rbp - 0x4d]
mov dword [rsp + 0x30], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov r9d, dword [rbp + 7]
mov r8d, 0xa
lea rdx, [rbp - 0x29]
mov rcx, r14
call fcn.1800274b0
mov qword [rbp - 0x59], r12
lea rdx, [rbp - 0x59]
or ecx, 0xffffffff
call sub.gdiplus.dll_GdipCreateSolidFill
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], 2
mov r9d, 1
movss xmm2, dword [0x18004efc4]
lea rdx, str.Arial
lea rcx, [rbp - 0x19]
call fcn.180027090
mov qword [rbp - 0x49], r12
xor edx, edx
lea r8, [rbp - 0x49]
xor ecx, ecx
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [rbp - 0x41], eax
mov eax, dword [rbp + 0x13]
sub eax, dword [rbp - 0x4d]
dec eax
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movd xmm0, dword [rbp + 7]
cvtdq2ps xmm0, xmm0
mov rdx, qword [r14 + 0x20]
movss dword [rbp - 0x39], xmm0
movss dword [rbp - 0x35], xmm1
mov qword [rbp - 0x31], r12
mov rsi, qword [rbp - 0x59]
mov qword [rsp + 0x30], rsi
mov rax, qword [rbp - 0x49]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x19]
mov r8d, dword [rdx - 0x10]
mov rcx, qword [rbp - 0x29]
call sub.gdiplus.dll_GdipDrawString
mov rcx, qword [rbp - 0x49]
call sub.gdiplus.dll_GdipDeleteStringFormat
mov rcx, qword [rbp - 0x19]
call sub.gdiplus.dll_GdipDeleteFont
mov rcx, rsi
call sub.gdiplus.dll_GdipDeleteBrush
mov rcx, qword [rbp - 0x29]
call sub.gdiplus.dll_GdipDeleteGraphics
mov esi, dword [rbp + 0xf]
add esi, 2
mov qword [rbp - 0x51], r12
lea rdi, [r14 + 0x10]
mov rcx, qword [rdi]
sub rcx, 0x18
call fcn.1800062a0
add rax, 0x18
mov qword [rbp - 0x59], rax
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x59]
mov rcx, r14
call fcn.180027880
mov dword [rbp + 7], esi
mov r8d, dword [rbp - 0x51]
add r8d, esi
mov dword [rbp + 0xf], r8d
mov edx, dword [rbp + 0x1b]
mov dword [rbp + 0xb], edx
mov eax, dword [rbp + 0x23]
mov dword [rbp + 0x13], eax
test r15b, r15b
je 0x180028656
lea ecx, [rsi + 1]
mov dword [rbp + 7], ecx
inc r8d
mov dword [rbp + 0xf], r8d
inc edx
mov dword [rbp + 0xb], edx
inc eax
mov dword [rbp + 0x13], eax
sub eax, dword [rbp - 0x4d]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
mov esi, eax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x31]
mov rcx, qword [r14 + 0x38]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
mov r14, rax
mov rcx, qword [rdi]
mov r15d, dword [rcx - 0x10]
cmp dword [rcx - 8], 1
jle 0x18002869d
mov edx, r15d
mov rcx, rdi
call fcn.180001ad0
mov r9, qword [rdi]
mov r8d, dword [rbp + 0xb]
add r8d, esi
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], r9
lea rcx, [rbp + 7]
mov qword [rsp + 0x20], rcx
mov r9d, 4
mov edx, dword [rbp + 7]
mov rcx, rbx
call qword [sym.imp.GDI32.dll_ExtTextOutW]
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.GDI32.dll_SelectObject]
nop
mov eax, 1
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800305e0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov r10, qword [rcx + 0x70]
mov r9d, dword [r8 + 0x38]
test r10, r10
je 0x18002a888
xor edx, edx
mov eax, r9d
div dword [rcx + 0x80]
mov rax, qword [r10 + rdx*8]
test rax, rax
je 0x18002a888
cmp dword [rax + 0x18], r9d
jne 0x18002a86c
cmp dword [rax], r9d
je 0x18002a872
mov rax, qword [rax + 0x10]
jmp 0x18002a85c
test rax, rax
je 0x18002a888
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x18002a888
mov rdx, r8
jmp 0x180028350
xor eax, eax
ret