Function at 0x1400529a0
Capabilities:
Get disk information
Get process image filename

Disassembly:
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x2b0
lea rdi, [rsp + 0x20]
mov ecx, 0xa4
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x2c0]
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
xor eax, eax
mov rcx, qword [rsp + 0x2c8]
mov word [rcx], ax
mov r8d, dword [rsp + 0x2c0]
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140052a1b
xor eax, eax
jmp 0x140052c82
mov r8d, dword [rsp + 0x2d0]
mov rdx, qword [rsp + 0x2c8]
mov rcx, qword [rsp + 0x20]
call sub.PSAPI.DLL_GetProcessImageFileNameW
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140052c73
movzx eax, byte [rsp + 0x2d8]
test eax, eax
je 0x140052a99
mov dx, 0x5c
mov rcx, qword [rsp + 0x2c8]
call fcn.14000cc80
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x140052a94
mov rcx, qword [rsp + 0x30]
call fcn.1401ea000
mov rcx, qword [rsp + 0x30]
add rcx, 2
mov r8, rax
mov rdx, rcx
mov rcx, qword [rsp + 0x2c8]
call fcn.14002d730
jmp 0x140052c73
mov eax, 2
imul rax, rax, 1
mov ecx, 0x3a
mov word [rsp + rax + 0x274], cx
mov eax, 2
imul rax, rax, 2
mov qword [rsp + 0x290], rax
cmp qword [rsp + 0x290], 6
jae 0x140052acd
jmp 0x140052ad2
call fcn.1401357e0
xor eax, eax
mov rcx, qword [rsp + 0x290]
mov word [rsp + rcx + 0x274], ax
mov eax, 2
imul rax, rax, 0
mov ecx, 0x41
mov word [rsp + rax + 0x274], cx
jmp 0x140052b21
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x274]
inc ax
mov ecx, 2
imul rcx, rcx, 0
mov word [rsp + rcx + 0x274], ax
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x274]
cmp eax, 0x5a
jg 0x140052c73
mov r8d, 0x104
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x274]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov dword [rsp + 0x284], eax
cmp dword [rsp + 0x284], 2
jbe 0x140052c6e
mov eax, dword [rsp + 0x284]
sub eax, 2
mov dword [rsp + 0x284], eax
mov eax, dword [rsp + 0x284]
mov r8d, eax
mov rdx, qword [rsp + 0x2c8]
lea rcx, [rsp + 0x50]
call fcn.1401ff930
test eax, eax
jne 0x140052c6e
mov eax, dword [rsp + 0x284]
mov rcx, qword [rsp + 0x2c8]
movzx eax, word [rcx + rax*2]
cmp eax, 0x5c
jne 0x140052c6e
mov eax, 2
imul rax, rax, 0
mov ecx, 2
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x2c8]
movzx eax, word [rsp + rax + 0x274]
mov word [rdx + rcx], ax
mov eax, 2
imul rax, rax, 1
mov ecx, 2
imul rcx, rcx, 1
mov rdx, qword [rsp + 0x2c8]
movzx eax, word [rsp + rax + 0x274]
mov word [rdx + rcx], ax
mov eax, dword [rsp + 0x284]
mov ecx, dword [rsp + 0x28]
sub ecx, eax
mov eax, ecx
inc eax
mov eax, eax
mov ecx, dword [rsp + 0x284]
mov rdx, qword [rsp + 0x2c8]
lea rcx, [rdx + rcx*2]
mov rdx, qword [rsp + 0x2c8]
add rdx, 4
mov qword [rsp + 0x298], rdx
mov r8d, eax
mov rdx, rcx
mov rax, qword [rsp + 0x298]
mov rcx, rax
call fcn.14002d730
mov eax, dword [rsp + 0x284]
sub eax, 2
mov ecx, dword [rsp + 0x28]
sub ecx, eax
mov eax, ecx
mov dword [rsp + 0x28], eax
jmp 0x140052c73
jmp 0x140052afc
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x28]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.140134a00
mov rax, rdi
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140135520
add rsp, 0x2b0
pop rdi
ret