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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4317a5
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x43f200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x5c], 0
push eax
push 0xf003f
push 0
push str.SoftwareValveSteamActiveProcess
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d3ff
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x64]
push 0x43f0d8
push 0x440358
push eax
push 0
push str.SteamClientDll
push dword [ebp - 0x5c]
mov byte [0x440350], 1
mov dword [ebp - 0x64], 1
call esi
push 0x43f0dc
push 0x444358
lea eax, [ebp - 0x64]
push eax
push 0
push str.SteamClientDll64
push dword [ebp - 0x5c]
call esi
push str.Found_previous_registry_entry__HKCU__for_Steam
jmp 0x40d42f
push 0
lea eax, [ebp - 0x5c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareValveSteamActiveProcess
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40d4f0
push str.Created_new_registry_entry__HKCU__for_Steam
call fcn.00405890
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
add esp, 4
push 4
push 0x432578
push 4
push 0
push str.ActiveUser
push dword [ebp - 0x5c]
call edi
push 4
push 0x450358
push 4
push 0
push 0x432b88
push dword [ebp - 0x5c]
call edi
mov eax, dword [0x43f110]
cmp dword [0x43f114], 7
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [eax*2 + 2]
mov eax, 0x43f100
cmova eax, dword [0x43f100]
push ecx
push eax
push 1
push 0
push str.SteamClientDll
push dword [ebp - 0x5c]
call esi
mov eax, dword [0x43f128]
cmp dword [0x43f12c], 7
lea ecx, [eax*2 + 2]
mov eax, 0x43f118
cmova eax, dword [0x43f118]
push ecx
push eax
push 1
push 0
push str.SteamClientDll64
push dword [ebp - 0x5c]
call esi
push 7
push str.Public
push 1
push 0
push str.Universe
push dword [ebp - 0x5c]
call edi
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x40d5bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.00406ee0
add esp, 8
lea ecx, [ebp - 0x5d]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.004063c0
push 0x29
push str.Unable_to_patch_Registry__HKCU___error_
push 0
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
call fcn.0040c6f0
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00405890
mov ecx, dword [ebp - 0x2c]
add esp, 4
cmp ecx, 0xf
jbe 0x40d5a3
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40d599
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40d5da
push ecx
push edx
call fcn.004131e7
add esp, 8
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.004025b0
xor al, al
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.004131fa
mov esp, ebp
pop ebp
ret
call fcn.0041805f
int3