Function at 0x458830
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591566
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, 0x594544
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.0046d930
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b23b
push 0
mov ebx, eax
push esi
mov esi, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x24], ebx
call fcn.0046d930
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 0x45890b
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.00476e00
add esp, 0x14
test al, al
jne 0x458a38
int3
push 0
push 0
push 2
lea ecx, [ebp - 0x48]
call fcn.0046a540
push dword [ebp - 0x10]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0046a690
lea ecx, [ebp - 0x48]
call fcn.0046a8b0
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ecx
test ebx, ebx
jne 0x45897d
push 4
push ebx
push ebx
push esi
mov byte [ebp - 0x1b], 1
call fcn.0046d930
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b23b
push 0
mov ebx, eax
push esi
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x24], ebx
call fcn.0046d930
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 0x458a64
lea ecx, [ebp - 0x48]
call fcn.0046a8b0
cmp esi, eax
jg 0x458a64
mov ecx, dword [ebp - 0x44]
xor edx, edx
mov eax, 0x594544
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 0x4589fd
push 4
push eax
push eax
push ecx
mov byte [ebp - 0x2c], 1
call fcn.0046d770
mov esi, eax
push esi
call fcn.0056b23b
push 0
mov edi, eax
push esi
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x38], edi
call fcn.0046d770
add esp, 0x24
mov eax, edi
mov ecx, dword [ebp + 8]
push eax
call fcn.0046b280
cmp byte [ebp - 0x2c], 0
je 0x458a15
push edi
call fcn.0056b244
add esp, 4
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.0046a600
mov esi, dword [ebp + 0xc]
cmp byte [ebp - 0x1c], 0
je 0x458a32
push esi
call fcn.0056b244
add esp, 4
cmp byte [ebp - 0x1b], 0
je 0x458a41
push ebx
call fcn.0056b244
add esp, 4
cmp byte [ebp - 0x1a], 0
je 0x458a51
push 0
call fcn.0056b244
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.00476e00
add esp, 0x14
test al, al
jne 0x458a18
int3