Function at 0x1405330
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.01433190
add esp, 8
cmp eax, ebx
je 0x140536f
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 0x1405404
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 0x1405431
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 0x140554f
lea ecx, [esp + 0x134]
push 0x5c
push ecx
call fcn.01433190
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x140554f
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 0x145a528
mov dword [edi], edx
mov eax, dword [0x145a9d4]
mov dword [edi + 4], eax
mov ecx, dword [0x145a9d8]
lea eax, [esp + 0x138]
mov dword [edi + 8], ecx
mov dx, word [0x145a9dc]
push eax
mov word [edi + 0xc], dx
call fcn.014328e0
add esp, 8
cmp eax, ebx
jne 0x1405517
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 0x145a528
mov dword [edi], ecx
mov edx, dword [0x145a9c8]
lea ecx, [esp + 0x138]
mov dword [edi + 4], edx
mov ax, word [0x145a9cc]
push ecx
mov word [edi + 8], ax
call fcn.014328e0
add esp, 8
cmp eax, ebx
jne 0x1405534
lea edx, [esp + 0x134]
push 0x5c
push edx
mov byte [esi], bl
call fcn.01433190
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x140546c
jmp 0x140554f
push eax
call fcn.014325e0
add esp, 4
xor eax, eax
mov cl, byte [esp + eax + 0x134]
mov byte [esp + eax + 0x30], cl
inc eax
cmp cl, bl
jne 0x1405522
jmp 0x140554f
push eax
call fcn.014325e0
add esp, 4
xor eax, eax
mov cl, byte [esp + eax + 0x134]
mov byte [esp + eax + 0x30], cl
inc eax
cmp cl, bl
jne 0x140553f
mov cl, byte [esp + 0x30]
cmp cl, bl
jne 0x14055c5
lea eax, [esp + 0x10]
push eax
push str.SoftwareValveSteam
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140559f
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 0x14055c5
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 0x14055dd
cmp byte [eax], 0x2f
jne 0x14055d5
mov byte [eax], 0x5c
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x14055cd
xor eax, eax
mov cl, byte [esp + eax + 0x30]
mov byte [esp + eax + 0x134], cl
inc eax
cmp cl, bl
jne 0x14055df
lea eax, [esp + 0x134]
push 0x5c
push eax
call fcn.01433190
add esp, 8
cmp eax, ebx
je 0x1405617
lea ecx, [esp + 0x134]
mov byte [eax], bl
push ecx
call fcn.014330d0
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.01432fd0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret