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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
mov eax, dword [0x41501c]
xor eax, ebp
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x401e2f
cmp dword [ebp + 0xc], 0
jg 0x401e36
xor eax, eax
jmp 0x40210b
xor eax, eax
mov word [ebp - 0x60], ax
push 0x4c
push 0
lea ecx, [ebp - 0x5e]
push ecx
call fcn.00405360
add esp, 0xc
mov edx, dword [0x41122c]
mov dword [ebp - 0xc4], edx
mov eax, dword [0x411230]
mov dword [ebp - 0xc0], eax
mov ecx, dword [0x411234]
mov dword [ebp - 0xbc], ecx
mov edx, dword [0x411238]
mov dword [ebp - 0xb8], edx
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0x2001f
push 0
push 0x413d68
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40204f
mov dword [ebp - 0xc8], 0
mov dword [ebp - 0xcc], 0x4e
lea ecx, [ebp - 0xcc]
push ecx
lea edx, [ebp - 0x60]
push edx
lea eax, [ebp - 0xc8]
push eax
push 0
push 0x4139a4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401f49
cmp dword [ebp - 0xc8], 1
jne 0x401f49
lea edx, [ebp - 0x60]
mov dword [ebp - 0xd4], edx
mov eax, dword [ebp - 0xd4]
add eax, 2
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xd4]
mov dx, word [ecx]
mov word [ebp - 0xda], dx
add dword [ebp - 0xd4], 2
cmp word [ebp - 0xda], 0
jne 0x401f01
mov eax, dword [ebp - 0xd4]
sub eax, dword [ebp - 0xd8]
sar eax, 1
mov dword [ebp - 0xe0], eax
je 0x401f49
lea ecx, [ebp - 0xc4]
push ecx
lea edx, [ebp - 0x60]
push edx
call dword [sym.imp.ole32.dll_IIDFromString]
push 0x41122c
lea eax, [ebp - 0xc4]
push eax
call fcn.004023d0
add esp, 8
test eax, eax
je 0x402043
lea ecx, [ebp - 0xc4]
push ecx
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov dword [ebp - 0xd0], 0
lea edx, [ebp - 0xd0]
push edx
lea eax, [ebp - 0xc4]
push eax
call dword [sym.imp.ole32.dll_StringFromIID]
mov ecx, dword [ebp - 0xd0]
mov dword [ebp - 0xe4], ecx
mov edx, dword [ebp - 0xe4]
add edx, 2
mov dword [ebp - 0xe8], edx
mov eax, dword [ebp - 0xe4]
mov cx, word [eax]
mov word [ebp - 0xea], cx
add dword [ebp - 0xe4], 2
cmp word [ebp - 0xea], 0
jne 0x401fab
mov edx, dword [ebp - 0xe4]
sub edx, dword [ebp - 0xe8]
sar edx, 1
mov dword [ebp - 0xf0], edx
mov eax, dword [ebp - 0xf0]
lea ecx, [eax + eax + 2]
mov dword [ebp - 0xcc], ecx
mov edx, dword [ebp - 0xcc]
push edx
mov eax, dword [ebp - 0xd0]
push eax
push 1
push 0
push str.UserGuid
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x4e
push 0
lea edx, [ebp - 0x60]
push edx
call fcn.00405360
add esp, 0xc
mov eax, dword [ebp - 0xd0]
push eax
push 0x27
lea ecx, [ebp - 0x60]
push ecx
call fcn.004041b4
add esp, 0xc
mov edx, dword [ebp - 0xd0]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402062
push str.00000000_0000_0000_0000_000000000000
push 0x27
lea ecx, [ebp - 0x60]
push ecx
call fcn.004041b4
add esp, 0xc
mov edx, dword [ebp + 0xc]
shl edx, 1
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00405360
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0xb0], cx
push 0x4c
push 0
lea edx, [ebp - 0xae]
push edx
call fcn.00405360
add esp, 0xc
push 0x48
lea eax, [ebp - 0x5e]
push eax
push 0x4e
lea ecx, [ebp - 0xb0]
push ecx
call fcn.00404331
add esp, 0x10
mov dword [ebp - 0xb4], 0
lea edx, [ebp - 0xb4]
push edx
push 0x413af4
lea eax, [ebp - 0xb0]
push eax
call fcn.004043a6
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x402106
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00404235
add esp, 0xc
lea ecx, [ebp - 0xb4]
push ecx
push 0x413b5c
push 0
call fcn.004043a6
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x4020d1
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040418f
mov esp, ebp
pop ebp
ret