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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005de11
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1007a058]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x34], esi
lea ebx, [esi + 0x20]
mov dword [ebp - 0x30], 0
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
lea eax, [esi + 0x48]
mov dword [ebp - 4], 2
lea ecx, [eax + 0x10]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [eax], 0
mov dword [ebp - 0x2c], ecx
mov dword [ecx], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 4
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
mov dword [esi + 0x60], 4
mov byte [esi + 0x6c], 0
cmp ebx, edi
je 0x100161ab
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x1001619a
mov eax, dword [edi]
push dword [edi + 0x10]
mov ecx, ebx
push eax
call fcn.10002f50
mov ecx, dword [ebp - 0x2c]
lea eax, [esi + 0x48]
mov byte [esi + 0x40], 0
mov dword [esi + 0x44], 0
cmp dword [eax + 0x14], 0x10
jb 0x100161be
mov eax, dword [eax]
mov dword [ecx], 0
mov byte [eax], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x64], 0
push ecx
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp - 0x30], 1
call fcn.10056f50
mov dword [ebp - 0x28], 0
mov eax, dword [str.settings]
mov ecx, dword [0x10070ea4]
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 8
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov byte [ebp - 0x20], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 6
push eax
push esi
call fcn.100165b0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
cmp ecx, 0x10
jb 0x10016265
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001625b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016391
push ecx
push edx
call fcn.1001fb0c
add esp, 8
mov dword [ebp - 0x28], 0
mov eax, dword [str.global]
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x28], eax
mov ax, word [0x10070eb0]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 6
mov word [ebp - 0x24], ax
mov byte [ebp - 0x22], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 8
push eax
push dword [ebp - 0x2c]
call fcn.100165b0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x100162df
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100162d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10016391
push ecx
push edx
call fcn.1001fb0c
add esp, 8
cmp dword [edi + 0x14], 0x10
jb 0x100162e7
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10016371
cmp dword [ebx + 0x14], 0x10
jb 0x100162fb
mov ebx, dword [ebx]
push 0x1006f730
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push ebx
push eax
call fcn.1002bc45
add esp, 0xc
test eax, eax
jne 0x10016371
mov edi, dword [ebp - 0x2c]
test edi, edi
je 0x10016371
cmp byte [esi + 0x6c], al
je 0x10016348
push edi
push 0xef
call fcn.1002ba21
push edi
push 0xbb
call fcn.1002ba21
push edi
push 0xbf
call fcn.1002ba21
add esp, 0x18
mov eax, dword [esi]
mov ecx, esi
push 0
push edi
mov eax, dword [eax + 4]
cmp eax, fcn.10056e80
jne 0x10016360
call fcn.10056e80
jmp 0x10016362
call eax
push edi
call fcn.1002e6d1
push edi
call fcn.1002c11a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001fac4
mov esp, ebp
pop ebp
ret 4
call fcn.10024cca
int3