Function at 0x100013c90
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0xe0
xor ebx, ebx
mov rsi, rcx
mov rbp, rdx
lea rcx, [rax - 0x38]
lea r8d, [rbx + 0x20]
xor edx, edx
mov qword [rax - 0x80], rbx
mov dword [rax - 0x74], ebx
mov dword [rax - 0x78], ebx
mov qword [rax - 0x60], rbx
mov dword [rax - 0x54], ebx
mov dword [rax - 0x58], ebx
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x74], ebx
mov dword [rsp + 0x70], ebx
mov qword [rax - 0x70], rbx
mov dword [rax - 0x64], ebx
mov dword [rax - 0x68], ebx
mov dword [rax + 0x18], ebx
mov qword [rax - 0x40], rbx
call sub.msvcrt.dll_memset
mov dword [rsp + 0x118], ebx
call fcn.100018828
cmp eax, ebx
je 0x100013d3a
lea edi, [rbx + 1]
lea rcx, [rsp + 0x88]
mov edx, edi
call fcn.1000170b4
lea rcx, [rsp + 0x68]
mov edx, edi
call fcn.1000170b4
lea rcx, [rsp + 0x98]
mov edx, edi
call fcn.1000170b4
lea rcx, [rsp + 0x78]
mov edx, edi
call fcn.1000170b4
xor eax, eax
jmp 0x1000140b2
call fcn.100017654
mov edi, 1
cmp eax, ebx
je 0x10001407a
mov r8, qword [rsi + 0x28]
lea rcx, [rsp + 0x78]
mov edx, 0x1d52
call fcn.100016adc
cmp eax, ebx
jge 0x100013d9f
mov rcx, qword [0x100023120]
lea rdx, [0x100023120]
cmp rcx, rdx
je 0x100014073
test byte [rcx + 0x1c], dil
je 0x100014073
lea edx, [rdi + 0x18]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000018f0]
mov r9d, eax
call fcn.1000048bc
jmp 0x100014073
mov r8, qword [rsi + 0x28]
lea rcx, [rsp + 0x98]
mov edx, 0x1d53
call fcn.100016adc
cmp eax, ebx
jge 0x100013de1
mov rcx, qword [0x100023120]
lea rdx, [0x100023120]
cmp rcx, rdx
je 0x100014073
test byte [rcx + 0x1c], dil
je 0x100014073
mov edx, 0x1a
jmp 0x100013d87
mov r8, qword [rsi + 0x28]
lea rcx, [rsp + 0x68]
mov edx, 0x1d54
call fcn.100016adc
cmp eax, ebx
jge 0x100013e23
mov rcx, qword [0x100023120]
lea rdx, [0x100023120]
cmp rcx, rdx
je 0x100014073
test byte [rcx + 0x1c], dil
je 0x100014073
mov edx, 0x1b
jmp 0x100013d87
mov r8, qword [rsi + 0x28]
lea rcx, [rsp + 0x88]
mov edx, 0x1d55
call fcn.100016adc
cmp eax, ebx
jge 0x100013e68
mov rcx, qword [0x100023120]
lea rdx, [0x100023120]
cmp rcx, rdx
je 0x100014073
test byte [rcx + 0x1c], dil
je 0x100014073
mov edx, 0x1c
jmp 0x100013d87
mov rax, qword [rsp + 0x78]
mov rdx, qword [rsi + 0x20]
lea r9, [rsp + 0x110]
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0x98]
lea r8, [rsp + 0xb8]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x68]
mov rcx, rbp
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0xd0], rax
call sub.wer.dll_WerpPromtUser
lea rdx, [rsp + 0x118]
mov rcx, rbp
mov esi, eax
call sub.wer.dll_WerpGetReportFlags
cmp eax, ebx
jl 0x100013ee9
mov edx, dword [rsp + 0x118]
mov rcx, rbp
or edx, 0x48000000
call sub.wer.dll_WerpSetReportFlags
cmp esi, ebx
jge 0x100013f2a
mov rcx, qword [0x100023120]
lea rdx, [0x100023120]
cmp rcx, rdx
je 0x100013f1e
test byte [rcx + 0x1c], dil
je 0x100013f1e
mov rcx, qword [rcx + 0x10]
lea r8, [0x1000018f0]
mov edx, 0x1d
mov r9d, esi
call fcn.1000048bc
mov dword [rsp + 0x110], ebx
jmp 0x100014073
xor eax, eax
mov qword [rsp + 0x40], rbx
mov rsi, 0xffffffff80000001
mov qword [rsp + 0xaa], rax
mov dword [rsp + 0xb2], eax
mov word [rsp + 0xb6], ax
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x54], eax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
lea rdx, [0x100002a30]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x28], 0x20106
mov qword [rsp + 0x60], rbx
mov word [rsp + 0xa8], bx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x58], ebx
mov dword [rsp + 0x50], ebx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
je 0x100013fcc
mov rcx, qword [0x100023120]
lea rdx, [0x100023120]
cmp rcx, rdx
je 0x10001405e
test byte [rcx + 0x1c], dil
je 0x10001405e
mov edx, 0xf2
jmp 0x10001404e
lea rcx, [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov eax, dword [rsp + 0x58]
mov r11d, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0x60]
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x50]
lea rdx, [0x100002aa8]
mov r9d, 0xb
xor r8d, r8d
mov dword [rsp + 0x28], 8
mov dword [rsp + 0x54], r11d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, ebx
je 0x10001405e
mov rcx, qword [0x100023120]
lea rdx, [0x100023120]
cmp rcx, rdx
je 0x10001405e
test byte [rcx + 0x1c], dil
je 0x10001405e
mov edx, 0xf3
mov rcx, qword [rcx + 0x10]
lea r8, [0x100001888]
call fcn.100004898
mov rcx, qword [rsp + 0x60]
cmp rcx, rbx
je 0x100014073
cmp rcx, rsi
je 0x100014073
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [rsp + 0x110]
lea rcx, [rsp + 0x88]
mov edx, edi
call fcn.1000170b4
lea rcx, [rsp + 0x68]
mov edx, edi
call fcn.1000170b4
lea rcx, [rsp + 0x98]
mov edx, edi
call fcn.1000170b4
lea rcx, [rsp + 0x78]
mov edx, edi
call fcn.1000170b4
mov eax, ebx
mov rbx, qword [rsp + 0x100]
add rsp, 0xe0
pop rdi
pop rsi
pop rbp
ret