Function at 0x4585b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5918c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
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, 0x59934c
test eax, eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x20], 0
cmovne ecx, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0x4000100
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0x24], ecx
push 4
push 0
push 0
push ecx
mov dword [ebp - 4], 1
call fcn.0046d960
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b4bb
push 0
mov ebx, eax
push esi
mov esi, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x20], ebx
call fcn.0046d960
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 0x45868b
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.00476ea0
add esp, 0x14
test al, al
jne 0x4587ab
int3
push 0
push 0
push 2
lea ecx, [ebp - 0x44]
call fcn.0046a860
push dword [ebp - 0x10]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.0046a9b0
test ebx, ebx
jne 0x4586e6
push 4
push ebx
push ebx
push esi
mov byte [ebp - 0x17], 1
call fcn.0046d960
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b4bb
push 0
mov ebx, eax
push esi
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x20], ebx
call fcn.0046d960
add esp, 0x24
lea ecx, [ebp - 0x44]
call fcn.0046abc0
push eax
push dword [ebp - 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
jle 0x4587d7
lea ecx, [ebp - 0x44]
call fcn.0046abc0
cmp esi, eax
jg 0x4587d7
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov eax, 0x59934c
mov dword [ebp - 0x2c], edx
test ecx, ecx
mov dword [ebp - 0x28], 0x4000000
mov edi, eax
mov dword [ebp - 0x10], ecx
cmovne edi, edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
test ecx, ecx
mov byte [ebp - 4], 3
cmovne eax, edx
test eax, eax
jne 0x458770
push 4
push eax
push eax
push ecx
mov byte [ebp - 0x28], 1
call fcn.0046d7a0
mov esi, eax
push esi
call fcn.0056b4bb
push 0
mov edi, eax
push esi
push edi
push dword [ebp - 0x10]
mov dword [ebp - 0x34], edi
call fcn.0046d7a0
add esp, 0x24
mov eax, edi
mov ecx, dword [ebp + 8]
push eax
call fcn.0046b590
cmp byte [ebp - 0x28], 0
je 0x458788
push edi
call fcn.0056b4c4
add esp, 4
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x44]
call fcn.0046a920
mov esi, dword [ebp + 0xc]
cmp byte [ebp - 0x18], 0
je 0x4587a5
push esi
call fcn.0056b4c4
add esp, 4
cmp byte [ebp - 0x17], 0
je 0x4587b4
push ebx
call fcn.0056b4c4
add esp, 4
cmp byte [ebp - 0x16], 0
je 0x4587c4
push 0
call fcn.0056b4c4
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.00476ea0
add esp, 0x14
test al, al
jne 0x45878b
int3