Function at 0x458940
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5908c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
mov ebx, 0x593544
test eax, eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x30], 0
cmovne ebx, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0x4000100
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x34], ebx
push 4
push 0
push 0
push ebx
mov dword [ebp - 4], 1
call fcn.0046dcd0
mov esi, eax
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0056baeb
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x30], edi
call fcn.0046dcd0
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 0x458a17
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:_buildworker_steam_rel_client_win32_build_srccommon_serviceinstallscript.cpp
call fcn.004774f0
add esp, 0x14
test al, al
jne 0x458b66
int3
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 2
mov dword [ebp - 0x20], esi
call fcn.00480170
mov ecx, eax
push 0
push 0
push 0x22a
mov eax, dword [ecx]
push str.C:_buildworker_steam_rel_client_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 0x458aa0
push 4
push edi
push edi
push dword [ebp - 0x10]
mov byte [ebp - 0x27], 1
call fcn.0046dcd0
mov esi, eax
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0056baeb
push 0
mov edi, eax
push esi
push edi
push dword [ebp - 0x10]
mov dword [ebp - 0x30], edi
call fcn.0046dcd0
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 0x458b93
cmp esi, dword [ebp + 0xc]
jg 0x458b93
xor edx, edx
mov dword [ebp - 0x38], 0x4000000
mov ecx, ebx
mov dword [ebp - 0x3c], edx
mov eax, 0x593544
mov dword [ebp - 0x40], ebx
test ecx, ecx
mov edi, eax
cmovne edi, edx
mov dword [ebp - 0x44], edi
xor ecx, ecx
mov byte [ebp - 4], 3
test ebx, ebx
mov byte [ebp + 0xf], cl
cmovne eax, ecx
test eax, eax
jne 0x458b1c
push 4
push eax
push eax
push ebx
mov byte [ebp - 0x38], 1
call fcn.0046db10
mov esi, eax
push esi
call fcn.0056baeb
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x44], edi
call fcn.0046db10
add esp, 0x24
mov byte [ebp + 0xf], 1
mov eax, edi
mov ecx, dword [ebp + 8]
push eax
call fcn.0046b450
cmp byte [ebp + 0xf], 0
je 0x458b34
push edi
call fcn.0056baf4
add esp, 4
mov edi, dword [ebp - 0x30]
mov byte [ebp - 4], 4
test ebx, ebx
je 0x458b4e
call fcn.00480170
push 0
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov ebx, dword [ebp - 0x10]
cmp byte [ebp - 0x28], 0
je 0x458b60
push ebx
call fcn.0056baf4
add esp, 4
cmp byte [ebp - 0x27], 0
je 0x458b6f
push edi
call fcn.0056baf4
add esp, 4
cmp byte [ebp - 0x26], 0
je 0x458b7f
push 0
call fcn.0056baf4
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
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:_buildworker_steam_rel_client_win32_build_srccommon_serviceinstallscript.cpp
call fcn.004774f0
add esp, 0x14
test al, al
jne 0x458b37
int3