Function at 0x10006f50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10024ac8
push 0x100091a0
mov eax, dword fs:[0]
push eax
sub esp, 0x48c
mov eax, dword [0x10026010]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x480], ebx
mov dword [ebp - 0x498], ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x49c], edi
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x48c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x47c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x490], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x494], eax
mov dword [ebp - 0x478], 0
mov dword [ebp - 0x484], 0
mov dword [ebp - 0x488], 0
push 0x250
push 0
lea eax, [ebp - 0x474]
push eax
call fcn.10009570
push 0x208
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.10009570
add esp, 0x18
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [ebx + 4]
test eax, eax
je 0x1000701e
push 0
call eax
mov dword [ebp - 4], 0
lea eax, [ebp - 0x478]
push eax
push 0x1001c1f0
push 1
push 0
push 0x1001c210
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x10007241
mov eax, dword [ebp - 0x478]
mov ecx, dword [eax]
lea edx, [ebp - 0x484]
push edx
push 0x1001c200
push eax
call dword [ecx]
test eax, eax
js 0x10007241
mov eax, dword [ebp - 0x484]
mov ecx, dword [eax]
push 0
push esi
push eax
call dword [ecx + 0x14]
test eax, eax
js 0x10007241
mov eax, dword [ebp - 0x478]
mov ecx, dword [eax]
push 0x81
push 0
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebp - 0x478]
mov ecx, dword [eax]
lea edx, [ebp - 0x488]
push edx
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x10007241
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x488]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
cmp word [ebp - 0x224], 0
jne 0x100070ea
mov eax, dword [ebp - 0x478]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x474]
push edx
push 0x104
lea edx, [ebp - 0x224]
push edx
push eax
call dword [ecx + 0xc]
mov esi, dword [ebp + 0x1c]
push esi
push edi
lea eax, [ebp - 0x224]
push eax
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call ebx
push 3
push 0x10023708
lea eax, [ebp - 0x224]
push eax
call fcn.1000e1a6
add esp, 0xc
test eax, eax
jne 0x10007130
lea eax, [ebp - 0x224]
push eax
push str.Shell:_s
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x10007137
push esi
push edi
call fcn.100072c0
cmp dword [ebp - 0x48c], 0
je 0x10007182
test esi, esi
jle 0x10007182
push 0x208
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.10009570
add esp, 0xc
mov eax, dword [ebp - 0x478]
mov ecx, dword [eax]
push 0x104
lea edx, [ebp - 0x224]
push edx
push eax
call dword [ecx + 0x20]
push esi
push dword [ebp - 0x48c]
lea eax, [ebp - 0x224]
push eax
call ebx
cmp dword [ebp - 0x47c], 0
je 0x100071cd
test esi, esi
jle 0x100071cd
push 0x208
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.10009570
add esp, 0xc
mov eax, dword [ebp - 0x478]
mov ecx, dword [eax]
push 0x104
lea edx, [ebp - 0x224]
push edx
push eax
call dword [ecx + 0x28]
push esi
push dword [ebp - 0x47c]
lea eax, [ebp - 0x224]
push eax
call ebx
cmp dword [ebp - 0x490], 0
je 0x1000723b
test esi, esi
jle 0x1000723b
mov dword [ebp - 0x47c], 0
push 0x208
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.10009570
add esp, 0xc
mov eax, dword [ebp - 0x478]
mov ecx, dword [eax]
lea edx, [ebp - 0x47c]
push edx
push 0x104
lea edx, [ebp - 0x224]
push edx
push eax
call dword [ecx + 0x40]
mov ecx, dword [ebp - 0x494]
test ecx, ecx
je 0x1000722b
mov eax, dword [ebp - 0x47c]
mov dword [ecx], eax
push esi
push dword [ebp - 0x490]
lea eax, [ebp - 0x224]
push eax
call ebx
mov ebx, dword [ebp - 0x480]
mov dword [ebp - 4], 0xfffffffe
call fcn.1000727b
mov eax, dword [ebx + 4]
test eax, eax
je 0x10007258
push 1
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
test edi, edi
je 0x1000729c
cmp word [edi], 0
je 0x1000729c
mov eax, 1
jmp 0x1000729e
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.10007a97
mov esp, ebp
pop ebp
ret 0x1c