Function at 0x60129e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6018380
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
xor edi, edi
push 0x100000
mov dword [ebp - 0x28], esi
xor ebx, ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
cmp eax, edi
mov dword [ebp - 0x34], eax
jne 0x6012a7e
lea eax, [ebp - 0x38]
push str.Alloc_buffer_failed__
push eax
mov dword [esi + 0x28], 0x4e22
mov dword [ebp - 0x38], str.E:_svneboot_dll_trunkFT_Download.cpp
mov dword [ebp - 0x34], 0x29f
call fcn.060010c0
mov cl, byte [ebp - 0x11]
add esp, 8
mov byte [ebp - 0xa4], cl
lea ecx, [ebp - 0xa4]
push edi
call fcn.06002d90
lea edx, [ebp - 0xa8]
push 0x6019338
push edx
mov dword [ebp - 0xa8], 0x601916c
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp ebx, dword [esi + 0x24]
jae 0x6012ca2
mov ecx, esi
call fcn.06011ca0
mov eax, dword [esi + 0x20]
push edi
lea ecx, [ebp - 0x24]
mov edi, 4
push ecx
lea edx, [ebp - 0x20]
push edi
push edx
push eax
mov ecx, esi
call fcn.06011af0
test eax, eax
je 0x6012c14
cmp dword [ebp - 0x24], edi
jne 0x6012c14
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x34]
mov eax, dword [esi + 0x1c]
lea ecx, [ebp - 0x3c]
push 0
push ecx
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6012bc1
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x3c]
cmp eax, ecx
jne 0x6012bc1
mov edx, dword [esi + 0x20]
lea ecx, [ebp - 0x24]
push 0
push ecx
push eax
push edi
push edx
mov ecx, esi
call fcn.06011b50
xor edi, edi
cmp eax, edi
je 0x6012b70
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
cmp ecx, eax
jne 0x6012b70
add ebx, eax
mov eax, dword [esi + 0x1c]
push edi
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esi + 0x3c]
test edi, edi
je 0x6012b62
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov ecx, 0x32
div ecx
test edx, edx
jne 0x6012b62
mov edx, dword [esi + 0x24]
xor eax, eax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], eax
fild qword [ebp - 0x44]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], eax
fidiv dword [ebp - 0x1c]
fmul dword [0x6019188]
call sub.MSVCRT.dll__ftol
push eax
call edi
mov eax, dword [ebp - 0x2c]
inc eax
xor edi, edi
mov dword [ebp - 0x2c], eax
jmp 0x6012a8b
mov dword [esi + 0x28], 0x32cb
mov dword [ebp - 0x1c], str.E:_svneboot_dll_trunkFT_Download.cpp
mov dword [ebp - 0x18], 0x2c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1c]
push str.SendImage_WriteFile_fail__error_Code_:__d__
push eax
call fcn.060010c0
mov cl, byte [ebp - 0x11]
add esp, 0xc
lea edx, [ebp - 0x6c]
mov byte [ebp - 0x68], cl
push 0x6019338
push edx
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x6c], 0x601916c
call sub.MSVCRT.dll__CxxThrowException
mov dword [esi + 0x28], 0x4e21
mov dword [ebp - 0x1c], str.E:_svneboot_dll_trunkFT_Download.cpp
mov dword [ebp - 0x18], 0x2bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1c]
push str.SendImage_ReadFile2_fail__error_Code_:__d__
push eax
call fcn.060010c0
mov cl, byte [ebp - 0x11]
add esp, 0xc
lea edx, [ebp - 0x58]
xor eax, eax
push 0x6019338
push edx
mov byte [ebp - 0x54], cl
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x601916c
call sub.MSVCRT.dll__CxxThrowException
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jne 0x6012c48
lea eax, [ebp - 0x1c]
push str.SendImage_ReadFile_time_out__
push eax
mov dword [esi + 0x28], 0x32ca
mov dword [ebp - 0x1c], str.E:_svneboot_dll_trunkFT_Download.cpp
mov dword [ebp - 0x18], 0x2ae
call fcn.060010c0
add esp, 8
jmp 0x6012c71
mov dword [esi + 0x28], 0x32c9
mov dword [ebp - 0x1c], str.E:_svneboot_dll_trunkFT_Download.cpp
mov dword [ebp - 0x18], 0x2b3
call edi
push eax
lea ecx, [ebp - 0x1c]
push str.SendImage_ReadFile1_fail__error_Code_:__d__
push ecx
call fcn.060010c0
add esp, 0xc
mov dl, byte [ebp - 0x11]
push 0
lea ecx, [ebp - 0x90]
mov byte [ebp - 0x90], dl
call fcn.06002d90
lea eax, [ebp - 0x94]
push 0x6019338
push eax
mov dword [ebp - 0x94], 0x601916c
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [str.REBTREBT]
mov eax, dword [esi + 0x20]
lea ecx, [ebp - 0x20]
push edi
push ecx
push 8
push edx
push eax
mov ecx, esi
call fcn.06011b50
cmp eax, edi
jne 0x6012d13
cmp dword [ebp - 0x20], 8
jne 0x6012d13
mov dword [ebp - 0x1c], str.E:_svneboot_dll_trunkFT_Download.cpp
mov dword [ebp - 0x18], 0x2db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x38]
push eax
push ecx
lea edx, [ebp - 0x1c]
push str._COM_d__Send_reboot_pattern_error__error_Code_:__d__
push edx
call fcn.060010c0
mov al, byte [ebp - 0x11]
add esp, 0x10
lea ecx, [ebp - 0x80]
mov byte [ebp - 0x7c], al
push 0x6019338
push ecx
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x80], 0x601916c
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [esi + 0x38]
lea eax, [ebp - 0x1c]
push edx
mov ebx, str.E:_svneboot_dll_trunkFT_Download.cpp
push str._COM_d__Send_reboot_pattern__
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0x2d7
call fcn.060010c0
mov eax, dword [esi + 0x3c]
add esp, 0xc
cmp eax, edi
je 0x6012d42
push 0x64
call eax
lea ecx, [ebp - 0xc8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebp - 0xae]
mov dword [ebp - 0x30], ebx
and eax, 0xffff
mov dword [ebp - 0x2c], 0x2eb
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, dword [ebp - 0xac]
and eax, 0xffff
lea ecx, [eax + edx*4]
mov eax, dword [ebp - 0xbe]
and eax, 0xffff
lea eax, [eax + eax*2]
lea edx, [eax + eax*4]
mov eax, dword [ebp - 0xbc]
and eax, 0xffff
lea eax, [eax + edx*4]
xor edx, edx
sub eax, ecx
mov ecx, eax
lea eax, [ecx + ecx*4]
lea eax, [eax + eax*4]
lea edi, [eax + eax*4]
mov eax, dword [esi + 0x24]
shl edi, 3
div edi
push eax
push ecx
lea ecx, [ebp - 0x30]
push str._n_nperiod__d_s_DnSpeed___d_KB_s_n
push ecx
call fcn.060010c0
add esp, 0x10
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret