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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6017c5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
jne 0x6003667
lea eax, [ebp - 0x28]
push str.Illegal_handle_received__Android_DL_Rom_Load_
push eax
mov dword [ebp - 0x28], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x24], 0xbf
call fcn.060010c0
add esp, 8
jmp 0x6003a17
lea ecx, [ebp - 0x28]
push str.Allocate_remote_file_buffer_for_every_image
push ecx
mov dword [ebp - 0x28], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x24], 0xc4
call fcn.060010c0
add esp, 8
cmp ebx, 0xb
jge 0x6003ba5
mov edi, dword [ebp + 0xc]
mov edx, dword [edi + 0x700]
cmp dword [edx], 0x2694
jne 0x60036d3
lea eax, [ebp - 0x28]
push str.User_press_stop_button__
push eax
mov dword [ebp - 0x28], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x24], 0xc9
call fcn.060010c0
mov cl, byte [ebp + 0xf]
add esp, 8
lea edx, [ebp - 0x19]
mov byte [ebp - 0x19], cl
push 0x60197d8
push edx
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebx + ebx*2]
lea edi, [edi + eax*8]
mov dword [ebp - 0x20], edi
mov al, byte [edi + 0x14]
test al, al
jne 0x6003705
lea ecx, [ebp - 0x6c]
push str.User_dosent_select_this_file__skip_download_it__
push ecx
mov dword [ebp - 0x6c], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x68], 0xcf
call fcn.060010c0
add esp, 8
inc ebx
jmp 0x6003686
lea edx, [ebp - 0x7c]
push str.Judge_the_type_of_image_path...
push edx
mov dword [ebp - 0x7c], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x78], 0xd4
call fcn.060010c0
mov eax, dword [edi]
add esp, 8
push eax
call fcn.06001b30
add esp, 4
test al, al
je 0x6003926
mov ecx, dword [edi]
lea edx, [ebp - 0xa4]
push ecx
push str.The_image_is_remote__its_path:__s
push edx
mov dword [ebp - 0xa4], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0xa0], 0xd7
call fcn.060010c0
mov eax, dword [ebp + 0xc]
add esp, 0xc
lea edx, [ebp - 0x18]
mov ecx, dword [eax + 0x704]
push ecx
mov ecx, dword [edi]
push edx
push ecx
call dword [eax + 0x7f0]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x64]
push eax
mov edi, str.E:_svneboot_dll_trunk_android_download.cpp
push str.The_size_of_the_image_is__u
push edx
mov dword [esi + ebx*4 + 0x2c], eax
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x60], 0xdc
call fcn.060010c0
add esp, 0xc
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], 0xde
push str.Allocate_buffer_for_image_file
push eax
call fcn.060010c0
mov eax, dword [esi + ebx*4]
add esp, 8
test eax, eax
je 0x60037d4
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [esi + ebx*4], 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi + ebx*4], edi
jne 0x600380d
mov dword [ebp - 0x38], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x34], 0xe8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x38]
push str.Alloc_memory_error___error_Code_:__d__
push edx
jmp 0x6003a0f
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov edx, ecx
push str.Show_the_name_of_current_image_loaded
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov dword [ebp - 0x8c], str.E:_svneboot_dll_trunk_android_download.cpp
and ecx, 3
mov dword [ebp - 0x88], 0xee
rep stosb byte es:[edi], al
lea eax, [ebp - 0x8c]
push eax
call fcn.060010c0
mov ecx, dword [ebp - 0x20]
add esp, 8
lea eax, [ebp - 0xb4]
mov edx, dword [ecx + 8]
push edx
push eax
call fcn.0600a620
add esp, 8
mov eax, dword [eax + 4]
mov byte [ebp - 4], 1
test eax, eax
jne 0x600386e
mov eax, 0x6019168
mov edi, dword [ebp + 0xc]
push 0
push 0
push eax
mov ecx, dword [edi + 0x704]
push ecx
call dword [edi + 0x7f8]
mov ecx, dword [ebp - 0xb0]
xor edx, edx
cmp ecx, edx
mov byte [ebp - 4], 0
je 0x60038ac
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x60038a1
dec al
mov byte [ecx], al
jmp 0x60038ac
push ecx
call fcn.06017907
add esp, 4
xor edx, edx
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xac], edx
mov dword [ebp - 0xa8], edx
lea edx, [ebp - 0x74]
push str.Start_to_remote_write_image_data_into_buffer...
push edx
mov dword [ebp - 0x74], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x70], 0xf3
call fcn.060010c0
mov eax, dword [edi + 0x704]
mov ecx, dword [ebp - 0x18]
mov edx, dword [esi + ebx*4]
add esp, 8
push eax
mov eax, dword [ebp - 0x20]
push ecx
push edx
mov ecx, dword [eax]
push ecx
call dword [edi + 0x7f4]
lea edx, [ebp - 0x94]
push str.Complete_remote_write_image_data_into_buffer_
push edx
mov dword [ebp - 0x94], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x90], 0xf6
call fcn.060010c0
add esp, 8
inc ebx
jmp 0x6003686
mov eax, dword [edi]
lea ecx, [ebp - 0x84]
push eax
push str.The_image_is_local__its_path:__s
push ecx
mov dword [ebp - 0x84], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x80], 0xfa
call fcn.060010c0
add esp, 0xc
lea edx, [ebp - 0x48]
mov dword [ebp - 0x48], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x44], 0xfc
push str.Open_image_file_from_local
push edx
call fcn.060010c0
mov eax, dword [edi]
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x3c], edi
jne 0x60039b2
mov dword [ebp - 0x48], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x44], 0x104
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x48]
push str.Open_image_file_error___error_Code_:__d__
push ecx
jmp 0x6003a0f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
lea edx, [ebp - 0x58]
push str.The_size_of_the_image_is__u
push edx
mov dword [ebp - 0x18], eax
mov dword [esi + ebx*4 + 0x2c], eax
mov dword [ebp - 0x58], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x54], 0x10b
call fcn.060010c0
mov eax, dword [ebp - 0x18]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x6003a2d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x58], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x54], 0x110
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Get_image_file_size_error__windows_error_Code_:__d__
lea eax, [ebp - 0x58]
push eax
call fcn.060010c0
add esp, 0xc
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x50]
push str.Allocate_buffer_for_image_file
push ecx
mov dword [ebp - 0x50], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x4c], 0x114
call fcn.060010c0
mov eax, dword [esi + ebx*4]
add esp, 8
test eax, eax
je 0x6003a64
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [esi + ebx*4], 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [esi + ebx*4], eax
test eax, eax
jne 0x6003aa1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x50], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x4c], 0x11f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Alloc_memory_error___error_Code_:__d__
lea eax, [ebp - 0x50]
jmp 0x6003a0e
lea ecx, [ebp - 0x30]
push str.Start_to_local_write_image_data_into_buffer...
push ecx
mov dword [ebp - 0x30], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x2c], 0x123
call fcn.060010c0
mov edx, dword [esi + ebx*4]
add esp, 8
xor edi, edi
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x18]
lea ecx, [edi + 0x2710]
cmp ecx, eax
mov dword [ebp - 0x24], ecx
jb 0x6003ae9
sub eax, edi
mov byte [ebp - 0x11], 1
mov esi, eax
jmp 0x6003aee
mov esi, 0x2710
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x5c]
push 0
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x6003b5a
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x2c], 0x139
mov dword [ebp - 0x30], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x30]
push str.Read_image_file_error___error_Code_:__d__
push ecx
call fcn.060010c0
add esp, 0xc
lea edx, [ebp - 0x30]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], 0x13a
push esi
push edi
push str._u_bytes_has_been_read__tmp_buffer_length__u
push edx
call fcn.060010c0
add esp, 0x10
jmp 0x6003a17
mov al, byte [ebp - 0x11]
test al, al
jne 0x6003b74
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
add eax, 0x2710
mov dword [ebp - 0x20], eax
jmp 0x6003acf
lea eax, [ebp - 0x9c]
push str.Complete_local_write_image_data_to_buffer_
push eax
mov dword [ebp - 0x9c], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x98], 0x149
call fcn.060010c0
mov esi, dword [ebp + 8]
add esp, 8
inc ebx
jmp 0x6003686
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8