Function at 0x1401847f0
Capabilities:
Get disk information

Disassembly:
push rbx
push rbp
push rsi
sub rsp, 0x2d0
mov rax, qword [0x1401f3660]
xor rax, rsp
mov qword [rsp + 0x2b0], rax
test rcx, rcx
mov rbx, rdx
mov rbp, rcx
jne 0x140184848
call fcn.140044220
xor esi, esi
mov dword [rax], esi
call fcn.1400441f0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], reloc.WS2_32.dll_shutdown
mov qword [rsp + 0x20], rsi
call fcn.140041b20
or eax, 0xffffffff
jmp 0x140184c48
test rdx, rdx
je 0x140184818
lea rdx, [0x140191654]
call fcn.140059190
test rax, rax
je 0x14018487c
call fcn.1400441f0
mov dword [rax], 2
call fcn.140044220
mov dword [rax], 2
or eax, 0xffffffff
jmp 0x140184c48
cmp byte [rbp + 1], 0x3a
mov qword [rsp + 0x2c0], r14
jne 0x1401848c4
movzx eax, byte [rbp]
test al, al
je 0x1401848b6
cmp byte [rbp + 2], 0
jne 0x1401848b6
call fcn.1400441f0
mov dword [rax], 2
call fcn.140044220
mov dword [rax], 2
or eax, 0xffffffff
jmp 0x140184c40
movsx ecx, al
call fcn.140058fd0
lea r14d, [rax - 0x60]
jmp 0x1401848cc
call fcn.140058d10
mov r14d, eax
mov qword [rsp + 0x300], rdi
lea rdx, [rsp + 0x60]
mov rcx, rbp
mov qword [rsp + 0x308], r12
mov qword [rsp + 0x2c8], r13
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
mov r12, rax
jne 0x140184a3a
lea rdx, [0x140191650]
xor esi, esi
mov rcx, rbp
mov r12, rsi
call fcn.140059190
test rax, rax
je 0x140184a1f
call fcn.1400441f0
mov edi, dword [rax]
call fcn.1400441f0
lea rcx, [rsp + 0x1a0]
mov r8d, 0x104
mov rdx, rbp
mov dword [rax], esi
call fcn.1400587d0
test rax, rax
mov r13, rax
je 0x140184951
call fcn.1400441f0
mov dword [rax], edi
jmp 0x140184979
call fcn.1400441f0
cmp dword [rax], 0x22
jne 0x140184a1f
call fcn.1400441f0
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], edi
call fcn.1400587d0
mov r12, rax
mov r13, rax
test r13, r13
je 0x140184a12
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
not rcx
sub rcx, 1
cmp rcx, 3
je 0x1401849a6
mov rcx, r13
call fcn.140184730
test eax, eax
je 0x140184a12
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x140184a12
test r12, r12
je 0x1401849c1
mov rcx, r12
call fcn.140046f30
mov edx, 1
mov dword [rsp + 0x30], 0xffffffff
xor r9d, r9d
mov ecx, 0x7bc
mov r8d, edx
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x60], reloc.WS2_32.dll_recv
mov dword [rsp + 0x7c], esi
mov dword [rsp + 0x80], esi
mov byte [rsp + 0x8c], sil
mov dword [rsp + 0x20], esi
call fcn.140058a00
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x30], rax
jmp 0x140184bc4
test r12, r12
je 0x140184a1f
mov rcx, r12
call fcn.140046f30
call fcn.1400441f0
mov dword [rax], 2
call fcn.140044220
mov dword [rax], 2
jmp 0x140184c25
cmp dword [rsp + 0x74], 0
jne 0x140184a50
cmp dword [rsp + 0x78], 0
jne 0x140184a50
xor esi, esi
mov qword [rbx + 0x28], rsi
jmp 0x140184ab9
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x74]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x140184c0f
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x140184c0f
movzx eax, word [rsp + 0x4c]
movzx edi, word [rsp + 0x4a]
movzx r9d, word [rsp + 0x48]
movzx r8d, word [rsp + 0x46]
movzx edx, word [rsp + 0x42]
movzx ecx, word [rsp + 0x40]
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edi
call fcn.140058a00
mov qword [rbx + 0x28], rax
cmp dword [rsp + 0x6c], 0
jne 0x140184ad1
cmp dword [rsp + 0x70], 0
jne 0x140184ad1
mov rax, qword [rbx + 0x28]
mov qword [rbx + 0x20], rax
jmp 0x140184b3a
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x140184c0f
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x140184c0f
movzx eax, word [rsp + 0x4c]
movzx edi, word [rsp + 0x4a]
movzx r9d, word [rsp + 0x48]
movzx r8d, word [rsp + 0x46]
movzx edx, word [rsp + 0x42]
movzx ecx, word [rsp + 0x40]
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edi
call fcn.140058a00
mov qword [rbx + 0x20], rax
cmp dword [rsp + 0x64], 0
jne 0x140184b52
cmp dword [rsp + 0x68], 0
jne 0x140184b52
mov rax, qword [rbx + 0x28]
mov qword [rbx + 0x30], rax
jmp 0x140184bbb
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x64]
call qword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
test eax, eax
je 0x140184c0f
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
je 0x140184c0f
movzx eax, word [rsp + 0x4c]
movzx edi, word [rsp + 0x4a]
movzx r9d, word [rsp + 0x48]
movzx r8d, word [rsp + 0x46]
movzx edx, word [rsp + 0x42]
movzx ecx, word [rsp + 0x40]
mov dword [rsp + 0x30], 0xffffffff
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edi
call fcn.140058a00
mov qword [rbx + 0x30], rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [rsp + 0x60]
mov rdx, rbp
call fcn.140058920
mov ecx, dword [rsp + 0x7c]
mov word [rbx + 8], 1
mov word [rbx + 6], ax
mov eax, dword [rsp + 0x80]
shl rcx, 0x20
add rcx, rax
lea eax, [r14 - 1]
mov word [rbx + 4], 0
mov dword [rbx], eax
mov dword [rbx + 0x10], eax
mov word [rbx + 0xc], 0
xor eax, eax
mov qword [rbx + 0x18], rcx
mov word [rbx + 0xa], 0
jmp 0x140184c28
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140044250
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindClose]
or eax, 0xffffffff
mov r13, qword [rsp + 0x2c8]
mov r12, qword [rsp + 0x308]
mov rdi, qword [rsp + 0x300]
mov r14, qword [rsp + 0x2c0]
mov rcx, qword [rsp + 0x2b0]
xor rcx, rsp
call fcn.140041910
add rsp, 0x2d0
pop rsi
pop rbp
pop rbx
ret