Function at 0x1000ac0a
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0xa0
mov eax, dword [0x10071ef0]
xor eax, ebp
mov dword [ebp + 0x60], eax
mov eax, dword [ebp + 0x78]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x74]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x2c], eax
call dword [0x10071f08]
mov ebx, eax
cmp dword [0x1006d00c], 0x1006d00c
je 0x1000ac99
test edi, edi
je 0x1000ac73
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x1000ac5c
xor eax, eax
jmp 0x1000ac78
lea esi, [eax + eax]
mov eax, esi
call fcn.1003e980
mov eax, esp
push ebx
push esi
push edi
push eax
call fcn.100096a3
jmp 0x1000ac78
mov eax, str.unmounting
push eax
push dword [ebp + 0x70]
mov eax, dword [0x1006d00c]
push dword [ebp + 0x6c]
push 0x10045ffc
push 0x18
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.10009562
add esp, 0x1c
mov esi, dword [ebp - 0x28]
add esi, 0x434
mov ebx, dword [esi]
test ebx, ebx
je 0x1000acb9
mov ecx, ebx
call fcn.10006ee4
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
and dword [esi], 0
pop ecx
xor eax, eax
cmp byte [0x1006d011], al
je 0x1000ae91
cmp dword [ebp + 0x7c], eax
mov dword [ebp - 0x30], eax
jne 0x1000acd6
mov dword [ebp - 0x30], 4
push 0x80
push eax
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x22]
push eax
call sub.MSVCR80.dll_memset
mov ebx, dword [sym.imp.MSVCR80.dll_wcslen]
xor esi, esi
add esp, 0xc
cmp dword [ebp - 0x2c], esi
je 0x1000ad15
push dword [ebp - 0x2c]
call ebx
test eax, eax
pop ecx
jbe 0x1000ad15
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push 0x41
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
test edi, edi
je 0x1000ad1f
push edi
call ebx
pop ecx
mov esi, eax
mov eax, dword [ebp - 0x28]
add eax, 0x2c
xor edi, edi
mov word [eax], di
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x3c], 0x400
call ebx
test esi, esi
mov ebx, eax
lea eax, [ebx + esi + 2]
pop ecx
mov dword [ebp - 0x38], eax
jbe 0x1000adf8
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
mov edi, eax
test edi, edi
pop ecx
jne 0x1000ad8d
mov eax, dword [ebp - 0x3c]
shr eax, 1
push str.Not_enough_memory.
push eax
mov eax, dword [ebp - 0x28]
add eax, 0x2c
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
mov ecx, dword [ebp - 0x28]
xor eax, eax
add esp, 0xc
inc eax
mov dword [ecx + 0x24], eax
jmp 0x1000ae91
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push edi
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
cmp esi, 4
jbe 0x1000add4
mov eax, dword [ebp - 0x34]
lea eax, [eax + esi*2 - 8]
push eax
push str..mdf
call dword [sym.imp.MSVCR80.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1000add4
push edi
mov word [edi + esi*2 - 2], 0x73
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000add4
mov word [edi + esi*2 - 2], 0x66
test ebx, ebx
jbe 0x1000adf4
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 1]
push eax
lea eax, [edi + esi*2 + 2]
push eax
call dword [sym.imp.MSVCR80.dll_wcscpy_s]
add esp, 0xc
or dword [ebp - 0x30], 2
jmp 0x1000adf8
and dword [ebp - 0x30], 0xfffffffd
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp + 0x70]
shl eax, 8
or eax, dword [ebp - 0x30]
add esi, 0x2c
push esi
push edi
push eax
mov eax, dword [ebp - 0x28]
push dword [ebp + 0x6c]
mov ecx, dword [eax + 0x42c]
call fcn.10023fa1
test ebx, ebx
mov dword [ebp - 0x2c], eax
jbe 0x1000ae37
mov eax, dword [ebp - 0x38]
add eax, eax
push eax
push 0
push edi
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
lea eax, [ebx + ebx]
push eax
lea eax, [ebp - 0x24]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0x10
cmp dword [ebp - 0x2c], 0x5ea
jne 0x1000ae6b
mov eax, dword [ebp - 0x28]
and word [esi], 0
mov dword [eax + 0x24], 5
xor eax, eax
inc eax
jmp 0x1000ae91
cmp dword [ebp - 0x2c], 0x5eb
jne 0x1000ae80
mov eax, dword [ebp - 0x28]
mov dword [eax + 0x24], 6
jmp 0x1000ae66
push dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
call fcn.1000a264
neg al
sbb eax, eax
neg eax
lea esp, [ebp - 0x48]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x60]
xor ecx, ebp
call fcn.1003e70b
add ebp, 0x64
leave
ret 0x14