Function at 0x1405030
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.014312f0
add esp, 8
cmp eax, ebx
je 0x140506f
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 0x1405104
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 0x1405131
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 0x140524f
lea ecx, [esp + 0x134]
push 0x5c
push ecx
call fcn.014312f0
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x140524f
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 0x1457460
mov dword [edi], edx
mov eax, dword [0x1457938]
mov dword [edi + 4], eax
mov ecx, dword [0x145793c]
lea eax, [esp + 0x138]
mov dword [edi + 8], ecx
mov dx, word [0x1457940]
push eax
mov word [edi + 0xc], dx
call fcn.01430a40
add esp, 8
cmp eax, ebx
jne 0x1405217
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 0x1457460
mov dword [edi], ecx
mov edx, dword [0x145792c]
lea ecx, [esp + 0x138]
mov dword [edi + 4], edx
mov ax, word [0x1457930]
push ecx
mov word [edi + 8], ax
call fcn.01430a40
add esp, 8
cmp eax, ebx
jne 0x1405234
lea edx, [esp + 0x134]
push 0x5c
push edx
mov byte [esi], bl
call fcn.014312f0
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x140516c
jmp 0x140524f
push eax
call fcn.01430740
add esp, 4
xor eax, eax
mov cl, byte [esp + eax + 0x134]
mov byte [esp + eax + 0x30], cl
inc eax
cmp cl, bl
jne 0x1405222
jmp 0x140524f
push eax
call fcn.01430740
add esp, 4
xor eax, eax
mov cl, byte [esp + eax + 0x134]
mov byte [esp + eax + 0x30], cl
inc eax
cmp cl, bl
jne 0x140523f
mov cl, byte [esp + 0x30]
cmp cl, bl
jne 0x14052c5
lea eax, [esp + 0x10]
push eax
push str.SoftwareValveSteam
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x140529f
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 0x14052c5
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 0x14052dd
cmp byte [eax], 0x2f
jne 0x14052d5
mov byte [eax], 0x5c
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x14052cd
xor eax, eax
mov cl, byte [esp + eax + 0x30]
mov byte [esp + eax + 0x134], cl
inc eax
cmp cl, bl
jne 0x14052df
lea eax, [esp + 0x134]
push 0x5c
push eax
call fcn.014312f0
add esp, 8
cmp eax, ebx
je 0x1405317
lea ecx, [esp + 0x134]
mov byte [eax], bl
push ecx
call fcn.01431230
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.01431130
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x32c
ret