Function at 0x10114d2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
xor eax, eax
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
mov ebx, 0x100fd64
push ebx
mov dword [ebp - 8], eax
mov word [ebp - 0x20], ax
mov word [ebp - 0x1e], ax
mov dword [ebp - 0x1c], eax
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], eax
call edi
mov esi, eax
cmp esi, dword [ebp - 0xc]
pop ecx
pop ecx
jbe 0x101154b
push dword [ebp - 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x101154b
lea eax, [esi + esi + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x10115db
push dword [ebp + 8]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
jmp 0x10115a5
mov ebx, 0x100fd48
push ebx
call edi
mov edi, eax
cmp esi, edi
pop ecx
jbe 0x10115ac
push edi
push dword [ebp + 8]
push ebx
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10115ac
sub esi, edi
add esi, dword [ebp - 0x14]
lea eax, [esi + esi + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
je 0x10115db
push 0x100fd64
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [ebp + 8]
lea eax, [eax + edi*2]
push eax
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
xor eax, eax
jmp 0x10117cd
push 1
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, 1
mov dword [ebp - 0x18], eax
jbe 0x10117c8
mov edi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
lea eax, [eax + eax + 2]
push eax
push 0x40
call edi
test eax, eax
mov dword [ebp - 0xc], eax
jne 0x10115e3
push 8
pop eax
jmp 0x10117cd
push dword [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp eax, dword [ebp - 0x18]
jbe 0x10115fb
push 8
pop esi
jmp 0x10117bb
push 0
push 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x101161a
mov esi, 0x70d
jmp 0x10117bb
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
movzx eax, word [ebp - 0x28]
mov ebx, eax
add eax, 2
push eax
push 0x40
shr ebx, 1
call edi
test eax, eax
mov dword [ebp - 0xc], eax
je 0x1011774
push ebx
push dword [ebp - 0x24]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
cmp esi, ebx
jbe 0x10116a4
push ebx
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x10116a4
sub esi, ebx
add esi, dword [ebp - 0x14]
lea eax, [esi + esi + 2]
push eax
push 0x40
call edi
test eax, eax
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
je 0x1011774
push 0x100fd64
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [ebp + 8]
lea eax, [eax + ebx*2]
push eax
push dword [esi]
call dword [sym.imp.msvcrt.dll_wcscat]
add esp, 0x10
xor esi, esi
jmp 0x1011799
push 0x10117d4
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x48]
push eax
push 1
lea eax, [ebp - 8]
lea ecx, [ebp - 0x30]
push eax
mov dword [ebp - 0x48], 0x18
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x40], ecx
call dword [sym.imp.ntdll.dll_NtOpenSymbolicLinkObject]
test eax, eax
jge 0x10116f0
mov esi, 0x70d
jmp 0x1011793
mov ebx, dword [sym.imp.ntdll.dll_NtQuerySymbolicLinkObject]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
call ebx
test eax, eax
jge 0x101170e
cmp eax, 0xc0000023
jne 0x10116e6
mov eax, dword [ebp - 0x10]
add eax, 2
push eax
push 0x40
call edi
test eax, eax
mov dword [ebp - 0x1c], eax
je 0x1011774
mov eax, dword [ebp - 0x10]
mov word [ebp - 0x20], ax
add eax, 2
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
call ebx
test eax, eax
jl 0x10116e6
movzx ebx, word [ebp - 0x20]
shr ebx, 1
cmp esi, ebx
jbe 0x1011790
push ebx
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x1011790
sub esi, ebx
add esi, dword [ebp - 0x14]
lea eax, [esi + esi + 2]
push eax
push 0x40
call edi
test eax, eax
mov esi, dword [ebp + 0xc]
mov dword [esi], eax
jne 0x1011778
push 8
jmp 0x1011792
push 0x100fd64
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [ebp + 8]
lea eax, [eax + ebx*2 + 2]
jmp 0x1011691
push 0x57
pop esi
mov eax, dword [ebp + 0xc]
and dword [eax], 0
cmp dword [ebp - 8], 0
je 0x10117a8
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtClose]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
jmp 0x10117cd
mov eax, 0x70d
pop edi
pop esi
pop ebx
leave
ret 8