Function at 0x1004e09b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x10086084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x634], eax
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x630], edx
push 0x618
push eax
mov dword [ebp - 0x62c], eax
mov dword [ebp - 0x624], eax
mov dword [ebp - 0x620], eax
lea eax, [ebp - 0x61c]
push eax
mov dword [ebp - 0x628], edi
call sub.msvcrt.dll_memset
pop ecx
pop ecx
lea eax, [ebp - 0x61c]
mov edx, ebx
push eax
mov ecx, edi
call fcn.10033748
test eax, eax
je 0x1004e119
lea ebx, [ebp - 0x61c]
mov dword [ebp - 0x62c], 1
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1004e12c
mov ecx, ebx
call fcn.100343a7
push 0
push 0
lea eax, [ebp - 0x624]
push eax
push ebx
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
je 0x1004e2b4
movzx eax, word [ebp - 0x624]
add eax, 0x10
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x638], esi
test esi, esi
je 0x1004e23a
movzx ecx, word [ebp - 0x624]
push ecx
push dword [ebp - 0x620]
lea ecx, [esi + 0xc]
push ecx
call dword [sym.imp.msvcrt.dll_memmove]
and dword [esi + 4], 0
add esp, 0xc
mov edx, dword [ebp - 0x634]
mov ecx, edi
mov byte [esi], 0
movzx eax, word [ebp - 0x624]
mov dword [esi + 8], eax
movzx eax, word [ebp - 0x624]
push 0xb
add eax, 0x10
push eax
push esi
call fcn.1003574f
mov esi, eax
test esi, esi
jns 0x1004e223
mov ebx, dword [ebp - 0x628]
mov edi, 0x1000a6b4
push 0x21b
push edi
push esi
push 0x1000a6d4
push dword [ebp - 0x630]
xor ecx, ecx
mov edx, ebx
inc ecx
call fcn.1002fae3
cmp dword [ebp - 0x62c], 0
je 0x1004e223
cmp esi, 0x80070011
je 0x1004e205
cmp esi, 0xc00000d4
je 0x1004e205
cmp esi, 0xd00000d4
jne 0x1004e223
push 0x221
push edi
xor esi, esi
mov edx, ebx
push esi
push 0x1000a708
push dword [ebp - 0x630]
push 2
pop ecx
call fcn.1002fae3
push dword [ebp - 0x638]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1004e29b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0x80070000
test eax, eax
jle 0x1004e250
movzx eax, ax
or eax, edi
test eax, eax
jns 0x1004e265
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1004e26a
movzx esi, si
or esi, edi
jmp 0x1004e26a
mov esi, 0x80004005
mov edi, 0x1000a6b4
test esi, esi
jns 0x1004e280
push esi
push 0x22b
mov ecx, edi
call fcn.1003a254
mov edx, dword [ebp - 0x628]
xor ecx, ecx
push 0x22c
push edi
push esi
push 0x100041e4
push ebx
inc ecx
call fcn.1002fae3
push dword [ebp - 0x620]
mov eax, dword fs:[0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1004e2e6
mov esi, 0x80070003
mov edi, 0x1000a6b4
push esi
push 0x235
mov ecx, edi
call fcn.1003a254
mov edx, dword [ebp - 0x628]
xor ecx, ecx
push 0x236
push edi
push esi
push 0x10006b98
push ebx
inc ecx
call fcn.1002fae3
test esi, esi
js 0x1004e2ee
xor eax, eax
jmp 0x1004e2f0
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10083b20
mov esp, ebp
pop ebp
ret 8