Function at 0x4117e4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [ebp + 0x20], 0xffffffff
jne 0x411803
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_lstrlenA]
call eax
sub esp, 4
mov dword [ebp + 0x20], eax
call fcn.004114aa
test eax, eax
je 0x41181f
cmp dword [ebp + 8], 0
je 0x411818
cmp dword [ebp + 8], 0x40
jne 0x41181f
mov eax, 1
jmp 0x411824
mov eax, 0
test al, al
je 0x41194b
mov dword [esp], 0xf003f
call fcn.00411563
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], 0x447a81
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 0x4118af
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.__ERROR_Cannot_create_64_bits_key__s
call fcn.00411655
mov byte [0x46703c], 1
mov eax, 0
jmp 0x411a71
cmp dword [ebp + 0x20], 0
je 0x4118f4
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
je 0x4118f4
mov eax, 1
jmp 0x4118f9
mov eax, 0
test al, al
je 0x411928
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 fcn.00411655
mov byte [0x46703c], 1
mov eax, 0
jmp 0x411a71
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 0x41194b
mov eax, 0
jmp 0x411a71
cmp dword [ebp + 8], 0
je 0x41195b
cmp dword [ebp + 8], 0x20
jne 0x411a6c
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], 0x447a81
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 0x4119d6
mov byte [0x46703c], 1
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.__ERROR_Cannot_create_key__s
call fcn.00411655
mov eax, 0
jmp 0x411a71
cmp dword [ebp + 0x20], 0
je 0x411a1b
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
je 0x411a1b
mov eax, 1
jmp 0x411a20
mov eax, 0
test al, al
je 0x411a4c
mov byte [0x46703c], 1
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 fcn.00411655
mov eax, 0
jmp 0x411a71
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 0x411a6c
mov eax, 0
jmp 0x411a71
mov eax, 1
leave
ret