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

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0xcd0
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x1800ac2b8]
xor rax, rsp
mov qword [rsp + 0xcc0], rax
mov ebx, edx
mov rsi, rcx
mov rcx, qword [rcx + 0x80]
sub rcx, qword [rsi + 0x78]
movabs r12, 0x6666666666666667
mov rax, r12
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rdx, 1
je 0x180020c0f
xor eax, eax
jmp 0x180020f51
xor ebp, ebp
cmp bp, word [rsi + 0x124]
je 0x180020c21
xor eax, eax
jmp 0x180020f51
cmp qword [rsi + 0x28], 8
jb 0x180020c2e
mov rdx, qword [rsi + 0x10]
jmp 0x180020c32
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, r12
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
jne 0x180020c66
call fcn.1800610c8
mov rax, qword [rsi + 0x78]
cmp qword [rax + 0x20], 8
jb 0x180020c77
mov rdx, qword [rax + 8]
jmp 0x180020c7b
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
test al, al
jne 0x180020ca5
xor eax, eax
jmp 0x180020f51
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jl 0x180020e3a
lea rcx, [rsp + 0x40]
call fcn.18001aeb0
nop
lea rcx, [rsp + 0x40]
call fcn.18001af50
test eax, eax
jne 0x180020ce6
lea rcx, [rsp + 0x40]
call fcn.18001aef0
xor eax, eax
jmp 0x180020f51
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x40]
call fcn.18001b340
test eax, eax
jne 0x180020d0d
lea rcx, [rsp + 0x40]
call fcn.18001aef0
xor eax, eax
jmp 0x180020f51
lea rcx, case.0x180034a3c.6
mov rax, qword [case.0x180034a3c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x28]
mov edx, 0x1f4b
lea rcx, [0x1800ae4c0]
call fcn.180027bc0
xor edx, edx
lea rcx, [rsi + 0x60]
call fcn.180022c00
cmp qword [rax + 0x20], 8
jb 0x180020d55
mov r9, qword [rax + 8]
jmp 0x180020d59
lea r9, [rax + 8]
mov r8, qword [rsp + 0x28]
lea rdx, [0x18008c4a8]
lea rcx, [rsp + 0x8b0]
call qword [sym.imp.USER32.dll_wsprintfW]
mov qword [rsp + 0xa0], 7
mov qword [rsp + 0x98], rbp
mov word [rsp + 0x88], bp
xor eax, eax
or rbx, 0xffffffffffffffff
mov rcx, rbx
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.180003900
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x80]
call fcn.180024850
nop
cmp qword [rsp + 0xa0], 8
jb 0x180020ded
mov rcx, qword [rsp + 0x88]
call fcn.18005eeb4
mov qword [rsp + 0x38], 0x400000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x38]
call fcn.180024160
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x180020e26
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
lea rcx, [rsp + 0x40]
call fcn.18001aef0
mov eax, 1
jmp 0x180020f51
movzx ecx, word [rsp + 0xb0]
call fcn.18001c540
test eax, eax
je 0x180020f51
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x180020e6f
bt ebx, 0x13
jb 0x180020e6f
xor eax, eax
jmp 0x180020f51
lea rcx, case.0x180034a3c.6
mov rax, qword [case.0x180034a3c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x20]
mov edx, 0x1f4b
lea rcx, [0x1800ae4c0]
call fcn.180027bc0
mov rdx, qword [rsp + 0x20]
cmp dword [rdx - 8], 1
jle 0x180020ebc
mov edx, dword [rdx - 0x10]
lea rcx, [rsp + 0x20]
call fcn.1800040a0
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x78], 7
mov qword [rsp + 0x70], rbp
mov word [rsp + 0x60], bp
xor eax, eax
or rbx, 0xffffffffffffffff
mov rcx, rbx
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rcx, [rsp + 0x58]
call fcn.180003900
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x58]
call fcn.180024850
nop
cmp qword [rsp + 0x78], 8
jb 0x180020f14
mov rcx, qword [rsp + 0x60]
call fcn.18005eeb4
mov qword [rsp + 0x30], 0x80000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x30]
call fcn.180024160
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
dec ebx
test ebx, ebx
jg 0x180020f4c
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.18005f4d0
lea r11, [rsp + 0xcd0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret