Function at 0x4016b0
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x20f4
call fcn.00411690
mov eax, dword [0x450028]
xor eax, esp
mov dword [esp + 0x20f0], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
cmp dword [eax], 0x80000003
push edi
mov ebx, edx
je 0x40172f
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [ebx + 0x5a44]
push eax
lea edi, [esp + 0x14]
mov dword [esp + 0x14], 0x415a54
mov dword [esp + 0x44], eax
call fcn.00404ff0
test eax, eax
jne 0x401746
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401720
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40172f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20f0]
xor ecx, esp
call fcn.00410b3e
mov esp, ebp
pop ebp
ret
push 1
call fcn.00401930
mov edi, dword [ebx + 4]
test edi, edi
je 0x401764
mov ecx, dword [esi + 4]
call fcn.00401a00
test eax, eax
je 0x4018f0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebx + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x10], esi
mov ecx, dword [esi]
mov edx, dword [ecx]
mov dword [ebx + 0x14], edx
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
mov dword [ebx + 0xc], ecx
mov esi, dword [esi + 4]
lea edi, [ebx + 0x20]
mov ecx, 0xb3
push 0x5834
lea edx, [ebx + 8]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x1c]
push edx
push edi
call fcn.0041106e
xor esi, esi
push 0x62
lea eax, [esp + 0xa2]
push esi
push eax
mov word [esp + 0xa8], si
call fcn.00411068
add esp, 0x18
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x94]
push edx
lea eax, [esp + 0x4c]
push eax
push 0x414610
push 0x414624
push 0x80000001
mov dword [esp + 0x24], 0x32
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x401845
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [esp + 0x2e]
movzx eax, word [esp + 0x2c]
movzx ecx, word [esp + 0x2a]
push edx
movzx edx, word [esp + 0x2c]
push eax
movzx eax, word [esp + 0x2e]
push ecx
movzx ecx, word [esp + 0x2e]
push edx
movzx edx, word [esp + 0x30]
push eax
push ecx
push edx
lea eax, [esp + 0xac]
push 0x41465c
push eax
or edx, 0xffffffff
call fcn.00406430
add esp, 0x24
push 0x3c
lea ecx, [esp + 0x54]
push esi
push ecx
mov dword [esp + 0x54], 0x44
mov dword [esp + 0x58], esi
call fcn.00411068
xor eax, eax
lea edx, [esp + 0x9c]
push edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x50]
push eax
add ebx, 0x583c
push ebx
lea ecx, [esp + 0x110]
push 0x414698
push ecx
or edx, 0xffffffff
mov dword [esp + 0x50], esi
call fcn.00406450
add esp, 0x20
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x4c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea ecx, [esp + 0x118]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4018ea
mov edx, dword [esp + 0x30]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x30]
push ecx
call esi
mov dword [esp + 0xc], 1
jmp 0x4018f4
mov dword [esp + 0xc], esi
jmp 0x4018f4
mov edi, dword [esp + 0x18]
push 0
call fcn.00401930
test edi, edi
je 0x401906
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401915
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x20fc]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00410b3e
mov esp, ebp
pop ebp
ret