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

Disassembly:
mov eax, 0x40ad94
call fcn.00409d50
sub esp, 0x5c
push ebx
xor ebx, ebx
push esi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x10], ebx
call fcn.00401390
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ebx
push eax
call fcn.0040888a
pop ecx
cmp dword [ebp - 0x28], ebx
mov byte [ebp - 4], 1
jne 0x408693
lea eax, [ebp - 0x20]
push eax
call fcn.004089b2
pop ecx
push dword [0x40c1b8]
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
push ebx
push eax
call fcn.00401008
push 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004010d6
cmp dword [ebp - 0x28], ebx
je 0x408827
mov esi, str.SpreadsheetTools_
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.00401e53
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x4086b5
mov eax, 0x40c1bc
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4086d5
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x4086cd
mov eax, 0x40c1bc
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push edi
mov edi, dword [ebp + 0xc]
push dword [0x40c1b8]
lea eax, [ebp - 0x30]
mov ecx, edi
push ebx
push eax
call fcn.00401008
mov esi, str.lxLdr.dll
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00401e53
mov al, byte [ebp + 0x17]
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x20], al
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.004069d9
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x44]
push eax
mov byte [ebp - 4], 4
push dword [ebp + 8]
call fcn.00406b93
test eax, eax
je 0x4087f6
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x408742
mov eax, 0x40c1bc
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004085c2
pop ecx
test eax, eax
pop ecx
je 0x4087ef
push dword [ebp - 0x18]
lea ecx, [ebp - 0x20]
push dword [ebp - 0x1c]
call fcn.00401e27
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x44]
push eax
push dword [ebp + 8]
call fcn.00406b5d
test eax, eax
je 0x4087e8
push dword [0x40c1b8]
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x30]
mov ecx, edi
push ebx
push eax
call fcn.00401008
mov esi, str.LockXLSRuntime.dll
push esi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00401e53
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x4087ad
mov eax, 0x40c1bc
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004085c2
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x10], eax
jne 0x40880c
mov esi, str.LockXLS_was_unable_to_install_Runtime_to_the_following_location:_n
push esi
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [ebp + 0x14]
push eax
push esi
call fcn.00401112
push dword [0x40c1b8]
mov ecx, dword [ebp + 0x14]
push ebx
push edi
call fcn.004097ce
jmp 0x40880c
mov esi, str.LockXLS_Runtime_can_not_be_found_in_executable.
jmp 0x4087fb
mov esi, str.LockXLS_was_unable_to_install_loader.dll_to_the_following_location:_n
jmp 0x4087c5
mov esi, str.LockXLS_data_can_not_be_found_in_executable.
push esi
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [ebp + 0x14]
push eax
push esi
call fcn.00401112
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.004069f3
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00401f33
pop edi
jmp 0x40883d
mov esi, str.LockXLS_was_unable_to_locate_Application_Data_folder.
push esi
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [ebp + 0x14]
push eax
push esi
call fcn.00401112
cmp dword [ebp - 0x10], ebx
jne 0x408860
mov eax, dword [ebp + 0x14]
cmp dword [eax + 8], ebx
jne 0x408860
mov esi, str.Application_file_is_invalid.
push esi
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [ebp + 0x14]
push eax
push esi
call fcn.00401112
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.004010d6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.004013d7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret