Function at 0x18001ed24
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0xcd0
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1800a8120]
xor rax, rsp
mov qword [rsp + 0xcc0], rax
mov edi, edx
mov rsi, rcx
mov rcx, qword [rcx + 0x80]
sub rcx, qword [rsi + 0x78]
movabs rbp, 0x6666666666666667
mov rax, rbp
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
je 0x18001ed94
xor eax, eax
jmp 0x18001f0f2
xor ebx, ebx
cmp bx, word [rsi + 0x124]
je 0x18001eda6
xor eax, eax
jmp 0x18001f0f2
cmp qword [rsi + 0x28], 8
jb 0x18001edb3
mov rdx, qword [rsi + 0x10]
jmp 0x18001edb7
lea rdx, [rsi + 0x10]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rcx, qword [rsi + 0x80]
sub rcx, qword [rsi + 0x78]
mov rax, rbp
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x18001edeb
call fcn.18005e62c
mov rax, qword [rsi + 0x78]
cmp qword [rax + 0x20], 8
jb 0x18001edfc
mov rdx, qword [rax + 8]
jmp 0x18001ee00
lea rdx, [rax + 8]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
cmp al, bl
jne 0x18001ee2a
xor eax, eax
jmp 0x18001f0f2
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jl 0x18001efd6
lea rcx, [rsp + 0x40]
call fcn.18001a0a0
nop
lea rcx, [rsp + 0x40]
call fcn.18001a130
cmp eax, ebx
jne 0x18001ee6b
lea rcx, [rsp + 0x40]
call fcn.18001a0e0
xor eax, eax
jmp 0x18001f0f2
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x40]
call fcn.18001a4c0
cmp eax, ebx
jne 0x18001ee86
jmp 0x18001efc5
lea rcx, case.0x180031f8c.6
mov rax, qword [case.0x180031f8c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x28]
mov edx, 0x1f4b
lea rcx, [0x1800aa320]
call fcn.18002552c
mov rcx, qword [rsi + 0x80]
sub rcx, qword [rsi + 0x78]
mov rax, rbp
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x18001eedc
call fcn.18005e62c
mov rax, qword [rsi + 0x78]
cmp qword [rax + 0x20], 8
jb 0x18001eeed
mov r9, qword [rax + 8]
jmp 0x18001eef1
lea r9, [rax + 8]
mov r8, qword [rsp + 0x28]
lea rdx, [0x180089448]
lea rcx, [rsp + 0x8b0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0xa0], 7
mov qword [rsp + 0x98], rbx
mov word [rsp + 0x88], bx
xor eax, eax
or rbp, 0xffffffffffffffff
mov rcx, rbp
lea rdi, [rsp + 0x8b0]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x8b0]
lea rcx, [rsp + 0x80]
call fcn.1800038e0
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x80]
call fcn.18002273c
nop
cmp qword [rsp + 0xa0], 8
jb 0x18001ef85
mov rcx, qword [rsp + 0x88]
call fcn.18005c410
mov qword [rsp + 0x38], 0x400000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x38]
call fcn.180021ffc
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
mov eax, ebp
lock xadd dword [rdx + 0x10], eax
add eax, ebp
cmp eax, ebx
jg 0x18001efc0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov ebx, 1
lea rcx, [rsp + 0x40]
call fcn.18001a0e0
mov eax, ebx
jmp 0x18001f0f2
movzx ecx, word [rsp + 0xb0]
call fcn.18001b314
cmp eax, ebx
jne 0x18001efee
xor eax, eax
jmp 0x18001f0f2
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x18001f00e
bt edi, 0x13
jb 0x18001f00e
xor eax, eax
jmp 0x18001f0f2
lea rcx, case.0x180031f8c.6
mov rax, qword [case.0x180031f8c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x20]
mov edx, 0x1f4b
lea rcx, [0x1800aa320]
call fcn.18002552c
mov rdx, qword [rsp + 0x20]
cmp dword [rdx - 8], 1
jle 0x18001f05b
mov edx, dword [rdx - 0x10]
lea rcx, [rsp + 0x20]
call fcn.180004080
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbx
mov word [rsp + 0x60], bx
xor eax, eax
or rbp, 0xffffffffffffffff
mov rcx, rbp
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x58]
call fcn.1800038e0
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x58]
call fcn.18002273c
nop
cmp qword [rsp + 0x78], 8
jb 0x18001f0b3
mov rcx, qword [rsp + 0x60]
call fcn.18005c410
mov qword [rsp + 0x30], 0x80000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x30]
call fcn.180021ffc
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
mov ecx, ebp
lock xadd dword [rdx + 0x10], ecx
add ecx, ebp
cmp ecx, ebx
jg 0x18001f0ed
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
mov eax, 1
mov rcx, qword [rsp + 0xcc0]
xor rcx, rsp
call fcn.18005cb30
lea r11, [rsp + 0xcd0]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret