Function at 0x4070c0
Capabilities:
Check if file exists
Get file attributes
Link many functions at runtime
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x462524]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp byte [ebx + 4], 0
je 0x4070f0
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e99a
mov esp, ebp
pop ebp
ret
push edi
push 0x104
lea eax, [ebx + 0x2c]
push 0
push eax
call fcn.00429120
push 0x104
lea edi, [ebx + 0x234]
push 0
push edi
call fcn.00429120
add esp, 0x18
cmp dword [ebx], 0
je 0x407123
mov ecx, ebx
call fcn.00406ef0
push str.PrivacyDrive.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
jne 0x407144
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e99a
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InstallDriver
push eax
call esi
push str.UninstallDriver
push dword [ebx]
mov dword [ebx + 8], eax
call esi
push str.InitMount
push dword [ebx]
mov dword [ebx + 0xc], eax
call esi
push str.FindVolume
push dword [ebx]
mov dword [ebx + 0x10], eax
call esi
push str.CreatMount
push dword [ebx]
mov dword [ebx + 0x14], eax
call esi
push str.OpenMount
push dword [ebx]
mov dword [ebx + 0x18], eax
call esi
push str.UnMount
push dword [ebx]
mov dword [ebx + 0x1c], eax
call esi
push str.DeleteMount
push dword [ebx]
mov dword [ebx + 0x20], eax
call esi
push str.FinalizeMount
push dword [ebx]
mov dword [ebx + 0x24], eax
call esi
mov ecx, dword [ebx + 8]
mov dword [ebx + 0x28], eax
test ecx, ecx
je 0x407311
cmp dword [ebx + 0xc], 0
je 0x407311
cmp dword [ebx + 0x10], 0
je 0x407311
cmp dword [ebx + 0x14], 0
je 0x407311
cmp dword [ebx + 0x18], 0
je 0x407311
cmp dword [ebx + 0x1c], 0
je 0x407311
cmp dword [ebx + 0x20], 0
je 0x407311
cmp dword [ebx + 0x24], 0
je 0x407311
test eax, eax
je 0x407311
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00429120
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x20c]
mov edx, edi
mov eax, ecx
sub edx, eax
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x407252
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x407265
mov ecx, 8
mov esi, str.CryptoDisk.ini
rep movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x234]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4072d8
push esi
push 0x444844
push str.VolumePath
push str.Crypto
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 0xffffffff
je 0x4072c1
test al, 4
jne 0x4072c1
or eax, 4
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4072d8
test al, 2
jne 0x4072d8
or eax, 2
push eax
push esi
call edi
push esi
push 0x104
lea eax, [ebx + 0x2c]
push eax
push 0x444844
push str.VolumePath
push str.Crypto
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop esi
pop edi
mov byte [ebx + 4], 1
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041e99a
mov esp, ebp
pop ebp
ret
push eax
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push dword [ebx + 0xc]
push ecx
push str.CryptoDiskDll_error___InstallDrive___X__UninstallDrive___X_InitMount___X__FindVolume___X__CreatMount___X__OpenMount___X__UnMount___X__DleteMount___X__FinalizeMount___X
call fcn.004149f0
add esp, 0x28
mov ecx, ebx
call fcn.00406ef0
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0041e99a
mov esp, ebp
pop ebp
ret