Function at 0x404a00
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x419560
push eax
mov dword fs:[0], esp
sub esp, 0xc
push edi
push 0
lea eax, [esp + 8]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push 0x41a7f0
push 0x80000001
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x404a55
xor eax, eax
pop edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edx, dword [0x421564]
push ebp
push esi
mov ecx, 0x421564
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x41abc8
mov dword [esp + 0x24], 0
call fcn.0040e053
add esp, 4
push eax
push 0x41abc8
lea ecx, [esp + 0x1c]
call fcn.00401bb0
mov eax, dword [edi + 4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401b10
push 0x41abc8
call fcn.0040e053
add esp, 4
push eax
push 0x41abc8
lea ecx, [esp + 0x1c]
call fcn.00401b10
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [eax + eax + 2]
push eax
push ebp
push 1
push 0
push 0x41a6d4
push ecx
call esi
push 0x41a694
call fcn.0040e053
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0xc]
push edx
push 0x41a694
push 1
push 0
push 0x41a6ec
push eax
call esi
push 0x41a870
call fcn.0040e053
mov edx, dword [esp + 0x10]
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push 0x41a870
push 1
push 0
push 0x41a704
push edx
call esi
push 0x41a770
call fcn.0040e053
mov ecx, dword [esp + 0x10]
add esp, 4
lea eax, [eax + eax + 2]
push eax
push 0x41a770
push 1
push 0
push 0x41a724
push ecx
call esi
push 0x41a6b0
call fcn.0040e053
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [esp + 0xc]
push edx
push 0x41a6b0
push 1
push 0
push 0x41a738
push eax
call esi
mov edx, dword [0x421564]
mov ecx, 0x421564
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push 0x41abc8
mov byte [esp + 0x24], 1
call fcn.0040e053
add esp, 4
push eax
push 0x41abc8
lea ecx, [esp + 0x18]
call fcn.00401bb0
mov eax, dword [edi + 4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00401b10
push 0x41abc0
call fcn.0040e053
add esp, 4
push eax
push 0x41abc0
lea ecx, [esp + 0x18]
call fcn.00401b10
push 0x41a7c0
call fcn.0040e053
add esp, 4
push eax
push 0x41a7c0
lea ecx, [esp + 0x18]
call fcn.00401b10
mov edi, dword [esp + 0x10]
push edi
call fcn.0040e053
mov ecx, dword [esp + 0x10]
add esp, 4
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push 0x41a74c
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [edi - 0x10]
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404c48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebp - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
pop ebp
jg 0x404c6c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0x18
ret