Function at 0x41f4f0
Capabilities:
Check if file exists
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52bfa3
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x5867ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x258], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x250], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x254], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x23c], ecx
jb 0x41f57d
mov eax, dword [eax]
mov dword [ebp - 0x244], eax
cmp ecx, 0x10
jae 0x41f594
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0xf
jmp 0x41f5d5
mov esi, ecx
mov eax, SysReAllocString
or esi, 0xf
mov ecx, edi
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00422540
mov ecx, eax
mov eax, dword [ebp - 0x23c]
inc eax
mov dword [edi], ecx
push eax
push dword [ebp - 0x244]
push ecx
call fcn.004b9390
mov eax, dword [ebp - 0x23c]
add esp, 0xc
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], esi
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x254], 1
push 0
push eax
call fcn.004b8590
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [0x589fe4]
test al, 1
jne 0x41f623
or eax, 1
mov dword [0x589fe0], 0
mov dword [0x589fe4], eax
mov byte [ebp - 0x231], 0
lea eax, [ebp - 0x240]
mov dword [ebp - 4], 1
push eax
call fcn.00473ac5
lea eax, [ebp - 0x240]
mov dword [ebp - 4], 2
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x231]
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x24c]
push eax
push 0x41bff0
push 0x589fe0
call fcn.00474a9b
add esp, 0x10
test eax, eax
je 0x41f94e
lea eax, [ebp - 0x240]
mov dword [ebp - 4], 3
push eax
call fcn.00473aff
add esp, 4
mov byte [ebp - 4], 0
lea eax, [ebp - 0x218]
push 0x589fe8
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
je 0x41f92b
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 6
push eax
call esi
test eax, eax
je 0x41f920
xor edi, edi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 7
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41f736
call fcn.0041e130
test eax, eax
js 0x41f920
jmp 0x41f73e
mov edi, eax
mov dword [ebp - 0x240], edi
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x24c], esi
cmp esi, 0xffffffff
jne 0x41f76c
call fcn.0041e130
test eax, eax
js 0x41f915
mov esi, dword [ebp - 0x24c]
mov eax, dword [ebp - 0x248]
test eax, eax
jb 0x41f915
ja 0x41f915
test esi, esi
je 0x41f915
test eax, eax
ja 0x41f915
jb 0x41f79e
cmp esi, 0x500000
jae 0x41f915
mov ecx, dword [ebp - 0x220]
cmp esi, ecx
ja 0x41f7c8
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
mov dword [ebp - 0x220], esi
cmovae eax, dword [ebp - 0x230]
mov byte [eax + esi], 0
jmp 0x41f7da
mov eax, esi
sub eax, ecx
lea ecx, [ebp - 0x230]
push 0
push eax
call fcn.00422680
cmp dword [ebp - 0x21c], 0x10
lea ecx, [ebp - 0x23c]
push 0
push ecx
lea eax, [ebp - 0x230]
mov dword [ebp - 0x23c], 0
cmovae eax, dword [ebp - 0x230]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41f817
call fcn.0041e130
mov esi, eax
jmp 0x41f82f
xor eax, eax
mov ecx, 0x80070026
cmp dword [ebp - 0x23c], esi
cmovne eax, ecx
mov dword [ebp - 0x244], eax
mov esi, eax
mov byte [ebp - 4], 6
test edi, edi
je 0x41f83e
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
js 0x41f920
cmp dword [ebp - 0x220], 0
je 0x41f920
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.004442e0
mov edi, eax
add esp, 4
test edi, edi
je 0x41f8d7
mov eax, dword [ebp - 0x258]
cmp dword [eax + 0x14], 0x10
jb 0x41f884
mov eax, dword [eax]
push eax
push edi
call fcn.004441d0
add esp, 8
test eax, eax
jne 0x41f8a0
push edi
call fcn.00443ff0
add esp, 4
jmp 0x41f920
mov ecx, dword [ebp - 0x250]
cmp dword [ecx + 0x14], 0x10
jb 0x41f8ae
mov ecx, dword [ecx]
push ecx
push eax
call fcn.004441d0
add esp, 8
test eax, eax
je 0x41f892
push dword [eax + 0x10]
mov esi, dword [ebp - 0x238]
mov ecx, esi
call fcn.00422960
push edi
call fcn.00443ff0
add esp, 4
jmp 0x41f8dd
mov esi, dword [ebp - 0x238]
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x41f931
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41f909
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41f96e
push edx
push ecx
call fcn.004994e9
add esp, 8
jmp 0x41f931
test edi, edi
je 0x41f920
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x230]
call fcn.0040a110
mov esi, dword [ebp - 0x238]
mov eax, esi
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.004994d8
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 4
push eax
call fcn.00473b41
add esp, 4
mov byte [ebp - 4], 2
test al, al
jne 0x41f973
call fcn.00474b6c
call fcn.004d3813
sub esp, 8
lea eax, [ebp - 0x240]
mov ecx, esp
push eax
call fcn.0040a040
call fcn.0040c450
int3