Function at 0x416010
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a1d8
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x5f0a00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x270], esi
xorps xmm0, xmm0
mov dword [ebp - 0x26c], 0
push 9
push 0x59a6e8
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x230], xmm0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
call fcn.0040b6c0
mov dword [ebp - 4], 1
call fcn.0040d9d0
mov ecx, dword [eax + 0x60]
add eax, 0x50
cmp dword [eax + 0x14], 7
jbe 0x4160a1
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00410b40
xorps xmm0, xmm0
xor eax, eax
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
xor edi, edi
mov dword [ebp - 0x26c], 1
mov dword [ebp - 0x27c], edi
mov dword [ebp - 0x278], edi
mov dword [ebp - 0x274], edi
cmp dword [ebp - 0x21c], 7
lea eax, [ebp - 0x230]
cmova eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x264], edi
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test ecx, ecx
jne 0x41613e
mov edi, dword [ebp - 0x264]
mov dword [ebp - 0x27c], edi
mov dword [ebp - 0x278], eax
xor eax, eax
mov byte [ebp - 4], 2
test ecx, ecx
cmovne eax, ecx
test eax, eax
jne 0x4161e0
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00557d70
add esp, 0xc
mov dword [ebp - 0x264], 0x208
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x268]
push eax
push 0
push 0x59a738
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4161b9
mov eax, dword [ebp - 0x268]
cmp eax, 1
je 0x4161a7
cmp eax, 2
jne 0x4161b9
cmp dword [ebp - 0x264], 0
jne 0x4161b9
xor eax, eax
mov word [ebp - 0x218], ax
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4161c2
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00418d10
cmp dword [esi + 0x10], 0x20
je 0x41634e
lea eax, [ebp - 0x248]
push eax
call fcn.00436ed0
push eax
lea eax, [ebp - 0x260]
mov byte [ebp - 4], 4
push eax
call fcn.00436dd0
add esp, 0xc
mov dword [ebp - 0x264], eax
cmp esi, eax
je 0x41628d
mov edx, dword [esi + 0x14]
cmp edx, 7
jbe 0x41625d
mov ecx, dword [esi]
lea edx, [edx*2 + 2]
cmp edx, 0x1000
jb 0x41624d
mov eax, dword [ecx - 4]
add edx, 0x23
sub ecx, eax
mov dword [ebp - 0x268], eax
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x4163b2
mov ecx, dword [ebp - 0x268]
push edx
push ecx
call fcn.0055241f
mov eax, dword [ebp - 0x264]
add esp, 8
mov dword [esi + 0x10], 0
xor ecx, ecx
mov dword [esi + 0x14], 7
mov word [esi], cx
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x260]
call fcn.0040bf90
mov ecx, dword [ebp - 0x234]
cmp ecx, 0xf
jbe 0x4162d2
mov edx, dword [ebp - 0x248]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4162c8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4163b2
push ecx
push edx
call fcn.0055241f
add esp, 8
cmp dword [ebp - 0x21c], 7
lea eax, [ebp - 0x230]
cmova eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x264], 0
push ecx
lea ecx, [ebp - 0x264]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41634e
test edi, edi
je 0x416326
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x264]
test eax, eax
jne 0x41634e
cmp dword [esi + 0x14], 7
mov eax, esi
jbe 0x41633a
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
push 1
push 0
push 0x59a738
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x416359
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x416395
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41638b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4163b7
push ecx
push edx
call fcn.0055241f
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.00551e44
mov esp, ebp
pop ebp
ret
call fcn.0055bf8b
call fcn.0055bf8b
int3