Function at 0x10035067
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x100579f0
call fcn.10052270
sub esp, 0x44c
push ebx
mov ebx, ecx
push esi
mov esi, 0x10078b14
mov eax, dword [ebx + 0x64]
push edi
push esi
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x100355a9
mov ecx, ebx
call fcn.10034ff7
cmp eax, 0xffffffff
mov dword [ebp - 0x38], eax
je 0x100355a9
push esi
lea ecx, [ebp - 0x2c]
call fcn.100034da
and dword [ebp - 4], 0
mov edi, dword [ebx + 0x7c]
lea eax, [ebp - 0x10]
push reloc.OLEAUT32.dll_SysReAllocString
push eax
call fcn.1001e067
pop ecx
pop ecx
push dword [edi]
mov byte [ebp - 4], 1
push str.SOFTWAREClassesCLSID
push dword [eax]
lea eax, [ebp - 0x2c]
push str._s_s_s
push eax
call fcn.10009c35
and byte [ebp - 4], 0
add esp, 0x14
lea ecx, [ebp - 0x10]
call fcn.1000349d
mov al, byte [ebp - 0x11]
mov byte [ebp - 0x4c], al
xor eax, eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
push ecx
push eax
lea ecx, [ebp - 0x4c]
call fcn.100038e6
push dword [ebx + 0x7c]
mov edi, str.CLSID_
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.10018353
push str.ShellFolder
push eax
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push eax
call fcn.10018299
push dword [eax]
mov byte [ebp - 4], 4
push SysReAllocString
call fcn.100216c0
neg eax
pop ecx
mov byte [ebp - 4], 3
sbb al, al
pop ecx
inc al
lea ecx, [ebp - 0x10]
mov byte [ebp - 0x11], al
call fcn.1000349d
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.1000349d
cmp byte [ebp - 0x11], 0
je 0x1003522a
mov eax, dword [ebx + 0x7c]
push 0x10075938
add eax, 4
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10018299
mov eax, dword [eax]
lea ecx, [ebp - 0x4c]
push 4
push ecx
push 0
push 0x28
push 0x10075928
push 0x10070cfc
push 0x100757dc
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.1004ac01
lea ecx, [ebp - 0x10]
mov edi, eax
mov byte [ebp - 4], 2
call fcn.1000349d
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push esi
call fcn.100034da
push ecx
mov byte [ebp - 4], 6
mov ecx, esp
mov dword [ebp - 0x1c], esp
push esi
call fcn.100034da
push ecx
mov byte [ebp - 4], 7
mov ecx, esp
mov dword [ebp - 0x1c], esp
push esi
call fcn.100034da
push 1
lea ecx, [ebx + 0x78]
push dword [ebp - 0x38]
mov byte [ebp - 4], 8
push 0
call fcn.10037c46
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
push str.SOFTWAREClassesCLSID_
push ecx
call fcn.10018353
push reloc.OLEAUT32.dll_SysReAllocString
push edi
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.10035ec4
jmp 0x10035591
push dword [ebx + 0x7c]
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.10018353
push str.Shell_
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 0xa
push eax
call fcn.10018299
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xc
call fcn.1000349d
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x3c]
push str.SOFTWAREClasses_
push eax
call fcn.10018353
push 0x40
mov byte [ebp - 4], 0xd
and byte [ebp - 0x154], 0
pop ecx
xor eax, eax
lea edi, [ebp - 0x153]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x3c]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1000a78c
test eax, eax
jne 0x10035579
and dword [ebp - 0x28], eax
and byte [ebp - 0x458], al
push 0x7f
lea edi, [ebp - 0x457]
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x458]
push 0x200
push eax
push 0
push dword [ebp - 0x30]
call fcn.1000ad89
test eax, eax
jne 0x10035571
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
inc dword [ebp - 0x28]
lea eax, [ebp - 0x458]
push esi
push eax
call edi
test eax, eax
je 0x1003548b
lea eax, [ebp - 0x458]
push str.NoAddOns
push eax
call edi
test eax, eax
je 0x1003548b
mov ecx, dword [ebp - 0x34]
cmp dword [ecx - 0xc], 0
lea eax, [ecx - 0xc]
jl 0x1003531e
push eax
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x1003532f
mov eax, dword [0x10070040]
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
call fcn.100036ad
lea eax, [ebp - 0x458]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.10018299
push str.command
push eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 0xf
push eax
call fcn.10018299
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x10
call fcn.10003640
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xf
call fcn.1000349d
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xe
call fcn.1000349d
push 0x104
lea eax, [ebp - 0x154]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push str.SOFTWAREClasses_
push eax
call fcn.10018353
lea eax, [ebp - 0x154]
mov byte [ebp - 4], 0x11
push eax
push 1
push esi
push dword [ebp - 0x10]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.1002145e
add esp, 0x14
lea eax, [ebp - 0x154]
push esi
push eax
call edi
test eax, eax
je 0x10035473
lea eax, [ebp - 0x154]
lea ecx, [ebp - 0x24]
push eax
call fcn.100034da
lea eax, [ebp - 0x24]
mov ecx, ebx
push eax
mov byte [ebp - 4], 0x12
call fcn.100355b8
and byte [ebp - 0x258], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x257]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push dword [ebx + 0x64]
push dword [ebp - 0x24]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
je 0x10035467
lea eax, [ebp - 0x258]
lea ecx, [ebp - 0x20]
push eax
call fcn.100034da
mov eax, dword [eax]
mov ecx, dword [ebx + 0x64]
push eax
push ecx
mov byte [ebp - 4], 0x13
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
mov edi, eax
pop ecx
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x20]
call fcn.1000349d
test edi, edi
jne 0x1003549f
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x11
call fcn.1000349d
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xe
call fcn.1000349d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xd
call fcn.1000349d
lea eax, [ebp - 0x458]
push 0x200
push eax
push dword [ebp - 0x28]
jmp 0x100352c5
mov eax, dword [ebx + 0x7c]
push 0x10075938
add eax, 4
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10018299
mov eax, dword [eax]
lea ecx, [ebp - 0x4c]
push 4
push ecx
push 0
push 0x28
push 0x10075928
push 0x10070cfc
push 0x100757dc
push eax
mov ecx, ebx
mov byte [ebp - 4], 0x14
call fcn.1004ac01
lea ecx, [ebp - 0x20]
mov edi, eax
mov byte [ebp - 4], 0x12
call fcn.1000349d
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push esi
call fcn.100034da
push ecx
mov byte [ebp - 4], 0x15
mov ecx, esp
mov dword [ebp - 0x1c], esp
push esi
call fcn.100034da
push ecx
mov byte [ebp - 4], 0x16
mov ecx, esp
mov dword [ebp - 0x1c], esp
push esi
call fcn.100034da
push 1
lea ecx, [ebx + 0x78]
push dword [ebp - 0x38]
mov byte [ebp - 4], 0x17
push 0
call fcn.10037c46
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
push str.SOFTWAREClassesCLSID_
push ecx
call fcn.10018353
push reloc.OLEAUT32.dll_SysReAllocString
push edi
mov ecx, ebx
mov byte [ebp - 4], 0x12
call fcn.10035ec4
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x11
call fcn.1000349d
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xe
call fcn.1000349d
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xd
call fcn.1000349d
push dword [ebp - 0x30]
call fcn.1000ade2
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xc
call fcn.1000349d
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.1000349d
and byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.10003457
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.1000349d
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret