Function at 0x6005740
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6017d50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x10], esp
test edi, edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 4], 0
jne 0x60057b6
lea eax, [ebp - 0x24]
push str.Image_file_path_is_null_
push eax
mov dword [ebx + 0x28], 0x36b7
mov dword [ebp - 0x24], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x20], 0x435
call fcn.060010c0
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x60057f1
lea ecx, [ebp - 0x24]
push str.get_image_file_size_size_arg_is_null_
push ecx
mov dword [ebp - 0x24], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x20], 0x43a
call fcn.060010c0
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x14], esi
jne 0x6005857
mov dword [ebx + 0x28], 0x36b5
mov dword [ebp - 0x24], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x20], 0x446
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea edx, [ebp - 0x24]
push str.Open_image_file__s_error__windows_error_Code_:__d__
push edx
call fcn.060010c0
add esp, 0x10
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x60058b4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x28], 0x36b6
mov dword [ebp - 0x24], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x20], 0x453
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push str.Get_image_file_size_error__s_error__windows_error_Code_:__d__
push ecx
call fcn.060010c0
add esp, 0x10
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, byte [ebx + 0x83]
test al, al
je 0x600598e
cmp dword [ebx + 0xb4], 2
jne 0x600598e
lea edx, [ebp - 0x24]
push str.Check_secured_mark...
push edx
mov dword [ebp - 0x24], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x20], 0x45b
call fcn.060010c0
add esp, 8
mov ecx, ebx
push esi
call fcn.060059c0
test al, al
je 0x600590c
mov eax, dword [ebx + 0x88]
sub edi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
jmp 0x600599a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x24], str.E:_svneboot_dll_trunk_android_download.cpp
mov dword [ebp - 0x20], 0x463
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x24]
push str.Check_secured_mark_error__windows_error_Code_:__d__
push ecx
call fcn.060010c0
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edi
mov byte [ebx + 0x84], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8