Function at 0x4b8580
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503df7
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x53d058]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x30], 0
push eax
call fcn.004b7f10
add esp, 4
mov ecx, 0x53e0e4
push eax
call fcn.0040bc10
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x4b8605
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b85fb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8a1f
push edx
push ecx
call fcn.0049855b
add esp, 8
lea eax, [ebp - 0x2c]
push eax
call fcn.004b8220
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], eax
jne 0x4b8646
xorps xmm0, xmm0
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x60], eax
movq qword [ebp - 0x50], xmm0
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
lea ecx, [ebp - 0x60]
mov eax, 1
jmp 0x4b869a
push 6
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x48]
push str.WinSxS
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
call fcn.004034d0
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 2
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0x32
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.00404bb0
mov ecx, eax
add esp, 0xc
mov eax, 0x36
movups xmm0, xmmword [ecx]
xor edx, edx
or eax, 8
movups xmmword [ebp - 0x78], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [ebp - 0x68], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
mov word [ecx], dx
test al, 4
je 0x4b86d9
and eax, 0xfffffffb
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x30], eax
call fcn.00403400
mov eax, dword [ebp - 0x30]
test al, 2
je 0x4b86ee
and eax, 0xfffffffd
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], eax
call fcn.00403400
mov eax, dword [ebp - 0x30]
test al, 1
je 0x4b86fa
lea ecx, [ebp - 0x60]
call fcn.00403400
mov edx, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4b873b
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b8731
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8a24
push edx
push ecx
call fcn.0049855b
add esp, 8
lea eax, [ebp - 0x78]
mov ecx, 0x53e12c
push eax
call fcn.0040bc10
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x4b8783
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b8779
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8a29
push edx
push ecx
call fcn.0049855b
add esp, 8
lea eax, [ebp - 0x78]
push eax
call fcn.004b8340
add esp, 4
mov ecx, 0x53e0fc
push eax
call fcn.0040bc10
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x4b87d4
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b87ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8a2e
push edx
push ecx
call fcn.0049855b
add esp, 8
lea eax, [ebp - 0x78]
push eax
call fcn.004b8220
add esp, 4
mov ecx, 0x53e114
push eax
call fcn.0040bc10
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x4b8825
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b881b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8a33
push edx
push ecx
call fcn.0049855b
add esp, 8
push 0
push 0
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4b88dc
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004987ea
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
push esi
push edi
push str.ProgramFiles
mov dword [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4b88c6
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b8880
sub ecx, edx
mov dword [ebp - 0x48], 0
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 7
call fcn.004034d0
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4b88f4
push 2
push edi
call fcn.0049855b
add esp, 8
jmp 0x4b88f4
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4b88dc
push 2
push edi
call fcn.0049855b
add esp, 8
mov byte [ebp - 0x30], 0
lea eax, [ebp - 0x48]
push dword [ebp - 0x30]
push 0x515fb3
push eax
call fcn.0049e700
add esp, 0xc
lea eax, [ebp - 0x48]
mov ecx, 0x53e144
push eax
call fcn.0040bc10
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x4b893c
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b8932
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8a38
push edx
push ecx
call fcn.0049855b
add esp, 8
lea eax, [ebp - 0x60]
push eax
call fcn.004b7770
add esp, 4
mov ecx, 0x53e15c
push eax
call fcn.0040bc10
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x4b898d
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b8983
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b8a3d
push edx
push ecx
call fcn.0049855b
add esp, 8
xor eax, eax
mov dword [ebp - 0x50], 0
cmp dword [0x53e110], 8
mov word [ebp - 0x60], ax
mov eax, 0x53e0fc
cmovae eax, dword [0x53e0fc]
push eax
mov dword [ebp - 0x4c], 7
mov byte [0x54491c], 1
call fcn.004bdd80
test al, al
mov byte [0x54491e], 1
mov eax, 0x53e15c
mov byte [0x544931], 1
sete byte [0x54491d]
mov byte [0x54491f], 1
cmp dword [0x53e170], 8
cmovae eax, dword [0x53e15c]
push eax
call fcn.004bdd80
add esp, 8
test al, al
sete byte [0x544930]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049852a
mov esp, ebp
pop ebp
ret
call fcn.004d076f
call fcn.004d076f
call fcn.004d076f
call fcn.004d076f
call fcn.004d076f
call fcn.004d076f
call fcn.004d076f
int3