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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4310d5
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x440100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x451270], 7
lea ecx, [ebp - 0x74]
push ecx
push 0xf003f
mov eax, 0x45125c
mov dword [ebp - 0x74], 0
cmova eax, dword [0x45125c]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b970
push 0x440008
push 0x449258
lea eax, [ebp - 0x7c]
mov byte [0x441251], 1
push eax
push 0
push str.InstallPath
push dword [ebp - 0x74]
mov dword [ebp - 0x7c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.Found_previous_registry_entry__HKLM__for_Steam
jmp 0x40b9af
cmp dword [0x451270], 7
lea ecx, [ebp - 0x74]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
mov eax, 0x45125c
cmova eax, dword [0x45125c]
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40ba6a
push str.Created_new_registry_entry__HKLM__for_Steam
call fcn.00406a80
add esp, 4
call fcn.0040ff50
push eax
lea ecx, [ebp - 0x58]
call fcn.00403980
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.InstallPath
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
push 0x451258
push 4
push 0
push str.SteamPID
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 7
push str.Public
push 1
push 0
push str.Universe
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x44]
cmp ecx, 7
jbe 0x40ba63
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40ba59
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bb52
push ecx
push edx
call fcn.00412f1e
add esp, 8
mov al, 1
jmp 0x40bb39
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.004026c0
add esp, 8
lea ecx, [ebp - 0x75]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00401200
push 0x29
push str.Unable_to_patch_Registry__HKLM___error_
push 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
call fcn.0040a6a0
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.00406a80
mov ecx, dword [ebp - 0x2c]
add esp, 4
cmp ecx, 0xf
jbe 0x40bb1d
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40bb13
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bb57
push ecx
push edx
call fcn.00412f1e
add esp, 8
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00404a70
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00413182
mov esp, ebp
pop ebp
ret
call fcn.00417d1f
call fcn.00417d1f
int3