Function at 0x458860
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58fa36
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
mov dword [ebp - 0x14], 0
push edi
mov edi, dword [ebp + 8]
mov dword [edi], 0
mov eax, dword [ebp + 0xc]
mov ecx, 0x592544
test eax, eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x24], 0
cmovne ecx, eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x4000100
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x28], ecx
push 4
push 0
push 0
push ecx
mov dword [ebp - 4], 1
call fcn.0046d410
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056aceb
push 0
mov ebx, eax
push esi
mov esi, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x24], ebx
call fcn.0046d410
add esp, 0x24
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x10], eax
test eax, eax
jg 0x45893b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp - 0x10]
push str.string_expansion_failed__1__res__d_GLE__d
push 0x24
push str.c:_buildslave_steam_rel_client_win32_build_srccommon_serviceinstallscript.cpp
call fcn.004767f0
add esp, 0x14
test al, al
jne 0x458a68
int3
push 0
push 0
push 2
lea ecx, [ebp - 0x48]
call fcn.00469fc0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0046a110
lea ecx, [ebp - 0x48]
call fcn.0046a330
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ecx
test ebx, ebx
jne 0x4589ad
push 4
push ebx
push ebx
push esi
mov byte [ebp - 0x1b], 1
call fcn.0046d410
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056aceb
push 0
mov ebx, eax
push esi
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x24], ebx
call fcn.0046d410
mov eax, dword [ebp - 0x10]
add esp, 0x24
mov ecx, dword [ebp - 0x18]
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
jle 0x458a94
lea ecx, [ebp - 0x48]
call fcn.0046a330
cmp esi, eax
jg 0x458a94
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov eax, 0x592544
mov dword [ebp - 0x30], edx
test ecx, ecx
mov dword [ebp - 0x2c], 0x4000000
mov edi, eax
mov dword [ebp - 0x18], ecx
cmovne edi, edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edi
test ecx, ecx
mov byte [ebp - 4], 3
cmovne eax, edx
test eax, eax
jne 0x458a2d
push 4
push eax
push eax
push ecx
mov byte [ebp - 0x2c], 1
call fcn.0046d250
mov esi, eax
push esi
call fcn.0056aceb
push 0
mov edi, eax
push esi
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x38], edi
call fcn.0046d250
add esp, 0x24
mov eax, edi
mov ecx, dword [ebp + 8]
push eax
call fcn.0046ad50
cmp byte [ebp - 0x2c], 0
je 0x458a45
push edi
call fcn.0056acf4
add esp, 4
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.0046a080
mov esi, dword [ebp + 0xc]
cmp byte [ebp - 0x1c], 0
je 0x458a62
push esi
call fcn.0056acf4
add esp, 4
cmp byte [ebp - 0x1b], 0
je 0x458a71
push ebx
call fcn.0056acf4
add esp, 4
cmp byte [ebp - 0x1a], 0
je 0x458a81
push 0
call fcn.0056acf4
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.string_expansion_failed__2__res__d_GLE__d
push 0x31
push str.c:_buildslave_steam_rel_client_win32_build_srccommon_serviceinstallscript.cpp
call fcn.004767f0
add esp, 0x14
test al, al
jne 0x458a48
int3