Function at 0x6013080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60183c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov esi, str.E:_svneboot_dll_trunkFT_Download.cpp
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 8]
push 0
push ebx
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x6013312
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3e3
jne 0x60132df
mov eax, dword [ebp - 0x14]
mov ecx, dword [edi + 4]
cmp eax, ecx
jae 0x60132fd
mov eax, dword [edi + 8]
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x34]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ClearCommError]
lea ecx, [ebp - 0x94]
push str.ReadFile_error_995__Retry_
push ecx
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x90], 0x36e
call fcn.060010c0
mov edx, dword [ebp - 0x34]
add esp, 8
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], esi
push edx
push str.Error_value_:__d
push eax
mov dword [ebp - 0x78], 0x36f
call fcn.060010c0
add esp, 0xc
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x98], 0x370
push str.Com_stat___________________________________________
push ecx
call fcn.060010c0
mov edx, dword [ebp - 0x24]
add esp, 8
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], esi
push edx
push str.cbInQue___:__d
push eax
mov dword [ebp - 0x70], 0x371
call fcn.060010c0
mov ecx, dword [ebp - 0x20]
add esp, 0xc
lea edx, [ebp - 0x54]
mov dword [ebp - 0x54], esi
push ecx
push str.cbOutQue__:__d
push edx
mov dword [ebp - 0x50], 0x372
call fcn.060010c0
mov eax, dword [ebp - 0x28]
add esp, 0xc
and eax, 1
lea ecx, [ebp - 0x3c]
push eax
push str.fCtsHold__:__d
push ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 0x373
call fcn.060010c0
mov edx, dword [ebp - 0x28]
add esp, 0xc
shr edx, 1
and edx, 1
lea eax, [ebp - 0x64]
push edx
push str.fDsrHold__:__d
push eax
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], 0x374
call fcn.060010c0
mov ecx, dword [ebp - 0x28]
add esp, 0xc
shr ecx, 5
and ecx, 1
lea edx, [ebp - 0x84]
push ecx
push str.fEof_t_t_:__d
push edx
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x80], 0x375
call fcn.060010c0
add esp, 0xc
mov dword [ebp - 0x44], esi
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x44]
shr eax, 7
push eax
push str.fReserved_:__d
push ecx
mov dword [ebp - 0x40], 0x376
call fcn.060010c0
mov edx, dword [ebp - 0x28]
add esp, 0xc
shr edx, 6
and edx, 1
lea eax, [ebp - 0x4c]
push edx
push str.fTxim_t_:__d
push eax
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], 0x377
call fcn.060010c0
mov ecx, dword [ebp - 0x28]
add esp, 0xc
shr ecx, 3
and ecx, 1
lea edx, [ebp - 0x5c]
push ecx
push str.fXoffHold_:__d
push edx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], 0x378
call fcn.060010c0
mov eax, dword [ebp - 0x28]
add esp, 0xc
shr eax, 4
and eax, 1
lea ecx, [ebp - 0x6c]
push eax
push str.fXoffSent_:__d
push ecx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], 0x379
call fcn.060010c0
add esp, 0xc
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0x37a
push str.____________________________________________________
push edx
call fcn.060010c0
mov ecx, dword [ebp - 0x14]
add esp, 8
inc ecx
push 0x32
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x60130b6
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0x386
call ebx
push eax
lea eax, [ebp - 0x30]
push str.ReadFile_Error___Error_Code__d
push eax
call fcn.060010c0
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x601335f
cmp dword [ebx], 0
jne 0x601335f
push eax
lea ecx, [ebp - 0x8c]
push str.ReadFile_0_byte__need_read__d_bytes
push ecx
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], 0x38d
call fcn.060010c0
mov edx, dword [ebp - 0x18]
mov eax, dword [edi]
add esp, 0xc
cmp edx, eax
jae 0x60132fd
mov ecx, edx
push 0x32
inc ecx
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x60130b6
xor edi, edi
mov ebx, 0x39f
mov eax, dword [ebp + 0x10]
cmp edi, dword [eax]
jae 0x601339d
mov ecx, dword [ebp + 8]
xor eax, eax
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov al, byte [edi + ecx]
mov dword [ebp - 0x18], ebx
push eax
push eax
push eax
push str.RESP:_0x_x___d___c
push edx
call fcn.060010c0
add esp, 0x14
inc edi
jmp 0x6013366
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc