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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b5416
mov eax, dword fs:[0]
push eax
sub esp, 0xc6c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xc54], esi
mov ebx, dword [ebp + 8]
push 0x500810
mov dword [ebp - 0xc58], ebx
mov byte [ebp - 0xc49], 1
mov dword [ebp - 0xc68], 0xffffffff
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov edi, eax
lea eax, [ebp - 0x810]
mov dword [ebp - 0xc50], edi
push 0x800
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc10]
push 0x400
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc10]
push 0
push 0
push 0x400
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0xc10]
push 0x2e
push eax
call dword [sym.imp.MSVCR120.dll_strrchr]
test eax, eax
mov edx, 0x100b9f68
cmovne edx, eax
mov eax, dword [0x100ece30]
mov ecx, eax
inc eax
push edx
push ecx
mov dword [0x100ece30], eax
lea eax, [ebp - 0x810]
push str._data_local_file_cache__d_s
push eax
call dword [sym.imp.MSVCR120.dll_sprintf]
add esp, 0x18
lea eax, [esi + 0x3830]
mov dword [ebp - 0xc74], eax
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x3828]
mov dword [ebp - 0xc5c], eax
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x10091cf5
lea ebx, [ebx]
cmp dword [esi + 0x24], 8
jb 0x10091bbb
mov eax, dword [esi + 0x10]
jmp 0x10091bbe
lea eax, [esi + 0x10]
push ebx
push eax
call dword [sym.imp.MSVCR120.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x10091d4b
cmp byte [ebp - 0x810], 0
lea ecx, [esi + 0x30]
jne 0x10091be1
xor edx, edx
jmp 0x10091bf9
lea edx, [ebp - 0x810]
lea edi, [edx + 1]
lea ebx, [ebx]
mov al, byte [edx]
inc edx
test al, al
jne 0x10091bf0
sub edx, edi
cmp dword [ecx + 0x14], 0x10
mov ebx, dword [ecx + 0x10]
mov dword [ebp - 0xc60], ebx
jb 0x10091c0a
mov ecx, dword [ecx]
cmp ebx, edx
mov edi, edx
cmovb edi, ebx
test edi, edi
je 0x10091c76
lea ebx, [ebp - 0x810]
sub edi, 4
jb 0x10091c31
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x10091c36
add ecx, 4
add ebx, 4
sub edi, 4
jae 0x10091c20
cmp edi, 0xfffffffc
je 0x10091c6a
mov al, byte [ecx]
cmp al, byte [ebx]
jne 0x10091c63
cmp edi, 0xfffffffd
je 0x10091c6a
mov al, byte [ecx + 1]
cmp al, byte [ebx + 1]
jne 0x10091c63
cmp edi, 0xfffffffe
je 0x10091c6a
mov al, byte [ecx + 2]
cmp al, byte [ebx + 2]
jne 0x10091c63
cmp edi, 0xffffffff
je 0x10091c6a
mov al, byte [ecx + 3]
cmp al, byte [ebx + 3]
je 0x10091c6a
sbb eax, eax
or eax, 1
jmp 0x10091c6c
xor eax, eax
test eax, eax
jne 0x10091c88
mov ebx, dword [ebp - 0xc60]
cmp ebx, edx
jae 0x10091c7f
or eax, 0xffffffff
jmp 0x10091c86
xor eax, eax
cmp ebx, edx
setne al
test eax, eax
sete al
test al, al
jne 0x10091d45
cmp byte [esi + 0xd], al
jne 0x10091cd7
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x10091cbc
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x10091cd7
jmp 0x10091cb0
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10091cb0
jmp 0x10091cd7
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10091cd5
cmp esi, dword [eax + 8]
jne 0x10091cd5
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10091cc5
mov esi, eax
mov eax, dword [ebp - 0xc54]
mov ebx, dword [ebp - 0xc58]
cmp esi, dword [eax + 0x3828]
jne 0x10091bb0
mov edi, dword [ebp - 0xc50]
push 0
push 0x8000080
push 3
push 0
push 1
push Ordinal_4
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xc68], esi
cmp esi, 0xffffffff
jne 0x10091d72
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.sendFileToAndroid_open__s_file_failed._error__d
push 0x862
push str.vbox::VBoxService::sendFileToAndroid
call fcn.10095c20
mov edi, dword [ebp - 0xc50]
add esp, 0x14
jmp 0x100920ac
mov ebx, dword [ebp - 0xc58]
push ebx
push str.sendFileToAndroid__s_failed__task_already_exist_
push 0x858
push str.vbox::VBoxService::sendFileToAndroid
call fcn.10095c20
mov edi, dword [ebp - 0xc50]
mov byte [ebp - 0xc49], 0
jmp 0x100920a9
push 0
lea eax, [ebp - 0xc70]
mov dword [ebp - 0xc70], 0
push eax
push 0x500000
lea eax, [edi + 0x810]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10091db3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.sendFileToAndroid_read__s_file_failed_error:_d
push 0x86b
jmp 0x10091d2d
lea eax, [ebp - 0xc6c]
mov dword [ebp - 0xc6c], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 8], eax
lea ecx, [ebp - 0x810]
add dword [edi + 8], 0
mov edx, ecx
mov eax, dword [ebp - 0xc6c]
mov dword [edi + 0xc], 0
adc dword [edi + 0xc], eax
mov eax, edi
sub eax, edx
lea edx, [eax + 0x10]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10091df1
mov esi, dword [ebp - 0xc54]
mov ecx, esi
push 0xb
mov dword [edi], 0xb
mov dword [edi + 4], 7
call fcn.1008c6b0
test al, al
jne 0x10091e3e
push ebx
push str.sendFileToAndroid__s_failed__LdInitService_disconnect_
push 0x87b
push str.vbox::VBoxService::sendFileToAndroid
call fcn.10095c20
mov edi, dword [ebp - 0xc50]
jmp 0x100920a9
mov edi, dword [ebp - 0xc70]
add edi, 0x810
cmp dword [esi + 4], 0xffffffff
je 0x1009208e
add esi, 0x14
mov dword [ebp - 0xc60], edi
push esi
xor bl, bl
mov dword [ebp - 0xc64], 0x19810202
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0xc54]
lea eax, [ebp - 0xc64]
push 8
push eax
call fcn.100040b0
test al, al
je 0x10091eaa
mov ecx, dword [ebp - 0xc54]
push edi
mov edi, dword [ebp - 0xc50]
push edi
call fcn.100040b0
test al, al
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
jmp 0x10091eb0
mov edi, dword [ebp - 0xc50]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x10092086
mov dword [ebp - 0xc2c], 0xf
mov dword [ebp - 0xc30], 0
mov byte [ebp - 0xc40], 0
mov eax, dword [ebp - 0xc68]
mov dword [ebp - 4], 0
cmp byte [ebp - 0x810], 0
mov dword [ebp - 0xc48], eax
mov dword [ebp - 0xc44], edi
jne 0x10091f00
xor ecx, ecx
jmp 0x10091f19
lea ecx, [ebp - 0x810]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10091f10
sub ecx, edx
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0xc40]
call fcn.10003740
mov ebx, dword [ebp - 0xc58]
xor eax, eax
mov dword [ebp - 0xc14], 7
mov dword [ebp - 0xc18], 0
mov word [ebp - 0xc28], ax
cmp word [ebx], ax
jne 0x10091f58
xor ecx, ecx
jmp 0x10091f6f
mov ecx, ebx
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10091f60
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0xc28]
call fcn.10005210
mov ecx, dword [ebp - 0xc5c]
lea eax, [ebp - 0xc28]
push eax
mov byte [ebp - 4], 1
call fcn.10015020
mov esi, eax
mov eax, dword [ebp - 0xc5c]
cmp esi, dword [eax]
je 0x10091fca
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
mov ecx, dword [eax + 0x10]
jb 0x10091fac
mov eax, dword [eax]
push ecx
push eax
push dword [ebp - 0xc18]
push ecx
lea ecx, [ebp - 0xc28]
call fcn.10005b00
test eax, eax
jns 0x10092004
mov eax, dword [ebp - 0xc5c]
lea ecx, [ebp - 0xc28]
push ecx
mov dword [ebp - 0xc60], ecx
lea ecx, [ebp - 0xc60]
push ecx
push ecx
mov ecx, eax
call fcn.100932d0
mov ecx, dword [ebp - 0xc5c]
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0xc60]
push eax
call fcn.10093310
mov esi, dword [ebp - 0xc60]
mov eax, dword [ebp - 0xc48]
lea ecx, [esi + 0x30]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0xc44]
mov dword [esi + 0x2c], eax
lea eax, [ebp - 0xc40]
cmp ecx, eax
je 0x1009202d
push 0xffffffffffffffff
push 0
push eax
call fcn.10003660
cmp dword [ebp - 0xc14], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x10092047
push dword [ebp - 0xc28]
call esi
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xc2c], 0x10
mov byte [ebp - 0xc49], 0
jb 0x10092069
push dword [ebp - 0xc40]
call esi
add esp, 4
mov dword [ebp - 0xc2c], 0xf
mov dword [ebp - 0xc30], 0
mov byte [ebp - 0xc40], 0
jmp 0x100920ac
mov ebx, dword [ebp - 0xc58]
jmp 0x10092094
mov edi, dword [ebp - 0xc50]
push ebx
push str.sendFileToAndroid__s_failed__write_win32_pipe_failed_
push 0x882
push str.vbox::VBoxService::sendFileToAndroid
call fcn.10095c20
add esp, 0x10
push dword [ebp - 0xc74]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0xc49], 0
je 0x100920f9
push dword [ebp - 0xc68]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x100920db
push edi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov eax, dword [ebp - 0xc54]
lea edx, [ebp - 0x810]
push edx
push ebx
push 0
mov ecx, dword [eax + 0xec]
mov eax, dword [ecx]
call dword [eax + 0xa8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100ab974
mov esp, ebp
pop ebp
ret 8