Function at 0x1001bb50
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d43a1
mov eax, dword fs:[0]
push eax
mov eax, 0x2878
call fcn.10191780
mov eax, dword [0x102632d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x221c]
push 0x2000
push 0
push eax
call fcn.101a9880
add esp, 0xc
mov eax, 0x22
mov word [ebp - 0x221c], ax
test esi, esi
je 0x1001be7a
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
cmp eax, 1
jl 0x1001be7a
push esi
call edi
cmp eax, 0xffa
jge 0x1001be7a
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x221c]
push eax
call esi
push 0x102166fc
lea eax, [ebp - 0x221c]
push eax
call esi
lea ecx, [ebp - 0x284c]
call fcn.1001b3a0
xor edi, edi
lea esi, [ebp - 0x284c]
cmp word [esi], 0
je 0x1001bd12
xor eax, eax
mov dword [ebp - 0x2854], 0
mov word [ebp - 0x2864], ax
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x2850], 0
lea edx, [eax + 2]
mov dword [ebp - 0x2854], 0
mov dword [ebp - 0x2850], 7
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001bc44
sub eax, edx
lea ecx, [ebp - 0x2864]
sar eax, 1
push eax
lea eax, [ebp - 0x221c]
push eax
call fcn.10008910
mov dword [ebp - 4], 0
mov ecx, esi
xor eax, eax
mov dword [ebp - 0x2874], 0
mov dword [ebp - 0x2870], 0
mov dword [ebp - 0x2874], 0
mov dword [ebp - 0x2870], 7
lea edx, [ecx + 2]
mov word [ebp - 0x2884], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001bca3
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x2884]
call fcn.10008910
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2868]
push eax
sub esp, 8
mov dword [ebp - 0x2868], 0
lea edx, [ebp - 0x2864]
lea ecx, [ebp - 0x2884]
call fcn.10009090
add esp, 0xc
mov bl, al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2884]
call fcn.100088b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2864]
call fcn.100088b0
test bl, bl
jne 0x1001bd24
inc edi
add esi, 0x210
cmp edi, 3
jl 0x1001bc00
jmp 0x1001bd46
imul eax, edi, 0x210
cmp dword [ebp + eax - 0x2644], 0
mov eax, dword [ebp + eax - 0x2640]
jne 0x1001bd3e
add eax, 0x10
test eax, eax
jne 0x1001be7c
xor ebx, ebx
lea ecx, [ebp - 0x2864]
push 0xb
xor eax, eax
mov dword [ebp - 0x2854], ebx
mov dword [ebp - 0x2850], ebx
push str.Shell32.dll
mov dword [ebp - 0x2854], ebx
mov dword [ebp - 0x2850], 7
mov word [ebp - 0x2864], ax
call fcn.10008910
mov dword [ebp - 4], 2
lea eax, [ebp - 0x2864]
push eax
call fcn.1001c670
mov ecx, eax
call fcn.1001c730
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2864]
call fcn.100088b0
test esi, esi
je 0x1001be74
push 0x1021b4d0
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1001be74
push 1
push ebx
push ebx
lea eax, [ebp - 0x221c]
push eax
push str.open
push ebx
call edi
cmp eax, 0x20
ja 0x1001be6b
mov dword [ebp - 0x286c], str._programfiles_x86__Internet_Exploreriexplore.exe
xor esi, esi
mov dword [ebp - 0x2868], str._programfiles_Internet_Exploreriexplore.exe
nop dword [eax]
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.101a9880
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x103
push eax
push dword [ebp + esi*4 - 0x286c]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001be61
push 1
push 0
lea eax, [ebp - 0x221c]
push eax
lea eax, [ebp - 0x21c]
push eax
push str.open
push 0
call edi
cmp eax, 0x20
ja 0x1001be6b
inc esi
cmp esi, 2
jb 0x1001be00
mov eax, ebx
jmp 0x1001be7c
mov ebx, 0x10
mov eax, ebx
jmp 0x1001be7c
xor ebx, ebx
mov eax, ebx
jmp 0x1001be7c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.101912fd
mov esp, ebp
pop ebp
ret