Function at 0x10ed320
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x111127c]
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 [0x111124c]
cmp eax, 0x111124c
je 0x10ed36e
test byte [eax + 0x1c], 1
je 0x10ed36e
cmp byte [eax + 0x19], 4
jb 0x10ed36e
push 0x1012058
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov esi, 0x1012078
test ebx, ebx
jne 0x10ed387
push 0x1005d40
push 0x1b3
push esi
call fcn.0107b4be
test edi, edi
jne 0x10ed39b
push 0x1012068
push 0x1b4
push esi
call fcn.0107b4be
mov esi, 0x100cbcc
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 0x10ed3af
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 0x10ed3e3
mov dword [ebp - 0x28], 0x8007000e
jmp 0x10ed48d
lea ecx, [ebp - 0x34]
push ecx
push eax
call sub.VSSAPI.DLL_CreateVssExamineWriterMetadataInternal
mov dword [ebp - 0x28], eax
test eax, eax
jl 0x10ed48d
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 0x10ed48d
test edi, edi
je 0x10ed47f
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 0x10ed452
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10ed44d
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x28], eax
jmp 0x10ed48d
push 2
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0101aed5
mov dword [ebp - 0x28], eax
test eax, eax
jl 0x10ed48d
push dword [ebp - 0x44]
mov eax, dword [ebx + 8]
push dword [ebp - 0x2c]
push dword [eax + esi]
call edi
test eax, eax
je 0x10ed439
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 0x10ed4a2
push dword [ebp - 0x30]
call esi
and dword [ebp - 0x30], 0
cmp dword [ebp - 0x38], 0
je 0x10ed4ad
push dword [ebp - 0x38]
call esi
mov eax, dword [ebp - 0x34]
pop edi
pop esi
pop ebx
test eax, eax
je 0x10ed4bd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x2c], 0
je 0x10ed4cc
push dword [ebp - 0x2c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10ed4f6
test byte [eax + 0x1c], 1
je 0x10ed4f6
cmp byte [eax + 0x19], 4
jb 0x10ed4f6
push 0x1012058
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x28]
xor ecx, ebp
call fcn.0106f5f8
leave
ret 0x10