Function at 0x14005eb20
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
movzx esi, r9w
mov rbp, r8
mov ebx, edx
mov r12, rcx
call fcn.14005b270
mov ecx, ebx
mov edi, eax
call fcn.140119fd0
movzx r9d, si
mov r8, rbp
mov edx, edi
mov rcx, r12
mov dword [r12], eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
jmp 0x14005eb20
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x130
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + 0x120], rax
movzx edi, r9w
mov rbx, r8
mov r9, r8
mov r8d, edx
mov r12d, edx
lea rdx, [rsp + 0x30]
mov rsi, rcx
call fcn.14005b710
test eax, eax
jne 0x14005ec3a
call fcn.140049470
lea rbx, [0x140433b50]
xor edx, edx
mov rcx, rbx
mov r8d, 0x80
mov rsi, rax
call sub.ntdll.dll_memset
lea rcx, str..._reg.cpp
mov edx, 0x5c
call qword [sym.imp.ntdll.dll_strrchr]
test rax, rax
mov rdi, rax
jne 0x14005eba7
xor ebx, ebx
jmp 0x14005ec20
xor eax, eax
lea rdx, [0x1402dfd08]
lea rcx, [rsp + 0x40]
lea r8d, [rax + 0x53]
mov byte [rsp + 0x40], 0
mov qword [rsp + 0x41], rax
mov word [rsp + 0x49], ax
mov byte [rsp + 0x4b], al
call qword [sym.imp.ntdll.dll_sprintf]
lea rdx, [rdi + 1]
mov rcx, rbx
sub rcx, rdx
nop
movzx eax, byte [rdx]
add rdx, 1
test al, al
mov byte [rcx + rdx - 1], al
jne 0x14005ebe0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, rbx
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x40]
nop
nop
nop
nop
movzx eax, byte [rdx + rcx]
add rcx, 1
test al, al
mov byte [rdi + rcx - 2], al
jne 0x14005ec10
mov rax, qword [rsi]
lea rdx, str._s:_Failed_to_GetDriveLetter_in_SetDriveLetter2.
mov r8, rbx
mov rcx, rsi
call qword [rax + 0x10]
xor eax, eax
jmp 0x14005ef7c
cmp word [rsp + 0x30], di
jne 0x14005ec4b
mov eax, 1
jmp 0x14005ef7c
xor eax, eax
lea rdx, str.SystemMountedDevices
mov r9d, 0xf003f
mov qword [rsp + 0x51], rax
mov word [rsp + 0x59], ax
mov byte [rsp + 0x5b], al
mov eax, dword [rsi]
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x50], r12d
imul rax, rbx
mov qword [rsp + 0x54], rax
lea rax, [rsp + 0x38]
xor ebx, ebx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x38], rbx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14005ecd0
call fcn.140049470
lea rcx, str..._reg.cpp
mov edx, 0x66
mov rbx, qword [rax]
mov rdi, rax
call fcn.14005ae30
lea rdx, str._s:_Failed_to_RegOpenKeyEx_in_SetDriveLetter2.
mov rcx, rdi
mov r8, rax
call qword [rbx + 0x10]
xor eax, eax
jmp 0x14005ef7c
xor edx, edx
lea rcx, [rsp + 0x62]
mov qword [rsp + 0x158], r13
lea r8d, [rdx + 0x7e]
mov word [rsp + 0x60], bx
call sub.ntdll.dll_memset
movzx r13d, di
lea rdx, str.DosDevices_c:
lea rcx, [rsp + 0x60]
mov r8d, r13d
call qword [sym.imp.MSVCR80.dll__swprintf]
lea r8, [rsp + 0x60]
lea rdx, str.SystemMountedDevices
mov rcx, rsi
call fcn.14005ba40
test eax, eax
je 0x14005ee28
xor eax, eax
lea rdx, [rsp + 0x60]
mov rcx, rsi
lea r8d, [rax + 0x34]
mov word [rsp + 0x60], bx
mov qword [rsp + 0x62], rax
mov qword [rsp + 0x6a], rax
mov qword [rsp + 0x72], rax
mov qword [rsp + 0x7a], rax
mov qword [rsp + 0x82], rax
mov qword [rsp + 0x8a], rax
mov word [rsp + 0x92], ax
call fcn.14005bc70
test eax, eax
jne 0x14005ed9d
call fcn.140049470
lea rcx, str..._reg.cpp
mov edx, 0x71
mov rbx, qword [rax]
mov rdi, rax
call fcn.14005ae30
lea rdx, str._s:_Failed_to_RegLogicalDriveLetters_in_SetDriveLetter2.
mov rcx, rdi
mov r8, rax
call qword [rbx + 0x10]
xor eax, eax
jmp 0x14005ef74
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x34]
movzx edx, di
mov rcx, rsi
mov dword [rsp + 0x34], ebx
mov qword [rsp + 0x40], rbx
call fcn.14005bd60
test eax, eax
jne 0x14005edf2
call fcn.140049470
lea rcx, str..._reg.cpp
mov edx, 0x79
mov rbx, qword [rax]
mov rdi, rax
call fcn.14005ae30
lea rdx, str._s:_Failed_to_QueryDosDevicesData_in_SetDriveLetter2.
mov rcx, rdi
mov r8, rax
call qword [rbx + 0x10]
xor eax, eax
jmp 0x14005ef74
mov ebx, dword [rsp + 0x34]
mov r12, qword [rsp + 0x40]
mov edi, 2
movsxd rax, edi
cmp word [rsp + rax*2 + 0x60], 0
jne 0x14005ee20
lea r9d, [rdi + 0x41]
mov r8, r12
mov edx, ebx
mov rcx, rsi
call fcn.14005eab0
test eax, eax
jne 0x14005ee28
add edi, 1
cmp edi, 0x1a
jle 0x14005ee00
xor eax, eax
lea rdx, str.DosDevices_c:
lea rcx, [rsp + 0xe0]
mov r8d, r13d
mov word [rsp + 0xe0], 0
mov qword [rsp + 0xe2], rax
mov qword [rsp + 0xea], rax
mov qword [rsp + 0xf2], rax
mov qword [rsp + 0xfa], rax
mov qword [rsp + 0x102], rax
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_266], rax
mov qword [rsp + 0x112], rax
mov dword [rsp + 0x11a], eax
mov word [rsp + reloc.MFC80U.DLL_Ordinal_286], ax
call qword [sym.imp.MSVCR80.dll__swprintf]
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x50]
lea rdx, [rsp + 0xe0]
mov r9d, 3
xor r8d, r8d
mov dword [rsp + 0x28], 0xc
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14005ef00
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.140049470
lea rcx, str..._reg.cpp
mov rbx, qword [rax]
mov edx, 0x93
mov rdi, rax
call fcn.14005ae30
lea rdx, str._s:_Failed_to_RegSetValueEx_in_SetDriveLetter2.
mov rcx, rdi
mov r8, rax
call qword [rbx + 0x10]
xor eax, eax
jmp 0x14005ef74
cmp word [rsp + 0x30], 0
je 0x14005ef64
movzx r8d, word [rsp + 0x30]
xor eax, eax
lea rdx, str.DosDevices_c:
lea rcx, [rsp + 0x60]
mov word [rsp + 0x60], 0
mov qword [rsp + 0x62], rax
mov qword [rsp + 0x6a], rax
mov qword [rsp + 0x72], rax
mov qword [rsp + 0x7a], rax
mov qword [rsp + 0x82], rax
mov qword [rsp + 0x8a], rax
mov qword [rsp + 0x92], rax
mov dword [rsp + 0x9a], eax
mov word [rsp + 0x9e], ax
call qword [sym.imp.MSVCR80.dll__swprintf]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov r13, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.140161080
mov rbx, qword [rsp + 0x160]
add rsp, 0x130
pop r12
pop rdi
pop rsi
ret