Function at 0x4589b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590c16
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, 0x593554
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.0046ddc0
mov esi, eax
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0056be3b
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x30], edi
call fcn.0046ddc0
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 0x458a87
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.00477630
add esp, 0x14
test al, al
jne 0x458bd6
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.004802a0
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 0x458b10
push 4
push edi
push edi
push dword [ebp - 0x10]
mov byte [ebp - 0x27], 1
call fcn.0046ddc0
mov esi, eax
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.0056be3b
push 0
mov edi, eax
push esi
push edi
push dword [ebp - 0x10]
mov dword [ebp - 0x30], edi
call fcn.0046ddc0
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 0x458c03
cmp esi, dword [ebp + 0xc]
jg 0x458c03
xor edx, edx
mov dword [ebp - 0x38], 0x4000000
mov ecx, ebx
mov dword [ebp - 0x3c], edx
mov eax, 0x593554
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 0x458b8c
push 4
push eax
push eax
push ebx
mov byte [ebp - 0x38], 1
call fcn.0046dc00
mov esi, eax
push esi
call fcn.0056be3b
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp - 0x44], edi
call fcn.0046dc00
add esp, 0x24
mov byte [ebp + 0xf], 1
mov eax, edi
mov ecx, dword [ebp + 8]
push eax
call fcn.0046b540
cmp byte [ebp + 0xf], 0
je 0x458ba4
push edi
call fcn.0056be44
add esp, 4
mov edi, dword [ebp - 0x30]
mov byte [ebp - 4], 4
test ebx, ebx
je 0x458bbe
call fcn.004802a0
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 0x458bd0
push ebx
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x27], 0
je 0x458bdf
push edi
call fcn.0056be44
add esp, 4
cmp byte [ebp - 0x26], 0
je 0x458bef
push 0
call fcn.0056be44
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.00477630
add esp, 0x14
test al, al
jne 0x458ba7
int3