Function at 0x10065b50
Capabilities:
Get common file path
Get file size
Get startup folder
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b714a
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x100e7e80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x268], edi
xorps xmm0, xmm0
mov dword [ebp - 0x224], 0
xor eax, eax
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
push 0x208
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x224], 1
push eax
call fcn.10089e40
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x25
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xorps xmm0, xmm0
mov dword [ebp - 0x230], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x22c], 0
movups xmmword [ebp - 0x240], xmm0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10065c20
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x240]
call fcn.10002390
mov dword [ebp - 4], 1
mov eax, Ordinal_1
mov ecx, dword [ebp - 0x230]
sub eax, ecx
cmp eax, 0x12
jb 0x10066008
cmp dword [ebp - 0x22c], 7
lea eax, [ebp - 0x240]
push 0x12
cmova eax, dword [ebp - 0x240]
push str.driversetchosts
push ecx
push eax
push ecx
push dword [ebp - 0x268]
lea ecx, [ebp - 0x260]
call fcn.10001de0
cmp dword [ebp - 0x24c], 7
lea eax, [ebp - 0x260]
push 0
cmova eax, dword [ebp - 0x260]
push 0
push 3
push 0
push 1
push Ordinal_1
push eax
mov dword [ebp - 0x224], 3
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x220], esi
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x24c]
cmp ecx, 7
jbe 0x10065d0e
mov edx, dword [ebp - 0x260]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10065d04
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006600d
push ecx
push edx
call fcn.10087edd
add esp, 8
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x22c]
cmp ecx, 7
jbe 0x10065d6f
mov edx, dword [ebp - 0x240]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10065d65
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1006600d
push ecx
push edx
call fcn.10087edd
add esp, 8
cmp esi, 0xffffffff
je 0x10065fe4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x228], eax
test eax, eax
je 0x10065fe0
lea edi, [eax + 1]
push edi
call fcn.10087f43
push edi
mov edi, eax
mov dword [ebp - 0x244], eax
push 0
push edi
call fcn.10089e40
add esp, 0x10
mov dword [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
push 0
push eax
push dword [ebp - 0x228]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, edi
mov dword [ebp - 0x230], 0
xorps xmm0, xmm0
mov dword [ebp - 0x22c], 0
movups xmmword [ebp - 0x240], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10065df0
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x240]
call fcn.10003020
mov byte [ebp - 4], 5
xor eax, eax
cmp dword [ebp - 0x22c], 0xf
xorps xmm0, xmm0
push 0
push 0
movups xmmword [ebp - 0x260], xmm0
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x240]
cmova eax, dword [ebp - 0x240]
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x248], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x228], eax
test eax, eax
je 0x10065f47
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.10087f43
add esp, 4
mov edi, eax
push dword [ebp - 0x228]
push edi
push 0xffffffffffffffff
push dword [ebp - 0x248]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, edi
mov dword [ebp - 0x270], 0
xorps xmm0, xmm0
mov dword [ebp - 0x26c], 0
movups xmmword [ebp - 0x280], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10065ed0
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x280]
call fcn.10002390
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x260]
call fcn.10006a20
mov ecx, dword [ebp - 0x26c]
cmp ecx, 7
jbe 0x10065f3e
mov edx, dword [ebp - 0x280]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10065f34
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10066012
push ecx
push edx
call fcn.10087edd
add esp, 8
push edi
call fcn.10087f3e
add esp, 4
mov edi, dword [ebp - 0x264]
lea eax, [ebp - 0x260]
push eax
mov ecx, edi
call fcn.10006a20
mov ecx, dword [ebp - 0x24c]
cmp ecx, 7
jbe 0x10065f9b
mov edx, dword [ebp - 0x260]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10065f91
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10066012
push ecx
push edx
call fcn.10087edd
add esp, 8
mov ecx, dword [ebp - 0x22c]
cmp ecx, 0xf
jbe 0x10065fd1
mov edx, dword [ebp - 0x240]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10065fc7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10066012
push ecx
push edx
call fcn.10087edd
add esp, 8
mov eax, dword [ebp - 0x244]
push eax
call fcn.10087f3e
add esp, 4
test esi, esi
je 0x10065feb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10087ecf
mov esp, ebp
pop ebp
ret
call fcn.10002eb0
call fcn.1008d13f
call fcn.1008d13f
int3