Function at 0x1314ae80
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov eax, dword [0x131e90f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 1
mov edi, ecx
mov dword [ebp - 0x198], 0
push closesocket
push edi
mov ebx, edx
mov dword [ebp - 0x1a0], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1314afdc
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0xfffffffffffffffc
push esi
call edi
push 0
lea eax, [ebp - 0x198]
push eax
push 4
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x198], 4
jne 0x1314afcf
lea ecx, [ebp - 0x68]
call fcn.13146110
lea edx, [ebp - 0xcc]
sub edx, eax
nop dword [eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x1314af10
lea eax, [ebp - 0xcc]
push eax
call fcn.131a85ab
push 0x64
mov dword [ebp - 0x19c], eax
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.1319ba80
push 0x64
lea eax, [ebp - 0xcc]
push 0
push eax
call fcn.1319ba80
push 0x64
lea eax, [ebp - 0x130]
push 0
push eax
call fcn.1319ba80
add esp, 0x28
mov eax, 0xfffffffc
sub eax, dword [ebp - 0x19c]
push 2
push 0
push eax
push esi
call edi
mov edi, dword [ebp - 0x19c]
lea eax, [ebp - 0x198]
push 0
push eax
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [ebp - 0x68]
call fcn.13146110
lea edx, [ebp - 0xcc]
sub edx, eax
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x1314afa0
push edi
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.131a7590
add esp, 0xc
lea ecx, [ebp - 0x130]
call fcn.1314adf0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x1a0]
xor ecx, ecx
nop
mov al, byte [ebp + ecx - 0x130]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x195], al
test al, al
jne 0x1314afe0
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x194]
push str.P2k13
push eax
call fcn.1319aca0
add esp, 8
test eax, eax
jne 0x1314b028
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.13198da3
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1314b061
push eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.13198da3
mov esp, ebp
pop ebp
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.13199298
add esp, 4
mov dword [0x131eec48], eax
test ebx, ebx
jne 0x1314b08b
push esi
call fcn.13199298
mov dword [0x13c26558], eax
jmp 0x1314b09b
cmp ebx, 1
jne 0x1314b09e
push esi
call fcn.13199298
mov dword [0x131eef04], eax
add esp, 4
push 0
lea eax, [ebp - 0x1a4]
push eax
push esi
push dword [0x131eec48]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call eax
test ebx, ebx
jne 0x1314b0dc
mov ecx, dword [0x131eec48]
lea eax, [ebp - 0x194]
push eax
mov edx, esi
call fcn.13141d20
mov dword [0x13c26558], eax
jmp 0x1314b0fa
cmp ebx, 1
jne 0x1314b0fd
mov ecx, dword [0x131eec48]
lea eax, [ebp - 0x194]
push eax
mov edx, esi
call fcn.13141d20
mov dword [0x131eef04], eax
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.13198da3
mov esp, ebp
pop ebp
ret