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

Disassembly:
push 0x7c
mov eax, 0x4dec3c
call fcn.0047ce9e
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.0042a250
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 0x45e752
call fcn.0042a4b0
mov edi, str.lxLdr.xlam
jmp 0x45e75c
call fcn.0042a490
mov edi, str.lxLdr.xla
push edi
call fcn.00489fcd
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.00410170
mov eax, dword [ebp - 0x80]
cmp eax, dword [ebp - 0x7c]
je 0x45e8e0
lea eax, [ebp - 0x58]
push 0x1c
push eax
call fcn.004168f0
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 0x45e82f
push str.SpreadsheetTools_
call fcn.00489fcd
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 0x45e7f2
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.004205f0
pop ecx
pop ecx
test al, al
je 0x45e82f
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004102d0
cmp dword [esi + 0x10], 0
jne 0x45e8e0
lea eax, [ebp - 0x58]
push eax
call fcn.00460c13
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040e350
lea ecx, [ebp - 0x58]
call fcn.00410420
push str.SpreadsheetTools_
call fcn.00489fcd
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 0x45e890
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 0x45e8d8
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x80]
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.004205f0
pop ecx
pop ecx
test al, al
je 0x45e8e0
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.0042a270
lea ecx, [ebp - 0x40]
call fcn.00410420
lea ecx, [ebp - 0x28]
call fcn.00410420
mov eax, esi
call fcn.0047ce48
ret