Function at 0x1405310
Capabilities:
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x32c
lea eax, [esp + 0x228]
push ebx
push ebp
push esi
push edi
push 0x104
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x238]
push 0x5c
push ecx
call fcn.01432ad0
add esp, 8
cmp eax, ebx
je 0x140534f
mov byte [eax], bl
lea edx, [esp + 0x14]
push edx
push str.SoftwareValveSteam
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x14053e4
lea edi, [esp + 0x238]
or ecx, 0xffffffff
xor eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
repne scasb al, byte es:[edi]
not ecx
lea eax, [esp + 0x238]
push ecx
mov ecx, dword [esp + 0x18]
push eax
push 1
push ebx
push str.TempAppPath
push ecx
call esi
mov edx, dword [esp + 0x340]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esp + 0x1c]
push 1
push ebx
push str.TempAppCmdLine
push edx
call esi
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push 4
push eax
push 4
push ebx
push str.TempAppID
push ecx
mov dword [esp + 0x28], 0xffffffff
call esi
mov edx, dword [esp + 0x14]
push edx
call ebp
push str.Hidden_Window
push str.Valve_SteamIPC_Class
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
je 0x1405411
push ebx
push ebx
push 0x403
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret
lea eax, [esp + 0x134]
mov byte [esp + 0x30], bl
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x140552f
lea ecx, [esp + 0x134]
push 0x5c
push ecx
call fcn.01432ad0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x140552f
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [esi + 1], bl
repne scasb al, byte es:[edi]
mov edx, dword [str.steam_dev.exe]
dec edi
push 0x1459528
mov dword [edi], edx
mov eax, dword [0x1459a00]
mov dword [edi + 4], eax
mov ecx, dword [0x1459a04]
lea eax, [esp + 0x138]
mov dword [edi + 8], ecx
mov dx, word [0x1459a08]
push eax
mov word [edi + 0xc], dx
call fcn.01432220
add esp, 8
cmp eax, ebx
jne 0x14054f7
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [esi + 1], bl
repne scasb al, byte es:[edi]
mov ecx, dword [str.steam.exe]
dec edi
push 0x1459528
mov dword [edi], ecx
mov edx, dword [0x14599f4]
lea ecx, [esp + 0x138]
mov dword [edi + 4], edx
mov ax, word [0x14599f8]
push ecx
mov word [edi + 8], ax
call fcn.01432220
add esp, 8
cmp eax, ebx
jne 0x1405514
lea edx, [esp + 0x134]
push 0x5c
push edx
mov byte [esi], bl
call fcn.01432ad0
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x140544c
jmp 0x140552f
push eax
call fcn.01431f20
add esp, 4
xor eax, eax
mov cl, byte [esp + eax + 0x134]
mov byte [esp + eax + 0x30], cl
inc eax
cmp cl, bl
jne 0x1405502
jmp 0x140552f
push eax
call fcn.01431f20
add esp, 4
xor eax, eax
mov cl, byte [esp + eax + 0x134]
mov byte [esp + eax + 0x30], cl
inc eax
cmp cl, bl
jne 0x140551f
mov cl, byte [esp + 0x30]
cmp cl, bl
jne 0x14055a5
lea eax, [esp + 0x10]
push eax
push str.SoftwareValveSteam
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140557f
lea ecx, [esp + 0x18]
lea edx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x30]
push edx
push eax
push ebx
push str.SteamExe
push ecx
mov dword [esp + 0x30], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
push edx
call ebp
mov cl, byte [esp + 0x30]
cmp cl, bl
jne 0x14055a5
push 0x10
push str.Fatal_Error
push str.Error_running_game:_could_not_find_steam.exe_to_launch
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret
cmp cl, bl
lea eax, [esp + 0x30]
je 0x14055bd
cmp byte [eax], 0x2f
jne 0x14055b5
mov byte [eax], 0x5c
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x14055ad
xor eax, eax
mov cl, byte [esp + eax + 0x30]
mov byte [esp + eax + 0x134], cl
inc eax
cmp cl, bl
jne 0x14055bf
lea eax, [esp + 0x134]
push 0x5c
push eax
call fcn.01432ad0
add esp, 8
cmp eax, ebx
je 0x14055f7
lea ecx, [esp + 0x134]
mov byte [eax], bl
push ecx
call fcn.01432a10
add esp, 4
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x34]
push ecx
push 1
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], str._silent
mov dword [esp + 0x30], str._applaunch
mov dword [esp + 0x34], ebx
call fcn.01432910
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret