Function at 0x414c00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
cmp edi, 1
je 0x414cc0
cmp edi, 2
je 0x414cb4
mov ebx, 0x80000000
test edi, edi
jne 0x414c91
mov eax, 0x42c280
call dbg._fh_alloc
mov edi, eax
test eax, eax
je 0x414fc9
push ecx
push 0
push 0
push 3
push 0
push 3
push ebx
push esi
call sub.KERNEL32.dll_CreateFileA
mov dword [edi + 0xc], eax
inc eax
pop edx
je 0x414dd0
sub esp, 0xc
mov eax, edi
push esi
call dbg._fh_to_int
push eax
lea eax, [edi + 0x18]
push str._d__s_
push 0x20
push eax
call sym.___mingw_snprintf
add esp, 0x20
cmp byte [0x443b68], 0
js 0x414cd0
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
jmp dbg._fh_to_int
cmp byte [0x443b68], 0
js 0x414d56
call sym.__errno
mov dword [eax], 0x16
lea esp, [ebp - 0xc]
or eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, 0xc0000000
jmp 0x414c2a
mov ebx, 0x40000000
jmp 0x414c2a
call sym.__errno
sub esp, 0xc
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0x443b48
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add esp, 0xc
add ebx, 0x40
push global___FUNCTION__.28
push str.system_core_adb_sysdeps_win32.c
push str._s::_s__:
push ebx
call dbg.fprintf
call sym.__errno
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, edi
call dbg._fh_to_int
push eax
push esi
push str.adb_open:__s___fd__d_n
push ebx
call dbg.fprintf
add esp, 0x14
push ebx
call sym._fflush
mov dword [esp], 0x443b48
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sym.__errno
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
jmp dbg._fh_to_int
call sym.__errno
sub esp, 0xc
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
push 0x443b48
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add esp, 0xc
add ebx, 0x40
push global___FUNCTION__.28
push str.system_core_adb_sysdeps_win32.c
push str._s::_s__:
push ebx
call dbg.fprintf
call sym.__errno
add esp, 0xc
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
push edi
push str.adb_open:_invalid_options__0x_0x__n
push ebx
call dbg.fprintf
mov dword [esp], ebx
call sym._fflush
mov dword [esp], 0x443b48
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sym.__errno
mov edx, dword [ebp - 0x14]
mov dword [eax], edx
jmp 0x414c9e
mov eax, edi
call dbg._fh_close
cmp byte [0x443b68], 0
js 0x414eef
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
je 0x414e9a
cmp eax, 3
je 0x414e7d
cmp byte [0x443b68], 0
js 0x414e14
call sym.__errno
mov dword [eax], 2
jmp 0x414ca9
call sym.__errno
sub esp, 0xc
mov edi, dword [eax]
push 0x443b48
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add esp, 0xc
add ebx, 0x40
push global___FUNCTION__.28
push str.system_core_adb_sysdeps_win32.c
push str._s::_s__:
push ebx
call dbg.fprintf
call sym.__errno
mov dword [eax], edi
pop esi
pop eax
push str.unknown_error_n
push ebx
call dbg.fprintf
mov dword [esp], ebx
call sym._fflush
mov dword [esp], 0x443b48
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sym.__errno
mov dword [eax], edi
jmp 0x414e04
cmp byte [0x443b68], 0
js 0x414f5d
call sym.__errno
mov dword [eax], 0x14
jmp 0x414ca9
cmp byte [0x443b68], 0
jns 0x414e04
call sym.__errno
sub esp, 0xc
mov edi, dword [eax]
push 0x443b48
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add esp, 0xc
add ebx, 0x40
push global___FUNCTION__.28
push str.system_core_adb_sysdeps_win32.c
push str._s::_s__:
push ebx
call dbg.fprintf
call sym.__errno
mov dword [eax], edi
pop ecx
pop esi
push str.file_not_found_n
jmp 0x414e57
call sym.__errno
sub esp, 0xc
mov edi, dword [eax]
push 0x443b48
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add esp, 0xc
add ebx, 0x40
push global___FUNCTION__.28
push str.system_core_adb_sysdeps_win32.c
push str._s::_s__:
push ebx
call dbg.fprintf
call sym.__errno
add esp, 0xc
mov dword [eax], edi
push esi
push str.adb_open:_could_not_open__s:
push ebx
call dbg.fprintf
mov dword [esp], ebx
call sym._fflush
mov dword [esp], 0x443b48
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sym.__errno
mov dword [eax], edi
jmp 0x414de4
call sym.__errno
sub esp, 0xc
mov edi, dword [eax]
push 0x443b48
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add esp, 0xc
add ebx, 0x40
push global___FUNCTION__.28
push str.system_core_adb_sysdeps_win32.c
push str._s::_s__:
push ebx
call dbg.fprintf
call sym.__errno
mov dword [eax], edi
pop eax
pop edx
push str.path_not_found_n
push ebx
call dbg.fprintf
mov dword [esp], ebx
call sym._fflush
mov dword [esp], 0x443b48
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sym.__errno
mov dword [eax], edi
jmp 0x414e8a
call sym.__errno
mov dword [eax], 0xc
jmp 0x414ca9