Function at 0x41d660
Capabilities:
Check if file exists
Contain obfuscated stackstrings
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516788
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x5746cc]
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 - 0x270], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x280], edi
mov dword [ebp - 0x274], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x26c], 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 - 0x260], eax
mov dword [ebp - 0x25c], ecx
jb 0x41d6e7
mov eax, dword [eax]
mov dword [ebp - 0x260], eax
cmp ecx, 0x10
jae 0x41d6fe
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], 0xf
jmp 0x41d73f
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.0040d0a0
mov ecx, eax
mov eax, dword [ebp - 0x25c]
inc eax
mov dword [edi], ecx
push eax
push dword [ebp - 0x260]
push ecx
call fcn.004a4160
mov eax, dword [ebp - 0x25c]
add esp, 0xc
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], esi
push 0x208
lea eax, [ebp - 0x240]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x26c], 1
call fcn.004a3360
add esp, 0xc
lea eax, [ebp - 0x240]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x75004c
push eax
lea eax, [ebp - 0x240]
mov dword [ebp - 0x34], 0x610064
push eax
mov dword [ebp - 0x30], 0x680073
mov dword [ebp - 0x2c], 0x5c0069
mov dword [ebp - 0x28], 0x770073
mov dword [ebp - 0x24], 0x740069
mov dword [ebp - 0x20], 0x680063
mov dword [ebp - 0x1c], 0x6a002e
mov dword [ebp - 0x18], 0x6f0073
mov dword [ebp - 0x14], 0x6e
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x240]
push eax
call esi
test eax, eax
je 0x41da54
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0xf
mov byte [ebp - 0x258], 0
lea eax, [ebp - 0x240]
mov dword [ebp - 4], 1
push eax
call esi
test eax, eax
je 0x41da49
xor esi, esi
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x264], esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 2
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x41d85d
call fcn.0041c0a0
test eax, eax
js 0x41da49
jmp 0x41d865
mov esi, eax
mov dword [ebp - 0x268], esi
lea eax, [ebp - 0x278]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x27c], esi
cmp esi, 0xffffffff
jne 0x41d893
call fcn.0041c0a0
test eax, eax
js 0x41da38
mov esi, dword [ebp - 0x27c]
mov eax, dword [ebp - 0x278]
test eax, eax
jb 0x41da38
ja 0x41da38
test esi, esi
je 0x41da38
test eax, eax
ja 0x41da38
jb 0x41d8c5
cmp esi, 0x500000
jae 0x41da38
mov ecx, dword [ebp - 0x248]
cmp esi, ecx
ja 0x41d8ef
cmp dword [ebp - 0x244], 0x10
lea eax, [ebp - 0x258]
mov dword [ebp - 0x248], esi
cmovae eax, dword [ebp - 0x258]
mov byte [eax + esi], 0
jmp 0x41d901
mov eax, esi
sub eax, ecx
lea ecx, [ebp - 0x258]
push 0
push eax
call fcn.00420c60
cmp dword [ebp - 0x244], 0x10
lea ecx, [ebp - 0x25c]
push 0
push ecx
lea eax, [ebp - 0x258]
mov dword [ebp - 0x25c], 0
cmovae eax, dword [ebp - 0x258]
push esi
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41d943
call fcn.0041c0a0
mov esi, eax
jmp 0x41d95b
xor ecx, ecx
mov eax, 0x80070026
cmp dword [ebp - 0x25c], esi
cmovne ecx, eax
mov dword [ebp - 0x260], ecx
mov esi, ecx
mov eax, dword [ebp - 0x268]
mov byte [ebp - 4], 1
test eax, eax
je 0x41d970
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
js 0x41da49
cmp dword [ebp - 0x248], 0
je 0x41da49
cmp dword [ebp - 0x244], 0x10
lea eax, [ebp - 0x258]
cmovae eax, dword [ebp - 0x258]
push eax
call fcn.00435ac0
mov esi, eax
add esp, 4
test esi, esi
je 0x41da00
mov eax, dword [ebp - 0x270]
cmp dword [eax + 0x14], 0x10
jb 0x41d9b6
mov eax, dword [eax]
push eax
push esi
call fcn.004359b0
mov ecx, eax
add esp, 8
test ecx, ecx
jne 0x41d9d1
push esi
call fcn.004357d0
add esp, 4
jmp 0x41da49
mov eax, dword [ebp - 0x274]
cmp dword [eax + 0x14], 0x10
jb 0x41d9df
mov eax, dword [eax]
push eax
push ecx
call fcn.004359b0
add esp, 8
test eax, eax
je 0x41d9c6
push dword [eax + 0x10]
mov ecx, edi
call fcn.00420f40
push esi
call fcn.004357d0
add esp, 4
mov edx, dword [ebp - 0x244]
cmp edx, 0x10
jb 0x41da54
mov ecx, dword [ebp - 0x258]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41da2c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41da71
push edx
push ecx
call fcn.004864f3
add esp, 8
jmp 0x41da54
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x41da49
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x258]
call fcn.00408fb0
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.004864b8
mov esp, ebp
pop ebp
ret
call fcn.004be5e3
int3