Function at 0x140003220
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x20], r9
mov word [rsp + 0x18], r8w
mov word [rsp + 0x10], dx
mov qword [rsp + 8], rcx
sub rsp, 0x148
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x14000324d
xor eax, eax
test eax, eax
jne 0x14000324d
mov qword [rsp + 0xa8], 0
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftATLSamplesGUIDGen
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0xb0], eax
cmp dword [rsp + 0xb0], 0
jne 0x1400032cc
lea rcx, [rsp + 0x50]
call fcn.1400027c0
mov dword [rsp + 0xb0], eax
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0x50], rax
mov eax, 0x20006
and eax, 0x300
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0xb0]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x140003792
xor eax, eax
test eax, eax
jne 0x1400032e2
xor eax, eax
test eax, eax
jne 0x1400032e2
mov qword [rsp + 0xb8], 0
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SoftwareMicrosoft
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0xc0], eax
cmp dword [rsp + 0xc0], 0
jne 0x140003361
lea rcx, [rsp + 0x50]
call fcn.1400027c0
mov dword [rsp + 0xc0], eax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x50], rax
mov eax, 0x20006
and eax, 0x300
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x140003792
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0xd8], rax
mov qword [rsp + 0xc8], 0
lea rax, [rsp + 0xd4]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140066b20]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [rsp + 0xd0], eax
xor eax, eax
test rax, rax
je 0x14000340b
mov eax, dword [rsp + 0xd4]
mov dword [0], eax
cmp dword [rsp + 0xd0], 0
jne 0x140003441
lea rcx, [rsp + 0x68]
call fcn.1400027c0
mov dword [rsp + 0xd0], eax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x68], rax
mov eax, 0x20006
and eax, 0x300
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0xd0]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x14000375c
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x80], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0xf0], rax
mov qword [rsp + 0xe0], 0
lea rax, [rsp + 0xec]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Samples
mov rcx, qword [rsp + 0xf0]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [rsp + 0xe8], eax
xor eax, eax
test rax, rax
je 0x1400034ee
mov eax, dword [rsp + 0xec]
mov dword [0], eax
cmp dword [rsp + 0xe8], 0
jne 0x140003527
lea rcx, [rsp + 0x78]
call fcn.1400027c0
mov dword [rsp + 0xe8], eax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x78], rax
mov eax, 0x20006
and eax, 0x300
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jne 0x140003723
mov qword [rsp + 0x88], 0
mov dword [rsp + 0x90], 0
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x108], rax
mov qword [rsp + 0xf8], 0
lea rax, [rsp + 0x104]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, str.GUIDGen
mov rcx, qword [rsp + 0x108]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [rsp + 0x100], eax
xor eax, eax
test rax, rax
je 0x1400035d7
mov eax, dword [rsp + 0x104]
mov dword [0], eax
cmp dword [rsp + 0x100], 0
jne 0x140003616
lea rcx, [rsp + 0x88]
call fcn.1400027c0
mov dword [rsp + 0x100], eax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x88], rax
mov eax, 0x20006
and eax, 0x300
mov dword [rsp + 0x90], eax
mov eax, dword [rsp + 0x100]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x110], 0
cmp qword [rsp + 0x50], 0
je 0x14000364f
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x110], eax
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x140003657
xor eax, eax
test eax, eax
jne 0x140003657
mov qword [rsp + 0x118], 0
lea rax, [rsp + 0x118]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftATLSamplesGUIDGen
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [rsp + 0x120], eax
cmp dword [rsp + 0x120], 0
jne 0x1400036d6
lea rcx, [rsp + 0x50]
call fcn.1400027c0
mov dword [rsp + 0x120], eax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x50], rax
mov eax, 0x20006
and eax, 0x300
mov dword [rsp + 0x58], eax
mov eax, dword [rsp + 0x120]
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x124], 0
cmp qword [rsp + 0x88], 0
je 0x140003718
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x124], eax
mov qword [rsp + 0x88], 0
mov dword [rsp + 0x90], 0
mov dword [rsp + 0x128], 0
cmp qword [rsp + 0x78], 0
je 0x140003751
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x128], eax
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x80], 0
mov dword [rsp + 0x12c], 0
cmp qword [rsp + 0x68], 0
je 0x14000378a
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x12c], eax
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 0
cmp dword [rsp + 0x60], 0
jne 0x1400037f5
mov rax, qword [rsp + 0x150]
mov eax, dword [rax + 0x48]
mov dword [rsp + 0x98], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x130], eax
xor eax, eax
test eax, eax
jne 0x1400037b9
xor eax, eax
test eax, eax
jne 0x1400037b9
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x130]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.GUID_Type
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x150]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_DestroyWindow]
movzx ecx, word [rsp + 0x160]
call qword [sym.imp.USER32.dll_PostQuitMessage]
mov qword [rsp + 0xa0], 0
mov dword [rsp + 0x134], 0
cmp qword [rsp + 0x50], 0
je 0x14000384f
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [rsp + 0x134], eax
mov qword [rsp + 0x50], 0
mov dword [rsp + 0x58], 0
mov rax, qword [rsp + 0xa0]
add rsp, 0x148
ret