Function at 0x140031e40
Capabilities:
Get disk size

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0x860
mov qword [rsp + 0x90], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov r12, r9
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
test r8, r8
jne 0x140031ebb
lea rcx, [rax + 0x18]
call fcn.140056030
nop
mov dword [rsp + 0x20], 0x64
lea r9d, [rsi + 0x40]
mov r8, qword [rax]
lea rdx, str.2301055
mov rcx, qword [rdi + 0x3a8]
call qword [sym.imp.soui.dll_long_long___int64____cdecl_SOUI::SMessageBox_struct_HWND______ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__unsigned_int__int_]
nop
lea rcx, [rsp + 0x890]
call qword [sym.imp.mfc90u.dll_CView::CView]
xor eax, eax
jmp 0x140032128
call qword [sym.imp.Register.dll_GetLicenseState]
cmp eax, 1
je 0x140031eec
cmp eax, 2
je 0x140031eec
cmp dword [rdi + 0x970], 0
je 0x140031eec
mov edx, 1
mov rcx, rdi
call fcn.140029200
test eax, eax
je 0x140031eec
xor eax, eax
jmp 0x140032128
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140031930
mov rcx, qword [rax]
cmp dword [rcx - 8], 0
sete bl
lea rcx, [rsp + 0x40]
call qword [sym.imp.utilities.dll_public:_void___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::destructor_void____ptr64]
test bl, bl
je 0x140031f19
xor eax, eax
jmp 0x140032128
mov rax, qword [rdi + 0xa18]
movsx edx, byte [rdi + 0x63c]
movzx ecx, word [rax]
cmp ecx, edx
jne 0x140031f7b
lea rcx, [rsp + 0x38]
call fcn.140056030
nop
mov dword [rsp + 0x20], 0x64
mov r9d, 0x41
mov r8, qword [rax]
lea rdx, str.2301105
mov rcx, qword [rdi + 0x3a8]
call qword [sym.imp.soui.dll_long_long___int64____cdecl_SOUI::SMessageBox_struct_HWND______ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__unsigned_int__int_]
cmp rax, 2
sete bl
lea rcx, [rsp + 0x38]
call qword [sym.imp.mfc90u.dll_CView::CView]
test bl, bl
je 0x140031f7b
xor eax, eax
jmp 0x140032128
mov rdx, qword [rdi + 0xa18]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0xb8]
lea rdx, [rsp + 0x30]
mov rcx, qword [rdi + 0xa18]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1400320ea
xor r13d, r13d
mov eax, r13d
cmp qword [rsp + 0x30], rbp
setae al
test eax, eax
je 0x1400320ea
lea rdx, str.LAYOUT:XML_RECOVERY
lea rcx, [rsp + 0xc0]
call fcn.1400459d0
nop
mov ebx, r13d
mov eax, dword [rdi + 0x960]
test eax, eax
je 0x140031ff8
lea ebx, [r13 + 1]
mov rcx, rdi
call fcn.140032f20
lea rax, [rsp + 0xc0]
mov qword [rdi + CImageList::FromHandlePermanent], rax
mov qword [rsp + 0x50], r13
mov dword [rsp + 0x58], r13d
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x78], r13
lea rcx, [rsp + 0x98]
mov rax, qword [r12]
mov qword [rcx], rax
mov rax, qword [r12 + 8]
mov qword [rcx + 8], rax
mov qword [rsp + 0xa8], rdi
lea r8, [rsp + 0x98]
lea rdx, [0x140048020]
lea rcx, [rsp + 0x50]
call fcn.14005a090
lea r11, [rsp + 0x50]
mov qword [rsp + 0x740], r11
mov qword [rsp + 0x718], rsi
mov qword [rsp + 0x720], rbp
mov rdx, qword [rdi + 0xa18]
lea rcx, [rsp + 0x7a0]
call qword [sym.imp.utilities.dll_public:_class_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_____ptr64___cdecl_SOUI::TStringT_wchar_t__struct_SOUI::wchar_traits_::operator_wchar_t_const____ptr64____ptr64]
lea r11, [rdi + 0xa28]
mov qword [rsp + 0x840], r11
mov rdx, qword [rdi + 0x3a8]
lea rcx, [rsp + 0xc0]
call qword [sym.imp.soui.dll_public_virtual:_long_long___int64____cdecl_SOUI::SHostDialog::DoModal_struct_HWND______ptr64____ptr64]
test ebx, ebx
je 0x1400320c1
mov rcx, rdi
call fcn.140033030
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400320d6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x50], r13
lea rcx, [rsp + 0xc0]
call fcn.140045bb0
mov eax, 1
jmp 0x140032128
lea rcx, [rsp + 0x48]
call fcn.140056030
nop
mov dword [rsp + 0x20], 0x64
mov r9d, 0x40
mov r8, qword [rax]
lea rdx, str.2301106
mov rcx, qword [rdi + 0x3a8]
call qword [sym.imp.soui.dll_long_long___int64____cdecl_SOUI::SMessageBox_struct_HWND______ptr64__wchar_t_const____ptr64__wchar_t_const____ptr64__unsigned_int__int_]
nop
lea rcx, [rsp + 0x48]
call qword [sym.imp.mfc90u.dll_CView::CView]
xor eax, eax
lea r11, [rsp + 0x860]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret