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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b717c
mov eax, dword fs:[0]
push eax
sub esp, 0xc84
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 - 0xc74], esi
mov ebx, dword [ebp + 8]
push 0x500810
mov dword [ebp - 0xc68], ebx
mov byte [ebp - 0xc61], 1
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov edi, eax
lea eax, [ebp - 0x810]
mov dword [ebp - 0xc6c], 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, 0x100bafb8
cmovne edx, eax
mov eax, dword [0x100f10c0]
mov ecx, eax
inc eax
push edx
push ecx
mov dword [0x100f10c0], 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
mov dword [ebp - 0xc14], 0xf
cmp byte [ebp - 0x810], 0
mov dword [ebp - 0xc18], 0
mov byte [ebp - 0xc28], 0
jne 0x1009451d
xor ecx, ecx
jmp 0x1009452f
lea ecx, [ebp - 0x810]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10094526
sub ecx, edx
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0xc28]
call fcn.10003fc0
lea eax, [ebp - 0xc28]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0xc40]
push eax
call fcn.1009dfe0
add esp, 8
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 8
jb 0x1009456b
mov eax, dword [eax]
push eax
push str.dest_file__s
push 0x851
push str.vbox::VBoxService::sendFileToAndroid
call fcn.100989a0
mov eax, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 0x10
cmp dword [ebp - 0xc2c], 8
jb 0x100945a1
push dword [ebp - 0xc40]
call eax
mov eax, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xc14], 0x10
mov dword [ebp - 0xc2c], 7
mov dword [ebp - 0xc30], 0
mov word [ebp - 0xc40], cx
jb 0x100945d9
push dword [ebp - 0xc28]
call eax
add esp, 4
lea eax, [esi + 0x3830]
push eax
mov dword [ebp - 0xc84], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x3828]
mov dword [ebp - 0xc78], eax
mov eax, dword [eax]
mov esi, dword [eax]
cmp esi, eax
je 0x10094745
cmp dword [esi + 0x24], 8
jb 0x1009460f
mov eax, dword [esi + 0x10]
jmp 0x10094612
lea eax, [esi + 0x10]
push ebx
push eax
call dword [sym.imp.MSVCR120.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x100947b2
cmp byte [ebp - 0x810], 0
lea edx, [esi + 0x30]
jne 0x10094635
xor ebx, ebx
jmp 0x10094649
lea ebx, [ebp - 0x810]
lea ecx, [ebx + 1]
mov edi, edi
mov al, byte [ebx]
inc ebx
test al, al
jne 0x10094640
sub ebx, ecx
cmp dword [edx + 0x14], 0x10
mov edi, dword [edx + 0x10]
mov dword [ebp - 0xc70], edi
jb 0x1009465a
mov edx, dword [edx]
cmp edi, ebx
mov ecx, ebx
cmovb ecx, edi
test ecx, ecx
je 0x100946c6
lea edi, [ebp - 0x810]
sub ecx, 4
jb 0x10094681
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x10094686
add edx, 4
add edi, 4
sub ecx, 4
jae 0x10094670
cmp ecx, 0xfffffffc
je 0x100946ba
mov al, byte [edx]
cmp al, byte [edi]
jne 0x100946b3
cmp ecx, 0xfffffffd
je 0x100946ba
mov al, byte [edx + 1]
cmp al, byte [edi + 1]
jne 0x100946b3
cmp ecx, 0xfffffffe
je 0x100946ba
mov al, byte [edx + 2]
cmp al, byte [edi + 2]
jne 0x100946b3
cmp ecx, 0xffffffff
je 0x100946ba
mov al, byte [edx + 3]
cmp al, byte [edi + 3]
je 0x100946ba
sbb eax, eax
or eax, 1
jmp 0x100946bc
xor eax, eax
test eax, eax
jne 0x100946d8
mov edi, dword [ebp - 0xc70]
cmp edi, ebx
jae 0x100946cf
or eax, 0xffffffff
jmp 0x100946d6
xor eax, eax
cmp edi, ebx
setne al
test eax, eax
sete al
test al, al
jne 0x100947ac
cmp byte [esi + 0xd], al
jne 0x10094727
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x1009470c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x10094727
jmp 0x10094700
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10094700
jmp 0x10094727
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10094725
cmp esi, dword [eax + 8]
jne 0x10094725
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10094715
mov esi, eax
mov eax, dword [ebp - 0xc74]
mov ebx, dword [ebp - 0xc68]
cmp esi, dword [eax + 0x3828]
jne 0x10094604
mov edi, dword [ebp - 0xc6c]
push str.open_file
push 0x869
push str.vbox::VBoxService::sendFileToAndroid
call fcn.100989a0
add esp, 0xc
push 0
push 0x8000080
push 3
push 0
push 1
push Ordinal_2
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0xc70], esi
cmp esi, 0xffffffff
jne 0x100947df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.sendFileToAndroid_open__s_file_failed._error__d
push 0x86f
push str.vbox::VBoxService::sendFileToAndroid
call fcn.100989a0
mov edi, dword [ebp - 0xc6c]
add esp, 0x14
jmp 0x10094b52
mov ebx, dword [ebp - 0xc68]
push ebx
push str.sendFileToAndroid__s_failed__task_already_exist_
push 0x864
push str.vbox::VBoxService::sendFileToAndroid
call fcn.100989a0
mov edi, dword [ebp - 0xc6c]
add esp, 0x10
mov byte [ebp - 0xc61], 0
or esi, 0xffffffff
jmp 0x10094b52
push 0
lea eax, [ebp - 0xc7c]
mov dword [ebp - 0xc7c], 0
push eax
push 0x500000
lea eax, [edi + 0x810]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10094820
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.sendFileToAndroid_read__s_file_failed_error:_d
push 0x878
jmp 0x10094794
push dword [ebp - 0xc7c]
push str.open_file_size:_d
push 0x87b
push str.vbox::VBoxService::sendFileToAndroid
call fcn.100989a0
add esp, 0x10
mov dword [ebp - 0xc80], 0
lea eax, [ebp - 0xc80]
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 - 0xc80]
mov dword [edi + 0xc], 0
adc dword [edi + 0xc], eax
mov eax, edi
sub eax, edx
lea edx, [eax + 0x10]
jmp 0x10094880
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x10094880
mov esi, dword [ebp - 0xc74]
mov ecx, esi
push 0xb
mov dword [edi], 0xb
mov dword [edi + 4], 7
call fcn.1008ec10
test al, al
jne 0x100948cd
push ebx
push str.sendFileToAndroid__s_failed__LdInitService_disconnect_
push 0x889
push str.vbox::VBoxService::sendFileToAndroid
call fcn.100989a0
mov edi, dword [ebp - 0xc6c]
jmp 0x10094b49
mov edi, dword [ebp - 0xc7c]
add edi, 0x810
cmp dword [esi + 4], 0xffffffff
je 0x10094b2e
add esi, 0x14
mov dword [ebp - 0xc88], edi
push esi
xor bl, bl
mov dword [ebp - 0xc8c], 0x19810202
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 0xc74]
lea eax, [ebp - 0xc8c]
push 8
push eax
call fcn.100049e0
test al, al
je 0x10094939
mov ecx, dword [ebp - 0xc74]
push edi
mov edi, dword [ebp - 0xc6c]
push edi
call fcn.100049e0
test al, al
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
jmp 0x1009493f
mov edi, dword [ebp - 0xc6c]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x10094b26
mov dword [ebp - 0xc44], 0xf
mov dword [ebp - 0xc48], 0
mov byte [ebp - 0xc58], 0
mov eax, dword [ebp - 0xc70]
mov dword [ebp - 4], 2
cmp byte [ebp - 0x810], 0
mov dword [ebp - 0xc60], eax
mov dword [ebp - 0xc5c], edi
jne 0x1009498f
xor ecx, ecx
jmp 0x100949a1
lea ecx, [ebp - 0x810]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10094998
sub ecx, edx
push ecx
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0xc58]
call fcn.10003fc0
mov ebx, dword [ebp - 0xc68]
xor eax, eax
mov dword [ebp - 0xc14], 7
mov dword [ebp - 0xc18], 0
mov word [ebp - 0xc28], ax
cmp word [ebx], ax
jne 0x100949e0
xor ecx, ecx
jmp 0x100949f4
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100949e5
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0xc28]
call fcn.10005c80
mov ecx, dword [ebp - 0xc78]
lea eax, [ebp - 0xc28]
push eax
mov byte [ebp - 4], 3
call fcn.100159b0
mov esi, eax
mov eax, dword [ebp - 0xc78]
cmp esi, dword [eax]
je 0x10094a4f
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
mov ecx, dword [eax + 0x10]
jb 0x10094a31
mov eax, dword [eax]
push ecx
push eax
push dword [ebp - 0xc18]
push ecx
lea ecx, [ebp - 0xc28]
call fcn.10006570
test eax, eax
jns 0x10094a89
mov eax, dword [ebp - 0xc78]
lea ecx, [ebp - 0xc28]
push ecx
mov dword [ebp - 0xc68], ecx
lea ecx, [ebp - 0xc68]
push ecx
push ecx
mov ecx, eax
call fcn.10095d40
mov ecx, dword [ebp - 0xc78]
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0xc68]
push eax
call fcn.10095d80
mov esi, dword [ebp - 0xc68]
mov eax, dword [ebp - 0xc60]
lea ecx, [esi + 0x30]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0xc5c]
mov dword [esi + 0x2c], eax
lea eax, [ebp - 0xc58]
cmp ecx, eax
je 0x10094ab2
push 0xffffffffffffffff
push 0
push eax
call fcn.10003ea0
mov byte [ebp - 4], 2
cmp dword [ebp - 0xc14], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x10094ad0
push dword [ebp - 0xc28]
call esi
add esp, 4
push str.file_add_to_task
push 0x89a
push str.vbox::VBoxService::sendFileToAndroid
call fcn.100989a0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0xc44], 0x10
mov byte [ebp - 0xc61], 0
jb 0x10094b09
push dword [ebp - 0xc58]
call esi
add esp, 4
mov dword [ebp - 0xc44], 0xf
mov dword [ebp - 0xc48], 0
mov byte [ebp - 0xc58], 0
jmp 0x10094b4c
mov ebx, dword [ebp - 0xc68]
jmp 0x10094b34
mov edi, dword [ebp - 0xc6c]
push ebx
push str.sendFileToAndroid__s_failed__write_win32_pipe_failed_
push 0x890
push str.vbox::VBoxService::sendFileToAndroid
call fcn.100989a0
add esp, 0x10
mov esi, dword [ebp - 0xc70]
push dword [ebp - 0xc84]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [ebp - 0xc61], 0
je 0x10094b9a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10094b7c
push edi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
mov eax, dword [ebp - 0xc74]
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.100ad688
mov esp, ebp
pop ebp
ret 8