Function at 0x10ed1ac
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x111027c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10ed1fa
test byte [eax + 0x1c], 1
je 0x10ed1fa
cmp byte [eax + 0x19], 4
jb 0x10ed1fa
push 0x1012160
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov esi, 0x1012180
test ebx, ebx
jne 0x10ed213
push 0x1005d40
push 0x1b3
push esi
call fcn.0107b644
test edi, edi
jne 0x10ed227
push 0x1012170
push 0x1b4
push esi
call fcn.0107b644
mov esi, 0x1007124
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x3c]
xor eax, eax
cmp edi, eax
je 0x10ed23b
mov dword [edi], eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 8]
shl esi, 2
push dword [eax + esi]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x10ed26f
mov dword [ebp - 0x28], 0x8007000e
jmp 0x10ed319
lea ecx, [ebp - 0x34]
push ecx
push eax
call sub.VSSAPI.DLL_CreateVssExamineWriterMetadataInternal
mov dword [ebp - 0x28], eax
test eax, eax
jl 0x10ed319
mov eax, dword [ebp - 0x34]
mov ecx, dword [eax]
lea edx, [ebp - 0x4c]
push edx
lea edx, [ebp - 0x48]
push edx
lea edx, [ebp - 0x30]
push edx
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x24]
push edx
push eax
call dword [ecx + 0xc]
mov dword [ebp - 0x28], eax
test eax, eax
jl 0x10ed319
test edi, edi
je 0x10ed30b
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push dword [eax + esi]
call edi
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x10ed2de
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10ed2d9
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x28], eax
jmp 0x10ed319
push 2
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0101ae15
mov dword [ebp - 0x28], eax
test eax, eax
jl 0x10ed319
push dword [ebp - 0x44]
mov eax, dword [ebx + 8]
push dword [ebp - 0x2c]
push dword [eax + esi]
call edi
test eax, eax
je 0x10ed2c5
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], eax
mov edi, dword [ebp - 0x40]
and dword [ebp - 0x2c], 0
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x30], 0
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
je 0x10ed32e
push dword [ebp - 0x30]
call esi
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x38], 0
je 0x10ed339
push dword [ebp - 0x38]
call esi
mov eax, dword [ebp - 0x34]
pop edi
pop esi
pop ebx
test eax, eax
je 0x10ed349
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x2c], 0
je 0x10ed358
push dword [ebp - 0x2c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10ed382
test byte [eax + 0x1c], 1
je 0x10ed382
cmp byte [eax + 0x19], 4
jb 0x10ed382
push 0x1012160
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
xor ecx, ebp
call fcn.0106f798
leave
ret 0x10