Function at 0x405d40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420905
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x42c080]
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 [0x52af04], 0xf
mov ecx, 0x52aef0
mov eax, dword [0x52af00]
jbe 0x405d8a
mov ecx, dword [0x52aef0]
add eax, ecx
jmp 0x405d91
add eax, ecx
mov ecx, 0x52aef0
push ecx
push eax
push ecx
lea ecx, [ebp - 0x70]
call fcn.00406dc0
push 0x2d
mov edx, 0x529a4c
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.00404be0
add esp, 4
push 0xc
mov edx, 0x529ab4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00404be0
add esp, 4
push 0x1a
mov edx, 0x529ac4
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.00404be0
add esp, 4
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x90]
call fcn.00406fc0
add esp, 4
lea ecx, [ebp - 0x28]
push eax
call fcn.004068e0
mov ecx, dword [ebp - 0x7c]
cmp ecx, 7
jbe 0x405e40
mov edx, dword [ebp - 0x90]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405e36
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4060a1
push ecx
push edx
call fcn.00408559
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 0x405ed9
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 0x405e90
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 0x405f68
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 0x405f66
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 0x405f20
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 0x405f68
xor esi, esi
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x405fa2
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405f98
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4060a6
push ecx
push edx
call fcn.00408559
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 0x405ff0
mov edx, dword [ebp - 0x40]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405fe6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4060a6
push ecx
push edx
call fcn.00408559
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 0x40603a
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x406030
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4060a6
push ecx
push edx
call fcn.00408559
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 0x406084
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40607a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4060a6
push ecx
push edx
call fcn.00408559
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.00408516
mov esp, ebp
pop ebp
ret
call fcn.0040e3d9
call fcn.0040e3d9
int3