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

Disassembly:
push ebp
lea ebp, [esp - 0xa6c]
sub esp, 0xa6c
push 0xffffffffffffffff
push 0x432e90
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x441008]
xor eax, ebp
mov dword [ebp + 0xa68], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 0xa74]
test ebx, ebx
je 0x411ea4
push dword [edi]
lea ecx, [ebp + 0x5c]
mov dword [ebp + 0x5c], 0
call fcn.004046e0
mov dword [ebp - 4], 0
mov eax, dword [edi]
cmp byte [eax + 0x48], 0
jne 0x411eab
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x5c]
call fcn.00404710
xor al, al
jmp 0x412185
push str.COMCTL32.DLL
mov dword [ebp + 0x54], 8
mov dword [ebp + 0x58], 0xff
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitCommonControlsEx
push eax
call esi
test eax, eax
je 0x411edc
lea ecx, [ebp + 0x54]
push ecx
call eax
push str.User32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x437a4c
push eax
call esi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x41202e
mov edx, dword [edi]
lea esi, [edx + 0x64]
mov ecx, esi
call fcn.00402ba5
test al, al
jne 0x41202e
lea ecx, [edx + 0x4c]
call fcn.00402ba5
test al, al
jne 0x41202e
push esi
lea ecx, [ebp + 0x3c]
call fcn.00402c5e
mov byte [ebp - 4], 1
mov ecx, 0x437a58
call fcn.00402de3
lea ecx, [ebp + 0x3c]
mov edx, eax
call fcn.00402cf0
mov esi, eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
sub ecx, eax
mov dword [ebp - 0x14], eax
cmp edx, ecx
ja 0x411f96
add eax, edx
mov dword [ebp - 0x18], esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x10], eax
mov dword [esi + 0x10], eax
mov eax, esi
jb 0x411f68
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
push edx
mov edx, 0x437a58
lea ecx, [eax + ecx*2]
call fcn.00402e52
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [eax + ecx*2]
call fcn.00402e4b
jmp 0x411fac
push edx
push 0x437a58
mov byte [ebp - 0x10], 0
lea ecx, [ebp + 0x3c]
push dword [ebp - 0x10]
push edx
call fcn.004031e0
mov ecx, ebx
call fcn.00402de3
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
sub ecx, edx
cmp eax, ecx
ja 0x411ff5
cmp dword [esi + 0x14], 8
lea ecx, [edx + eax]
mov dword [ebp - 0x10], ecx
mov dword [esi + 0x10], ecx
jb 0x411fd0
mov esi, dword [esi]
lea ecx, [esi + edx*2]
mov edx, ebx
push eax
call fcn.00402e52
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x14], 0
lea ecx, [esi + eax*2]
call fcn.00402e4b
jmp 0x412007
push eax
push ebx
mov byte [ebp - 0x10], 0
lea ecx, [ebp + 0x3c]
push dword [ebp - 0x10]
push eax
call fcn.004031e0
mov ecx, dword [edi]
push 0
add ecx, 0x4c
call fcn.00402bad
push eax
lea ecx, [ebp + 0x3c]
call fcn.00402bad
push eax
push 0
call dword [ebp - 0x1c]
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x3c]
call fcn.00402b04
push 0x208
lea eax, [ebp + 0x860]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [edi]
add esp, 0xc
add ecx, 0x7c
call fcn.00402bad
push eax
lea ecx, [ebp + 0x860]
call fcn.00404be0
cmp word [ebp + 0x860], 0
je 0x412174
mov eax, dword [edi]
cmp byte [eax + 0x94], 0
je 0x41208c
lea ecx, [ebp + 0x860]
call fcn.004166c0
xor eax, eax
mov word [ebp + 0x860], ax
jmp 0x412174
push 0x800
lea eax, [ebp + 0x60]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp + 0x60]
add esp, 0xc
push 0x3fe
push eax
push str._programfiles_Internet_Exploreriexplore.exe
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
dec eax
cmp eax, 0x3fd
ja 0x4120d2
lea eax, [ebp + 0x60]
push eax
call esi
cmp eax, 0xffffffff
je 0x4120d2
test al, 0x10
je 0x4120fd
push 0x3fe
lea eax, [ebp + 0x60]
push eax
push str._programfiles_x86__Internet_Exploreriexplore.exe
call edi
dec eax
cmp eax, 0x3fd
ja 0x412174
lea eax, [ebp + 0x60]
push eax
call esi
cmp eax, 0xffffffff
je 0x412174
test al, 0x10
jne 0x412174
lea eax, [ebp + 0x60]
mov dword [ebp], 0x3c
xorps xmm0, xmm0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x860]
movlpd qword [ebp + 0x20], xmm0
push str.Shell32.dll
movlpd qword [ebp + 0x28], xmm0
movlpd qword [ebp + 0x30], xmm0
mov dword [ebp + 4], 0
mov dword [ebp + 8], 0
mov dword [ebp + 0xc], 0
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 1
mov dword [ebp + 0x38], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x412174
push str.ShellExecuteExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x412174
lea ecx, [ebp]
push ecx
call eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x5c]
call fcn.00404710
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa68]
xor ecx, ebp
call fcn.004226d8
lea esp, [ebp + 0xa6c]
pop ebp
ret 4