Function at 0x10081da6
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x100c5d8e
call fcn.100a35ac
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], 2
cmp byte [esi + 0x69], bl
jne 0x10081fb0
cmp dword [esi + 0x70], ebx
je 0x10081fb0
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x100cb0a0
call fcn.10005f07
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.CurrentLayout
mov byte [ebp - 4], 3
call fcn.10005f07
mov byte [ebp - 4], 2
call fcn.100400d9
add esp, 0xc
cmp dword [ebp + 0x14], eax
je 0x10081e12
cmp dword [ebp + 0x14], 0xffffffff
jne 0x10081fb0
push 0x101185a8
lea ecx, [ebp - 0x10]
call fcn.1005a319
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x17]
push eax
xor edi, edi
inc edi
push edi
push ecx
lea eax, [ebp + 0x20]
mov dword [ebp + 0x14], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 4
call fcn.10003561
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.10003561
push ecx
lea eax, [ebp + 8]
mov dword [ebp + 0x10], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 6
call fcn.10003561
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.100808cd
cmp byte [ebp + 0x17], bl
je 0x10081f62
lea eax, [ebp + 0x14]
cmp byte [ebp + 0x18], bl
je 0x10081eaa
push eax
call fcn.1003ec4b
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp + 0x18]
push eax
mov byte [ebp - 4], 7
call fcn.10005363
add esp, 0x10
mov byte [ebp - 4], 8
jmp 0x10081eca
push ebx
push eax
call fcn.100404f4
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp + 0x18]
push eax
mov byte [ebp - 4], 9
call fcn.10005363
add esp, 0x14
mov byte [ebp - 4], 0xa
push eax
lea ecx, [ebp + 8]
call fcn.10004a20
mov ecx, dword [ebp + 0x18]
add ecx, 0xfffffff0
call fcn.10001d29
mov ecx, dword [ebp + 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 4
call fcn.10001d29
mov byte [esi + 0x68], 1
cmp dword [esi + 0x64], ebx
je 0x10081f43
push dword [ebp + 8]
call fcn.1009e73f
push ebx
push 0x1010d4cc
push 0x1010d4ac
push ebx
push dword [esi + 0x64]
mov dword [ebp + 0x18], eax
call fcn.100a2fa0
add esp, 0x18
push 0xfde9
push 0x21
lea ecx, [ebp + 0x18]
push ecx
mov ecx, eax
call fcn.1005ecce
push dword [ebp + 0x18]
lea ecx, [ebp + 8]
call fcn.10004da9
mov ecx, dword [esi + 0x64]
push dword [ebp + 0x18]
mov eax, dword [ecx]
call dword [eax + 0xa8]
push dword [ebp + 0x24]
mov edi, dword [esi + 0x4c]
push 1
push 1
push dword [ebp + 8]
mov ecx, esi
call fcn.1008184d
cmp dword [esi + 0x4c], 0xffffff92
jne 0x10081f8e
mov dword [esi + 0x4c], edi
jmp 0x10081f8e
cmp byte [ebp + 0x18], bl
jne 0x10081fa5
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, edi
jne 0x10081f93
push dword [ebp + 0x24]
lea ecx, [ebp - 0x10]
push edi
push edi
push ebx
mov byte [esi + 0x68], 1
call fcn.1000357f
push eax
mov ecx, esi
call fcn.1008184d
mov byte [esi + 0x68], bl
jmp 0x10081fa5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x10081fa5
mov dword [esi + 0x4c], 0xffffff92
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10001d29
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10001d29
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.10001d29
mov ecx, dword [ebp + 0x20]
add ecx, 0xfffffff0
call fcn.10001d29
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x20