Function at 0x4c27b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d397
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x54c154]
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.004c2140
add esp, 4
mov ecx, 0x54d1d4
push eax
call fcn.0040f190
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x4c2835
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c282b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c2c4f
push edx
push ecx
call fcn.004a44fe
add esp, 8
lea eax, [ebp - 0x2c]
push eax
call fcn.004c2450
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x1c], eax
jne 0x4c2876
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 0x4c28ca
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.00415d70
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.004059a0
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 0x4c2909
and eax, 0xfffffffb
lea ecx, [ebp - 0x90]
mov dword [ebp - 0x30], eax
call fcn.00405a10
mov eax, dword [ebp - 0x30]
test al, 2
je 0x4c291e
and eax, 0xfffffffd
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], eax
call fcn.00405a10
mov eax, dword [ebp - 0x30]
test al, 1
je 0x4c292a
lea ecx, [ebp - 0x60]
call fcn.00405a10
mov edx, dword [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4c296b
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c2961
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c2c54
push edx
push ecx
call fcn.004a44fe
add esp, 8
lea eax, [ebp - 0x78]
mov ecx, 0x54d21c
push eax
call fcn.0040f190
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x4c29b3
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c29a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c2c59
push edx
push ecx
call fcn.004a44fe
add esp, 8
lea eax, [ebp - 0x78]
push eax
call fcn.004c2570
add esp, 4
mov ecx, 0x54d1ec
push eax
call fcn.0040f190
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x4c2a04
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c29fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c2c5e
push edx
push ecx
call fcn.004a44fe
add esp, 8
lea eax, [ebp - 0x78]
push eax
call fcn.004c2450
add esp, 4
mov ecx, 0x54d204
push eax
call fcn.0040f190
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x4c2a55
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c2a4b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c2c63
push edx
push ecx
call fcn.004a44fe
add esp, 8
push 0
push 0
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4c2b0c
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.004a4905
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 0x4c2af6
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c2ab0
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.00415d70
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4c2b24
push 2
push edi
call fcn.004a44fe
add esp, 8
jmp 0x4c2b24
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4c2b0c
push 2
push edi
call fcn.004a44fe
add esp, 8
mov byte [ebp - 0x30], 0
lea eax, [ebp - 0x48]
push dword [ebp - 0x30]
push 0x5206ef
push eax
call fcn.004aa2a0
add esp, 0xc
lea eax, [ebp - 0x48]
mov ecx, 0x54d234
push eax
call fcn.0040f190
mov edx, dword [ebp - 0x34]
cmp edx, 8
jb 0x4c2b6c
mov ecx, dword [ebp - 0x48]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c2b62
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c2c68
push edx
push ecx
call fcn.004a44fe
add esp, 8
lea eax, [ebp - 0x60]
push eax
call fcn.004c19a0
add esp, 4
mov ecx, 0x54d24c
push eax
call fcn.0040f190
mov edx, dword [ebp - 0x4c]
cmp edx, 8
jb 0x4c2bbd
mov ecx, dword [ebp - 0x60]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c2bb3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c2c6d
push edx
push ecx
call fcn.004a44fe
add esp, 8
xor eax, eax
mov dword [ebp - 0x50], 0
cmp dword [0x54d200], 8
mov word [ebp - 0x60], ax
mov eax, 0x54d1ec
cmovae eax, dword [0x54d1ec]
push eax
mov dword [ebp - 0x4c], 7
mov byte [0x556a7c], 1
call fcn.004c7d30
test al, al
mov byte [0x556a7e], 1
mov eax, 0x54d24c
mov byte [0x556a91], 1
sete byte [0x556a7d]
mov byte [0x556a7f], 1
cmp dword [0x54d260], 8
cmovae eax, dword [0x54d24c]
push eax
call fcn.004c7d30
add esp, 8
test al, al
sete byte [0x556a90]
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.004a44cd
mov esp, ebp
pop ebp
ret
call fcn.004da7c4
call fcn.004da7c4
call fcn.004da7c4
call fcn.004da7c4
call fcn.004da7c4
call fcn.004da7c4
call fcn.004da7c4
int3