Function at 0x401af7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
call sym.IsWow64__
test eax, eax
je 0x401b19
cmp dword [ebp + 8], 0
je 0x401b12
cmp dword [ebp + 8], 0x40
jne 0x401b19
mov eax, 1
jmp 0x401b1e
mov eax, 0
test al, al
je 0x401c26
mov dword [esp], 0xf003f
call sym.Wow64Key_unsigned_long_
mov dword [esp + 0x20], 0
lea edx, [ebp - 0xc]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x428110
mov dword [esp + 8], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call eax
sub esp, 0x24
test eax, eax
setne al
test al, al
je 0x401ba2
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.__ERROR_Cannot_create_64_bits_key__s
call sym.log_char_const__..._
mov eax, 0
jmp 0x401d2d
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 0x20]
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call eax
sub esp, 0x18
test eax, eax
setne al
test al, al
je 0x401c03
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.__ERROR_Cannot_set_64_bits_value__s_s
call sym.log_char_const__..._
mov eax, 0
jmp 0x401d2d
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
sub esp, 4
test eax, eax
setne al
test al, al
je 0x401c26
mov eax, 0
jmp 0x401d2d
cmp dword [ebp + 8], 0
je 0x401c36
cmp dword [ebp + 8], 0x20
jne 0x401d28
mov dword [esp + 0x20], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x428110
mov dword [esp + 8], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
call eax
sub esp, 0x24
test eax, eax
setne al
test al, al
je 0x401caa
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.__ERROR_Cannot_create_key__s
call sym.log_char_const__..._
mov eax, 0
jmp 0x401d2d
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0x20]
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 0x1c]
mov dword [esp + 0x10], edx
mov edx, dword [ebp + 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call eax
sub esp, 0x18
test eax, eax
setne al
test al, al
je 0x401d08
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.__ERROR_Cannot_set_value__s_s
call sym.log_char_const__..._
mov eax, 0
jmp 0x401d2d
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
sub esp, 4
test eax, eax
setne al
test al, al
je 0x401d28
mov eax, 0
jmp 0x401d2d
mov eax, 1
leave
ret