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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x101c
call fcn.10030df0
mov eax, dword [0x100525d4]
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.10023380
add esp, 0xc
lea esi, [esp + 0x20]
call fcn.10018d80
mov edi, 0x100590e8
call fcn.1000fb60
mov dword [0x1005911c], 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 0x10017d53
push ebx
push str.LoadLanguage:_I_cannot_find_language_file__s_n
mov ecx, 4
call fcn.10011b40
add esp, 8
jmp 0x10017f79
mov eax, dword [0x10059124]
mov dword [esp + 0xc], eax
test eax, eax
je 0x10017d63
inc dword [eax + 0x30]
mov ecx, ebx
lea edi, [esp + 0xc]
call fcn.10017a00
test eax, eax
jne 0x10017d7a
mov ecx, edi
push ecx
jmp 0x10017f74
cmp dword [esp + 0xc], 0
je 0x10017f6f
push str.type
lea eax, [esp + 0x10]
call fcn.1003dd90
mov ecx, eax
lea esi, [ecx + 2]
jmp 0x10017da0
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x10017da0
sub ecx, esi
sar ecx, 1
push ecx
mov esi, 0x100590e8
call fcn.1000e860
lea eax, [esp + 0xc]
call fcn.1003dde0
mov esi, eax
cmp esi, 0x25d
je 0x10017ddf
push str.sidCount__iItemCount
push str.Assertion_error__s_n
call fcn.10011c70
add esp, 8
xor edi, edi
cmp dword [esp + 0x10], edi
je 0x10017df1
lea eax, [esp + 0xc]
push eax
jmp 0x10017f74
cmp esi, 0x25d
jne 0x10017f6f
cmp dword [0x100590fc], edi
je 0x10017f6f
mov eax, 0x10059104
mov dword [0x10059120], 1
call fcn.10018110
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, 0x10059104
mov dword [esp + 0x2c], esp
call fcn.10018210
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.1003f260
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10017e72
cmp dword [eax + 8], 0
jle 0x10017e72
mov edx, dword [eax + 0x20]
mov esi, dword [edx]
mov dword [esp + 0x18], esi
jmp 0x10017e7e
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x18]
push 0x10048ddc
lea eax, [esp + 0x18]
call fcn.1003dd90
mov ebx, eax
lea eax, [esp + 0x20]
push eax
call fcn.10018160
mov edi, eax
test esi, esi
jne 0x10017eb0
push str.0___lpcts
push str.Assertion_error__s_n
call fcn.10011c70
add esp, 8
test ebx, ebx
jne 0x10017ec6
push str.0___lpctSid
push str.Assertion_error__s_n
call fcn.10011c70
add esp, 8
test esi, esi
je 0x10017ef2
test ebx, ebx
je 0x10017ef2
cmp edi, 0xffffffff
je 0x10017ef2
inc dword [esp + 0x10]
mov esi, 0x10059104
call fcn.100180d0
push eax
mov eax, dword [esp + 0x1c]
call fcn.1000e6f0
lea ecx, [esp + 0x14]
push ecx
jmp 0x10017f05
push ebx
push str.Delete:__s_n
call fcn.1000d870
add esp, 8
lea edx, [esp + 0x14]
push edx
call fcn.1003eb20
mov eax, dword [esp + 0x1c]
inc eax
cmp eax, 0x25d
mov dword [esp + 0x1c], eax
jl 0x10017e48
cmp dword [esp + 0x10], 0x25d
mov dword [0x10059120], 0
jne 0x10017de7
lea ecx, [esp + 0xc]
push ecx
mov dword [0x1005911c], 1
call fcn.1003eb20
lea ebx, [esp + 0x20]
call fcn.100183e0
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1018]
xor ecx, esp
call fcn.1001d39b
mov esp, ebp
pop ebp
ret 4
lea edx, [esp + 0xc]
push edx
call fcn.1003eb20
lea ebx, [esp + 0x20]
call fcn.100183e0
mov ecx, dword [esp + 0x1024]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1001d39b
mov esp, ebp
pop ebp
ret 4