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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6017b28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
push esi
xor eax, eax
push edi
cmp ebx, eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
jne 0x6001657
lea eax, [ebp + 0x1c]
push str.Illegal_handle_received__Android_ADV_LoadBuffer_
push eax
mov dword [ebp + 0x1c], str.E:_svneboot_dll_trunkAndroid_Advanced_Function.cpp
mov dword [ebp + 0x20], 0x9e
call fcn.060010c0
add esp, 8
jmp 0x600177b
lea edi, [ebx + 0xcc]
mov ecx, 6
lea esi, [ebp + 0xc]
push str.Judge_the_type_of_image_path...
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x2c]
mov edi, str.E:_svneboot_dll_trunkAndroid_Advanced_Function.cpp
push ecx
mov dword [ebx + 0x7e0], eax
mov dword [ebx + 0x7dc], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], 0xaa
call fcn.060010c0
mov esi, dword [ebp + 0xc]
add esp, 8
push esi
call fcn.06001b30
add esp, 4
test al, al
je 0x600188c
push esi
lea edx, [ebp - 0x2c]
push str.The_image_is_remote__its_path:__s
push edx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], 0xad
call fcn.060010c0
mov eax, dword [ebx + 0xc8]
add esp, 0xc
lea ecx, [ebp - 0x14]
push eax
push ecx
push esi
call dword [ebx + 0x7e4]
test eax, eax
je 0x60016f9
lea edx, [ebp + 0x1c]
push str.Get_remote_file_length__callback__fail_
push edx
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x20], 0xb2
call fcn.060010c0
add esp, 8
jmp 0x600177b
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push eax
push str.The_size_of_the_image_is__u
push ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], 0xb6
call fcn.060010c0
mov edx, dword [ebp - 0x14]
add esp, 0xc
lea eax, [ebp - 0x2c]
mov dword [ebx + 0x7e0], edx
push str.Allocate_buffer_for_image_file
push eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], 0xba
call fcn.060010c0
mov ecx, dword [ebp - 0x14]
add esp, 8
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
mov dword [ebx + 0x7dc], edi
jne 0x6001791
mov dword [ebp + 0x1c], str.E:_svneboot_dll_trunkAndroid_Advanced_Function.cpp
mov dword [ebp + 0x20], 0xbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Alloc_memory_error___error_Code_:__d__
lea edx, [ebp + 0x1c]
push edx
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 0x1c
mov ecx, dword [ebp - 0x14]
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 - 0x28], 0xc4
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebp - 0x2c]
mov edi, str.E:_svneboot_dll_trunkAndroid_Advanced_Function.cpp
push eax
mov dword [ebp - 0x2c], edi
call fcn.060010c0
mov ecx, dword [ebp + 0x14]
add esp, 8
lea edx, [ebp + 0x14]
push ecx
push edx
call fcn.0600a620
add esp, 8
mov eax, dword [eax + 4]
mov byte [ebp - 4], 1
test eax, eax
jne 0x60017e4
mov eax, 0x6019168
push 0
push 0
push eax
mov eax, dword [ebx + 0xc8]
push eax
call dword [ebx + 0x7ec]
push 1
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 0
call fcn.06002d90
lea ecx, [ebp + 0x1c]
push str.Start_to_remote_write_image_data_into_buffer...
push ecx
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x20], 0xc9
call fcn.060010c0
mov edx, dword [ebx + 0xc8]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x7dc]
add esp, 8
push edx
push eax
push ecx
push esi
call dword [ebx + 0x7e8]
test eax, eax
je 0x600185c
lea edx, [ebp + 0x1c]
push str.Read_remote_file__callback__fail_
push edx
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x20], 0xcd
call fcn.060010c0
add esp, 8
jmp 0x600177b
lea eax, [ebp + 0x1c]
push str.Complete_remote_write_image_data_into_buffer_
push eax
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x20], 0xd1
call fcn.060010c0
add esp, 8
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 0x1c
push esi
lea ecx, [ebp + 0x1c]
push str.The_image_is_local__its_path:__s
push ecx
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x20], 0xd5
call fcn.060010c0
add esp, 0xc
lea edx, [ebp + 0x1c]
mov dword [ebp + 0x1c], edi
mov dword [ebp + 0x20], 0xd7
push str.Open_image_file_from_local.
push edx
call fcn.060010c0
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0x20], edi
jne 0x6001909
mov dword [ebp + 0x1c], str.E:_svneboot_dll_trunkAndroid_Advanced_Function.cpp
mov dword [ebp + 0x20], 0xdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp + 0x1c]
push str.Open_image_file_error___error_Code_:__d__
push eax
jmp 0x6001773
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x6001944
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x1c], str.E:_svneboot_dll_trunkAndroid_Advanced_Function.cpp
mov dword [ebp + 0x20], 0xe8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 0x1c]
push str.Get_image_file_size_error__windows_error_Code_:__d__
push ecx
jmp 0x6001773
push eax
lea edx, [ebp + 0x1c]
mov esi, str.E:_svneboot_dll_trunkAndroid_Advanced_Function.cpp
push str.The_size_of_the_image_is__u
push edx
mov dword [ebx + 0x7e0], eax
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x20], 0xec
call fcn.060010c0
add esp, 0xc
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x20], 0xef
push str.Allocate_buffer_for_image_file.
push eax
call fcn.060010c0
mov ecx, dword [ebp - 0x14]
add esp, 8
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebx + 0x7dc], eax
test eax, eax
jne 0x60019c2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x20], 0xf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Alloc_memory_error___error_Code_:__d__
lea edx, [ebp + 0x1c]
jmp 0x6001772
lea eax, [ebp + 0x1c]
push str.Start_to_local_write_image_data_into_buffer...
push eax
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x20], 0xf8
call fcn.060010c0
mov ecx, dword [ebx + 0x7dc]
add esp, 8
xor esi, esi
mov byte [ebp + 0xb], 0
mov dword [ebp - 0x1c], esi
mov dword [ebp + 0x20], ecx
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 0x2710]
cmp ecx, eax
mov dword [ebp - 0x28], ecx
jb 0x6001a09
sub eax, esi
mov byte [ebp + 0xb], 1
mov edi, eax
jmp 0x6001a0e
mov edi, 0x2710
mov eax, dword [ebp + 0x20]
mov ebx, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
push 0
push edx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x6001a9c
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, str.E:_svneboot_dll_trunkAndroid_Advanced_Function.cpp
mov dword [ebp + 0x20], 0x10e
mov dword [ebp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 0x1c]
push str.Read_image_file_error___error_Code_:__d__
push ecx
call fcn.060010c0
add esp, 0xc
lea edx, [ebp + 0x1c]
mov dword [ebp + 0x1c], ebx
mov dword [ebp + 0x20], 0x10f
push edi
push esi
push str._u_bytes_has_been_read__tmp_buffer_length__u
push edx
call fcn.060010c0
mov esi, dword [ebp - 0x18]
add esp, 0x10
mov eax, dword [esi + 0x7dc]
test eax, eax
je 0x600177b
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [esi + 0x7dc], 0
jmp 0x600177b
mov al, byte [ebp + 0xb]
test al, al
jne 0x6001ab6
mov eax, dword [ebp + 0x20]
mov esi, dword [ebp - 0x28]
add eax, 0x2710
mov dword [ebp + 0x20], eax
jmp 0x60019ef
lea eax, [ebp + 0x1c]
push str.Complete_local_write_image_data_to_buffer_
push eax
mov dword [ebp + 0x1c], str.E:_svneboot_dll_trunkAndroid_Advanced_Function.cpp
mov dword [ebp + 0x20], 0x125
call fcn.060010c0
mov ecx, dword [ebp - 0xc]
add esp, 8
xor eax, eax
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c