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

Disassembly:
push 0x7c
mov eax, 0x4deb8c
call fcn.0047ce4e
mov esi, dword [ebp + 8]
xor ebx, ebx
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x88], esi
push 7
mov dword [ebp - 0x84], ebx
pop edx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], edx
mov word [esi], ax
xor ecx, ecx
mov dword [ebp - 0x18], ebx
inc ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x84], ecx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edx
mov word [ebp - 0x40], ax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 2
call fcn.00429e00
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x78], ebx
cmp dword [ebp + 0x10], 0xc
lea eax, [ebp - 0x80]
push eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
push edi
jl 0x45e582
call fcn.0042a060
mov edi, str.lxLdr.xlam
jmp 0x45e58c
call fcn.0042a040
mov edi, str.lxLdr.xla
push edi
call fcn.00489f6d
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.00410170
mov eax, dword [ebp - 0x80]
cmp eax, dword [ebp - 0x7c]
je 0x45e710
lea eax, [ebp - 0x58]
push 0x1c
push eax
call fcn.004164a0
pop ecx
pop ecx
lea eax, [ebp - 0x58]
mov dword [ebp - 0x84], 3
push eax
lea ecx, [ebp - 0x28]
call fcn.0040e350
lea ecx, [ebp - 0x58]
call fcn.00410420
cmp dword [ebp - 0x18], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
je 0x45e65f
push str.SpreadsheetTools_
call fcn.00489f6d
pop ecx
push eax
push str.SpreadsheetTools_
lea ecx, [ebp - 0x28]
call fcn.00409280
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x45e622
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call edi
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.00409280
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x80]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.004201a0
pop ecx
pop ecx
test al, al
je 0x45e65f
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004102d0
cmp dword [esi + 0x10], 0
jne 0x45e710
lea eax, [ebp - 0x58]
push eax
call fcn.00460bb6
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040e350
lea ecx, [ebp - 0x58]
call fcn.00410420
push str.SpreadsheetTools_
call fcn.00489f6d
pop ecx
push eax
push str.SpreadsheetTools_
lea ecx, [ebp - 0x28]
call fcn.00409280
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x45e6c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call edi
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
call fcn.00409280
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
cmp eax, 0xffffffff
lea eax, [ebp - 0x28]
jne 0x45e708
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x80]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004201a0
pop ecx
pop ecx
test al, al
je 0x45e710
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.004102d0
lea ecx, [ebp - 0x80]
call fcn.00407c60
lea ecx, [ebp - 0x74]
call fcn.00429e20
lea ecx, [ebp - 0x40]
call fcn.00410420
lea ecx, [ebp - 0x28]
call fcn.00410420
mov eax, esi
call fcn.0047cdf8
ret