Function at 0x4146a0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file size
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fed60
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5365f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
add esi, 0x520
push str.CAEEngine::ApplyDefaultConfig__.__Inside_ApplyDefaultConfig
mov ecx, esi
mov dword [ebp - 0x1c], esi
call fcn.004015d0
add esp, 4
lea eax, [ebp - 0x24]
push eax
push 0x20019
xor edi, edi
push edi
push str.SOFTWAREFaronicsAEInstInProgress
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x414736
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.CAEEngine::ApplyDefaultConfig__.__AE_Installation_is_in_Progress...return_from_ApplyDefaultConfig
mov ecx, esi
call fcn.004015d0
add esp, 4
lea eax, [edi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [0x5361b4]
mov eax, dword [edx + 0xc]
mov ecx, 0x5361b4
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x18], 0xffffffff
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 1
mov edx, dword [0x5361b4]
mov eax, dword [edx + 0xc]
mov ecx, 0x5361b4
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], edi
call fcn.00462560
test eax, eax
jne 0x41479a
push str.CAEEngine::ApplyDefaultConfig__.__GetStorageSpaceConfigPath...Failed
mov ecx, esi
call fcn.004015d0
add esp, 4
jmp 0x414a1d
mov edx, dword [ebp - 0x24]
cmp edx, edi
jne 0x4147a5
xor eax, eax
jmp 0x4147bf
mov eax, edx
lea ebx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4147b0
sub eax, ebx
sar eax, 1
push edx
lea ecx, [ebp - 0x14]
push ecx
mov ebx, eax
call fcn.00402a30
push 5
push str._temp
lea ebx, [ebp - 0x14]
call fcn.00402da0
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x20]
lea eax, [ecx - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x41482e
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x414821
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x414821
call fcn.00402ae0
mov esi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x414816
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add esi, 0x10
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x1c]
jmp 0x41482e
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x20]
push ecx
call fcn.00402a30
push 1
push 0x504a74
lea ebx, [ebp - 0x14]
call fcn.00402da0
push 0xb
push str.default.xml
call fcn.00402da0
mov edx, dword [ebp - 0x24]
push edx
call fcn.004d632b
mov ebx, dword [ebp - 0x14]
add esp, 4
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x414877
push str.CAEEngine::ApplyDefaultConfig__._PathFileExists__FROM_Temp_Dir__failed
mov ecx, esi
call fcn.004015d0
add esp, 4
jmp 0x414a1d
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, 0xffffffff
jne 0x4148ab
push str.CAEEngine::ApplyDefaultConfig__._CreateFile_failed
mov ecx, esi
call fcn.004015d0
add esp, 4
jmp 0x414a1d
xor eax, eax
cmp edi, eax
je 0x414957
push eax
push eax
push eax
push edi
mov dword [ebp - 0x24], eax
mov byte [ebp - 0xd], al
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x414957
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4148e5
xor esi, esi
jmp 0x41491d
add edi, 2
push edi
call fcn.004d4853
mov esi, eax
add esp, 4
test esi, esi
je 0x41491d
push edi
push 0
push esi
call fcn.004da450
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push 0
lea eax, [ebp - 0x28]
push eax
push edi
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41491d
mov byte [ebp - 0xd], 1
cmp dword [ebp - 0x28], 4
jbe 0x414931
cmp byte [ebp - 0xd], 0
je 0x414931
add esi, 2
mov dword [ebp - 0x24], esi
jmp 0x414945
test esi, esi
je 0x414945
push esi
call fcn.004d632b
add esp, 4
mov dword [ebp - 0x24], 0
mov edi, dword [ebp - 0x24]
test edi, edi
setne al
test al, al
jne 0x414968
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
push str.CAEEngine::ApplyDefaultConfig__._GetFileString_failed
mov ecx, esi
call fcn.004015d0
jmp 0x414a16
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
add eax, 0x40
call fcn.00433ec0
test eax, eax
jne 0x414994
mov ecx, dword [ebp - 0x1c]
push str.CAEEngine::ApplyDefaultConfig__._OnSetConfig_failed
call fcn.004015d0
jmp 0x414a13
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4149ff
push 0x5c
push ebx
call fcn.004d7b15
add esp, 8
test eax, eax
je 0x4149c2
sub eax, ebx
sar eax, 1
mov edi, eax
jns 0x4149cc
push 0x80070057
call fcn.00401110
mov eax, dword [ebx - 8]
mov ecx, 1
sub ecx, dword [ebx - 4]
sub eax, edi
or eax, ecx
jge 0x4149ea
mov eax, edi
lea ecx, [ebp - 0x14]
call fcn.00402f60
mov ebx, dword [ebp - 0x14]
cmp edi, dword [ebx - 8]
jg 0x4149c2
xor ecx, ecx
mov dword [ebx - 0xc], edi
push ebx
mov word [ebx + edi*2], cx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 0x1c]
push str.CAEEngine::ApplyDefaultConfig__._ALL_Success
call fcn.004015d0
mov dword [ebp - 0x2c], 1
mov edi, dword [ebp - 0x18]
add esp, 4
test edi, edi
je 0x414a27
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [ebp - 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 1
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414a64
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
add ebx, 0xfffffff0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414a87
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4