Function at 0x407c20
Capabilities:
Check if file exists
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4405c8
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x462524]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x344], esi
mov ecx, dword [esi + 0x880]
lea edx, [ebp - 0x2b4]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x33c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x340], eax
mov eax, dword [ecx]
push edx
call dword [eax + 0x28]
mov ecx, dword [esi + 0x884]
lea edx, [ebp - 0x338]
push edx
mov dword [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 0x28]
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 1
call dword [sym.imp.CoreUI.dll_public:_wchar_t_const____thiscall_UiLib::CDuiString::operator_wchar_t_const__void_const]
push eax
call fcn.0042e7c9
mov edi, edx
add esp, 4
mov esi, eax
test edi, edi
ja 0x407d23
jb 0x407cbd
test esi, esi
jne 0x407d23
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x33c], esp
push str.waiting_create_crypto_disk_size_error
call fcn.00402f80
mov eax, dword [0x463718]
mov byte [ebp - 4], 2
test eax, eax
jne 0x407d0b
push 0x50
call fcn.0041e94b
add esp, 4
mov dword [ebp - 0x344], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x407d00
mov ecx, eax
call fcn.00403080
jmp 0x407d02
xor eax, eax
mov byte [ebp - 4], 2
mov dword [0x463718], eax
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.00403b20
mov byte [ebp - 4], 4
jmp 0x407d67
lea ecx, [ebp - 0x2b4]
call dword [sym.imp.CoreUI.dll_public:_bool___thiscall_UiLib::CDuiString::IsEmpty_void_const]
test al, al
je 0x407da5
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x33c], esp
push str.waiting_create_crypto_disk_path_empty_error
call fcn.00402f80
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 5
push eax
call fcn.00407470
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00403b20
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 8
jb 0x407d6f
mov eax, dword [eax]
mov ecx, dword [ebp - 0x340]
push eax
call dword [sym.imp.CoreUI.dll_public:_class_UiLib::CDuiString_const____thiscall_UiLib::CDuiString::operator_wchar_t_const__]
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x407f40
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.00405cc0
xor bl, bl
jmp 0x407f72
mov ecx, dword [ebp - 0x344]
mov ecx, dword [ecx + 0x87c]
call dword [sym.imp.CoreUI.dll_public:_bool___thiscall_UiLib::COptionUI::IsSelected_void_const]
test al, al
je 0x407dc2
shld edi, esi, 0xa
shl esi, 0xa
push 0x44501c
lea ecx, [ebp - 0x2b4]
call dword [sym.imp.CoreUI.dll_public:_void___thiscall_UiLib::CDuiString::Append_wchar_t_const__]
shld edi, esi, 0x14
lea ecx, [ebp - 0x2b4]
shl esi, 0x14
call dword [sym.imp.CoreUI.dll_public:_wchar_t_const____thiscall_UiLib::CDuiString::GetData_void_const]
push eax
call fcn.00422287
add esp, 4
lea ecx, [ebp - 0x2b4]
call dword [sym.imp.CoreUI.dll_public:_wchar_t_const____thiscall_UiLib::CDuiString::GetData_void_const]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407e3f
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x33c], esp
push str.waiting_create_crypto_disk_path_error
call fcn.00402f80
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 7
push eax
call fcn.00407470
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00403b20
mov byte [ebp - 4], 8
jmp 0x407f20
xor eax, eax
push 0x200
push eax
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
lea eax, [ebp - 0x218]
push eax
call fcn.00429120
add esp, 0xc
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x2b4]
push 0
push 0
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.CoreUI.dll_public:_wchar_t_const____thiscall_UiLib::CDuiString::GetData_void_const]
push eax
call fcn.0042ea48
add esp, 0x14
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x407eda
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x33c], esp
push str.waiting_create_crypto_disk_get_diskinfo_error
call fcn.00402f80
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 9
push eax
call fcn.00407470
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00403b20
mov byte [ebp - 4], 0xa
jmp 0x407f20
cmp edi, dword [ebp - 0x348]
jb 0x407f44
ja 0x407eec
cmp esi, dword [ebp - 0x34c]
jb 0x407f44
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x33c], esp
push str.waiting_create_crypto_disk_disksize_error
call fcn.00402f80
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0xb
push eax
call fcn.00407470
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00403b20
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 8
jb 0x407f28
mov eax, dword [eax]
mov ecx, dword [ebp - 0x340]
push eax
call dword [sym.imp.CoreUI.dll_public:_class_UiLib::CDuiString_const____thiscall_UiLib::CDuiString::operator_wchar_t_const__]
lea ecx, [ebp - 0x230]
call fcn.00403170
xor bl, bl
jmp 0x407f72
mov eax, dword [ebp - 0x33c]
lea ecx, [ebp - 0x2b4]
mov dword [eax], esi
mov dword [eax + 4], edi
call dword [sym.imp.CoreUI.dll_public:_wchar_t_const____thiscall_UiLib::CDuiString::GetData_void_const]
sub ebx, eax
nop dword [eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [eax + ebx - 2], cx
test cx, cx
jne 0x407f60
mov bl, 1
mov esi, dword [sym.imp.CoreUI.dll_public:_void___thiscall_UiLib::CDuiString::destructor_void_]
lea ecx, [ebp - 0x338]
call esi
lea ecx, [ebp - 0x2b4]
call esi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041e99a
mov esp, ebp
pop ebp
ret 0xc