Function at 0x10092120
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 8], ebx
lea eax, [ebx + 0x3830]
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x3828]
mov dword [ebp - 0xc], eax
mov esi, dword [eax]
cmp esi, eax
je 0x1009225c
mov eax, dword [ebp + 8]
mov cl, byte [eax]
mov byte [ebp - 1], cl
jmp 0x10092163
mov eax, dword [ebp + 8]
lea edx, [esi + 0x30]
test cl, cl
jne 0x1009216e
xor edi, edi
jmp 0x1009217c
mov edi, eax
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x10092173
sub edi, ecx
cmp dword [edx + 0x14], 0x10
mov ebx, dword [edx + 0x10]
mov dword [ebp - 0x14], ebx
jb 0x1009218a
mov edx, dword [edx]
cmp ebx, edi
mov ecx, edi
cmovb ecx, ebx
test ecx, ecx
je 0x100921f3
mov ebx, dword [ebp + 8]
sub ecx, 4
jb 0x100921b1
lea ecx, [ecx]
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x100921b6
add edx, 4
add ebx, 4
sub ecx, 4
jae 0x100921a0
cmp ecx, 0xfffffffc
je 0x100921ea
mov al, byte [edx]
cmp al, byte [ebx]
jne 0x100921e3
cmp ecx, 0xfffffffd
je 0x100921ea
mov al, byte [edx + 1]
cmp al, byte [ebx + 1]
jne 0x100921e3
cmp ecx, 0xfffffffe
je 0x100921ea
mov al, byte [edx + 2]
cmp al, byte [ebx + 2]
jne 0x100921e3
cmp ecx, 0xffffffff
je 0x100921ea
mov al, byte [edx + 3]
cmp al, byte [ebx + 3]
je 0x100921ea
sbb eax, eax
or eax, 1
jmp 0x100921ec
xor eax, eax
test eax, eax
jne 0x10092202
mov ebx, dword [ebp - 0x14]
cmp ebx, edi
jb 0x10092202
xor eax, eax
cmp ebx, edi
setne al
test eax, eax
je 0x10092257
cmp byte [esi + 0xd], 0
jne 0x10092247
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x1009222c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x10092247
jmp 0x10092220
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10092220
jmp 0x10092247
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10092245
cmp esi, dword [eax + 8]
jne 0x10092245
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10092235
mov esi, eax
mov eax, dword [ebp - 0xc]
mov cl, byte [ebp - 1]
cmp esi, eax
jne 0x10092160
jmp 0x1009225a
mov eax, dword [ebp - 0xc]
cmp esi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
je 0x1009230a
mov edi, dword [esi + 0x2c]
lea eax, [ebp + 8]
push 0
push eax
push 0x500000
lea eax, [edi + 0x810]
mov dword [ebp + 8], 0
push eax
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100922b4
add esi, 0x10
cmp dword [esi + 0x14], 8
jb 0x1009229c
mov esi, dword [esi]
push esi
push str.sendFileToAndroid_read__s_file_failed
push 0x8b1
push str.vbox::VBoxService::onRequestMoreFileData
call fcn.10095c20
add esp, 0x10
mov ecx, dword [ebp - 8]
mov dword [edi], 0xb
mov dword [edi + 4], 7
mov eax, dword [ebp + 8]
add eax, 0x810
cmp dword [ecx + 4], 0xffffffff
mov dword [ebp - 0x14], eax
je 0x1009230a
lea esi, [ecx + 0x14]
mov dword [ebp - 0xc], eax
push esi
mov dword [ebp - 0x10], 0x19810202
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x10]
push 8
push eax
call fcn.100040b0
test al, al
je 0x10092307
push dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
push edi
call fcn.100040b0
push esi
call ebx
push dword [ebp - 0x18]
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4