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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e7f0
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x43d200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x8c], 0
push eax
push 0xf003f
push 0
push str.SoftwareValveSteamActiveProcess
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40fad6
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x90]
push 0x43d138
push 0x43e578
push eax
push 0
push 0x430b50
push dword [ebp - 0x8c]
mov byte [0x43e56e], 1
mov dword [ebp - 0x90], 1
call esi
push 0x43d13c
push 0x442578
lea eax, [ebp - 0x90]
push eax
push 0
push str.SteamClientDll64
push dword [ebp - 0x8c]
call esi
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 4
push eax
push 0x446578
lea eax, [ebp - 0x90]
push eax
push 0
push str.ActiveUser
push dword [ebp - 0x8c]
call esi
push 0x43d140
push 0x446580
lea eax, [ebp - 0x90]
push eax
push 0
push str.Universe
push dword [ebp - 0x8c]
call esi
push str.Found_previous_registry_entry__HKCU__for_Steam
jmp 0x40fb09
push 0
lea eax, [ebp - 0x8c]
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 0x40fc9f
push str.Created_new_registry_entry__HKCU__for_Steam
push 0x43e508
call fcn.004067f0
add esp, 8
mov eax, 0x43d090
cmp dword [0x43d0a4], 0xf
cmova eax, dword [0x43d090]
push dword [0x43d0a0]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00406120
cmp dword [0x43d0bc], 0xf
mov eax, 0x43d0a8
push dword [0x43d0b8]
cmova eax, dword [0x43d0a8]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 2
push eax
call fcn.00406120
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add esp, 0x18
push 4
push 0x43e4b0
push 4
push 0
push 0x430c48
push dword [ebp - 0x8c]
call esi
mov eax, dword [ebp - 0x60]
cmp dword [ebp - 0x5c], 7
lea ecx, [eax*2 + 2]
push ecx
lea eax, [ebp - 0x70]
cmova eax, dword [ebp - 0x70]
push eax
push 1
push 0
push 0x430b50
push dword [ebp - 0x8c]
call esi
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x44], 7
lea ecx, [eax*2 + 2]
push ecx
lea eax, [ebp - 0x58]
cmova eax, dword [ebp - 0x58]
push eax
push 1
push 0
push str.SteamClientDll64
push dword [ebp - 0x8c]
call esi
push 4
push 0x4307d8
push 4
push 0
push str.ActiveUser
push dword [ebp - 0x8c]
call esi
push 0xe
push str.Public
push 1
push 0
push str.Universe
push dword [ebp - 0x8c]
call esi
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x44]
cmp ecx, 7
jbe 0x40fc4a
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40fc40
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fd96
push ecx
push edx
call fcn.00415fea
add esp, 8
mov ecx, dword [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp ecx, 7
jbe 0x40fc98
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40fc8e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fd96
push ecx
push edx
call fcn.00415fea
add esp, 8
mov al, 1
jmp 0x40fd7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.004084a0
add esp, 8
lea ecx, [ebp - 0x91]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x88]
call fcn.00407330
push 0x29
push str.Unable_to_patch_Registry__HKCU___error_
push 0
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0
call fcn.0040edf0
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
mov ecx, 0x43e508
call fcn.00406800
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x40fd5d
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40fd53
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40fd9b
push ecx
push edx
call fcn.00415fea
add esp, 8
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00402cd0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00415ffe
mov esp, ebp
pop ebp
ret
call fcn.0041aebf
call fcn.0041aebf
int3