Function at 0x14000d4a4
Capabilities:
Check if file exists
Get disk information

Disassembly:
push rbp
sub rsp, 0x130
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x100], rbx
mov qword [rbp + 0x40], 0
mov qword [rbp + 0x48], 0
mov dword [rbp], 0
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x60], 0
mov dword [rbp + 4], 0x4000
mov dword [rbp + 8], 0x4000
mov eax, 0
mov edx, dword [rbp + 4]
mov rcx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov qword [rbp + 0xc0], rcx
mov rcx, rax
mov rax, qword [rbp + 0xc0]
call rax
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
test rax, rax
jne 0x14000d550
lea rax, str.Unable_to_allocate_memory_for_DeviceNames_n
mov rcx, rax
call fcn.14000f4d8
mov eax, 0
mov rbx, qword [rbp + 0x100]
lea rsp, [rbp + 0x110]
pop rbp
ret
mov rax, qword [rbp + 0x40]
mov edx, dword [rbp + 4]
mov rcx, rax
call fcn.14000efe1
mov dword [rbp + 0xc], eax
mov eax, dword [rbp + 0xc]
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 0x10]
mov dword [rbp + 0x14], eax
mov eax, dword [rbp + 0x10]
test eax, eax
jne 0x14000d63c
mov rax, qword [sym.imp.orauts.dll_GetLastError]
call rax
mov dword [rbp + 0x18], eax
mov eax, dword [rbp + 0x18]
mov dword [rbp + 0x1c], eax
mov eax, dword [rbp + 0x1c]
cmp eax, 0x7a
jne 0x14000d5fc
mov eax, 0x4000
add eax, dword [rbp + 4]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x40]
mov edx, dword [rbp + 4]
mov rcx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov qword [rbp + 0xc8], rcx
mov rcx, rax
mov rax, qword [rbp + 0xc8]
call rax
mov qword [rbp + 0x70], rax
mov rax, qword [rbp + 0x70]
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x40]
test rax, rax
jne 0x14000d550
lea rax, str.Unable_to_re_allocate_memory_for_DeviceNames_n
mov rcx, rax
call fcn.14000f4d8
mov eax, 0
mov rbx, qword [rbp + 0x100]
lea rsp, [rbp + 0x110]
pop rbp
ret
lea rax, str.Error__d_in_call_to_QueryDosDeviceAll_n
mov edx, dword [rbp + 0x1c]
mov rcx, rax
call fcn.14000f4d8
mov rax, qword [rbp + 0x40]
test rax, rax
je 0x14000d627
mov rax, qword [rbp + 0x40]
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rax
call rdx
mov eax, 0
mov rbx, qword [rbp + 0x100]
lea rsp, [rbp + 0x110]
pop rbp
ret
mov rax, qword [rbp + 0x40]
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x50]
movsx eax, byte [rax]
movsx rax, al
test eax, eax
jne 0x14000d67f
jmp 0x14000dac2
mov rax, qword [rbp + 0x50]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
add rax, qword [rbp + 0x50]
inc rax
mov qword [rbp + 0x50], rax
jmp 0x14000d644
mov qword [rbp + 0x48], 0
mov eax, 0
mov edx, dword [rbp + 8]
mov rcx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov qword [rbp + 0xd0], rcx
mov rcx, rax
mov rax, qword [rbp + 0xd0]
call rax
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
test rax, rax
jne 0x14000d6e2
lea rax, str.Unable_to_allocate_memory_for_MappingNames_n
mov rcx, rax
call fcn.14000f4d8
mov eax, 0
mov rbx, qword [rbp + 0x100]
lea rsp, [rbp + 0x110]
pop rbp
ret
mov rax, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x48]
mov ecx, dword [rbp + 8]
mov rbx, qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov dword [rbp + 0xd8], ecx
mov rcx, rax
mov eax, dword [rbp + 0xd8]
mov r8d, eax
call rbx
mov dword [rbp + 0x20], eax
mov eax, dword [rbp + 0x20]
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x24]
mov dword [rbp + 0x14], eax
mov eax, dword [rbp + 0x24]
test eax, eax
jne 0x14000d832
mov rax, qword [sym.imp.orauts.dll_GetLastError]
call rax
mov dword [rbp + 0x28], eax
mov eax, dword [rbp + 0x28]
mov dword [rbp + 0x1c], eax
mov eax, dword [rbp + 0x1c]
cmp eax, 2
jne 0x14000d775
lea rax, str.Query_Dos_Device_Name_on:____s___:return_not_found_n
mov rdx, qword [rbp + 0x50]
mov rcx, rax
call fcn.14000f4d8
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x14000d768
mov rax, qword [rbp + 0x48]
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rax
call rdx
mov qword [rbp + 0x48], 0
jmp 0x14000d832
mov eax, dword [rbp + 0x1c]
cmp eax, 0x7a
jne 0x14000d7ec
mov eax, 0x4000
add eax, dword [rbp + 8]
mov dword [rbp + 8], eax
mov rax, qword [rbp + 0x48]
mov edx, dword [rbp + 8]
mov rcx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov qword [rbp + 0xe0], rcx
mov rcx, rax
mov rax, qword [rbp + 0xe0]
call rax
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x48]
test rax, rax
jne 0x14000d6e2
lea rax, str.Unable_to_allocate_memory_for_MappingNames_n
mov rcx, rax
call fcn.14000f4d8
mov eax, 0
mov rbx, qword [rbp + 0x100]
lea rsp, [rbp + 0x110]
pop rbp
ret
lea rax, str.Query_Dos_Device_Name_on:____s___:return_error__d_n
mov rdx, qword [rbp + 0x50]
mov ecx, dword [rbp + 0x1c]
mov dword [rbp + 0xe8], ecx
mov rcx, rax
mov eax, dword [rbp + 0xe8]
mov r8d, eax
call fcn.14000f4d8
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x14000d82a
mov rax, qword [rbp + 0x48]
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rax
call rdx
mov qword [rbp + 0x48], 0
mov dword [rbp + 0x2c], 0
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x14000d8d1
mov dword [rbp + 0x2c], 0
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x58]
movsx eax, byte [rax]
movsx rax, al
test eax, eax
jne 0x14000d88d
jmp 0x14000d8d1
mov rax, qword [rbp + 0x58]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x98]
add rax, qword [rbp + 0x58]
inc rax
mov qword [rbp + 0x58], rax
jmp 0x14000d855
mov rax, qword [rbp + 0x58]
lea rdx, str.DeviceHarddisk
mov ecx, 0x10
mov rbx, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
mov qword [rbp + 0xf0], rcx
mov rcx, rax
mov rax, qword [rbp + 0xf0]
mov r8, rax
call rbx
mov dword [rbp + 0x30], eax
mov eax, dword [rbp + 0x30]
test eax, eax
jne 0x14000d866
mov eax, 1
add eax, dword [rbp + 0x2c]
mov dword [rbp + 0x2c], eax
jmp 0x14000d866
mov eax, dword [rbp + 0x2c]
test eax, eax
je 0x14000da9c
mov eax, gethostname
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
call rdx
mov qword [rbp + 0x80], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0x90]
mov qword [rax + 0x28], 0
mov rax, qword [rbp + 0x90]
mov rdx, qword [rbp + 0x50]
mov qword [rax], rdx
mov rax, qword [rbp + 0x50]
mov rcx, rax
call fcn.14000e03b
mov dword [rbp + 0x34], eax
mov rax, qword [rbp + 0x90]
mov edx, dword [rbp + 0x34]
mov dword [rax + 0x10], edx
mov rax, qword [rbp + 0x90]
mov edx, dword [rbp + 0x2c]
mov dword [rax + 8], edx
mov eax, dword [rbp + 0x2c]
imul rax, rax, 8
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
call rdx
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0x90]
mov rdx, qword [rbp + 0xa0]
mov qword [rax + 0x18], rdx
mov dword [rbp], 0
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x58], rax
mov eax, dword [rbp]
mov edx, dword [rbp + 0x2c]
cmp eax, edx
jae 0x14000da3b
mov rax, qword [rbp + 0x58]
movsx eax, byte [rax]
movsx rax, al
test eax, eax
jne 0x14000d9cc
jmp 0x14000da3b
mov rax, qword [rbp + 0x58]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rbp + 0xb8], rax
mov rax, qword [rbp + 0xb8]
add rax, qword [rbp + 0x58]
inc rax
mov qword [rbp + 0x58], rax
jmp 0x14000d983
mov rax, qword [rbp + 0x58]
lea rdx, str.DeviceHarddisk
mov ecx, 0x10
mov rbx, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
mov qword [rbp + 0xf8], rcx
mov rcx, rax
mov rax, qword [rbp + 0xf8]
mov r8, rax
call rbx
mov dword [rbp + 0x38], eax
mov eax, dword [rbp + 0x38]
test eax, eax
jne 0x14000d9a5
mov rax, qword [rbp + 0x90]
mov edx, dword [rbp]
imul rdx, rdx, 8
add rdx, qword [rax + 0x18]
mov rax, qword [rbp + 0x58]
mov qword [rdx], rax
mov rax, qword [rbp + 0x90]
mov rdx, qword [rbp + 0x48]
mov qword [rax + 0x20], rdx
mov eax, 1
add eax, dword [rbp]
mov dword [rbp], eax
jmp 0x14000d9a5
mov rax, qword [rbp + 0x60]
test rax, rax
jne 0x14000da68
mov rax, qword [rbp + 0x90]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x40]
mov qword [rax + 0x28], rdx
mov rax, qword [rbp + 0x60]
mov qword [rbp + 0xb0], rax
jmp 0x14000da88
mov rax, qword [rbp + 0xb0]
mov rdx, qword [rbp + 0x90]
mov qword [rax + 0x30], rdx
mov rax, qword [rbp + 0x90]
mov qword [rbp + 0xb0], rax
mov rax, qword [rbp + 0xb0]
mov qword [rax + 0x30], 0
jmp 0x14000d658
mov rax, qword [rbp + 0x48]
test rax, rax
je 0x14000dab5
mov rax, qword [rbp + 0x48]
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rax
call rdx
mov qword [rbp + 0x48], 0
jmp 0x14000d658
mov rax, qword [rbp + 0x60]
test rax, rax
jne 0x14000dae4
mov rax, qword [rbp + 0x40]
test rax, rax
je 0x14000dae4
mov rax, qword [rbp + 0x40]
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rax
call rdx
mov rax, qword [rbp + 0x60]
mov rbx, qword [rbp + 0x100]
lea rsp, [rbp + 0x110]
pop rbp
ret