Function at 0x18001e690
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 [0x1800a7120]
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 0x18001e700
xor eax, eax
jmp 0x18001ea5e
xor ebx, ebx
cmp bx, word [rsi + 0x124]
je 0x18001e712
xor eax, eax
jmp 0x18001ea5e
cmp qword [rsi + 0x28], 8
jb 0x18001e71f
mov rdx, qword [rsi + 0x10]
jmp 0x18001e723
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 0x18001e757
call fcn.18005dfbc
mov rax, qword [rsi + 0x78]
cmp qword [rax + 0x20], 8
jb 0x18001e768
mov rdx, qword [rax + 8]
jmp 0x18001e76c
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 0x18001e796
xor eax, eax
jmp 0x18001ea5e
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 4
jl 0x18001e942
lea rcx, [rsp + 0x40]
call fcn.180019a0c
nop
lea rcx, [rsp + 0x40]
call fcn.180019a9c
cmp eax, ebx
jne 0x18001e7d7
lea rcx, [rsp + 0x40]
call fcn.180019a4c
xor eax, eax
jmp 0x18001ea5e
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x40]
call fcn.180019e2c
cmp eax, ebx
jne 0x18001e7f2
jmp 0x18001e931
lea rcx, case.0x18003191c.6
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x28]
mov edx, 0x1f4b
lea rcx, [0x1800a9320]
call fcn.180024ec4
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 0x18001e848
call fcn.18005dfbc
mov rax, qword [rsi + 0x78]
cmp qword [rax + 0x20], 8
jb 0x18001e859
mov r9, qword [rax + 8]
jmp 0x18001e85d
lea r9, [rax + 8]
mov r8, qword [rsp + 0x28]
lea rdx, [0x180088348]
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.180003900
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x80]
call fcn.1800220b8
nop
cmp qword [rsp + 0xa0], 8
jb 0x18001e8f1
mov rcx, qword [rsp + 0x88]
call fcn.18005bda0
mov qword [rsp + 0x38], 0x400000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x38]
call fcn.180021978
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 0x18001e92c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + ioctlsocket]
nop
mov ebx, 1
lea rcx, [rsp + 0x40]
call fcn.180019a4c
mov eax, ebx
jmp 0x18001ea5e
movzx ecx, word [rsp + 0xb0]
call fcn.18001ac80
cmp eax, ebx
jne 0x18001e95a
xor eax, eax
jmp 0x18001ea5e
lea rcx, [rsp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x18001e97a
bt edi, 0x13
jb 0x18001e97a
xor eax, eax
jmp 0x18001ea5e
lea rcx, case.0x18003191c.6
mov rax, qword [case.0x18003191c.6]
call qword [rax + Ordinal_26]
add rax, 0x18
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x20]
mov edx, 0x1f4b
lea rcx, [0x1800a9320]
call fcn.180024ec4
mov rdx, qword [rsp + 0x20]
cmp dword [rdx - 8], 1
jle 0x18001e9c7
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], 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.180003900
nop
lea rcx, [rsi + 0xf0]
lea rdx, [rsp + 0x58]
call fcn.1800220b8
nop
cmp qword [rsp + 0x78], 8
jb 0x18001ea1f
mov rcx, qword [rsp + 0x60]
call fcn.18005bda0
mov qword [rsp + 0x30], 0x80000
lea rcx, [rsi + 0xc0]
lea rdx, [rsp + 0x30]
call fcn.180021978
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 0x18001ea59
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.18005c4c0
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