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

Disassembly:
mov eax, 0x1388
call fcn.005a46e0
sub rsp, rax
mov rax, qword [0x006443a8]
xor rax, rsp
mov qword [rsp + 0x1350], rax
mov qword [rsp + 0x13a8], rbp
mov qword [rsp + 0x1380], rsi
mov qword [rsp + 0x1378], rdi
mov qword [rsp + 0x1370], r12
mov r12, rdx
lea rdx, [rsp + 0x150]
mov r8d, 0x200
mov rbp, rcx
xor dil, dil
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x4a1fc4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4a1fb8
lea r8, str.Device_
lea edx, [rax + 0x4e]
lea rcx, [rsp + 0xb0]
mov r9, 0xffffffffffffffff
call fcn.0056ef40
lea rcx, [rsp + 0xb0]
mov r8, rbp
mov edx, 0x50
call fcn.0056feb0
lea r8, [rsp + 0xb0]
mov rdx, rbp
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x4a1fbf
xor al, al
jmp 0x4a2141
mov sil, 1
jmp 0x4a1fc7
xor sil, sil
mov r9, 0xffffffffffffffff
lea r8, str.._
lea rcx, [rsp + 0x100]
lea edx, [r9 + 0x51]
mov qword [rsp + 0x13a0], rbx
mov qword [rsp + 0x1368], r13
call fcn.0056ef40
lea rcx, [rsp + 0x100]
mov r8, rbp
mov edx, 0x50
call fcn.0056feb0
xor ebx, ebx
mov qword [rsp + 0x30], 0xffffffffffffffff
lea rcx, [rsp + 0x100]
lea r8d, [rbx + 3]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x4a2113
mov rdx, qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x48]
mov r8, rax
call fcn.004e5450
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x44]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x60]
lea r9d, [rbx + 4]
lea r8, [rsp + 0x40]
mov edx, 0x170002
mov rcx, r13
mov dword [rsp + 0x28], 0x50
mov dword [rsp + 0x40], 0x10104
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov r8d, dword [rsp + 0x44]
test eax, eax
je 0x4a20ba
test r8d, r8d
jne 0x4a20ba
lea rcx, [rsp + 0x48]
xor dil, dil
call fcn.004e53d0
jmp 0x4a2113
shr r8d, 2
mov dword [rsp + 0x40], ebx
mov edx, ebx
je 0x4a2106
lea rcx, [rsp + 0x60]
nop
nop
mov eax, dword [rcx]
test eax, eax
je 0x4a21a1
sub eax, 1
je 0x4a2197
sub eax, 1
je 0x4a218d
sub eax, 1
je 0x4a2183
sub eax, 5
je 0x4a2179
add edx, 1
add rcx, 4
cmp edx, r8d
jb 0x4a20d0
lea rcx, [rsp + 0x48]
xor dil, dil
call fcn.004e53d0
test sil, sil
mov r13, qword [rsp + 0x1368]
mov rbx, qword [rsp + 0x13a0]
je 0x4a213e
lea r8, [rsp + 0xb0]
mov rdx, rbp
mov ecx, 7
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
mov al, dil
mov r12, qword [rsp + 0x1370]
mov rdi, qword [rsp + 0x1378]
mov rsi, qword [rsp + 0x1380]
mov rbp, qword [rsp + 0x13a8]
mov rcx, qword [rsp + 0x1350]
xor rcx, rsp
call fcn.00568fb0
add rsp, 0x1388
ret
mov dword [rsp + 0x40], 0x8010104
jmp 0x4a21a9
mov dword [rsp + 0x40], 0x4010101
jmp 0x4a21a9
mov dword [rsp + 0x40], 0x3010101
jmp 0x4a21a9
mov dword [rsp + 0x40], 0x2010101
jmp 0x4a21a9
mov dword [rsp + 0x40], 0x1010101
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x44]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x350]
mov r9d, 4
mov edx, 0x170002
mov rcx, r13
mov dword [rsp + 0x28], 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4a2279
cmp dword [rsp + 0x44], 6
jne 0x4a2279
lea rax, [rsp + 0x350]
lea r8, [0x00400000]
mov edx, dword [rax]
cmp edx, dword [r8 + 0x1c88ac]
jne 0x4a2225
mov dx, word [rax + 4]
cmp dx, word [r8 + 0x1c88b0]
jne 0x4a2225
mov eax, ebx
jmp 0x4a222a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4a2279
lea rax, [rsp + 0x350]
mov dx, word [rax]
cmp dx, word [r8 + 0x1c88a8]
jne 0x4a2253
mov dl, byte [rax + 2]
add rax, 2
cmp dl, byte [r8 + 0x1c88aa]
je 0x4a225a
sbb eax, eax
sbb eax, 0xffffffff
mov ebx, eax
test ebx, ebx
je 0x4a2279
lea rcx, [rsp + 0x350]
mov dil, 1
mov eax, dword [rcx]
mov dword [r12], eax
movzx eax, word [rcx + 4]
mov word [r12 + 4], ax
lea rcx, [rsp + 0x48]
call fcn.004e53d0
jmp 0x4a2113