Function at 0x405b00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4204b5
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x42b080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x5a3504], 0xf
mov ecx, 0x5a34f0
mov eax, dword [0x5a3500]
jbe 0x405b4a
mov ecx, dword [0x5a34f0]
add eax, ecx
jmp 0x405b51
add eax, ecx
mov ecx, 0x5a34f0
push ecx
push eax
push ecx
lea ecx, [ebp - 0x70]
call fcn.00406a50
push 0x2d
mov edx, 0x5a204c
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00404af0
add esp, 4
push 0xc
mov edx, 0x5a20b4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00404af0
add esp, 4
push 0x1a
mov edx, 0x5a20c4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00404af0
add esp, 4
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x90]
call fcn.00406c60
add esp, 4
lea ecx, [ebp - 0x28]
push eax
call fcn.004066a0
mov ecx, dword [ebp - 0x7c]
cmp ecx, 7
jbe 0x405c00
mov edx, dword [ebp - 0x90]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405bf6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405e61
push ecx
push edx
call fcn.004081f9
add esp, 8
cmp dword [ebp - 0x44], 7
lea ecx, [ebp - 0x74]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x58]
cmova eax, dword [ebp - 0x58]
push 0
push ecx
push 0
push 0x20007
push 0
push 0
push 0
push eax
push 0x80000002
mov dword [ebp - 0x74], 0
call esi
test eax, eax
jne 0x405c99
mov ecx, dword [ebp - 0x14]
lea esi, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
cmp ecx, 7
cmova esi, edi
lea edx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x405c50
sub esi, edx
lea edx, [ebp - 0x28]
sar esi, 1
cmp ecx, 7
lea ecx, [ebp - 0x40]
cmova edx, edi
cmp dword [ebp - 0x2c], 7
cmova ecx, dword [ebp - 0x40]
lea eax, [esi + esi]
push eax
push edx
push 1
push 0
push ecx
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x405d28
cmp dword [ebp - 0x44], 7
lea ecx, [ebp - 0x78]
push 0
push ecx
push 0
push 0x20007
push 0
push 0
lea eax, [ebp - 0x58]
mov dword [ebp - 0x78], 0
cmova eax, dword [ebp - 0x58]
push 0
push eax
push 0x80000001
call esi
test eax, eax
jne 0x405d26
mov ecx, dword [ebp - 0x14]
lea esi, [ebp - 0x28]
mov edi, dword [ebp - 0x28]
cmp ecx, 7
cmova esi, edi
lea edx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x405ce0
sub esi, edx
lea edx, [ebp - 0x28]
sar esi, 1
cmp ecx, 7
lea ecx, [ebp - 0x40]
cmova edx, edi
cmp dword [ebp - 0x2c], 7
cmova ecx, dword [ebp - 0x40]
lea eax, [esi + esi]
push eax
push edx
push 1
push 0
push ecx
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x405d28
xor esi, esi
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x405d62
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405d58
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405e66
push ecx
push edx
call fcn.004081f9
add esp, 8
mov ecx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp ecx, 7
jbe 0x405db0
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405da6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405e66
push ecx
push edx
call fcn.004081f9
add esp, 8
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp ecx, 7
jbe 0x405dfa
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405df0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405e66
push ecx
push edx
call fcn.004081f9
add esp, 8
mov ecx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp ecx, 7
jbe 0x405e44
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405e3a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405e66
push ecx
push edx
call fcn.004081f9
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004081b6
mov esp, ebp
pop ebp
ret
call fcn.0040e07b
call fcn.0040e07b
int3