Function at 0x140035d60
Capabilities:
Check if file exists
Get disk information
Get disk size
Get file attributes

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2a98]
mov eax, 0x2b98
call fcn.1400a5130
sub rsp, rax
mov rax, qword [0x14014dcf0]
xor rax, rsp
mov qword [rbp + 0x2a80], rax
mov r15, qword [rbp + 0x2b30]
mov esi, dword [rbp + 0x2b38]
xor eax, eax
xor r12d, r12d
mov rdi, r9
mov qword [rbp - 0x78], r9
mov r14, r8
mov ebx, edx
mov dword [rsp + 0x40], edx
mov r13, rcx
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x44], r12d
mov byte [rbp + 0x850], r12b
mov qword [rbp + 0x851], rax
mov qword [rbp + 0x859], rax
mov qword [rbp + 0x861], rax
mov dword [rbp + 0x869], eax
mov word [rbp + 0x86d], ax
mov byte [rbp + 0x86f], al
cmp dword [r15 + 0x10], eax
je 0x140035e0a
mov r8d, esi
mov rdx, r14
call fcn.14004e310
test eax, eax
je 0x14003712d
mov rcx, r14
call fcn.14002c1c0
test eax, eax
je 0x140035e37
test esi, esi
jne 0x14003712d
cmp dword [0x140196ef0], r12d
jne 0x14003712d
lea rcx, str.VOL_ALREADY_MOUNTED
jmp 0x14003710f
cmp ebx, 0x19
ja 0x1400370fb
call fcn.14001e710
mov ecx, r12d
bt eax, ebx
setae cl
test ecx, ecx
je 0x1400370fb
test rdi, rdi
jne 0x140035e68
call fcn.14001a7d0
test eax, eax
jne 0x140036d7e
lea rcx, [rbp + 0x1b0]
xor edx, edx
mov r8d, 0x3d2
call fcn.1400a4ea0
mov eax, dword [0x140197180]
mov edx, r12d
cmp dword [rbp + 0x2b28], edx
mov dword [rbp + 0x478], eax
mov eax, dword [r15 + 0x9c]
sete dl
mov dword [rbp + 0x508], eax
mov eax, dword [r15 + 0xa0]
mov dword [rbp + 0x50c], eax
lea rdi, [r15 + 0xac]
lea rax, [rbp + 0x528]
mov dword [rbp + 0x464], edx
lea rcx, [rbp + 0x528]
sub rdi, rax
mov edx, 0x21
lea rax, [rdx + 0x7fffffdd]
test rax, rax
je 0x140035ef4
movzx eax, word [rcx + rdi]
test ax, ax
je 0x140035ef4
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x140035ed1
jmp 0x140035ef9
test rdx, rdx
jne 0x140035efd
sub rcx, 2
mov word [rcx], r12w
or r12, 0xffffffffffffffff
nop word [rax + rax]
mov eax, dword [rbp + 0x2b18]
mov dword [rbp + 0x454], ebx
xor ebx, ebx
mov dword [rbp + 0x450], eax
mov eax, dword [rbp + 0x2b20]
mov dword [rbp + 0x470], ebx
mov dword [rbp + 0x572], eax
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x140035f56
lea rcx, [rbp + 0x3c8]
mov rdx, rax
mov r8d, 0x88
call fcn.1400a4990
jmp 0x140035f5c
mov dword [rbp + 0x3c8], ebx
mov edi, dword [r15]
test edi, edi
jne 0x140035fa5
cmp dword [r15 + 8], ebx
je 0x140035fa5
lea rcx, [rbp + 0x480]
lea rdx, [r15 + 0x14]
mov r8d, 0x88
call fcn.1400a4990
mov eax, dword [r15 + 0xa4]
mov dword [rbp + 0x47c], 1
mov dword [rbp + 0x514], eax
mov eax, dword [r15 + 0xa8]
mov dword [rbp + 0x524], eax
jmp 0x140035fab
mov dword [rbp + 0x47c], ebx
mov eax, dword [r15 + 4]
cmp dword [r15 + 0xf0], ebx
mov dword [rbp + 0x45c], edi
mov dword [rbp + 0x460], eax
mov eax, dword [r15 + 0xc]
mov rcx, r12
mov dword [rbp + 0x46c], eax
mov eax, ebx
sete al
mov dword [rbp + 0x468], eax
mov eax, dword [rbp + 0x2b00]
mov rdi, r14
mov dword [rbp + 0x510], eax
mov eax, dword [rbp + 0x2b10]
mov rdx, r14
mov dword [rbp + 0x518], eax
mov eax, dword [rbp + 0x2b08]
mov qword [rbp + 0x28], 7
mov dword [rbp + 0x520], eax
xor eax, eax
mov qword [rbp + 0x20], rbx
repne scasw ax, word [rdi]
mov word [rbp + 0x10], bx
not rcx
lea r8, [rcx - 1]
lea rcx, [rbp + 0x10]
call fcn.140006260
lea rdx, [0x1400cd808]
lea rcx, [rbp + 0x10]
mov r9d, 4
xor r8d, r8d
call fcn.140009a20
test rax, rax
jne 0x14003614f
lea r8d, [rax + 4]
lea rdx, [rbp + 0xf0]
lea rcx, [rbp + 0x10]
mov r9, r12
call fcn.140006410
mov rdi, rax
lea rax, [rbp + 0x10]
cmp rax, rdi
je 0x1400360d5
cmp qword [rbp + 0x28], 8
jb 0x14003607e
mov rcx, qword [rbp + 0x10]
call fcn.1400a58b8
mov qword [rbp + 0x28], 7
mov qword [rbp + 0x20], rbx
mov word [rbp + 0x10], bx
cmp qword [rdi + 0x18], 8
jae 0x1400360ac
mov r8, qword [rdi + 0x10]
lea rcx, [rbp + 0x10]
mov rdx, rdi
lea r8, [r8 + r8 + 2]
call fcn.1400a4990
jmp 0x1400360b6
mov rax, qword [rdi]
mov qword [rbp + 0x10], rax
mov qword [rdi], rbx
mov rax, qword [rdi + 0x10]
mov qword [rbp + 0x20], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp + 0x28], rax
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbx
mov word [rdi], bx
cmp qword [rbp + 0x108], 8
jb 0x1400360eb
mov rcx, qword [rbp + 0xf0]
call fcn.1400a58b8
cmp qword [rbp + 0x28], 8
lea rdi, [rbp + 0x10]
mov qword [rbp + 0x108], 7
cmovae rdi, qword [rbp + 0x10]
mov qword [rbp + 0x100], rbx
mov word [rbp + 0xf0], bx
mov edx, 0x104
mov rcx, r14
sub rdi, r14
nop dword [rax]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140036143
movzx eax, word [rcx + rdi]
test ax, ax
je 0x140036143
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x140036120
jmp 0x140036148
test rdx, rdx
jne 0x14003614c
sub rcx, 2
mov word [rcx], bx
lea rdx, [0x1400cf500]
lea rcx, [rbp + 0x10]
mov r9d, 7
xor r8d, r8d
call fcn.140009a20
test rax, rax
jne 0x140036256
lea r9d, [rax + 2]
lea rdx, [0x1400d048c]
lea rcx, [rbp + 0x10]
mov r8, r12
call fcn.140009b30
mov rcx, qword [rbp + 0x20]
add rcx, 0xfffffffffffffffe
cmp rax, rcx
jne 0x140036256
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x68]
mov r9, r12
xor r8d, r8d
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rbx
mov word [rbp - 0x68], bx
call fcn.140006130
lea rdx, [rbp - 0x68]
lea rcx, [rbp + 0x80]
call fcn.14002b660
mov r11, qword [rbp + 0x98]
mov r8, qword [rbp + 0x80]
cmp qword [rbp + 0x90], rbx
je 0x14003622f
cmp r11, 8
lea rdi, [rbp + 0x80]
mov edx, 0x104
cmovae rdi, r8
mov rcx, r14
sub rdi, r14
nop dword [rax]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140036223
movzx eax, word [rcx + rdi]
test ax, ax
je 0x140036223
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x140036200
jmp 0x140036228
test rdx, rdx
jne 0x14003622c
sub rcx, 2
mov word [rcx], bx
cmp r11, 8
jb 0x14003623d
mov rcx, r8
call fcn.1400a58b8
mov qword [rbp + 0x98], 7
mov qword [rbp + 0x90], rbx
mov word [rbp + 0x80], bx
cmp qword [rbp + 0x20], 3
jb 0x140036335
cmp qword [rbp + 0x28], 8
lea rcx, [rbp + 0x10]
lea rdx, [0x1400d2140]
cmovae rcx, qword [rbp + 0x10]
mov r8d, 3
call fcn.1400a55a8
test eax, eax
jne 0x140036335
cmp qword [rbp + 0x20], 0x43
mov rdi, rbx
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbx
jne 0x140036ac7
cmp qword [rbp + 0x28], 8
lea rcx, [rbp + 0x10]
lea rdx, [rsp + 0x68]
cmovae rcx, qword [rbp + 0x10]
add rcx, 6
call fcn.1400232f0
mov rdi, qword [rsp + 0x68]
test al, al
je 0x140036ac7
mov rax, qword [rsp + 0x70]
sub rax, rdi
cmp rax, 0x20
jne 0x140036ac7
lea ebx, [rax - 0x1f]
mov rax, qword [rdi]
mov rcx, rdi
mov qword [rbp + 0x850], rax
mov rax, qword [rdi + 8]
mov dword [rsp + 0x44], 1
mov qword [rbp + 0x858], rax
mov rax, qword [rdi + 0x10]
mov qword [rbp + 0x860], rax
mov rax, qword [rdi + 0x18]
mov qword [rbp + 0x868], rax
call fcn.1400a58b8
xor edi, edi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x78], rdi
jmp 0x1400367fb
xor eax, eax
mov rcx, r12
mov rdi, r14
repne scasw ax, word [rdi]
mov eax, 0x207
not rcx
dec rcx
cmp rcx, 0x208
mov rdi, rcx
cmovae rdi, rax
mov word [rbp + rdi*2 + 0x1c0], bx
test rdi, rdi
je 0x14003639f
lea rax, [rbp + 0x1be]
mov rsi, r14
lea rbx, [rbp + rdi*2 + 0x1be]
sub rsi, rax
nop dword [rax + rax]
movzx ecx, word [rsi + rbx - 2]
call fcn.1400a7290
sub rbx, 2
dec rdi
mov word [rbx + 2], ax
jne 0x140036380
mov esi, dword [rbp + 0x2b38]
xor ebx, ebx
mov ecx, 7
lea rdx, str.DEVICE
lea rdi, [rbp + 0x1c0]
movzx eax, word [rdx]
cmp word [rdi], ax
jne 0x1400363c9
add rdi, 2
add rdx, 2
dec rcx
jne 0x1400363b2
jmp 0x1400363d9
cmp word [rdi], ax
mov ecx, 1
cmovb ecx, r12d
test ecx, ecx
jne 0x1400363de
mov ebx, 1
lea rax, [rbp + 0x1c0]
mov rdi, r14
mov edx, 0x104
sub rdi, rax
lea rcx, [rbp + 0x1c0]
nop word [rax + rax]
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140036423
movzx eax, word [rcx + rdi]
test ax, ax
je 0x140036423
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x140036400
jmp 0x140036428
test rdx, rdx
jne 0x14003642c
sub rcx, 2
xor edi, edi
mov word [rcx], di
test ebx, ebx
jne 0x1400367fb
lea r9d, [rdi + 2]
lea rdx, [0x1400d2de8]
lea rcx, [rbp + 0x10]
xor r8d, r8d
mov dword [rbp + 0x458], 0x200
mov dword [rbp + 0x51c], 0x200
mov dword [rbp + 0x576], 0x10000
mov qword [rbp + 0x57a], 0x11
call fcn.140009a20
test rax, rax
jne 0x140036561
lea r8d, [rdi + 1]
lea rdx, [rbp + 0x168]
lea rcx, [rbp + 0x10]
mov r9, r12
call fcn.140006410
lea rdx, [0x1400d2de0]
lea rcx, [rbp + 0x118]
mov r8, rax
call fcn.1400064f0
mov rdi, rax
cmp qword [rax + 0x18], 8
jb 0x1400364bc
mov rdi, qword [rax]
lea rax, [rbp + 0x1c0]
mov edx, 0x104
lea rcx, [rbp + 0x1c0]
sub rdi, rax
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x1400364f5
movzx eax, word [rcx + rdi]
test ax, ax
je 0x1400364f5
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x1400364d2
jmp 0x1400364fa
test rdx, rdx
jne 0x1400364fe
sub rcx, 2
xor edi, edi
cmp qword [rbp + 0x130], 8
mov word [rcx], di
jb 0x140036519
mov rcx, qword [rbp + 0x118]
call fcn.1400a58b8
cmp qword [rbp + 0x180], 8
mov qword [rbp + 0x130], 7
mov qword [rbp + 0x128], rdi
mov word [rbp + 0x118], di
jb 0x140036548
mov rcx, qword [rbp + 0x168]
call fcn.1400a58b8
mov qword [rbp + 0x180], 7
mov qword [rbp + 0x178], rdi
mov word [rbp + 0x168], di
lea rdx, [rbp + 0x870]
mov r8d, 0x103
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
test eax, eax
je 0x1400367fb
lea rax, [rsp + 0x48]
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x5c]
lea rdx, [rsp + 0x48]
lea rcx, [rbp + 0x870]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x1400365b9
mov eax, dword [rsp + 0x5c]
mov dword [rbp + 0x458], eax
mov dword [rbp + 0x51c], eax
mov eax, dword [0x140196f30]
test eax, eax
jg 0x1400365d1
mov byte [0], 0
mov eax, dword [0x140196f30]
shl eax, 8
or eax, dword [0x140196f34]
shl eax, 8
or eax, dword [0x140196f38]
cmp eax, 0x60000
jl 0x1400367ac
xor eax, eax
lea rdi, [rbp + 0x870]
mov rcx, r12
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp rcx, 2
jb 0x1400367aa
cmp word [rbp + 0x872], 0x3a
jne 0x1400367aa
movzx ecx, word [rbp + 0x870]
call fcn.1400a7290
cmp ax, 0x41
jb 0x1400367aa
movzx ecx, word [rbp + 0x870]
call fcn.1400a7290
xor edi, edi
cmp ax, 0x5a
ja 0x1400367ac
lea r8d, [rdi + 6]
lea rdx, str..X:
lea rcx, [rbp + 0x38]
mov qword [rbp + 0x50], 7
mov qword [rbp + 0x48], rdi
mov word [rbp + 0x38], di
call fcn.140006260
xor eax, eax
cmp qword [rbp + 0x50], 8
mov qword [rbp + 0x68], rax
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], rax
movzx eax, word [rbp + 0x870]
mov dword [rbp + 0x60], edi
mov dword [rsp + 0x60], edi
mov qword [rsp + 0x30], rdi
lea rcx, [rbp + 0x38]
mov dword [rsp + 0x28], edi
cmovae rcx, qword [rbp + 0x38]
mov dword [rsp + 0x20], 3
mov word [rcx + 8], ax
cmp qword [rbp + 0x50], 8
lea rcx, [rbp + 0x38]
cmovae rcx, qword [rbp + 0x38]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140036786
xor eax, eax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov edx, 0x560000
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x60]
mov rcx, rdi
mov dword [rsp + 0x28], 0x20
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x14003677d
cmp dword [rbp + 0x60], 0
jbe 0x14003677d
mov ecx, dword [rbp + 0x68]
lea r8, [rbp + 0xa8]
lea rdx, [rbp + 0x190]
call fcn.14001ea30
test eax, eax
je 0x14003677d
cmp dword [rbp + 0x194], 0x1c
jb 0x140036750
mov eax, dword [rbp + 0x1a0]
mov dword [rbp + 0x458], eax
mov eax, dword [rbp + 0x1a4]
mov dword [rbp + 0x51c], eax
cmp dword [rbp + 0xac], 0x20
jb 0x14003677d
mov eax, dword [rbp + 0xb0]
mov dword [rbp + 0x576], eax
mov eax, dword [rbp + 0xb4]
mov dword [rbp + 0x57a], eax
mov eax, dword [rbp + 0xb8]
mov dword [rbp + 0x57e], eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 0x50], 8
jb 0x140036796
mov rcx, qword [rbp + 0x38]
call fcn.1400a58b8
xor edi, edi
mov qword [rbp + 0x50], 7
mov qword [rbp + 0x48], rdi
mov word [rbp + 0x38], di
jmp 0x1400367ac
xor edi, edi
cmp dword [rbp + 0x45c], 0
jne 0x1400367fb
mov dword [rsp + 0x38], edi
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
lea rcx, [rbp + 0x870]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x1400367fb
mov eax, dword [rsp + 0x64]
shr eax, 0x13
and eax, 1
mov dword [rbp + 0x45c], eax
cmp dword [r15 + 0x10], 0
je 0x140036831
lea r8, [rbp + 0x474]
lea rdx, str.DeviceHarddisk_dPartition
lea rcx, [rbp + 0x1c0]
mov r9d, 4
call fcn.1400a9a38
cmp eax, 1
jne 0x140036b26
mov dword [rbp + 0x470], eax
test esi, esi
jne 0x1400368c3
lea rax, [rbp + 0x1b0]
lea r9, [rbp - 0x40]
lea r8, [0x140035d20]
mov qword [rbp - 0x40], rax
mov eax, dword [rsp + 0x44]
xor edx, edx
mov dword [rbp - 0x38], eax
mov eax, dword [rbp + 0x850]
mov rcx, r13
mov dword [rbp - 0x34], eax
mov eax, dword [rbp + 0x854]
mov dword [rbp], edi
mov dword [rbp - 0x30], eax
mov eax, dword [rbp + 0x858]
mov dword [rbp - 0x2c], eax
mov eax, dword [rbp + 0x85c]
mov dword [rbp - 0x28], eax
mov eax, dword [rbp + 0x860]
mov dword [rbp - 0x24], eax
mov eax, dword [rbp + 0x864]
mov dword [rbp - 0x20], eax
mov eax, dword [rbp + 0x868]
mov dword [rbp - 0x1c], eax
mov eax, dword [rbp + 0x86c]
mov dword [rbp - 0x18], eax
lea rax, [rsp + 0x4c]
mov qword [rbp - 0x10], rax
lea rax, [rsp + 0x54]
mov qword [rbp - 8], rax
call fcn.14001eb50
mov r11d, dword [rbp]
jmp 0x1400368ed
mov r8d, dword [rsp + 0x44]
lea r9, [rbp + 0x850]
lea rdx, [rsp + 0x54]
lea rcx, [rbp + 0x1b0]
call fcn.140035b40
mov dword [rsp + 0x4c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
mov r8d, 0x88
lea rdi, [rbp + 0x3c8]
xor eax, eax
mov ecx, r8d
lea rdx, [rbp + 0x3c8]
rep stosb byte [rdi], al
nop dword [rax + rax]
mov byte [rdx], al
inc rdx
dec r8
jne 0x140036910
mov r8d, 0x88
lea rdi, [rbp + 0x480]
lea rdx, [rbp + 0x480]
mov ecx, r8d
rep stosb byte [rdi], al
mov byte [rdx], al
inc rdx
dec r8
jne 0x140036933
mov r8d, 4
lea rdi, [rbp + 0x510]
lea rdx, [rbp + 0x510]
mov ecx, r8d
rep stosb byte [rdi], al
mov byte [rdx], al
inc rdx
dec r8
jne 0x140036956
mov r8d, 4
lea rdi, [rbp + 0x518]
lea rdx, [rbp + 0x518]
mov ecx, r8d
rep stosb byte [rdi], al
nop dword [rax]
mov byte [rdx], al
inc rdx
dec r8
jne 0x140036980
mov r8d, 4
lea rdi, [rbp + 0x514]
lea rdx, [rbp + 0x514]
mov ecx, r8d
rep stosb byte [rdi], al
mov byte [rdx], al
inc rdx
dec r8
jne 0x1400369a3
mov ecx, r11d
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [rsp + 0x4c], 0
jne 0x140036a70
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x140036b75
cmp dword [0x140197184], 0
je 0x140036a10
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
cmp eax, 0xa
jge 0x140036a10
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [rbp + 0x28], 8
mov ebx, dword [rsp + 0x40]
jb 0x140035f10
mov rcx, qword [rbp + 0x10]
call fcn.1400a58b8
jmp 0x140035f10
cmp dword [rbp + 0x464], 0
je 0x140036b57
test esi, esi
je 0x140036a2b
xor eax, eax
mov dword [rbp + 0x464], eax
jmp 0x1400369f3
cmp dword [0x140196ef0], 0
jne 0x140036b0e
lea rcx, str.FILE_IN_USE
call fcn.14003a7b0
mov r8, qword [0x140196ee8]
mov r9d, 0x134
mov rdx, rax
mov rcx, r13
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x140036b0e
xor eax, eax
mov dword [rbp + 0x464], eax
jmp 0x1400369f3
mov edx, dword [rbp + 0x1b0]
test edx, edx
je 0x140036daf
cmp edx, 3
jne 0x140036d85
cmp dword [rbp + 0x2b40], 0
je 0x140036d6e
mov eax, dword [0x1401971e4]
inc eax
mov dword [0x1401971e4], eax
cmp eax, 2
jle 0x140036ba0
cmp dword [rbp + 0x508], 0
jne 0x140036ba0
mov dword [rbp + 0x508], 1
jmp 0x1400369f3
test esi, esi
jne 0x140036af6
cmp dword [0x140196ef0], ebx
jne 0x140036af6
lea rcx, str.VOLUME_ID_INVALID
call fcn.14003a7b0
mov r8, qword [0x140196ee8]
lea r9d, [rsi + 0x10]
mov rdx, rax
mov rcx, r13
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x140036b0e
mov rcx, rdi
call fcn.1400a58b8
cmp qword [rbp + 0x28], 8
jb 0x140036b1e
mov rcx, qword [rbp + 0x10]
call fcn.1400a58b8
mov eax, r12d
jmp 0x140037130
test esi, esi
jne 0x140036b0e
cmp dword [0x140196ef0], esi
jne 0x140036b0e
lea rcx, str.NO_SYSENC_PARTITION_SELECTED
call fcn.14003a7b0
lea r9d, [rsi + 0x30]
mov r8, qword [0x140196ee8]
mov rdx, rax
mov rcx, r13
call qword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x140036b0e
test esi, esi
jne 0x140036b0e
cmp dword [0x140196ef0], esi
jne 0x140036b0e
lea rcx, str.FILE_IN_USE_FAILED
call fcn.14003a7b0
lea r9d, [rsi + 0x10]
jmp 0x140036b42
test esi, esi
jne 0x140036b0e
cmp dword [0x140197188], esi
je 0x140036b8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x15
je 0x140036b0e
lea rdx, str.MountVolume:9128
mov rcx, r13
call fcn.140025910
jmp 0x140036b0e
test ebx, ebx
je 0x140036d5a
cmp dword [rbp + 0x47c], 0
je 0x140036d5a
lea r8, [rsp + 0x58]
lea rdx, str.DeviceHarddisk_dPartition
mov rcx, r14
call fcn.1400a9a00
cmp eax, 1
jne 0x140036d6e
lea rcx, [rbp + 0x5c0]
xor edx, edx
mov r8d, 0x264
call fcn.1400a4ea0
mov r9d, dword [rsp + 0x58]
lea r8, str.DeviceHarddisk_dPartition0
lea rcx, [rbp + 0x5c0]
mov edx, 0x104
mov dword [rbp + 0x7c8], 1
call fcn.140013cf0
mov rcx, qword [0x140148300]
lea rax, [rbp - 0x70]
xor ebx, ebx
lea r8, [rbp + 0x5c0]
mov r9d, 0x264
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x5c0]
mov edx, 0x222034
mov dword [rsp + 0x28], 0x264
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140036d4b
cmp dword [rbp + 0x7cc], ebx
je 0x140036d4b
lea rcx, str.HIDDEN_VOL_PROT_PASSWORD_US_KEYB_LAYOUT
call fcn.14003a7b0
lea rcx, [rbp + 0x590]
mov rdx, r13
mov rdi, rax
call fcn.140028bb0
lea r8, [0x1400cc778]
lea rcx, [rbp + 0xc8]
mov rdx, rax
call fcn.14000f1c0
lea rcx, [rbp + 0x140]
mov r8, rdi
mov rdx, rax
call fcn.14000f1c0
cmp qword [rax + 0x18], 8
jb 0x140036cb4
mov rax, qword [rax]
cmp dword [0x140196ef0], ebx
jne 0x140036cd5
mov r8, qword [0x140196ee8]
mov r9d, 0x30
mov rdx, rax
mov rcx, r13
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp qword [rbp + 0x158], 8
jb 0x140036ceb
mov rcx, qword [rbp + 0x140]
call fcn.1400a58b8
cmp qword [rbp + 0xe0], 8
mov qword [rbp + 0x158], 7
mov qword [rbp + 0x150], rbx
mov word [rbp + 0x140], bx
jb 0x140036d1a
mov rcx, qword [rbp + 0xc8]
call fcn.1400a58b8
cmp qword [rbp + 0x5a8], 8
mov qword [rbp + 0xe0], 7
mov qword [rbp + 0xd8], rbx
mov word [rbp + 0xc8], bx
jb 0x140036d6e
mov rcx, qword [rbp + 0x590]
call fcn.1400a58b8
jmp 0x140036d6e
mov edx, dword [rbp + 0x1b0]
lea r8, str.MountVolume:9166
jmp 0x140036d66
lea r8, str.MountVolume:9170
mov edx, 3
mov rcx, r13
call fcn.140028ea0
cmp qword [rbp + 0x28], 8
jb 0x140036d7e
mov rcx, qword [rbp + 0x10]
call fcn.1400a58b8
xor eax, eax
jmp 0x140037130
test esi, esi
jne 0x140036d98
lea r8, str.MountVolume:9177
mov rcx, r13
call fcn.140028ea0
cmp qword [rbp + 0x28], 8
jb 0x140036d7e
mov rcx, qword [rbp + 0x10]
call fcn.1400a58b8
xor eax, eax
jmp 0x140037130
mov eax, dword [rbp + 0x508]
cmp eax, dword [r15 + 0x9c]
je 0x140036df9
test eax, eax
je 0x140036df9
cmp dword [rbp + 0x2b40], 0
je 0x140036df9
cmp dword [0x140196ef0], 0
jne 0x140036df9
lea rcx, str.HEADER_DAMAGED_AUTO_USED_HEADER_BAK
call fcn.14003a7b0
mov r8, qword [0x140196ee8]
mov r9d, 0x30
mov rdx, rax
mov rcx, r13
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [rbp + 0x1b4]
mov edi, dword [rsp + 0x40]
xor r12d, r12d
mov dword [0x140150c4c], eax
test eax, eax
je 0x140036e85
lea eax, [rdi + 0x41]
lea rcx, str.MOUNTED_VOLUME_DIRTY
mov dword [rbp + 0x84a], 0x3a
mov word [rbp + 0x848], ax
call fcn.14003a7b0
lea r9, [rbp + 0x848]
lea rcx, [rbp + 0x1a80]
mov edx, 0x800
mov r8, rax
call section..text
cmp dword [0x140196ef0], r12d
jne 0x140036e85
mov r8, qword [0x140196ee8]
lea rdx, [rbp + 0x1a80]
mov r9d, 0x50034
mov rcx, r13
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x140036e85
lea r8d, [r12 + 1]
mov edx, edi
mov rcx, r13
call fcn.140020270
cmp dword [rbp + 0x1b8], 0
je 0x140036f99
cmp dword [0x140196ef0], 0
jne 0x140036f22
test ebx, ebx
jne 0x140036f22
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140036eb5
test al, 1
jne 0x140036f22
mov rcx, r14
call fcn.14001b280
test eax, eax
jne 0x140036f22
lea eax, [rdi + 0x41]
lea rcx, str.MOUNTED_CONTAINER_FORCED_READ_ONLY
mov dword [rbp + 0x83a], 0x3a
mov word [rbp + 0x838], ax
call fcn.14003a7b0
lea r9, [rbp + 0x838]
lea rcx, [rbp + 0xa80]
mov edx, 0x800
mov r8, rax
call section..text
cmp dword [0x140196ef0], 0
jne 0x140036f22
mov r8, qword [0x140196ee8]
lea rdx, [rbp + 0xa80]
mov r9d, 0x30
mov rcx, r13
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [rbp + 0x1b8], 0
je 0x140036f99
cmp dword [0x140196ef0], 0
jne 0x140036f99
test ebx, ebx
je 0x140036f99
lea eax, [rdi + 0x41]
lea rcx, str.MOUNTED_DEVICE_FORCED_READ_ONLY
mov dword [rbp + 0x842], 0x3a
mov word [rbp + 0x840], ax
call fcn.14003a7b0
lea r9, [rbp + 0x840]
lea rcx, [rbp + 0x1280]
mov edx, 0x800
mov r8, rax
call section..text
cmp dword [0x140196ef0], 0
jne 0x140036f99
mov r8, qword [0x140196ee8]
lea rdx, [rbp + 0x1280]
mov r9d, 0x30
mov rcx, r13
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [rbp + 0x1bc], 0
je 0x140037087
cmp dword [0x140196ef0], 0
jne 0x140037087
lea rdx, str.DeviceHarddisk
mov rcx, r14
call fcn.1400a50b4
cmp rax, r14
jne 0x140037087
lea eax, [rdi + 0x41]
lea rcx, str.MOUNTED_DEVICE_FORCED_READ_ONLY_WRITE_PROTECTION
mov dword [rbp + 0x832], 0x3a
mov word [rbp + 0x830], ax
call fcn.14003a7b0
lea r9, [rbp + 0x830]
lea rcx, [rbp + 0x2280]
mov edx, 0x800
mov r8, rax
call section..text
cmp dword [0x140196ef0], 0
jne 0x14003702c
mov r8, qword [0x140196ee8]
lea rdx, [rbp + 0x2280]
mov r9d, 0x30
mov rcx, r13
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp dword [0x140196f30], 6
jl 0x140037087
lea rdx, str.DeviceHarddiskVolume
mov rcx, r14
call fcn.1400a50b4
cmp rax, r14
je 0x140037087
cmp dword [0x140196ef0], 0
jne 0x140037087
lea rcx, str.ASK_REMOVE_DEVICE_WRITE_PROTECTION
call fcn.14003a7b0
mov r8, qword [0x140196ee8]
mov r9d, 0x124
mov rdx, rax
mov rcx, r13
call qword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x140037087
mov rdx, r14
mov rcx, r13
call fcn.14002b450
cmp word [rbp + 0x528], 0
je 0x1400370ae
cmp dword [rbp + 0x56e], 0
jne 0x1400370ae
lea rdx, [rbp + 0x528]
mov r8d, 1
mov ecx, edi
call fcn.14001dea0
xor r8d, r8d
mov edx, edi
mov ecx, 0x8000
mov dword [0x1401971e4], r12d
call fcn.14001e850
cmp dword [rbp + 0x464], 0
jne 0x1400370e4
cmp qword [rbp + 0x28], 8
jb 0x1400370dd
mov rcx, qword [rbp + 0x10]
call fcn.1400a58b8
mov eax, 2
jmp 0x140037130
cmp qword [rbp + 0x28], 8
jb 0x1400370f4
mov rcx, qword [rbp + 0x10]
call fcn.1400a58b8
mov eax, 1
jmp 0x140037130
test esi, esi
jne 0x14003712d
cmp dword [0x140196ef0], r12d
jne 0x14003712d
lea rcx, str.DRIVE_LETTER_UNAVAILABLE
call fcn.14003a7b0
mov r8, qword [0x140196ee8]
mov r9d, 0x10
mov rdx, rax
mov rcx, r13
call qword [sym.imp.USER32.dll_MessageBoxW]
or eax, 0xffffffff
mov rcx, qword [rbp + 0x2a80]
xor rcx, rsp
call fcn.1400a4e70
add rsp, 0x2b98
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret