Function at 0x3b409fc0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c34
call fcn.3b40be20
push edi
mov dword [ebp - 4], 0
mov edi, dword [ebp + 8]
test edi, edi
jne 0x3b409fe3
xor al, al
pop edi
mov esp, ebp
pop ebp
ret
push 0x20
lea eax, [ebp - 0x24]
push eax
push str.SteamAppId
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
dec eax
cmp eax, 0x1e
ja 0x3b40a00a
lea eax, [ebp - 0x24]
push eax
call fcn.3b40b7e4
add esp, 4
test eax, eax
jne 0x3b409fdc
push str.steam_appid.txt
call fcn.3b4094d0
add esp, 4
test eax, eax
jne 0x3b409fdc
push esi
lea eax, [ebp - 0xc34]
push 0x800
push eax
call fcn.3b409000
lea esi, [ebp - 0xc34]
mov byte [ebp - 0x435], 0
add esp, 8
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x3b40a040
sub esi, ecx
lea eax, [ebp - 0x1c34]
cmp byte [ebp - 0xc34], 0
push edi
jne 0x3b40a069
push str.steam:__run__u
push eax
call fcn.3b408d40
add esp, 0xc
jmp 0x3b40a0ad
push str.steam:__run__u__
push eax
call fcn.3b408d40
lea ecx, [ebp - 0x1c34]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x3b40a080
push esi
lea eax, [ebp - 0xc34]
sub ecx, edx
push eax
lea edi, [ebp - 0x1c34]
add edi, ecx
push 0x1801
push edi
call fcn.3b409ad0
add esp, 0x10
test al, al
jne 0x3b40a0ad
mov byte [edi], al
push ebx
push 0x40f
lea eax, [ebp - 0x433]
mov byte [ebp - 0x434], 0
push 0
push eax
call fcn.3b40b230
push 0x410
lea eax, [ebp - 0x434]
push eax
push str.InstallPath
push str.SoftwareValveSteam
push str.HKLM
call fcn.3b409120
add esp, 0x20
test al, al
je 0x3b40a101
lea ecx, [ebp - 0x434]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x3b40a0f8
jmp 0x3b40a137
call sym.steam_api.dll_SteamAPI_GetSteamInstallPath
test eax, eax
je 0x3b40a18d
push 0x40f
push eax
lea eax, [ebp - 0x434]
push eax
call fcn.3b40b6c0
lea ecx, [ebp - 0x434]
mov byte [ebp - 0x25], 0
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x3b40a130
sub ecx, edx
mov eax, 0x40f
sub eax, ecx
test eax, eax
jle 0x3b40a159
push eax
lea eax, [ebp - 0x434]
push str._steam.exe
push eax
call fcn.3b40b460
add esp, 0xc
cmp byte [ebp - 0x434], 0
mov byte [ebp - 0x25], 0
je 0x3b40a194
lea eax, [ebp - 0x434]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp + 8]
call fcn.3b408e30
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x3b40a194
mov bl, 1
jmp 0x3b40a196
mov byte [ebp - 0x434], 0
xor bl, bl
test byte [ebp - 4], 1
je 0x3b40a1a7
push dword [ebp + 8]
call fcn.3b40ab03
add esp, 4
lea eax, [ebp - 0x1c34]
push eax
test bl, bl
je 0x3b40a1fe
lea ecx, [ebp - 4]
call fcn.3b408e30
lea ecx, [ebp + 8]
mov esi, dword [eax]
lea eax, [ebp - 0x434]
push eax
call fcn.3b408e30
push 1
push 0
push esi
push dword [eax]
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp + 8]
cmp eax, 0x20
seta bl
call fcn.3b40ab03
push dword [ebp - 4]
call fcn.3b40ab03
add esp, 8
mov al, bl
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp + 8]
call fcn.3b408e30
push 1
push 0
push 0
push dword [eax]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp + 8]
cmp eax, 0x20
seta bl
call fcn.3b40ab03
add esp, 4
mov al, bl
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret