Function at 0x413e90
Capabilities:
Check if file exists

Disassembly:
push ebp
mov eax, 0x425e84
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov esi, dword [ebp + 8]
call fcn.00411450
mov edi, eax
test eax, eax
je 0x41418d
push ebx
push 0
push pe_nt_image_headers32
push 2
push 0
push 3
push 0x40000000
push esi
call sub.KERNEL32.dll_CreateFileA
mov dword [edi + 0xc], eax
inc eax
pop ecx
je 0x413f96
sub esp, 0xc
mov eax, edi
push esi
call fcn.004105a0
push eax
lea eax, [edi + 0x18]
push str._d__s_
push 0x20
push eax
call fcn.00419140
add esp, 0x20
cmp byte [0x43cb58], 0
js 0x413f10
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004105a0
call sub.msvcrt__errno
sub esp, 0xc
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0x43cb38
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt__iob]
add esp, 0xc
add ebx, 0x40
push str.adb_creat
push str.system_core_adb_sysdeps_win32.c
push str._s::_s__:
push ebx
call fcn.00410a20
call sub.msvcrt__errno
mov edx, dword [ebp - 0x10]
mov dword [eax], edx
mov eax, edi
call fcn.004105a0
push eax
push esi
push str.adb_creat:__s___fd__d_n
push ebx
call fcn.00410a20
add esp, 0x14
push ebx
call sub.msvcrt_fflush
mov dword [esp], 0x43cb38
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sub.msvcrt__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 fcn.004105a0
mov eax, edi
call fcn.004105f0
cmp byte [0x43cb58], 0
js 0x41406b
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
je 0x413ff6
cmp eax, 3
je 0x413fdc
cmp byte [0x43cb58], 0
js 0x414145
call sub.msvcrt__errno
mov dword [eax], 2
lea esp, [ebp - 0xc]
or eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
cmp byte [0x43cb58], 0
js 0x4140d9
call sub.msvcrt__errno
mov dword [eax], 0x14
jmp 0x413fd1
cmp byte [0x43cb58], 0
jns 0x413fc6
call sub.msvcrt__errno
sub esp, 0xc
mov edi, dword [eax]
push 0x43cb38
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt__iob]
add esp, 0xc
add ebx, 0x40
push str.adb_creat
push str.system_core_adb_sysdeps_win32.c
push str._s::_s__:
push ebx
call fcn.00410a20
call sub.msvcrt__errno
mov dword [eax], edi
pop eax
pop edx
push str.file_not_found_n
push ebx
call fcn.00410a20
mov dword [esp], ebx
call sub.msvcrt_fflush
mov dword [esp], 0x43cb38
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sub.msvcrt__errno
mov dword [eax], edi
jmp 0x413fc6
call sub.msvcrt__errno
sub esp, 0xc
mov edi, dword [eax]
push 0x43cb38
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt__iob]
add esp, 0xc
add ebx, 0x40
push str.adb_creat
push str.system_core_adb_sysdeps_win32.c
push str._s::_s__:
push ebx
call fcn.00410a20
call sub.msvcrt__errno
add esp, 0xc
mov dword [eax], edi
push esi
push str.adb_creat:_could_not_open__s:
push ebx
call fcn.00410a20
mov dword [esp], ebx
call sub.msvcrt_fflush
mov dword [esp], 0x43cb38
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sub.msvcrt__errno
mov dword [eax], edi
jmp 0x413faa
call sub.msvcrt__errno
sub esp, 0xc
mov edi, dword [eax]
push 0x43cb38
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt__iob]
add esp, 0xc
add ebx, 0x40
push str.adb_creat
push str.system_core_adb_sysdeps_win32.c
push str._s::_s__:
push ebx
call fcn.00410a20
call sub.msvcrt__errno
mov dword [eax], edi
pop ecx
pop esi
push str.path_not_found_n
push ebx
call fcn.00410a20
mov dword [esp], ebx
call sub.msvcrt_fflush
mov dword [esp], 0x43cb38
call sub.KERNEL32.dll_LeaveCriticalSection
add esp, 0xc
call sub.msvcrt__errno
mov dword [eax], edi
jmp 0x413fe9
call sub.msvcrt__errno
sub esp, 0xc
mov edi, dword [eax]
push 0x43cb38
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [sym.imp.msvcrt__iob]
add esp, 0xc
add ebx, 0x40
push str.adb_creat
push str.system_core_adb_sysdeps_win32.c
push str._s::_s__:
push ebx
call fcn.00410a20
call sub.msvcrt__errno
mov dword [eax], edi
pop eax
pop edx
push str.unknown_error_n
jmp 0x414042
call sub.msvcrt__errno
mov dword [eax], 0xc
jmp 0x413fd1