Function at 0x44d250
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
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
call sub.KERNEL32.dll_MultiByteToWideChar
sub esp, 0x18
mov edx, eax
test eax, eax
jle 0x44d390
mov ecx, 8
lea eax, [edx + edx + 0x1e]
and eax, 0xfffffff0
call fcn.0050f0c0
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 sub.KERNEL32.dll_MultiByteToWideChar
sub esp, 0x18
test eax, eax
jne 0x44d3d0
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0x10], 0xa9
mov dword [esp + 0xc], 0x53b208
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], 2
call fcn.00454450
mov dword [esp + 0x14], 0x53b213
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x53b216
mov dword [esp + 8], ebx
mov dword [esp + 4], str.fopen_
mov dword [esp], 5
call fcn.004546b0
call sub.msvcrt.dll__errno
cmp dword [eax], 2
je 0x44d4c0
mov dword [esp + 0x10], 0xae
mov dword [esp + 0xc], 0x53b208
mov dword [esp + 8], 2
mov dword [esp + 4], 0x6d
mov dword [esp], 0x20
call fcn.00454450
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3ec
je 0x44d480
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x459
jne 0x44d2e3
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 0x44d42b
jmp 0x44d2e3
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 sub.KERNEL32.dll_MultiByteToWideChar
sub esp, 0x18
test eax, eax
je 0x44d2e3
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.msvcrt.dll__wfopen
mov esi, eax
test eax, eax
je 0x44d50d
mov dword [esp], 0x519ee0
call fcn.0044c420
mov ebx, eax
test eax, eax
je 0x44d500
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.0044b3f0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x6a
mov dword [esp], ebx
call fcn.0044b6e0
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
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 sub.KERNEL32.dll_MultiByteToWideChar
sub esp, 0x18
mov edx, eax
test eax, eax
jle 0x44d3a0
xor ecx, ecx
jmp 0x44d2a5
mov dword [esp + 0x10], 0xac
mov dword [esp + 0xc], 0x53b208
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 0x6d
mov dword [esp], 0x20
call fcn.00454450
xor ebx, ebx
jmp 0x44d37b
mov dword [esp], esi
call sub.msvcrt.dll_fclose
jmp 0x44d37b
call sub.msvcrt.dll__errno
cmp dword [eax], 2
je 0x44d3b0
call sub.msvcrt.dll__errno
cmp dword [eax], 9
jne 0x44d2e3
jmp 0x44d3b0