Function at 0xf10e30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
lea edi, [eax + 1]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], 8
mov dword [esp], 0xfde9
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x2c], eax
call eax
sub esp, 0x18
mov edx, eax
test eax, eax
jle 0xf10f70
mov ecx, 8
lea eax, [edx + edx + 0x1e]
and eax, 0xfffffff0
call fcn.01087f10
sub esp, eax
lea esi, [esp + 0x27]
and esi, 0xfffffff0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], 0xfde9
call dword [ebp - 0x2c]
sub esp, 0x18
test eax, eax
jne 0xf10fa0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.msvcrt.dll__errno]
call esi
mov dword [esp + 0x10], 0xa9
mov dword [esp + 0xc], str.bss_file.c
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], 2
call fcn.00eefad0
mov dword [esp + 0x14], 0x147d937
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x147d93a
mov dword [esp + 8], ebx
mov dword [esp + 4], str.fopen_
mov dword [esp], 5
call fcn.00eefcc0
call edi
cmp dword [eax], 2
je 0xf110a0
mov dword [esp + 0x10], 0xae
mov dword [esp + 0xc], str.bss_file.c
mov dword [esp + 8], 2
mov dword [esp + 4], 0x6d
mov dword [esp], 0x20
call fcn.00eefad0
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3ec
je 0xf10ff0
call esi
cmp eax, 0x459
je 0xf110e0
mov edi, dword [sym.imp.msvcrt.dll__errno]
jmp 0xf10ed4
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esp + 0x14], 8
lea edi, [ebp - 0x28]
mov dword [esp + 0x10], edi
inc eax
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call dword [ebp - 0x2c]
sub esp, 0x18
test eax, eax
jne 0xf11030
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.msvcrt.dll__errno]
jmp 0xf10ed4
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call dword [ebp - 0x2c]
sub esp, 0x18
mov edx, eax
test eax, eax
jle 0xf10f7f
xor ecx, ecx
jmp 0xf10e8a
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__wfopen]
mov esi, eax
test eax, eax
je 0xf1110d
mov dword [esp], 0x10fc400
call fcn.00efabf0
mov ebx, eax
test eax, eax
je 0xf11100
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00efaec0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x6a
mov dword [esp], ebx
call fcn.00efb5a0
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], 0xac
mov dword [esp + 0xc], str.bss_file.c
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 0x6d
mov dword [esp], 0x20
call fcn.00eefad0
xor ebx, ebx
jmp 0xf10f66
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_fopen
mov esi, eax
test eax, eax
jne 0xf11047
jmp 0xf10fdf
mov dword [esp], esi
call sub.msvcrt.dll_fclose
jmp 0xf10f66
mov edi, dword [sym.imp.msvcrt.dll__errno]
call edi
cmp dword [eax], 2
je 0xf110e0
call edi
cmp dword [eax], 9
je 0xf110e0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0xf10ed4