Function at 0x401ff0
Capabilities:
Check if file exists
Create process on windows
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c236
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2b4
mov eax, dword [0x440068]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x254], 7
mov word [ebp - 0x268], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x220]
push eax
call fcn.00417b20
add esp, 0xc
lea eax, [ebp - 0x220]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.SystemAppsMicrosoft.MicrosoftEdge_8wekyb3d8bbweMicrosoftEdge.exe
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402355
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4020b0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x268]
call fcn.00404280
push 0x38
lea eax, [ebp - 0x2bc]
mov dword [ebp - 0x2c0], 0x3c
push 0
push eax
call fcn.00417b20
add esp, 0xc
mov dword [ebp - 0x2b4], str.open
lea ecx, [ebp - 0x250]
push esi
call fcn.004041a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x250]
cmp dword [ebp - 0x23c], 8
mov edx, dword [ebp - 0x240]
cmovae ecx, dword [ebp - 0x250]
push 4
push str.www.
push ecx
call fcn.00404510
add esp, 0xc
test eax, eax
jne 0x4021cc
push esi
mov edx, str.https:__
lea ecx, [ebp - 0x280]
call fcn.004043d0
mov esi, eax
add esp, 4
lea eax, [ebp - 0x250]
cmp eax, esi
je 0x40218c
mov ecx, eax
call fcn.004040b0
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x250], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x240], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov edx, dword [ebp - 0x26c]
cmp edx, 8
jb 0x4021cc
mov ecx, dword [ebp - 0x280]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4021c2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023bb
push edx
push ecx
call fcn.004152ff
add esp, 8
lea eax, [ebp - 0x250]
mov edx, str.microsoft_edge:
push eax
lea ecx, [ebp - 0x238]
call fcn.004043d0
add esp, 4
lea eax, [ebp - 0x238]
cmp dword [ebp - 0x224], 8
cmovae eax, dword [ebp - 0x238]
mov dword [ebp - 0x2b0], eax
lea eax, [ebp - 0x2c0]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov edx, dword [ebp - 0x224]
test eax, eax
js 0x4022be
cmp edx, 8
jb 0x402255
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40224b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023c0
push edx
push ecx
call fcn.004152ff
add esp, 8
mov edx, dword [ebp - 0x23c]
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
cmp edx, 8
jb 0x4022b2
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4022a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023c5
push edx
push ecx
call fcn.004152ff
add esp, 8
mov byte [ebp - 0x281], 1
jmp 0x40235c
cmp edx, 8
jb 0x4022f8
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4022ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023ca
push edx
push ecx
call fcn.004152ff
add esp, 8
mov edx, dword [ebp - 0x23c]
xor eax, eax
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
cmp edx, 8
jb 0x402355
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40234b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023cf
push edx
push ecx
call fcn.004152ff
add esp, 8
mov byte [ebp - 0x281], 0
mov edx, dword [ebp - 0x254]
cmp edx, 8
jb 0x402398
mov ecx, dword [ebp - 0x268]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40238e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4023d4
push edx
push ecx
call fcn.004152ff
add esp, 8
mov al, byte [ebp - 0x281]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00415024
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0041b091
call fcn.0041b091
call fcn.0041b091
call fcn.0041b091
call fcn.0041b091
call fcn.0041b091
int3