Function at 0x404ae8
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes

Disassembly:
push ebp
sub esp, 0x78
lea ebp, [esp - 4]
mov eax, dword [0x42d43c]
xor eax, ebp
mov dword [ebp + 0x78], eax
push 0x24
mov eax, 0x422951
call fcn.0040e291
mov eax, dword [ebp + 0x8c]
mov esi, dword [ebp + 0x84]
mov edi, dword [ebp + 0x88]
xor ebx, ebx
lea ecx, [ebp]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ebx
call fcn.00406552
lea eax, [ebp + 0x5c]
push eax
mov dword [ebp - 4], ebx
call fcn.004040a7
pop ecx
cmp dword [ebp + 0x70], ebx
mov byte [ebp - 4], 1
jne 0x404b70
lea eax, [ebp - 0x30]
push eax
call fcn.004040c0
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x5c]
mov byte [ebp - 4], 2
call fcn.00402d9a
push ebx
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.0040270c
cmp dword [ebp + 0x70], ebx
je 0x404ca0
push str.SpreadsheetTools_
lea ecx, [ebp + 0x5c]
call fcn.00403077
cmp dword [ebp + 0x74], 0x10
mov eax, dword [ebp + 0x60]
jae 0x404b89
lea eax, [ebp + 0x60]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x404bac
cmp dword [ebp + 0x74], 0x10
mov eax, dword [ebp + 0x60]
jae 0x404ba3
lea eax, [ebp + 0x60]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea ecx, [ebp + 0x3c]
mov byte [ebp - 4], 3
call fcn.0040bd51
lea eax, [ebp - 0x24]
push eax
push esi
lea ecx, [ebp + 0x3c]
mov byte [ebp - 4], 4
call fcn.0040bf0f
test eax, eax
je 0x404c77
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0x5c]
push eax
mov ecx, edi
call fcn.00402d9a
push str.LockXLSRuntime.dll
mov ecx, edi
call fcn.00403077
cmp dword [edi + 0x18], 0x10
lea esi, [edi + 4]
jb 0x404c04
mov eax, dword [esi]
jmp 0x404c06
mov eax, esi
push eax
call ebx
cmp eax, 0xffffffff
je 0x404c21
cmp dword [edi + 0x18], 0x10
jb 0x404c18
mov eax, dword [esi]
jmp 0x404c1a
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [edi + 0x18], 0x10
jb 0x404c2b
mov eax, dword [esi]
jmp 0x404c2d
mov eax, esi
push eax
call ebx
cmp eax, 0xffffffff
jne 0x404c4e
cmp dword [edi + 0x18], 0x10
jb 0x404c3d
mov esi, dword [esi]
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.00402f3a
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
jmp 0x404c55
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x14], 0
jne 0x404c84
mov ecx, dword [ebp - 0x10]
push str.LockXLS_was_unable_to_install_Runtime_to_the_following_location:_n
call fcn.00403094
mov ecx, dword [ebp - 0x10]
push 0xffffffffffffffff
push 0
push edi
call fcn.00402ad3
jmp 0x404c84
mov ecx, dword [ebp - 0x10]
push str.LockXLS_Runtime_can_not_be_found_in_executable.
call fcn.00403094
lea ecx, [ebp + 0x3c]
mov byte [ebp - 4], 3
call fcn.0040bd61
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00402757
xor ebx, ebx
jmp 0x404cad
mov ecx, dword [ebp - 0x10]
push str.LockXLS_was_unable_to_locate_Application_Data_folder.
call fcn.00403094
cmp dword [ebp - 0x14], ebx
jne 0x404cc4
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x14], ebx
jne 0x404cc4
push str.Application_file_is_invalid.
call fcn.00403094
push ebx
push 1
lea ecx, [ebp + 0x5c]
call fcn.0040270c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00406566
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x78]
xor ecx, ebp
call fcn.0040d7fc
add ebp, 0x7c
leave
ret