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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x330
mov eax, dword [0x1438010]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x310]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x310]
push 0x5c
push eax
call fcn.014060f0
add esp, 8
test eax, eax
je 0x1402d8b
mov byte [eax], 0
lea eax, [ebp - 0x324]
push eax
push str.SoftwareValveSteam
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1402e36
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1402db3
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x310]
push eax
push 1
push 0
push str.TempAppPath
push dword [ebp - 0x324]
call esi
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1402de3
sub ecx, edx
lea eax, [ecx + 1]
push eax
push edi
push 1
push 0
push str.TempAppCmdLine
push dword [ebp - 0x324]
call esi
push 4
lea eax, [ebp - 0x328]
mov dword [ebp - 0x328], 0xffffffff
push eax
push 4
push 0
push str.TempAppID
push dword [ebp - 0x324]
call esi
push dword [ebp - 0x324]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x1402e3c
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.Hidden_Window
push str.Valve_SteamIPC_Class
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x1402e70
push 0
push 0
push 0x403
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.014057cc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
mov byte [ebp - 0x20c], 0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x1402fa3
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.014060f0
mov esi, eax
add esp, 8
test esi, esi
je 0x1402fa3
lea esp, [esp]
mov byte [esi + 1], 0
lea ecx, [esi - 1]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x1402eb7
mov eax, dword [str.steam_dev.exe]
mov dword [ecx], eax
mov eax, dword [0x142f7b4]
mov dword [ecx + 4], eax
mov eax, dword [0x142f7b8]
mov dword [ecx + 8], eax
mov ax, word [0x142f7bc]
mov word [ecx + 0xc], ax
lea eax, [ebp - 0x108]
push 0x142f6cc
push eax
call fcn.01404b99
add esp, 8
test eax, eax
jne 0x1402f85
mov byte [esi + 1], al
lea eax, [esi - 1]
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x1402f04
mov ecx, dword [str.steam.exe]
mov dword [eax], ecx
mov ecx, dword [0x142f7c4]
mov dword [eax + 4], ecx
mov cx, word [0x142f7c8]
mov word [eax + 8], cx
lea eax, [ebp - 0x108]
push 0x142f6cc
push eax
call fcn.01404b99
add esp, 8
test eax, eax
jne 0x1402f61
mov byte [esi], al
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.014060f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1402eb0
jmp 0x1402fa3
push eax
call fcn.0140484a
add esp, 4
xor ecx, ecx
lea esp, [esp]
mov al, byte [ebp + ecx - 0x108]
mov byte [ebp + ecx - 0x20c], al
inc ecx
test al, al
jne 0x1402f70
jmp 0x1402fa3
push eax
call fcn.0140484a
add esp, 4
xor ecx, ecx
mov al, byte [ebp + ecx - 0x108]
mov byte [ebp + ecx - 0x20c], al
inc ecx
test al, al
jne 0x1402f90
mov cl, byte [ebp - 0x20c]
test cl, cl
jne 0x1403034
lea eax, [ebp - 0x328]
push eax
push str.SoftwareValveSteam
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1403006
lea eax, [ebp - 0x32c]
mov dword [ebp - 0x32c], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x330]
push eax
push 0
push str.SteamExe
push dword [ebp - 0x328]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x328]
call edi
mov cl, byte [ebp - 0x20c]
test cl, cl
jne 0x1403034
push 0x10
push str.Fatal_Error
push str.Error_running_game:_could_not_find_steam.exe_to_launch
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.014057cc
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
test cl, cl
je 0x140304e
mov edi, edi
cmp byte [eax], 0x2f
jne 0x1403048
mov byte [eax], 0x5c
inc eax
cmp byte [eax], 0
jne 0x1403040
xor ecx, ecx
mov al, byte [ebp + ecx - 0x20c]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x109], al
test al, al
jne 0x1403050
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.014060f0
add esp, 8
test eax, eax
je 0x140308c
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
call fcn.014069b7
add esp, 4
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x31c], str._silent
mov dword [ebp - 0x320], eax
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x318], str._applaunch
push eax
push 1
mov dword [ebp - 0x314], 0
call fcn.01406970
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
call fcn.014057cc
mov esp, ebp
pop ebp
ret