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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x101c
call fcn.10037d10
mov eax, dword [0x100505e4]
xor eax, esp
mov dword [esp + 0x1018], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x1000
lea eax, [esp + 0x24]
push 0
push eax
call fcn.1002a240
add esp, 0xc
lea esi, [esp + 0x20]
call fcn.10018d30
mov edi, 0x10056fa8
call fcn.1000fb90
mov dword [0x10056fdc], 0
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push ebx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10017db3
push ebx
push str.LoadLanguage:_I_cannot_find_language_file__s_n
mov ecx, 4
call fcn.10011b20
add esp, 8
jmp 0x10017fd9
mov eax, dword [0x10056fe4]
mov dword [esp + 0xc], eax
test eax, eax
je 0x10017dc3
inc dword [eax + 0x30]
mov ecx, ebx
lea edi, [esp + 0xc]
call fcn.10017a60
test eax, eax
jne 0x10017dda
mov ecx, edi
push ecx
jmp 0x10017fd4
cmp dword [esp + 0xc], 0
je 0x10017fcf
push str.type
lea eax, [esp + 0x10]
call fcn.1001d450
mov ecx, eax
lea esi, [ecx + 2]
jmp 0x10017e00
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x10017e00
sub ecx, esi
sar ecx, 1
push ecx
mov esi, 0x10056fa8
call fcn.1000e890
lea eax, [esp + 0xc]
call fcn.1001d290
mov esi, eax
cmp esi, 0x25d
je 0x10017e3f
push str.sidCount__iItemCount
push str.Assertion_error__s_n
call fcn.10011c50
add esp, 8
xor edi, edi
cmp dword [esp + 0x10], edi
je 0x10017e51
lea eax, [esp + 0xc]
push eax
jmp 0x10017fd4
cmp esi, 0x25d
jne 0x10017fcf
cmp dword [0x10056fbc], edi
je 0x10017fcf
mov eax, 0x10056fc4
mov dword [0x10056fe0], 1
call fcn.10018170
sub esp, 0x1c
mov eax, esp
xor ecx, ecx
mov dword [eax + 0x18], 7
mov dword [eax + 0x14], edi
mov word [eax + 4], cx
mov ecx, 0x10056fc4
mov dword [esp + 0x2c], esp
call fcn.10018270
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x1c]
lea ebx, [esp + 0x14]
lea edi, [esp + 0xc]
call fcn.1001d380
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10017ed2
cmp dword [eax + 8], 0
jle 0x10017ed2
mov edx, dword [eax + 0x20]
mov esi, dword [edx]
mov dword [esp + 0x18], esi
jmp 0x10017ede
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x18]
push 0x10046ddc
lea eax, [esp + 0x18]
call fcn.1001d450
mov ebx, eax
lea eax, [esp + 0x20]
push eax
call fcn.100181c0
mov edi, eax
test esi, esi
jne 0x10017f10
push str.0___lpcts
push str.Assertion_error__s_n
call fcn.10011c50
add esp, 8
test ebx, ebx
jne 0x10017f26
push str.0___lpctSid
push str.Assertion_error__s_n
call fcn.10011c50
add esp, 8
test esi, esi
je 0x10017f52
test ebx, ebx
je 0x10017f52
cmp edi, 0xffffffff
je 0x10017f52
inc dword [esp + 0x10]
mov esi, 0x10056fc4
call fcn.10018130
push eax
mov eax, dword [esp + 0x1c]
call fcn.1000e720
lea ecx, [esp + 0x14]
push ecx
jmp 0x10017f65
push ebx
push str.Delete:__s_n
call fcn.1000d870
add esp, 8
lea edx, [esp + 0x14]
push edx
call fcn.1001cdc0
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0x25d
mov dword [esp + 0x1c], eax
jl 0x10017ea8
cmp dword [esp + 0x10], 0x25d
mov dword [0x10056fe0], 0
jne 0x10017e47
lea ecx, [esp + 0xc]
push ecx
mov dword [0x10056fdc], 1
call fcn.1001cdc0
lea ebx, [esp + 0x20]
call fcn.10018440
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1018]
xor ecx, esp
call fcn.10024280
mov esp, ebp
pop ebp
ret 4
lea edx, [esp + 0xc]
push edx
call fcn.1001cdc0
lea ebx, [esp + 0x20]
call fcn.10018440
mov ecx, dword [esp + 0x1024]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10024280
mov esp, ebp
pop ebp
ret 4