Function at 0x4588f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590896
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
mov dword [ebp - 0x14], 0
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebx], 0
mov eax, dword [ebp + 0xc]
mov ecx, 0x593544
test eax, eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x30], 0
cmovne ecx, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x4000100
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x34], ecx
push 4
push 0
push 0
push ecx
mov dword [ebp - 4], 1
call fcn.0046de50
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056bbcb
push 0
mov edi, eax
push esi
push edi
push dword [ebp - 0x10]
mov dword [ebp - 0x30], edi
call fcn.0046de50
add esp, 0x24
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
jg 0x4589ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.string_expansion_failed__1__res__d_GLE__d
push 0x25
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srccommon_serviceinstallscript.cpp
call fcn.004775b0
add esp, 0x14
test al, al
jne 0x458b11
int3
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], esi
call fcn.00480220
mov ecx, eax
push 0
push 0
push 0x22a
mov eax, dword [ecx]
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srcpublic_tier1utlmemory.h
mov edx, dword [eax + 8]
lea eax, [esi + esi]
push eax
call edx
mov dword [ebp + 0xc], esi
mov ebx, eax
mov dword [ebp - 0x24], ebx
test edi, edi
jne 0x458a4d
push 4
push edi
push edi
push dword [ebp - 0x10]
mov byte [ebp - 0x27], 1
call fcn.0046de50
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056bbcb
push 0
mov edi, eax
push esi
push edi
push dword [ebp - 0x10]
mov dword [ebp - 0x30], edi
call fcn.0046de50
mov esi, dword [ebp - 0x18]
add esp, 0x24
mov dword [ebp + 0xc], esi
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
jle 0x458b3d
cmp esi, dword [ebp + 0xc]
jg 0x458b3d
xor ecx, ecx
mov dword [ebp - 0x38], 0x4000000
mov eax, 0x593544
mov dword [ebp - 0x3c], ecx
test ebx, ebx
mov dword [ebp - 0x40], ebx
mov edi, eax
cmovne edi, ecx
mov dword [ebp - 0x44], edi
test ebx, ebx
mov byte [ebp - 4], 3
mov byte [ebp + 0xf], cl
cmovne eax, ecx
test eax, eax
jne 0x458ac5
push 4
push eax
push eax
push ebx
mov byte [ebp - 0x38], 1
call fcn.0046dc90
mov esi, eax
push esi
call fcn.0056bbcb
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x44], edi
call fcn.0046dc90
add esp, 0x24
mov byte [ebp + 0xf], 1
mov eax, edi
mov ecx, dword [ebp + 8]
push eax
call fcn.0046b5e0
cmp byte [ebp + 0xf], 0
je 0x458add
push edi
call fcn.0056bbd4
add esp, 4
mov edi, dword [ebp - 0x30]
mov byte [ebp - 4], 4
test ebx, ebx
je 0x458af7
call fcn.00480220
push 0
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov ebx, dword [ebp + 8]
cmp byte [ebp - 0x28], 0
je 0x458b0b
push dword [ebp - 0x10]
call fcn.0056bbd4
add esp, 4
cmp byte [ebp - 0x27], 0
je 0x458b1a
push edi
call fcn.0056bbd4
add esp, 4
cmp byte [ebp - 0x26], 0
je 0x458b2a
push 0
call fcn.0056bbd4
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, ebx
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 0x32
push str.c:_buildslave_steam_rel_client_hotfix_win32_build_srccommon_serviceinstallscript.cpp
call fcn.004775b0
add esp, 0x14
test al, al
jne 0x458ae0
int3