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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1088
call fcn.0100f7c0
mov eax, dword [0x1017048]
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x1088], esi
je 0x100ac58
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jg 0x100ac58
push esi
lea eax, [ebp - 0xe34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x1003e5c
lea eax, [ebp - 0xe34]
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100aca6
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [ebp - 0x1084]
push eax
lea eax, [ebp - 0xe34]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x100ab0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x100abb3
push 1
push dword [ebp - 0x1088]
call fcn.0100a825
pop ecx
pop ecx
lea eax, [ebp - 0x1084]
push eax
lea eax, [ebp - 0xe34]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100abb3
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push 0x1003e58
lea eax, [ebp - 0x1058]
push eax
call esi
test eax, eax
je 0x100ab9a
push 0x1003e50
lea eax, [ebp - 0x1058]
push eax
call esi
test eax, eax
je 0x100ab9a
push dword [ebp - 0x1088]
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x1003e4c
lea eax, [ebp - 0x81c]
push eax
call edi
lea eax, [ebp - 0x1058]
push eax
lea eax, [ebp - 0x81c]
push eax
call edi
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push dword [ebp + 0xc]
test al, 0x10
lea eax, [ebp - 0x81c]
push eax
je 0x100ab8b
call fcn.0100aa47
test eax, eax
jmp 0x100ab92
call fcn.0100a93f
test al, al
pop ecx
pop ecx
je 0x100ac58
lea eax, [ebp - 0x1084]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, 1
je 0x100ab12
jmp 0x100abd4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x100aca6
push dword [ebp - 0x1088]
push 0x1003df8
call fcn.0100f591
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [ebp + 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, dword [ebp - 0x1088]
jne 0x100abf8
push ebx
call esi
test eax, eax
jne 0x100ac91
push 1
push ebx
call fcn.0100a825
cmp byte [ebp + 0xc], 0
pop ecx
pop ecx
mov edi, eax
jne 0x100ac67
push ebx
call esi
test eax, eax
jne 0x100ac67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor eax, eax
push eax
push 0x100
lea ecx, [ebp - 0x204]
push ecx
push eax
push esi
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x100ac43
push ebx
push esi
push 0x1003d98
jmp 0x100ac50
lea eax, [ebp - 0x204]
push eax
push ebx
push 0x1003d40
call fcn.0100f591
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100f0dc
leave
ret
test edi, edi
je 0x100ac86
cmp byte [ebp + 0xc], 0
mov eax, 0x1003cf0
jne 0x100ac7b
mov eax, 0x1003cb0
push ebx
push eax
call fcn.0100f591
pop ecx
pop ecx
jmp 0x100ac58
cmp byte [ebp + 0xc], 0
mov eax, 0x1003c74
jne 0x100ac96
mov eax, 0x1003c44
push ebx
push eax
call fcn.0100f591
pop ecx
pop ecx
mov byte [0x101881c], 1
xor eax, eax
inc eax
jmp 0x100ac5a