Function at 0x458960
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x591956
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.0046d950
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b51b
push 0
mov ebx, eax
push esi
mov esi, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x24], ebx
call fcn.0046d950
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 0x458a3b
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_hotfix_win32_build_srccommon_serviceinstallscript.cpp
call fcn.00476d40
add esp, 0x14
test al, al
jne 0x458b68
int3
push 0
push 0
push 2
lea ecx, [ebp - 0x48]
call fcn.0046a560
push dword [ebp - 0x10]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.0046a6b0
lea ecx, [ebp - 0x48]
call fcn.0046a8d0
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], ecx
test ebx, ebx
jne 0x458aad
push 4
push ebx
push ebx
push esi
mov byte [ebp - 0x1b], 1
call fcn.0046d950
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0056b51b
push 0
mov ebx, eax
push esi
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x24], ebx
call fcn.0046d950
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 0x458b94
lea ecx, [ebp - 0x48]
call fcn.0046a8d0
cmp esi, eax
jg 0x458b94
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 0x458b2d
push 4
push eax
push eax
push ecx
mov byte [ebp - 0x2c], 1
call fcn.0046d790
mov esi, eax
push esi
call fcn.0056b51b
push 0
mov edi, eax
push esi
push edi
push dword [ebp - 0x18]
mov dword [ebp - 0x38], edi
call fcn.0046d790
add esp, 0x24
mov eax, edi
mov ecx, dword [ebp + 8]
push eax
call fcn.0046b2a0
cmp byte [ebp - 0x2c], 0
je 0x458b45
push edi
call fcn.0056b524
add esp, 4
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.0046a620
mov esi, dword [ebp + 0xc]
cmp byte [ebp - 0x1c], 0
je 0x458b62
push esi
call fcn.0056b524
add esp, 4
cmp byte [ebp - 0x1b], 0
je 0x458b71
push ebx
call fcn.0056b524
add esp, 4
cmp byte [ebp - 0x1a], 0
je 0x458b81
push 0
call fcn.0056b524
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_hotfix_win32_build_srccommon_serviceinstallscript.cpp
call fcn.00476d40
add esp, 0x14
test al, al
jne 0x458b48
int3