Function at 0x140003618
Capabilities:
Set registry value

Disassembly:
push rbp
push r12
push r13
push rbp
push r14
push r15
sub rsp, 0x80
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x80], rbx
mov qword [rbp + 0x88], rsi
mov qword [rbp + 0x90], rdi
mov rax, qword [0x1400143a0]
xor rax, rbp
mov qword [rbp + 0x40], rax
mov r12, rcx
mov qword [rbp + 0x38], rcx
xor r15d, r15d
mov qword [rbp + 0x30], r9
mov ecx, 0x2000
mov qword [rbp + 0x28], r8
mov ebx, r15d
mov qword [rbp + 0x18], rdx
mov r13, r8
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rbp + 0x10], rax
mov r14, rax
test rax, rax
je 0x14000397a
mov rdx, rax
mov rcx, r12
call fcn.1400040b0
mov edi, eax
test eax, eax
js 0x140003749
mov edi, r15d
lea rsi, [0x14000e5c0]
mov rdx, qword [rsi]
mov rcx, r14
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
test eax, eax
je 0x1400036d5
inc edi
add rsi, 0x10
cmp edi, 3
jb 0x1400036a7
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov edi, 0x80020009
jmp 0x140003c02
lea rcx, [0x14000e5c0]
movsxd rax, edi
add rax, rax
movzx r15d, word [rcx + rax*8 + 8]
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140003971
mov rcx, qword [r12]
movzx eax, word [rcx]
cmp eax, 9
jb 0x14000372c
cmp eax, 0x20
ja 0x14000372c
movabs rdx, 0x1000027ff
bt rdx, rax
jae 0x14000372c
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov qword [r12], rax
jmp 0x1400036ff
mov rdx, rsi
mov rcx, r12
call fcn.1400040b0
xor r10d, r10d
mov edi, eax
test eax, eax
jns 0x140003757
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
jmp 0x140003c02
movzx eax, r15w
mov dword [rbp + 8], r10d
cmp eax, 8
je 0x14000390d
cmp eax, 0x11
je 0x1400037ad
cmp eax, 0x13
jne 0x140003bb9
lea r9, [rbp + 8]
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [rbp + 8]
mov r9d, 4
mov dword [rbp], eax
mov rdx, r13
lea rax, [rbp]
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
jmp 0x1400038f8
or r15, 0xffffffffffffffff
inc r15
cmp word [rsi + r15*2], r10w
jne 0x1400037b1
test r15b, 1
jne 0x140003835
mov eax, r15d
cdq
sub eax, edx
sar eax, 1
movsxd r13, eax
cmp r13, 0x400
ja 0x14000380a
mov rcx, r13
call fcn.140003d68
xor r10d, r10d
test al, al
je 0x14000380a
lea rax, [r13 + 0xf]
cmp rax, r13
ja 0x1400037f7
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14000d230
sub rsp, rax
lea r12, [rsp + 0x30]
jmp 0x140003830
lea rcx, [r13 + 0x10]
cmp rcx, r13
jae 0x140003818
mov r12, r10
jmp 0x140003830
call qword [sym.imp.msvcrt.dll_malloc]
xor r10d, r10d
test rax, rax
je 0x140003813
mov qword [rax], r10
lea r12, [rax + 0x10]
mov rbx, rax
test r12, r12
jne 0x140003851
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov edi, 0x80004005
jmp 0x140003bfd
mov r8, r13
xor edx, edx
mov rcx, r12
call sub.msvcrt.dll_memset
xor eax, eax
movsxd r11, r15d
mov r9d, eax
test r15d, r15d
jle 0x1400038e4
xor r14d, r14d
mov r10d, r14d
movzx r8d, word [rsi + r10*2]
mov eax, r8d
cmp r8d, 0x30
jb 0x1400038a8
cmp eax, 0x39
jbe 0x1400038a2
cmp eax, 0x40
jbe 0x1400038a8
cmp eax, 0x46
jbe 0x14000389c
add eax, 0xffffff9f
cmp eax, 5
ja 0x1400038a8
sub r8b, 0x57
jmp 0x1400038ab
sub r8b, 0x37
jmp 0x1400038ab
sub r8b, 0x30
jmp 0x1400038ab
mov r8b, r14b
mov eax, r9d
test r9d, r9d
jns 0x1400038b7
lea eax, [r9 + 1]
sar eax, 1
mov ecx, r9d
and ecx, 1
movsxd rdx, eax
shl ecx, 2
mov eax, 4
sub eax, ecx
inc r9d
mov cl, al
inc r10
shl r8b, cl
or byte [rdx + r12], r8b
cmp r10, r11
jl 0x140003871
mov r14, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x28]
mov r9d, 3
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r12
mov rcx, qword [rbp + 0x18]
xor r8d, r8d
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
jmp 0x140003bb9
or r15, 0xffffffffffffffff
mov rcx, rsi
mov r13, r10
cmp byte [rbp + 0xa0], r10b
je 0x140003b76
mov rax, r15
inc rax
cmp word [rsi + rax*2], r10w
jne 0x140003927
cmp eax, 0xffe
jle 0x140003951
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov edi, 0x80004005
jmp 0x140003c02
mov ecx, 0x2000
call qword [sym.imp.msvcrt.dll_malloc]
mov qword [rbp + 0x10], rax
mov r13, rax
test rax, rax
jne 0x140003984
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov edi, 0x8007000e
jmp 0x140003c02
mov rdi, qword [r12 + 8]
lea rax, [rdi + 0x10]
mov rcx, rax
mov qword [rbp + 0x20], rax
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
xor eax, eax
mov r12d, eax
cmp dword [rdi + 8], eax
jle 0x1400039dc
mov ecx, eax
mov qword [rbp], rax
mov rax, qword [rdi]
lea rdx, [0x14000f2f8]
mov rcx, qword [rcx + rax]
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcmpiW]
test eax, eax
je 0x140003a0c
mov rcx, qword [rbp]
inc r12d
add rcx, 8
mov qword [rbp], rcx
cmp r12d, dword [rdi + 8]
jl 0x1400039aa
xor eax, eax
mov r12, rax
mov rcx, qword [rbp + 0x20]
mov qword [rbp], r12
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
xor r10d, r10d
test r12, r12
je 0x140003b73
mov rdi, rsi
cmp word [r12], r10w
je 0x140003a93
movzx eax, word [rsi]
jmp 0x140003a8b
mov rax, qword [rdi]
movsxd rcx, r12d
mov rcx, qword [rax + rcx*8]
mov r12, qword [rcx + 8]
jmp 0x1400039df
mov r13, qword [rbp]
mov r12, rdi
test ax, ax
je 0x140003a72
cmp word [r13], r10w
je 0x140003a93
movzx ecx, word [r13]
movzx eax, word [r12]
cmp eax, ecx
jne 0x140003a72
mov rcx, r12
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov rcx, r13
mov qword [rbp + 0x20], rax
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov rdx, qword [rbp + 0x20]
sub rax, r13
mov rcx, rdx
sub rcx, r12
xor rax, rcx
test rax, 0xfffffffffffffffe
je 0x140003b57
xor r10d, r10d
cmp word [r13], r10w
je 0x140003a93
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov rdi, rax
xor r10d, r10d
movzx eax, word [rax]
test ax, ax
jne 0x140003a1c
mov rdi, r10
test rdi, rdi
je 0x140003b6f
cmp rdi, qword [rbp + 0x30]
je 0x140003abb
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharPrevW]
xor r10d, r10d
cmp word [rax], 0x22
je 0x140003b6f
mov r13, qword [rbp + 0x10]
mov r8, rdi
sub r8, rsi
mov rdx, rsi
sar r8, 1
mov rcx, r13
mov word [r13], r10w
call qword [sym.imp.api_ms_win_core_string_obsolete_l1_1_0.dll_lstrcpynW]
lea r8, [0x14000f308]
mov edx, 0x1000
mov rcx, r13
call qword [sym.imp.msvcrt.dll_wcscat_s]
mov r12, qword [rbp]
mov edx, 0x1000
mov r8, r12
mov rcx, r13
call qword [sym.imp.msvcrt.dll_wcscat_s]
lea r8, [0x14000f308]
mov edx, 0x1000
mov rcx, r13
call qword [sym.imp.msvcrt.dll_wcscat_s]
mov rax, r15
xor ecx, ecx
inc rax
cmp word [r12 + rax*2], cx
jne 0x140003b1d
lea r8, [rdi + rax*2]
mov edx, 0x1000
mov rcx, r13
call qword [sym.imp.msvcrt.dll_wcscat_s]
mov rcx, r13
xor r10d, r10d
jmp 0x140003b76
add r12, 2
add r13, 2
movzx ecx, word [r13]
movzx eax, word [r12]
cmp eax, ecx
je 0x140003b5c
cmp r12, rdx
jb 0x140003b41
xor r10d, r10d
cmp word [r12], r10w
jne 0x140003a28
jmp 0x140003a72
mov r13, qword [rbp + 0x10]
mov rcx, rsi
inc r15
cmp word [rcx + r15*2], r10w
jne 0x140003b76
mov rdx, qword [rbp + 0x28]
lea eax, [r15*2 + 2]
mov dword [rsp + 0x28], eax
mov r9d, 1
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, qword [rbp + 0x18]
mov rcx, qword [rcx]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
test r13, r13
je 0x140003bb9
mov rcx, r13
call qword [sym.imp.msvcrt.dll_free]
mov rdx, qword [rbp + 0x30]
mov rcx, qword [rbp + 0x38]
call fcn.1400040b0
xor r13d, r13d
mov edi, eax
mov rcx, rsi
test eax, eax
jns 0x140003bdd
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
jmp 0x140003bf7
call qword [sym.imp.msvcrt.dll_free]
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov edi, r13d
jmp 0x140003bfd
mov rcx, rbx
mov rbx, qword [rbx]
call qword [sym.imp.msvcrt.dll_free]
test rbx, rbx
jne 0x140003bf1
mov eax, edi
mov rcx, qword [rbp + 0x40]
xor rcx, rbp
call fcn.14000c6d0
mov rbx, qword [rbp + 0x80]
mov rsi, qword [rbp + 0x88]
mov rdi, qword [rbp + 0x90]
lea rsp, [rbp + 0x50]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret