Function at 0x405830
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424210
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x98
mov eax, dword [0x433064]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], 7
movups xmmword [ebp - 0x30], xmm0
mov word [ebp - 0x30], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x60]
push 0x11
mov edx, str.66t
mov dword [ebp - 0x18], eax
call fcn.00401fd0
add esp, 4
push str.LOCALAPPDATA
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.004104a6
add esp, 0xc
test eax, eax
jne 0x405af4
mov eax, dword [ebp - 0x68]
test eax, eax
je 0x405af4
push eax
lea ecx, [ebp - 0xa4]
call fcn.00407680
mov esi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
mov edi, dword [ebp - 0x4c]
cmp edi, 8
mov edx, dword [esi + 0x10]
cmovae ecx, dword [ebp - 0x60]
mov eax, dword [esi + 0x14]
sub eax, edx
mov dword [ebp - 0x6c], edx
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x74], ecx
cmp edx, eax
ja 0x405941
cmp dword [esi + 0x14], 8
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x6c], esi
lea eax, [edx + ecx]
mov dword [ebp - 0x70], eax
mov dword [esi + 0x10], eax
mov eax, esi
jb 0x405920
mov eax, dword [esi]
mov dword [ebp - 0x6c], eax
lea ecx, [eax + ecx*2]
lea eax, [edx + edx]
push eax
push dword [ebp - 0x74]
push ecx
call fcn.0040bd30
mov eax, dword [ebp - 0x6c]
add esp, 0xc
mov ecx, dword [ebp - 0x70]
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x405957
push edx
push ecx
mov byte [ebp - 0x70], 0
mov ecx, esi
push dword [ebp - 0x70]
push edx
call fcn.004096f0
mov edi, dword [ebp - 0x4c]
mov esi, eax
movups xmm0, xmmword [esi]
xor eax, eax
lea ecx, [ebp - 0x30]
movups xmmword [ebp - 0x8c], xmm0
movq xmm0, qword [esi + 0x10]
mov word [esi], ax
lea eax, [ebp - 0x8c]
push eax
movq qword [ebp - 0x7c], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
call fcn.004075f0
mov ecx, dword [ebp - 0x78]
cmp ecx, 8
jb 0x4059ca
mov edx, dword [ebp - 0x8c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4059c0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b82
push ecx
push edx
call fcn.0040ab3e
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x90]
cmp ecx, 8
jb 0x405a0e
mov edx, dword [ebp - 0xa4]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405a04
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b82
push ecx
push edx
call fcn.0040ab3e
add esp, 8
push 0x58
mov edx, 0x513ad0
lea ecx, [ebp - 0x48]
call fcn.00401fd0
add esp, 4
mov dword [ebp - 0x64], 0
cmp dword [ebp - 0x34], 8
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x48]
cmovae eax, dword [ebp - 0x48]
push 0
push ecx
push 0
push 0x20007
push 0
push 0
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x405aa2
mov esi, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
cmp esi, 8
cmovae edx, dword [ebp - 0x30]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x405a65
sub edx, ecx
lea ecx, [ebp - 0x30]
sar edx, 1
cmp esi, 8
cmovae ecx, dword [ebp - 0x30]
lea eax, [edx + edx]
push eax
push ecx
push 1
push 0
push 0
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, 1
jmp 0x405aa4
xor esi, esi
mov ecx, dword [ebp - 0x34]
cmp ecx, 8
jb 0x405ade
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405ad4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b87
push ecx
push edx
call fcn.0040ab3e
add esp, 8
xor eax, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
jmp 0x405af9
mov edi, dword [ebp - 0x4c]
xor esi, esi
cmp edi, 8
jb 0x405b2c
mov edx, dword [ebp - 0x60]
lea ecx, [edi*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405b22
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b87
push ecx
push edx
call fcn.0040ab3e
add esp, 8
mov ecx, dword [ebp - 0x1c]
cmp ecx, 8
jb 0x405b62
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x405b58
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405b87
push ecx
push edx
call fcn.0040ab3e
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 - 0x14]
xor ecx, ebp
call fcn.0040a8fe
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0041153c
call fcn.0041153c
int3