Function at 0x140058de0
Capabilities:
Get disk information
Get disk size

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x107e0]
mov eax, 0x108e0
call fcn.1401110b0
sub rsp, rax
mov r12, rcx
mov rcx, rdx
mov rdi, r8
mov rbx, rdx
call fcn.140040210
movsxd rsi, eax
cmp esi, 9
jne 0x140058e35
xor r8d, r8d
mov rdx, rdi
mov rcx, r12
call fcn.140058700
add rsp, 0x108e0
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
cmp esi, 4
jne 0x140058eec
lea rcx, [rbp + 0x7a0]
mov r8d, 0x7ffe
mov rdx, rdi
call fcn.14010a074
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x7a0]
mov word [rbp + 0x1079c], ax
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x140058e8a
cmp word [rbp + rcx*2 + 0x79e], 0x5c
je 0x140058e8a
mov edi, 0x5c
mov word [rbp + rcx*2 + 0x7a0], di
lea rdx, [rbx + 0x12]
nop
movzx eax, word [rdx]
cmp ax, 0x20
je 0x140058e9f
cmp ax, 9
jne 0x140058ea5
add rdx, 2
jmp 0x140058e90
lea rcx, [rbp + 0x7a0]
call qword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
mov rcx, qword [0x1401703d0]
lea r12, [0x1401296b4]
test eax, eax
lea rdx, [0x14012e7cc]
mov byte [rsp + 0x20], 1
cmovne rdx, r12
xor r9d, r9d
or r8, 0xffffffffffffffff
call fcn.1400e9bc0
add rsp, 0x108e0
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov rbx, qword [0x14016f6f0]
mov qword [rsp + 0x10918], r13
mov qword [rsp + 0x108d8], r14
mov qword [rsp + 0x108d0], r15
mov rcx, rbx
mov qword [rbp + 0x10828], rbx
movaps xmmword [rsp + 0x108c0], xmm6
movaps xmmword [rsp + 0x108b0], xmm7
movaps xmmword [rsp + 0x108a0], xmm8
call fcn.140023100
mov r14d, 8
xor r15d, r15d
movsd xmm7, qword [0x140152fd8]
movsd xmm8, qword [0x140153040]
movsd xmm6, qword [0x140153038]
cmp esi, r14d
ja case.0x140058f70.4
lea r13, [0x140000000]
mov eax, dword [r13 + rsi*4 + 0x5a1f4]
add rax, r13
jmp rax
cmp word [rdi], r15w
jne 0x140058f82
mov esi, pe_nt_image_headers64
jmp 0x14005904a
lea rcx, [0x140137a58]
call fcn.1400dd2e0
mov rcx, rdi
mov rdx, rax
call fcn.140108424
test eax, eax
jne 0x140058fa5
lea esi, [rax + 5]
jmp 0x14005904a
lea rcx, str._b_75__86_
call fcn.1400dd2e0
mov rcx, rdi
mov rdx, rax
call fcn.140108424
test eax, eax
jne 0x140058fc8
lea esi, [rax + 2]
jmp 0x14005904a
lea rcx, [0x140137aa0]
call fcn.1400dd2e0
mov rcx, rdi
mov rdx, rax
call fcn.140108424
test eax, eax
jne 0x140058fe8
lea esi, [rax + 3]
jmp 0x14005904a
lea rcx, [0x140137ac0]
call fcn.1400dd2e0
mov rcx, rdi
mov rdx, rax
call fcn.140108424
test eax, eax
jne 0x140059008
lea esi, [rax + 4]
jmp 0x14005904a
lea rcx, [0x140137ae0]
call fcn.1400dd2e0
mov rcx, rdi
mov rdx, rax
call fcn.140108424
test eax, eax
jne 0x140059028
lea esi, [rax + 6]
jmp 0x14005904a
lea rcx, [0x140137b00]
call fcn.1400dd2e0
mov rcx, rdi
mov rdx, rax
call fcn.140108424
test eax, eax
jne case.0x140058f70.0
mov esi, r15d
mov r12b, 0x41
lea r13, [rsp + 0x60]
xor ebx, ebx
lea rcx, [rbp + 0xa0]
movzx r14d, r12b
mov dword [rbp + 0xa2], 0x5c003a
mov word [rbp + 0xa0], r14w
mov word [rbp + 0xa6], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, esi
je 0x14005908f
cmp esi, 0x100
jne 0x14005909b
cmp eax, 1
je 0x14005909b
mov word [r13], r14w
inc r15d
add r13, 2
inc r12b
cmp r12b, 0x5a
jbe 0x140059054
mov rbx, qword [rbp + 0x10828]
movsxd rax, r15d
xor r15d, r15d
movzx edx, byte [rbx + 0x23]
mov word [rsp + rax*2 + 0x60], r15w
test dl, dl
jne 0x1400590de
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x60]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400e9bc0
jmp 0x14005932e
lea rax, [rsp + 0x60]
cmp qword [rbx + 8], rax
jne 0x1400590f2
mov r12, qword [rbx + 0x10]
shr r12, 1
jmp 0x140059107
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x60]
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea r12, [rcx - 1]
lea rax, [r12 + 1]
lea rsi, [rax + rax]
cmp dl, 2
jne 0x140059127
lea rcx, [rsp + 0x60]
mov rdx, r12
call fcn.140005910
jmp 0x14005932e
cmp rsi, qword [0x140169b08]
jbe 0x14005915d
cmp rsi, qword [rbx + 0x18]
jbe 0x14005915d
lea rcx, [0x14014bd60]
call fcn.1400dd2e0
lea r8, [0x1401295d4]
lea rcx, [0x1401712e0]
mov rdx, rax
call fcn.1400a5580
jmp 0x14005932e
cmp rax, 2
jae 0x140059177
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 4]
call fcn.1400ea290
jmp 0x14005932e
movzx eax, byte [rbx + 0x21]
test al, 2
je 0x14005918d
mov rcx, qword [rbx]
and al, 0x3d
mov byte [rbx + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rbx + 0x18]
and byte [rbx + 0x21], 0x82
cmp rsi, rcx
jbe 0x140059301
movzx r8d, byte [rbx + 0x20]
movzx eax, r8b
cmp r8b, 1
jbe 0x1400591c4
cmp al, 2
je 0x140059205
mov rdi, qword [rbp + 0x10828]
mov rax, qword [rbp + 0x10828]
jmp 0x1400592f5
cmp rsi, 0x80
ja 0x140059205
cmp rsi, 8
ja 0x1400591da
mov edi, 8
jmp 0x1400591eb
mov edi, 0x80
cmp rsi, 0x10
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmovbe edi, eax
mov rcx, rdi
call fcn.1400dc2b0
test rax, rax
je 0x14005932e
mov byte [rbx + 0x20], 1
jmp 0x1400592f5
cmp rsi, 0x20
jae 0x140059215
mov edi, SafeArrayAllocDescriptor
jmp 0x1400592b5
cmp rsi, 0x208
jae 0x140059228
mov edi, 0x208
jmp 0x1400592b5
cmp rsi, 0x50000
jae 0x140059271
pxor xmm0, xmm0
cvtsi2sd xmm0, rsi
test rsi, rsi
jns 0x140059243
addsd xmm0, xmm7
mulsd xmm0, xmm8
xor eax, eax
comisd xmm0, xmm6
jbe 0x140059267
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x140059267
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si rdi, xmm0
add rdi, rax
jmp 0x1400592b5
cmp rsi, 0x320000
jae 0x140059283
lea rdi, [rsi + 0x8000]
jmp 0x1400592b5
cmp rsi, 0xc80000
jae 0x1400592ae
movabs rax, 0x47ae147ae147ae15
mov rdi, rsi
mul rsi
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 6
add rdi, rsi
jmp 0x1400592b5
lea rdi, [rsi + 0x20000]
mov rax, qword [0x140169b08]
cmp rdi, rax
cmova rdi, rax
cmp r8b, 2
jne 0x1400592dc
test rcx, rcx
je 0x1400592dc
mov rcx, qword [rbx + 8]
mov sil, 1
call fcn.140108f48
jmp 0x1400592df
xor sil, sil
test rdi, rdi
js 0x140059345
mov rcx, rdi
call fcn.1401084ac
test rax, rax
je 0x140059345
mov byte [rbx + 0x20], 2
and byte [rbx + 0x21], 0x7f
mov qword [rbx + 8], rax
mov qword [rbx + 0x18], rdi
mov rcx, qword [rbx + 8]
lea rax, [rsp + 0x60]
cmp rcx, rax
je 0x14005931d
lea r8, [r12 + r12]
lea rdx, [rsp + 0x60]
call fcn.140109100
mov rax, qword [rbx + 8]
lea rcx, [r12 + r12]
mov word [rcx + rax], r15w
mov qword [rbx + 0x10], rcx
cmp word [rsp + 0x60], r15w
je 0x140059f18
mov r14d, 8
jmp case.0x140058f70.4
test sil, sil
je 0x14005935b
lea rax, [0x140171290]
mov qword [rbx + 0x18], r15
mov qword [rbx + 8], rax
jmp 0x140059363
mov rax, qword [rbx + 8]
mov word [rax], r15w
lea r8, [0x1401295d4]
lea rdx, str.Out_of_memory.
lea rcx, [0x1401712e0]
mov qword [rbx + 0x10], r15
call fcn.1400a5580
jmp 0x14005932e
lea rcx, [rbp + 0x7a0]
mov r8d, 0x7ffe
mov rdx, rdi
call fcn.14010a074
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 0x7a0]
mov word [rbp + 0x1079c], r15w
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x1400593d0
cmp word [rbp + rcx*2 + 0x79e], 0x5c
je 0x1400593d0
mov edi, 0x5c
mov word [rbp + rcx*2 + 0x7a0], di
mov dword [rsp + 0x38], 0xff
lea rax, [rbp + 0x3a0]
lea r9, [rbp + 0x10828]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
lea rdx, [rbp + 0x1a0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
lea rcx, [rbp + 0x7a0]
mov r8d, 0xff
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je case.0x140058f70.0
sub esi, 2
je 0x1400596ef
dec esi
je 0x140059446
cmp esi, 2
jne case.0x140058f70.4
mov edx, dword [rbp + 0x10828]
mov r8b, reloc.OLEAUT32.dll_SafeArrayGetElement
mov rcx, rbx
call fcn.140001370
jmp case.0x140058f70.4
movzx edx, byte [rbx + 0x23]
test dl, dl
jne 0x1400594a0
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, [rbp + 0x1a0]
or r8, 0xffffffffffffffff
mov rcx, qword [rbx + 0x10]
call fcn.1400e9bc0
mov rdi, qword [0x1401703d0]
movzx eax, byte [rdi + 0x23]
test al, al
jne 0x140059f2e
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1401296b4]
xor r9d, r9d
or r8, 0xffffffffffffffff
mov byte [rsp + 0x20], 1
call fcn.1400e9bc0
mov esi, eax
jmp 0x14005a172
lea rax, [rbp + 0x1a0]
cmp qword [rbx + 8], rax
jne 0x1400594b6
mov r12, qword [rbx + 0x10]
shr r12, 1
jmp 0x1400594cd
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x1a0]
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea r12, [rcx - 1]
lea rax, [r12 + 1]
lea rsi, [rax + rax]
cmp dl, 2
jne 0x1400594ef
lea rcx, [rbp + 0x1a0]
mov rdx, r12
call fcn.140005910
jmp case.0x140058f70.4
cmp rsi, qword [0x140169b08]
jbe 0x140059502
cmp rsi, qword [rbx + 0x18]
ja 0x140059cf5
cmp rax, 2
jb 0x140059d22
movzx eax, byte [rbx + 0x21]
test al, 2
je 0x140059522
mov rcx, qword [rbx]
and al, 0x3d
mov byte [rbx + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rbx + 0x18]
and byte [rbx + 0x21], 0x82
cmp rsi, rcx
jbe 0x140059693
movzx r8d, byte [rbx + 0x20]
movzx eax, r8b
cmp r8b, 1
jbe 0x140059559
cmp al, 2
je 0x140059597
mov rdi, qword [rbp + 0x10828]
mov rax, qword [rbp + 0x10828]
jmp 0x140059687
cmp rsi, 0x80
ja 0x140059597
cmp rsi, r14
ja 0x14005956c
mov rdi, r14
jmp 0x14005957d
mov edi, 0x80
cmp rsi, 0x10
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmovbe edi, eax
mov rcx, rdi
call fcn.1400dc2b0
test rax, rax
je case.0x140058f70.4
mov byte [rbx + 0x20], 1
jmp 0x140059687
cmp rsi, 0x20
jae 0x1400595a7
mov edi, SafeArrayAllocDescriptor
jmp 0x140059647
cmp rsi, 0x208
jae 0x1400595ba
mov edi, 0x208
jmp 0x140059647
cmp rsi, 0x50000
jae 0x140059603
pxor xmm0, xmm0
cvtsi2sd xmm0, rsi
test rsi, rsi
jns 0x1400595d5
addsd xmm0, xmm7
mulsd xmm0, xmm8
xor eax, eax
comisd xmm0, xmm6
jbe 0x1400595f9
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x1400595f9
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si rdi, xmm0
add rdi, rax
jmp 0x140059647
cmp rsi, 0x320000
jae 0x140059615
lea rdi, [rsi + 0x8000]
jmp 0x140059647
cmp rsi, 0xc80000
jae 0x140059640
movabs rax, 0x47ae147ae147ae15
mov rdi, rsi
mul rsi
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 6
add rdi, rsi
jmp 0x140059647
lea rdi, [rsi + 0x20000]
mov rax, qword [0x140169b08]
cmp rdi, rax
cmova rdi, rax
cmp r8b, 2
jne 0x14005966e
test rcx, rcx
je 0x14005966e
mov rcx, qword [rbx + 8]
mov sil, 1
call fcn.140108f48
jmp 0x140059671
xor sil, sil
test rdi, rdi
js 0x1400596b3
mov rcx, rdi
call fcn.1401084ac
test rax, rax
je 0x1400596b3
mov byte [rbx + 0x20], 2
and byte [rbx + 0x21], 0x7f
mov qword [rbx + 8], rax
mov qword [rbx + 0x18], rdi
mov rcx, qword [rbx + 8]
lea rax, [rbp + 0x1a0]
cmp rcx, rax
je 0x14005992a
lea rdx, [rbp + 0x1a0]
jmp 0x140059921
test sil, sil
je 0x1400596d7
lea rax, [0x140171290]
mov qword [rbx + 0x18], r15
mov qword [rbx + 0x10], r15
mov qword [rbx + 8], rax
lea rdx, str.Out_of_memory.
jmp 0x140059d04
mov rax, qword [rbx + 8]
lea rdx, str.Out_of_memory.
mov word [rax], r15w
mov qword [rbx + 0x10], r15
jmp 0x140059d04
movzx edx, byte [rbx + 0x23]
test dl, dl
jne 0x14005970f
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, [rbp + 0x3a0]
or r8, 0xffffffffffffffff
jmp 0x140059461
lea rax, [rbp + 0x3a0]
cmp qword [rbx + 8], rax
jne 0x140059725
mov r12, qword [rbx + 0x10]
shr r12, 1
jmp 0x14005973c
or rcx, 0xffffffffffffffff
lea rdi, [rbp + 0x3a0]
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea r12, [rcx - 1]
lea rax, [r12 + 1]
lea rsi, [rax + rax]
cmp dl, 2
jne 0x14005975e
lea rcx, [rbp + 0x3a0]
mov rdx, r12
call fcn.140005910
jmp case.0x140058f70.4
cmp rsi, qword [0x140169b08]
jbe 0x140059771
cmp rsi, qword [rbx + 0x18]
ja 0x140059cf5
cmp rax, 2
jb 0x140059d22
movzx eax, byte [rbx + 0x21]
test al, 2
je 0x140059791
mov rcx, qword [rbx]
and al, 0x3d
mov byte [rbx + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rbx + 0x18]
and byte [rbx + 0x21], 0x82
cmp rsi, rcx
jbe 0x14005990a
movzx r8d, byte [rbx + 0x20]
movzx eax, r8b
cmp r8b, 1
jbe 0x1400597c8
cmp al, 2
je 0x140059806
mov rdi, qword [rbp + 0x10828]
mov rax, qword [rbp + 0x10828]
jmp 0x1400598fe
cmp rsi, 0x80
ja 0x140059806
cmp rsi, r14
ja 0x1400597db
mov rdi, r14
jmp 0x1400597ec
mov edi, 0x80
cmp rsi, 0x10
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmovbe edi, eax
mov rcx, rdi
call fcn.1400dc2b0
test rax, rax
je case.0x140058f70.4
mov byte [rbx + 0x20], 1
jmp 0x1400598fe
cmp rsi, 0x20
jae 0x140059816
mov edi, SafeArrayAllocDescriptor
jmp 0x1400598b6
cmp rsi, 0x208
jae 0x140059829
mov edi, 0x208
jmp 0x1400598b6
cmp rsi, 0x50000
jae 0x140059872
pxor xmm0, xmm0
cvtsi2sd xmm0, rsi
test rsi, rsi
jns 0x140059844
addsd xmm0, xmm7
mulsd xmm0, xmm8
xor eax, eax
comisd xmm0, xmm6
jbe 0x140059868
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x140059868
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si rdi, xmm0
add rdi, rax
jmp 0x1400598b6
cmp rsi, 0x320000
jae 0x140059884
lea rdi, [rsi + 0x8000]
jmp 0x1400598b6
cmp rsi, 0xc80000
jae 0x1400598af
movabs rax, 0x47ae147ae147ae15
mov rdi, rsi
mul rsi
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 6
add rdi, rsi
jmp 0x1400598b6
lea rdi, [rsi + 0x20000]
mov rax, qword [0x140169b08]
cmp rdi, rax
cmova rdi, rax
cmp r8b, 2
jne 0x1400598dd
test rcx, rcx
je 0x1400598dd
mov rcx, qword [rbx + 8]
mov sil, 1
call fcn.140108f48
jmp 0x1400598e0
xor sil, sil
test rdi, rdi
js 0x1400596b3
mov rcx, rdi
call fcn.1401084ac
test rax, rax
je 0x1400596b3
mov byte [rbx + 0x20], 2
and byte [rbx + 0x21], 0x7f
mov qword [rbx + 8], rax
mov qword [rbx + 0x18], rdi
mov rcx, qword [rbx + 8]
lea rax, [rbp + 0x3a0]
cmp rcx, rax
je 0x14005992a
lea rdx, [rbp + 0x3a0]
lea r8, [r12 + r12]
call fcn.140109100
mov rax, qword [rbx + 8]
lea rcx, [r12 + r12]
mov word [rcx + rax], r15w
mov qword [rbx + 0x10], rcx
jmp case.0x140058f70.4
lea rcx, [rbp + 0x7a0]
mov r8d, 0x7ffe
mov rdx, rdi
call fcn.14010a074
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 0x7a0]
mov word [rbp + 0x1079c], r15w
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x14005998d
cmp word [rbp + rcx*2 + 0x79e], 0x5c
je 0x14005998d
mov edi, 0x5c
mov word [rbp + rcx*2 + 0x7a0], di
lea rcx, [rbp + 0x7a0]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 6
ja case.0x140058f70.0
mov eax, eax
mov ecx, dword [r13 + rax*4 + 0x5a218]
add rcx, r13
jmp rcx
lea rcx, [0x140137b00]
call fcn.1400dd2e0
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
mov rcx, rbx
mov rdx, rax
jmp 0x140059465
lea rcx, str._b_75__86_
call fcn.1400dd2e0
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
mov rcx, rbx
mov rdx, rax
jmp 0x140059465
lea rcx, [0x140137aa0]
call fcn.1400dd2e0
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
mov rcx, rbx
mov rdx, rax
jmp 0x140059465
lea rcx, [0x140137ac0]
call fcn.1400dd2e0
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
mov rcx, rbx
mov rdx, rax
jmp 0x140059465
lea rcx, [0x140137a58]
call fcn.1400dd2e0
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
mov rcx, rbx
mov rdx, rax
jmp 0x140059465
lea rcx, [0x140137ae0]
call fcn.1400dd2e0
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
mov rcx, rbx
mov rdx, rax
jmp 0x140059465
lea rcx, [rbp + 0x7a0]
mov r8d, 0x7ffe
mov rdx, rdi
call fcn.14010a074
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rbp + 0x7a0]
mov word [rbp + 0x1079c], r15w
repne scasw ax, word [rdi]
not rcx
dec rcx
je 0x140059ad1
cmp word [rbp + rcx*2 + 0x79e], 0x5c
je 0x140059ad1
mov edi, 0x5c
mov word [rbp + rcx*2 + 0x7a0], di
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x4c]
lea rdx, [rsp + 0x54]
lea rcx, [rbp + 0x7a0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
jne 0x140059ba8
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x140059ba8
cmp eax, 3
je 0x140059b85
cmp eax, 0x13
je 0x140059b62
cmp eax, 0x15
je 0x140059b3f
lea rcx, [0x140137b00]
call fcn.1400dd2e0
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
mov rcx, rbx
mov rdx, rax
jmp 0x140059465
lea rcx, [0x140137b60]
call fcn.1400dd2e0
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
mov rcx, rbx
mov rdx, rax
jmp 0x140059465
lea rcx, str._b___
call fcn.1400dd2e0
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
mov rcx, rbx
mov rdx, rax
jmp 0x140059465
lea rcx, [0x140137b40]
call fcn.1400dd2e0
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
mov rcx, rbx
mov rdx, rax
jmp 0x140059465
lea rcx, [0x140137b20]
call fcn.1400dd2e0
xor r9d, r9d
mov byte [rsp + 0x20], 1
or r8, 0xffffffffffffffff
mov rcx, rbx
mov rdx, rax
jmp 0x140059465
cmp word [rdi], r15w
jne 0x140059bfa
lea rcx, str._._.__z9____35z75__
call fcn.1400dd2e0
lea rdx, [rbp - 0x60]
xor r9d, r9d
mov rcx, rax
mov r8d, 0x80
call qword [sym.imp.WINMM.dll_mciSendStringW]
test eax, eax
jmp 0x140059c7d
lea rcx, str.5_4z
call fcn.1400dd2e0
lea rcx, [rbp + 0x5a0]
mov r9, rdi
mov r8, rax
mov edx, pe_nt_image_headers64
call fcn.1400e6100
lea rcx, [rbp + 0x5a0]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.WINMM.dll_mciSendStringW]
test eax, eax
jne case.0x140058f70.0
lea rcx, str._._.__z9_z75__
call fcn.1400dd2e0
lea rdx, [rbp - 0x60]
xor r9d, r9d
mov rcx, rax
mov r8d, 0x80
call qword [sym.imp.WINMM.dll_mciSendStringW]
lea rcx, str.965__z9_z__3.
mov edi, eax
call fcn.1400dd2e0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINMM.dll_mciSendStringW]
test edi, edi
jne case.0x140058f70.0
movzx edx, byte [rbx + 0x23]
test dl, dl
jne 0x140059ca0
xor r9d, r9d
mov byte [rsp + 0x20], 1
lea rdx, [rbp - 0x60]
or r8, 0xffffffffffffffff
jmp 0x140059461
lea rax, [rbp - 0x60]
cmp qword [rbx + 8], rax
jne 0x140059cb3
mov r12, qword [rbx + 0x10]
shr r12, 1
jmp 0x140059cc7
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x60]
xor eax, eax
repne scasw ax, word [rdi]
not rcx
lea r12, [rcx - 1]
lea rax, [r12 + 1]
lea rsi, [rax + rax]
cmp dl, 2
jne 0x140059ce6
lea rcx, [rbp - 0x60]
mov rdx, r12
call fcn.140005910
jmp case.0x140058f70.4
cmp rsi, qword [0x140169b08]
jbe 0x140059d1c
cmp rsi, qword [rbx + 0x18]
jbe 0x140059d1c
lea rcx, [0x14014bd60]
call fcn.1400dd2e0
mov rdx, rax
lea r8, [0x1401295d4]
lea rcx, [0x1401712e0]
call fcn.1400a5580
jmp case.0x140058f70.4
cmp rax, 2
jae 0x140059d36
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 4]
call fcn.1400ea290
jmp case.0x140058f70.4
movzx eax, byte [rbx + 0x21]
test al, 2
je 0x140059d4c
mov rcx, qword [rbx]
and al, 0x3d
mov byte [rbx + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rbx + 0x18]
and byte [rbx + 0x21], 0x82
cmp rsi, rcx
jbe 0x140059ebd
movzx r8d, byte [rbx + 0x20]
movzx eax, r8b
cmp r8b, 1
jbe 0x140059d83
cmp al, 2
je 0x140059dc1
mov rdi, qword [rbp + 0x10828]
mov rax, qword [rbp + 0x10828]
jmp 0x140059eb1
cmp rsi, 0x80
ja 0x140059dc1
cmp rsi, r14
ja 0x140059d96
mov rdi, r14
jmp 0x140059da7
mov edi, 0x80
cmp rsi, 0x10
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmovbe edi, eax
mov rcx, rdi
call fcn.1400dc2b0
test rax, rax
je case.0x140058f70.4
mov byte [rbx + 0x20], 1
jmp 0x140059eb1
cmp rsi, 0x20
jae 0x140059dd1
mov edi, SafeArrayAllocDescriptor
jmp 0x140059e71
cmp rsi, 0x208
jae 0x140059de4
mov edi, 0x208
jmp 0x140059e71
cmp rsi, 0x50000
jae 0x140059e2d
pxor xmm0, xmm0
cvtsi2sd xmm0, rsi
test rsi, rsi
jns 0x140059dff
addsd xmm0, xmm7
mulsd xmm0, xmm8
xor eax, eax
comisd xmm0, xmm6
jbe 0x140059e23
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x140059e23
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si rdi, xmm0
add rdi, rax
jmp 0x140059e71
cmp rsi, 0x320000
jae 0x140059e3f
lea rdi, [rsi + 0x8000]
jmp 0x140059e71
cmp rsi, 0xc80000
jae 0x140059e6a
movabs rax, 0x47ae147ae147ae15
mov rdi, rsi
mul rsi
sub rdi, rdx
shr rdi, 1
add rdi, rdx
shr rdi, 6
add rdi, rsi
jmp 0x140059e71
lea rdi, [rsi + 0x20000]
mov rax, qword [0x140169b08]
cmp rdi, rax
cmova rdi, rax
cmp r8b, 2
jne 0x140059e98
test rcx, rcx
je 0x140059e98
mov rcx, qword [rbx + 8]
mov sil, 1
call fcn.140108f48
jmp 0x140059e9b
xor sil, sil
test rdi, rdi
js 0x140059ed7
mov rcx, rdi
call fcn.1401084ac
test rax, rax
je 0x140059ed7
mov byte [rbx + 0x20], 2
and byte [rbx + 0x21], 0x7f
mov qword [rbx + 8], rax
mov qword [rbx + 0x18], rdi
mov rcx, qword [rbx + 8]
lea rax, [rbp - 0x60]
cmp rcx, rax
je 0x14005992a
lea rdx, [rbp - 0x60]
jmp 0x140059921
test sil, sil
je 0x140059eed
lea rax, [0x140171290]
mov qword [rbx + 0x18], r15
mov qword [rbx + 8], rax
jmp 0x140059ef5
mov rax, qword [rbx + 8]
mov word [rax], r15w
lea r8, [0x1401295d4]
lea rdx, str.Out_of_memory.
lea rcx, [0x1401712e0]
mov qword [rbx + 0x10], r15
call fcn.1400a5580
jmp case.0x140058f70.4
mov r12, qword [rbp + 0x10810]
mov dl, 1
mov rcx, r12
call fcn.14003ca30
jmp 0x14005a174
lea r12, [0x1401296b4]
mov esi, 1
cmp qword [rdi + 8], r12
jne 0x140059f49
mov r13, qword [rdi + 0x10]
shr r13, 1
jmp 0x140059f4c
mov r13, rsi
lea rcx, [r13 + 1]
lea rbx, [rcx + rcx]
cmp al, 2
jne 0x140059f6a
mov rdx, r13
mov rcx, r12
call fcn.140005910
mov esi, eax
jmp 0x14005a172
cmp rbx, qword [0x140169b08]
jbe 0x140059fa2
cmp rbx, qword [rdi + 0x18]
jbe 0x140059fa2
lea rcx, [0x14014bd60]
call fcn.1400dd2e0
lea r8, [0x1401295d4]
lea rcx, [0x1401712e0]
mov rdx, rax
call fcn.1400a5580
mov esi, eax
jmp 0x14005a172
cmp rcx, 2
jae 0x140059fbc
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 4]
call fcn.1400ea290
jmp 0x14005a172
movzx eax, byte [rdi + 0x21]
test al, 2
je 0x140059fd2
mov rcx, qword [rdi]
and al, 0x3d
mov byte [rdi + 0x21], al
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rdi + 0x18]
and byte [rdi + 0x21], 0x82
cmp rbx, rcx
jbe 0x14005a14a
movzx r8d, byte [rdi + 0x20]
movzx eax, r8b
cmp r8b, sil
jbe 0x14005a008
cmp al, 2
je 0x14005a048
mov r14, qword [rbp + 0x10828]
mov rax, qword [rbp + 0x10828]
jmp 0x14005a13e
cmp rbx, 0x80
ja 0x14005a048
cmp rbx, 8
jbe 0x14005a02a
mov r14d, 0x80
cmp rbx, 0x10
mov eax, reloc.OLEAUT32.dll_SafeArrayGetDim
cmovbe r14d, eax
mov rcx, r14
call fcn.1400dc2b0
test rax, rax
jne 0x14005a03f
mov esi, r15d
jmp 0x14005a172
mov byte [rdi + 0x20], sil
jmp 0x14005a13e
cmp rbx, 0x20
jae 0x14005a059
mov r14d, SafeArrayAllocDescriptor
jmp 0x14005a0fa
cmp rbx, 0x208
jae 0x14005a06d
mov r14d, 0x208
jmp 0x14005a0fa
cmp rbx, 0x50000
jae 0x14005a0b6
pxor xmm0, xmm0
cvtsi2sd xmm0, rbx
test rbx, rbx
jns 0x14005a088
addsd xmm0, xmm7
mulsd xmm0, xmm8
xor eax, eax
comisd xmm0, xmm6
jbe 0x14005a0ac
subsd xmm0, xmm6
comisd xmm0, xmm6
jae 0x14005a0ac
movabs rdx, 0x8000000000000000
mov rax, rdx
cvttsd2si r14, xmm0
add r14, rax
jmp 0x14005a0fa
cmp rbx, 0x320000
jae 0x14005a0c8
lea r14, [rbx + 0x8000]
jmp 0x14005a0fa
cmp rbx, 0xc80000
jae 0x14005a0f3
movabs rax, 0x47ae147ae147ae15
mov r14, rbx
mul rbx
sub r14, rdx
shr r14, 1
add r14, rdx
shr r14, 6
add r14, rbx
jmp 0x14005a0fa
lea r14, [rbx + 0x20000]
mov rax, qword [0x140169b08]
cmp r14, rax
cmova r14, rax
cmp r8b, 2
jne 0x14005a122
test rcx, rcx
je 0x14005a122
mov rcx, qword [rdi + 8]
movzx ebx, sil
call fcn.140108f48
jmp 0x14005a124
xor bl, bl
test r14, r14
js 0x14005a1b3
mov rcx, r14
call fcn.1401084ac
test rax, rax
je 0x14005a1b3
mov byte [rdi + 0x20], 2
and byte [rdi + 0x21], 0x7f
mov qword [rdi + 8], rax
mov qword [rdi + 0x18], r14
mov rcx, qword [rdi + 8]
cmp rcx, r12
je 0x14005a160
lea r8, [r13 + r13]
mov rdx, r12
call fcn.140109100
mov rax, qword [rdi + 8]
lea rcx, [r13 + r13]
mov word [rcx + rax], r15w
mov qword [rdi + 0x10], rcx
mov eax, esi
movaps xmm7, xmmword [rsp + 0x108b0]
movaps xmm6, xmmword [rsp + 0x108c0]
mov r15, qword [rsp + 0x108d0]
mov r14, qword [rsp + 0x108d8]
mov r13, qword [rsp + 0x10918]
movaps xmm8, xmmword [rsp + 0x108a0]
add rsp, 0x108e0
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
test bl, bl
je 0x14005a1c8
lea rax, [0x140171290]
mov qword [rdi + 0x18], r15
mov qword [rdi + 8], rax
jmp 0x14005a1d0
mov rax, qword [rdi + 8]
mov word [rax], r15w
lea r8, [0x1401295d4]
lea rdx, str.Out_of_memory.
lea rcx, [0x1401712e0]
mov qword [rdi + 0x10], r15
call fcn.1400a5580
mov esi, eax
jmp 0x14005a172