Function at 0x4e7b10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59256b
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4e7b4b
mov dword [eax], 0
cmp dword [ecx + 4], 0
jne 0x4e7b6f
push 6
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov bl, byte [ebp + 8]
test bl, bl
je 0x4e7b7c
mov byte [ebp + 0xb], 0
jmp 0x4e7b84
cmp dword [ebp + 0x1c], 0
setne byte [ebp + 0xb]
push 0x34
mov dword [ebp - 4], 0
call fcn.004f78be
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp + 0x10]
mov byte [ebp - 4], 1
test esi, esi
je 0x4e7bca
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x14]
push eax
push edi
push ecx
mov ecx, esi
call sym.360MobileLoader.exe_public:_void___thiscall_AdbIOCompletion::constructor_class_AdbEndpointObject___unsigned_long_int__void__
mov dl, byte [ebp + 0xb]
mov dword [esi], vtable.AdbLegacyIOCompletion.0
mov dword [esi + 0x2c], 0
mov byte [esi + 0x30], dl
jmp 0x4e7bcc
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
mov ecx, esi
call edx
xor ecx, ecx
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], ecx
cmp eax, ecx
je 0x4e7cc0
mov eax, dword [ebp + 0x1c]
cmp eax, ecx
jne 0x4e7c28
lea ecx, [esi + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
test bl, bl
je 0x4e7c13
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x18]
lea edx, [ebp - 0x18]
push edx
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x4e7c8b
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x18]
lea edx, [ebp - 0x18]
push edx
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4e7c8b
xor edx, edx
test bl, bl
setne dl
mov dword [ebp - 0x2c], eax
xor eax, eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0xc]
dec edx
and edx, edi
test bl, bl
setne al
mov dword [ebp - 0x28], edx
dec eax
and eax, ecx
mov dword [ebp - 0x24], eax
test bl, bl
jne 0x4e7c5a
mov edi, 4
lea ecx, [esi + 0x2c]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x18]
lea edx, [esi + 0x10]
push edx
lea edx, [ebp - 0x18]
push edx
push edi
movzx edx, bl
push ecx
neg edx
sbb edx, edx
push 0x10
lea ecx, [ebp - 0x2c]
and edx, 0xffffbffe
push ecx
add edx, 0x22803c
push edx
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4e7c99
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test edi, edi
jne 0x4e7cc0
cmp ebx, 0x3e5
je 0x4e7cc0
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
push ebx
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18