Function at 0x180034b60
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 [0x18007fea0]
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.180030da0
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 0x1800328b6
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.180030cc0
mov esi, dword [rbp + 0xf]
mov rcx, qword [r14 + 0x20]
xor r12d, r12d
cmp dword [rcx - 0x10], r12d
je 0x180032b32
mov qword [rbp - 0x51], r12
add rcx, 0xffffffffffffffe8
call fcn.180006f50
add rax, 0x18
mov qword [rbp - 0x59], rax
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x59]
mov rcx, r14
call fcn.180031860
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 0x180032939
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 - 0x19], rcx
mov edx, 2
call sub.gdiplus.dll_GdipSetSmoothingMode
test eax, eax
cmovne edi, eax
mov dword [rbp - 0x11], 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 - 0x19]
mov rcx, r14
call fcn.180032260
mov qword [rbp - 0x59], r12
lea rdx, [rbp - 0x59]
or ecx, 0xffffffff
call sub.gdiplus.dll_GdipCreateSolidFill
mov qword [rbp - 0x39], r12
mov qword [rbp - 0x49], r12
lea r8, [rbp - 0x49]
xor edx, edx
lea rcx, str.Arial
call sub.gdiplus.dll_GdipCreateFontFamilyFromName
mov rdx, qword [rbp - 0x49]
mov r10, rdx
mov dword [rbp - 0x41], r12d
mov dword [rbp - 0x31], eax
lea rdi, [0x180085578]
test eax, eax
je 0x180032a18
mov rcx, qword [0x180085560]
test rcx, rcx
jne 0x180032a03
mov qword [0x180085560], rdi
mov rcx, rdi
call sub.gdiplus.dll_GdipGetGenericFontFamilySansSerif
mov rcx, qword [0x180085560]
mov dword [rcx + 8], eax
mov rdx, qword [rbp - 0x49]
mov r10, qword [rcx]
mov eax, dword [rcx + 8]
mov dword [rbp - 0x31], eax
test eax, eax
je 0x180032a18
mov rcx, rdx
jmp 0x180032a9e
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8d, [r9 - 1]
movss xmm1, dword [0x18005f8c0]
mov rcx, r10
call sub.gdiplus.dll_GdipCreateFont
mov dword [rbp - 0x31], eax
test eax, eax
je 0x180032a9a
mov rcx, qword [0x180085560]
test rcx, rcx
jne 0x180032a67
mov qword [0x180085560], rdi
mov rcx, rdi
call sub.gdiplus.dll_GdipGetGenericFontFamilySansSerif
mov rcx, qword [0x180085560]
mov dword [rcx + 8], eax
mov rdx, qword [rcx]
mov eax, dword [rcx + 8]
mov dword [rbp - 0x31], eax
test eax, eax
jne 0x180032a9a
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
mov r9d, 2
lea r8d, [r9 - 1]
movss xmm1, dword [0x18005f8c0]
mov rcx, rdx
call sub.gdiplus.dll_GdipCreateFont
mov dword [rbp - 0x31], eax
mov rcx, qword [rbp - 0x49]
call sub.gdiplus.dll_GdipDeleteFontFamily
mov qword [rbp - 0x29], r12
xor edx, edx
lea r8, [rbp - 0x29]
xor ecx, ecx
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [rbp - 0x21], 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 - 0x49], xmm0
movss dword [rbp - 0x45], xmm1
mov qword [rbp - 0x41], r12
mov rsi, qword [rbp - 0x59]
mov qword [rsp + 0x30], rsi
mov rax, qword [rbp - 0x29]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x39]
mov r8d, dword [rdx - 0x10]
mov rcx, qword [rbp - 0x19]
call sub.gdiplus.dll_GdipDrawString
mov rcx, qword [rbp - 0x29]
call sub.gdiplus.dll_GdipDeleteStringFormat
mov rcx, qword [rbp - 0x39]
call sub.gdiplus.dll_GdipDeleteFont
mov rcx, rsi
call sub.gdiplus.dll_GdipDeleteBrush
mov rcx, qword [rbp - 0x19]
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.180006f50
add rax, 0x18
mov qword [rbp - 0x59], rax
lea r8, [rbp - 0x51]
lea rdx, [rbp - 0x59]
mov rcx, r14
call fcn.180031860
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 0x180032b97
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 0x180032bde
mov edx, r15d
mov rcx, rdi
call fcn.1800021e0
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.18003bc80
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 0x180034ba8
xor edx, edx
mov eax, r9d
div dword [rcx + 0x80]
mov rax, qword [r10 + rdx*8]
test rax, rax
je 0x180034ba8
cmp dword [rax + 0x18], r9d
jne 0x180034b8c
cmp dword [rax], r9d
je 0x180034b92
mov rax, qword [rax + 0x10]
jmp 0x180034b7c
test rax, rax
je 0x180034ba8
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x180034ba8
mov rdx, r8
jmp 0x1800327c0
xor eax, eax
ret