Function at 0x413220
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41baf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x7818
call fcn.00407d40
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], esi
call fcn.0041445f
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x14]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edi
mov dword [ebp - 4], ebx
push edx
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.004139e0
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
cmp eax, 1
jne 0x4132c5
mov esi, 4
mov dword [ebp + 8], esi
lea edi, [ebx + 4]
jmp 0x41343c
cmp eax, 2
jne 0x4132e8
add ebx, 8
push ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp + 8], 1
call fcn.00402cb0
mov edi, dword [ebp - 0x1c]
mov esi, dword [edi - 0xc]
jmp 0x41343c
cmp eax, 3
jne 0x4133d2
mov dword [ebp + 8], 7
xor esi, esi
call fcn.0041445f
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 0x4133a3
lea ecx, [ebp + 0xc]
call fcn.00401b00
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebx + 0xc]
call fcn.00413f2e
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call fcn.00402cb0
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 0x41335d
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 0x413395
xor eax, eax
lea esp, [esp]
cmp eax, edi
jge 0x413395
test eax, eax
jl 0x41338b
cmp eax, dword [ecx - 0xc]
jg 0x41338b
mov dl, byte [eax + ecx]
mov byte [ebp + esi - 0x7828], dl
inc esi
inc eax
jmp 0x413370
push 0x80070057
call fcn.004010c0
mov byte [ebp + esi - 0x7828], 0
inc esi
jmp 0x413310
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 0x41343c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x41343c
mov dword [ebp - 0x18], 0x70c
call fcn.0041445f
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.00404a50
mov edi, dword [ebp + 0xc]
add esp, 0xc
push edi
push 0
mov ecx, esi
call fcn.004139e0
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 0x413436
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.004139e0
jmp 0x41348e
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 0x4134bc
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