Function at 0x5e71d0
Capabilities:
Check if file exists
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60385e
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x70f200]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
movq qword [ebp - 0x1c], xmm0
call fcn.005dc5e0
push 1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0
push esi
movq qword [ebp - 0x28], xmm0
call fcn.005dc570
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.005dc190
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5e7253
xor bl, bl
jmp 0x5e7527
push 0
lea ecx, [ebp - 0x28]
call fcn.005dbc20
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.005dc3a0
mov esi, eax
cmp esi, 4
jl 0x5e732d
dec esi
push esi
lea ecx, [ebp - 0x28]
call fcn.005dc440
cmp word [eax], 0x5c
jne 0x5e7291
push 1
lea ecx, [ebp - 0x28]
call fcn.005dadc0
dec esi
test esi, esi
jg 0x5e7273
push 0
push 0
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.005db9a0
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor esi, esi
nop word [eax + eax]
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
push 0
push 0
push esi
push 0
call edi
test eax, eax
jne 0x5e72e3
lea ecx, [ebp - 0x28]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc4c0
test al, al
jne 0x5e732d
lea ecx, [ebp - 0x1c]
call fcn.005dc380
inc esi
cmp esi, 0x3c
jl 0x5e72b0
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
push 0
push 0
push 0x2a
push 0
call edi
test eax, eax
jne 0x5e7334
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push str.Microsof_EdgeApplication
lea ecx, [ebp - 0x1c]
call fcn.005da780
lea ecx, [ebp - 0x28]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc4c0
test al, al
je 0x5e7334
mov bl, 1
jmp 0x5e7527
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x34]
movq qword [ebp - 0x34], xmm0
call fcn.005dc5e0
push 0x104
push 0
push 0
push 0x104
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.005db9a0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x5e7468
mov dword [ebp - 0x54], 0x62462c
xor esi, esi
mov dword [ebp - 0x50], 0x624640
mov dword [ebp - 0x4c], str.system
mov dword [ebp - 0x48], str.winsxs
mov dword [ebp - 0x44], 0x62466c
mov dword [ebp - 0x40], str.Microsoft.NET
mov dword [ebp - 0x3c], str.Resources
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + esi*4 - 0x54]
lea ecx, [ebp - 0x34]
push 0x624284
call fcn.005dc190
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc200
lea ecx, [ebp - 0x28]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc4c0
test al, al
jne 0x5e74e0
inc esi
cmp esi, 7
jl 0x5e73a7
mov dword [ebp - 0x48], 0x6243b8
xor esi, esi
mov dword [ebp - 0x44], 0x624578
mov dword [ebp - 0x40], str.winsxs_
mov dword [ebp - 0x3c], str.Resources_
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + esi*4 - 0x48]
lea ecx, [ebp - 0x34]
push 0x624284
call fcn.005dc190
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc200
push 0
push 1
push 1
push 0
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x28]
call fcn.005daa70
test eax, eax
setne bl
test eax, eax
jne 0x5e74e0
inc esi
cmp esi, 4
jl 0x5e7410
push 0
push 0
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.005db9a0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0
lea ecx, [ebp - 0x1c]
call fcn.005dbc20
lea ecx, [ebp - 0x28]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc4c0
test al, al
jne 0x5e74e0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x104
push eax
push 0
push 0
push 0x104
lea ecx, [ebp - 0x1c]
call fcn.005db9a0
push eax
call dword [sym.imp.USERENV.dll_GetProfilesDirectoryW]
test eax, eax
je 0x5e751f
lea ecx, [ebp - 0x28]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x1c]
call fcn.005dc4c0
test al, al
je 0x5e74e4
mov bl, 1
jmp 0x5e751f
push 0
push 1
push 1
push 0
lea ecx, [ebp - 0x1c]
call fcn.005dc190
push eax
lea ecx, [ebp - 0x28]
call fcn.005daa70
test eax, eax
je 0x5e751d
push 0
push 1
push 3
push 1
push 0x624284
lea ecx, [ebp - 0x28]
call fcn.005daa70
test eax, eax
sete bl
jmp 0x5e751f
xor bl, bl
lea ecx, [ebp - 0x34]
call fcn.005dc430
lea ecx, [ebp - 0x28]
call fcn.005dc430
lea ecx, [ebp - 0x1c]
call fcn.005dc430
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e1b5
mov esp, ebp
pop ebp
ret