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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e860
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x43d200]
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 - 0x8c]
mov dword [ebp - 0x8c], 0
push eax
push 0xf003f
push 0
push str.SoftwareValveSteam
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40fe77
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x94]
push 0x43d144
push 0x44a580
push eax
push 0
push str.SourceModInstallPath
push dword [ebp - 0x8c]
mov byte [0x43e56f], 1
mov dword [ebp - 0x94], 1
call esi
push 0x43d148
push 0x44e580
lea eax, [ebp - 0x94]
push eax
push 0
push str.SteamPath
push dword [ebp - 0x8c]
call esi
push 0x43d14c
push 0x452580
lea eax, [ebp - 0x94]
push eax
push 0
push str.SteamExe
push dword [ebp - 0x8c]
call esi
push str.Found_previous_registry_entry__HKCU_2__for_Steam
jmp 0x40feaa
push 0
lea eax, [ebp - 0x8c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareValveSteam
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x410133
push str.Created_new_registry_entry__HKCU_2__for_Steam
push 0x43e508
call fcn.004067e0
add esp, 8
call fcn.00406b10
mov ecx, eax
cmp dword [eax + 0x14], 0xf
jbe 0x40fec6
mov ecx, dword [eax]
push dword [eax + 0x10]
lea eax, [ebp - 0x58]
push ecx
push eax
call fcn.00406110
add esp, 0xc
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x58]
dec ecx
mov dword [ebp - 4], 2
cmp dword [ebp - 0x44], 7
mov dword [ebp - 0x48], ecx
cmova eax, dword [ebp - 0x58]
xor edx, edx
mov word [eax + ecx*2], dx
call fcn.00406af0
mov esi, eax
call fcn.00406b10
mov edi, dword [esi + 0x10]
mov ecx, 0x7fffffff
mov edx, dword [eax + 0x10]
sub ecx, edx
cmp ecx, edi
jb 0x41022b
cmp dword [eax + 0x14], 0xf
mov ecx, eax
jbe 0x40ff20
mov ecx, dword [eax]
cmp dword [esi + 0x14], 0xf
jbe 0x40ff28
mov esi, dword [esi]
push edi
push esi
push edx
push ecx
push eax
push dword [ebp - 0x98]
lea ecx, [ebp - 0x40]
call fcn.00409160
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmova eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 3
push eax
call fcn.00406110
add esp, 0xc
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 5
cmp ecx, 0xf
jbe 0x40ff92
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ff88
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410230
push ecx
push edx
call fcn.00415ffb
add esp, 8
cmp dword [0x43d118], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
je 0x410020
call fcn.0041b3e5
cmp dword [0x43d11c], 0xf
mov edi, eax
push 0xa
lea eax, [ebp - 0x9c]
mov esi, 0x43d108
cmova esi, dword [0x43d108]
push eax
push esi
mov dword [edi], 0
call fcn.0041bcea
add esp, 0xc
cmp esi, dword [ebp - 0x9c]
je 0x410235
cmp dword [edi], 0x22
je 0x41023f
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
mov dword [ebp - 0x98], eax
lea eax, [ebp - 0x98]
push eax
push 4
push 0
push str.RunningAppID
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.SourceModInstallPath
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.SteamPath
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 str.SteamExe
push dword [ebp - 0x8c]
call esi
push dword [ebp - 0x8c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x5c]
cmp ecx, 7
jbe 0x4100de
mov edx, dword [ebp - 0x70]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4100d4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410249
push ecx
push edx
call fcn.00415ffb
add esp, 8
mov ecx, dword [ebp - 0x44]
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
cmp ecx, 7
jbe 0x41012c
mov edx, dword [ebp - 0x58]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410122
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x410249
push ecx
push edx
call fcn.00415ffb
add esp, 8
mov al, 1
jmp 0x410210
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x13]
push eax
call fcn.00408490
add esp, 8
lea ecx, [ebp - 0x8d]
push ecx
lea ecx, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x88]
call fcn.00407320
push 0x2c
push str.Unable_to_patch_Registry__HKCU_2___error_
push 0
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0
call fcn.0040ede0
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.004067f0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x4101f1
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4101e7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41024e
push ecx
push edx
call fcn.00415ffb
add esp, 8
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
call fcn.00402ce0
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.0041600e
mov esp, ebp
pop ebp
ret
call fcn.00404160
call fcn.0041aecf
push str.invalid_stoul_argument
call fcn.00414730
push str.stoul_argument_out_of_range
call fcn.00414770
call fcn.0041aecf
call fcn.0041aecf
int3