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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov eax, dword [0x111124c]
mov esi, 0x100ffa4
cmp eax, 0x111124c
je 0x10d3613
test byte [eax + 0x1c], 1
je 0x10d3613
cmp byte [eax + 0x19], 4
jb 0x10d3613
push esi
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
cmp byte [ebp + 0x14], bl
je 0x10d36de
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10d36ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10d3699
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d368f
test byte [eax + 0x1c], 1
je 0x10d366e
cmp byte [eax + 0x19], 5
jb 0x10d366e
push esi
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d368f
test byte [eax + 0x1c], 1
je 0x10d368f
cmp byte [eax + 0x19], 4
jb 0x10d368f
push esi
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010189d0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp eax, ebx
jg 0x10d36a2
mov dword [ebp - 8], eax
jmp 0x10d3669
and eax, 0xffff
or eax, 0x80070000
jmp 0x10d369d
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d36d7
test byte [eax + 0x1c], 1
je 0x10d36d7
cmp byte [eax + 0x19], 5
jb 0x10d36d7
push dword [ebp + 8]
push esi
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10d3742
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10d3702
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 8], eax
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d368f
test byte [eax + 0x1c], 1
je 0x10d366e
cmp byte [eax + 0x19], 2
jb 0x10d366e
push dword [ebp - 8]
push dword [ebp + 8]
push esi
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
jmp 0x10d3669
lea eax, [ebp - 1]
push eax
mov byte [ebp - 1], bl
call fcn.010822cd
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x10d3669
cmp dword [ebp + 0xc], 2
je 0x10d3765
cmp dword [ebp + 0xc], 3
jne 0x10d37ac
cmp byte [ebp + 0x10], bl
je 0x10d37ac
test edi, 0x800
je 0x10d37de
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d37a0
test byte [eax + 0x1c], 1
je 0x10d37a0
cmp byte [eax + 0x19], 2
jb 0x10d37a0
push dword [ebp + 8]
push esi
push 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
mov eax, dword [0x111124c]
mov dword [ebp - 8], 0x80780066
jmp 0x10d366e
mov eax, dword [0x111124c]
cmp eax, 0x111124c
je 0x10d37e3
test byte [eax + 0x1c], 1
je 0x10d37e3
cmp byte [eax + 0x19], 4
jb 0x10d37e3
mov ecx, edi
and ecx, 0x800
push ecx
push dword [ebp + 8]
push esi
push 0x33
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010196ed
mov eax, dword [0x111124c]
test edi, 0x4000
je 0x10d366e
cmp eax, 0x111124c
je 0x10d3818
test byte [eax + 0x1c], 1
je 0x10d3818
cmp byte [eax + 0x19], 2
jb 0x10d3818
push dword [ebp + 8]
push esi
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019680
mov eax, dword [0x111124c]
mov dword [ebp - 8], 0x80780067
jmp 0x10d366e