Function at 0x10d353f
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 [0x111024c]
mov esi, 0x100ffa4
cmp eax, 0x111024c
je 0x10d3579
test byte [eax + 0x1c], 1
je 0x10d3579
cmp byte [eax + 0x19], 4
jb 0x10d3579
push esi
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
cmp byte [ebp + 0x14], bl
je 0x10d3644
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 0x10d3614
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10d35ff
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d35f5
test byte [eax + 0x1c], 1
je 0x10d35d4
cmp byte [eax + 0x19], 5
jb 0x10d35d4
push esi
push 0x2f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d35f5
test byte [eax + 0x1c], 1
je 0x10d35f5
cmp byte [eax + 0x19], 4
jb 0x10d35f5
push esi
push 0x35
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0101894a
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp eax, ebx
jg 0x10d3608
mov dword [ebp - 8], eax
jmp 0x10d35cf
and eax, 0xffff
or eax, 0x80070000
jmp 0x10d3603
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d363d
test byte [eax + 0x1c], 1
je 0x10d363d
cmp byte [eax + 0x19], 5
jb 0x10d363d
push dword [ebp + 8]
push esi
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
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 0x10d36a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10d3668
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 8], eax
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d35f5
test byte [eax + 0x1c], 1
je 0x10d35d4
cmp byte [eax + 0x19], 2
jb 0x10d35d4
push dword [ebp - 8]
push dword [ebp + 8]
push esi
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01048c37
jmp 0x10d35cf
lea eax, [ebp - 1]
push eax
mov byte [ebp - 1], bl
call fcn.01082380
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x10d35cf
cmp dword [ebp + 0xc], 2
je 0x10d36cb
cmp dword [ebp + 0xc], 3
jne 0x10d3712
cmp byte [ebp + 0x10], bl
je 0x10d3712
test edi, 0x800
je 0x10d3744
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d3706
test byte [eax + 0x1c], 1
je 0x10d3706
cmp byte [eax + 0x19], 2
jb 0x10d3706
push dword [ebp + 8]
push esi
push 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
mov eax, dword [0x111024c]
mov dword [ebp - 8], 0x80780066
jmp 0x10d35d4
mov eax, dword [0x111024c]
cmp eax, 0x111024c
je 0x10d3749
test byte [eax + 0x1c], 1
je 0x10d3749
cmp byte [eax + 0x19], 4
jb 0x10d3749
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.01048c37
mov eax, dword [0x111024c]
test edi, 0x4000
je 0x10d35d4
cmp eax, 0x111024c
je 0x10d377e
test byte [eax + 0x1c], 1
je 0x10d377e
cmp byte [eax + 0x19], 2
jb 0x10d377e
push dword [ebp + 8]
push esi
push 0x34
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01019633
mov eax, dword [0x111024c]
mov dword [ebp - 8], 0x80780067
jmp 0x10d35d4