Function at 0x1009a851
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x100ed68e
call fcn.100c908c
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], 2
cmp byte [esi + 0x65], bl
jne 0x1009aaa8
cmp dword [esi + 0x6c], ebx
je 0x1009aaa8
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x1010d92c
call fcn.10009e15
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.CurrentLayout
mov byte [ebp - 4], 3
call fcn.10009e15
mov byte [ebp - 4], 2
call fcn.10062265
add esp, 0xc
cmp dword [ebp + 0x14], eax
je 0x1009a8bd
cmp dword [ebp + 0x14], 0xffffffff
jne 0x1009aaa8
push 0x101519f8
lea ecx, [ebp - 0x10]
call fcn.1007170f
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x17]
push eax
push 1
push ecx
lea eax, [ebp + 0x20]
mov dword [ebp + 0x14], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 4
call fcn.1000548f
push dword [ebp + 0x1c]
lea eax, [ebp + 0xc]
push dword [ebp + 0x18]
mov byte [ebp - 4], 5
push dword [ebp + 0x10]
push ecx
mov dword [ebp + 0x1c], esp
mov ecx, esp
push eax
call fcn.1000548f
push ecx
lea eax, [ebp + 8]
mov dword [ebp + 0x10], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 6
call fcn.1000548f
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.10098bbc
cmp byte [ebp + 0x17], bl
je 0x1009aa5f
cmp byte [ebp + 0x18], bl
je 0x1009a953
lea eax, [ebp + 0x14]
push eax
call fcn.10060f33
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp + 0x18]
push eax
mov byte [ebp - 4], 7
call fcn.10006f5b
add esp, 0x10
mov byte [ebp - 4], 8
jmp 0x1009a9b8
push str.localization.xml
push dword [ebp + 8]
call fcn.100c9402
neg eax
sbb al, al
inc al
pop ecx
pop ecx
je 0x1009a996
push ecx
lea eax, [ebp + 8]
mov dword [ebp + 0x18], esp
mov ecx, esp
push eax
call fcn.1000548f
lea eax, [ebp + 0x18]
push eax
mov ecx, esi
call fcn.100992d5
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 9
call fcn.1000688b
mov ecx, dword [ebp + 0x18]
jmp 0x1009a9cf
lea eax, [ebp + 0x14]
push eax
call fcn.10060b08
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp + 0x18]
push eax
mov byte [ebp - 4], 0xa
call fcn.10006f5b
add esp, 0x10
mov byte [ebp - 4], 0xb
push eax
lea ecx, [ebp + 8]
call fcn.1000688b
mov ecx, dword [ebp + 0x18]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.10003f60
mov byte [esi + 0x64], 1
cmp dword [esi + 0x60], ebx
je 0x1009aa31
push dword [ebp + 8]
call fcn.100b9af6
push ebx
push 0x101445f0
push 0x101445d0
push ebx
push dword [esi + 0x60]
mov dword [ebp + 0x18], eax
call fcn.100c8799
add esp, 0x18
push 0xfde9
push 0x21
lea ecx, [ebp + 0x18]
push ecx
mov ecx, eax
call fcn.100746c2
push dword [ebp + 0x18]
lea ecx, [ebp + 8]
call fcn.10006a3d
mov ecx, dword [esi + 0x60]
push dword [ebp + 0x18]
mov eax, dword [ecx]
call dword [eax + 0xa8]
push dword [ebp + 0x2c]
mov edi, dword [esi + 0x4c]
push dword [ebp + 0x28]
mov ecx, esi
push dword [ebp + 0x24]
push 1
push 1
push dword [ebp + 8]
call fcn.1009a79b
cmp dword [esi + 0x4c], 0xffffff92
jne 0x1009aa54
mov dword [esi + 0x4c], edi
mov byte [esi + 0x64], bl
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
jmp 0x1009aaa3
cmp byte [ebp + 0x18], bl
jne 0x1009aa57
mov edi, dword [ebp - 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x1009aa8e
push dword [ebp + 0x2c]
mov ecx, esi
push dword [ebp + 0x28]
mov byte [esi + 0x64], al
push dword [ebp + 0x24]
push eax
push eax
push edi
call fcn.1009a79b
mov byte [esi + 0x64], bl
jmp 0x1009aaa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1009aaa0
mov dword [esi + 0x4c], 0xffffff92
lea ecx, [edi - 0x10]
call fcn.10003f60
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp + 0x20]
add ecx, 0xfffffff0
call fcn.10003f60
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x28