Function at 0x4151d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f050
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x7818
call fcn.00408450
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], esi
call fcn.004173c5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov edx, dword [esi + 0xc]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x14]
push ecx
push ebx
or edx, 0xf003f
push edx
push ebx
push ebx
push ebx
push edi
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x7828], bl
mov byte [ebp - 4], 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
xor ecx, ecx
add esi, 4
cmp eax, ebx
sete cl
push str.::RegCreateKeyEx_..._
mov dword [ebp - 0x18], eax
push ecx
mov ecx, esi
call fcn.00415990
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
cmp eax, 1
jne 0x41527a
mov esi, 4
mov dword [ebp + 8], esi
lea edi, [ebx + 4]
jmp 0x4153ec
cmp eax, 2
jne 0x41529d
add ebx, 8
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp + 8], 1
call fcn.00402cd0
mov edi, dword [ebp - 0x1c]
mov esi, dword [edi - 0xc]
jmp 0x4153ec
cmp eax, 3
jne 0x415382
mov dword [ebp + 8], 7
xor esi, esi
call fcn.004173c5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ecx, [eax + 0x10]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 4], 2
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x415353
lea ecx, [ebp + 0xc]
call fcn.00401b00
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebx + 0xc]
call fcn.00416e94
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.00402cd0
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x415312
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ecx - 0xc]
test edi, edi
je 0x415345
xor eax, eax
mov edi, edi
cmp eax, edi
jge 0x415345
test eax, eax
jl 0x41533b
cmp eax, dword [ecx - 0xc]
jg 0x41533b
mov dl, byte [eax + ecx]
mov byte [ebp + esi - 0x7828], dl
inc esi
inc eax
jmp 0x415320
push 0x80070057
call fcn.004010c0
mov byte [ebp + esi - 0x7828], 0
inc esi
jmp 0x4152c5
lea eax, [ecx - 0x10]
mov byte [ebp + esi - 0x7828], 0
inc esi
lea edi, [ebp - 0x7828]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4153ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x4153ec
mov dword [ebp - 0x18], 0x70c
call fcn.004173c5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x14]
push eax
mov byte [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
lea ecx, [ebp + 0xc]
push str.SC_Error_3036:_The_following_key_is_an_unrecognized_data_type:__s
push ecx
call fcn.00404b60
mov edi, dword [ebp + 0xc]
add esp, 0xc
push edi
push 0
mov ecx, esi
call fcn.00415990
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4153e6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
push esi
push edi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x20]
mov esi, eax
xor eax, eax
test esi, esi
sete al
push str.::RegSetValueEx_..._
add ecx, 4
mov dword [ebp - 0x18], esi
push eax
call fcn.00415990
jmp 0x41543e
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41546c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10