Function at 0x43c4b0
Capabilities:
Check if file exists

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xb0
mov r13d, dword [rsp + 0x118]
mov r12d, dword [rsp + 0x110]
cmp edx, 0xff
mov rbx, rcx
mov rsi, r9
mov dword [rcx + 0x24], 0xffffffff
jbe 0x43c5f0
cmp r8d, 0x19
ja 0x43c5c0
lea rbp, [rsp + 0x90]
lea r9d, [r8 + 0x41]
lea r8, str.._c:
mov edx, 0x1d
mov rcx, rbp
call fcn.0045e850
cmp byte [rsi], 0
je 0x43c532
lea rdx, [0x004dc8cc]
mov rcx, rsi
call sub.msvcrt.dll_strspn
cmp byte [rsi + rax], 0
je 0x43c620
test r13b, r13b
je 0x43c8b0
xor r9d, r9d
xor edx, edx
mov byte [rbx + 0x21], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov r8d, 3
mov dword [rsp + 0x20], 3
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x43ca75
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x43ca40
cmp eax, 5
je 0x43c980
mov rdx, qword [rbx]
lea r8, str._s:_Error_ld
mov r9, rbp
add rbx, qword [rdx - 0x18]
mov dword [rsp + 0x20], eax
mov edx, 5
mov rcx, rbx
call fcn.00419c00
xor eax, eax
jmp 0x43c5d4
mov rax, qword [rcx]
mov edx, 2
add rbx, qword [rax - 0x18]
mov rcx, rbx
call fcn.00419bf0
add rsp, 0xb0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
lea rbp, [rsp + 0x90]
lea r8, str..PhysicalDrive_d
mov dword [rcx + 0x24], edx
mov r9d, edx
mov edx, 0x1d
mov rcx, rbp
call fcn.0045e850
jmp 0x43c514
mov r14, qword [sym.imp.KERNEL32.dll_CreateFileA]
xor r9d, r9d
xor edx, edx
mov byte [rbx + 0x21], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov r8d, 3
mov dword [rsp + 0x20], 3
mov rcx, rbp
call r14
cmp rax, 0xffffffffffffffff
mov rdi, rax
je 0x43c579
test r13b, r13b
mov qword [rbx + 0x10], rdi
jne 0x43c67e
cmp byte [rbx + 0x21], 0
jne 0x43c67e
cmp byte [0x00502008], 0
je 0x43c9a5
mov r13, qword [0x004e17b0]
cmp byte [r13], 1
jbe 0x43c6b1
cmp byte [rbx + 0x21], 0
lea rax, [0x004db042]
lea r8, str.__without_admin_rights_
lea rcx, str._s:_successfully_opened_s_n
mov rdx, rbp
cmovne r8, rax
call fcn.00405e40
mov byte [rbx + 0x20], 0
cmp byte [rsi], 0
jne 0x43c880
test r12d, r12d
js 0x43c820
lea rcx, [rbx + 0x18]
lea rdx, [0x004dc957]
mov r8d, 2
call fcn.00485830
mov dword [rbx + 0x2c], r12d
lea rsi, [rsp + 0x50]
mov rcx, rdi
mov rdx, rsi
call fcn.00435810
movzx edx, word [rsp + 0x5c]
cmp dx, 0x13c1
sete cl
test eax, eax
mov byte [rbx + 0x29], cl
jns 0x43c860
lea rcx, str._s:_ATA_driver_has_no_SMART_support_n
mov rdx, rbp
call fcn.00405e40
mov rdx, qword [0x004e17e0]
movzx eax, byte [rdx]
test al, al
je 0x43c9c0
sub eax, 1
xor r14d, r14d
mov byte [rdx], al
movabs rax, 0x3e65726177333c
lea r8, [rsp + 0x70]
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x74], rax
lea rax, [rsp + 0x4c]
mov dword [rbx + 0x30], 1
mov dword [rsp + 0x88], 0
mov dword [rsp + 0x70], 0x1c
mov r9d, 0x1c
mov dword [rsp + 0x7c], 0x3c
mov dword [rsp + 0x80], 0xcc010014
mov edx, 0x4d008
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], rax
mov rcx, rdi
mov dword [rsp + 0x28], 0x1c
mov qword [rsp + 0x20], r8
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43ca14
mov edx, dword [rsp + 0x84]
test edx, edx
jne 0x43c9f0
cmp byte [r13], 1
jbe 0x43c7dd
lea rcx, str.__UPDATE_DEVICEMAP_via_IOCTL_SCSI_MINIPORT_suceeded_n
call fcn.00405e40
mov rdx, rsi
mov rcx, rdi
call fcn.00435810
test eax, eax
js 0x43c7f9
cmp word [rsp + 0x5c], 0x13c1
cmove r14d, dword [rsp + 0x58]
bt r14d, r12d
jb 0x43c84f
mov rdx, qword [0x004e17e0]
movzx eax, byte [rdx]
test al, al
je 0x43c900
sub eax, 1
mov byte [rdx], al
mov eax, 1
jmp 0x43c5d4
cmp byte [0x00502018], 0
je 0x43c940
mov rsi, qword [0x00502000]
mov rcx, rsi
call sub.msvcrt.dll_strlen
mov r8, rax
lea rcx, [rbx + 0x18]
mov rdx, rsi
call fcn.00485830
mov dword [rbx + 0x2c], r12d
mov eax, 1
jmp 0x43c5d4
test cl, cl
mov r14d, dword [rsp + 0x58]
jne 0x43c732
lea rcx, str.SMART_GET_VERSION_returns_unknown_Identifier__0x_04x_nThis_is_no_3ware_9000_controller_or_driver_has_no_SMART_support._n
call fcn.00405e40
jmp 0x43c709
mov rcx, rsi
call sub.msvcrt.dll_strlen
lea rcx, [rbx + 0x18]
mov r8, rax
mov rdx, rsi
call fcn.00485830
test r12d, r12d
mov byte [rbx + 0x20], 1
mov dword [rbx + 0x2c], r12d
jns 0x43c6e1
jmp 0x43c84f
xor r9d, r9d
mov byte [rbx + 0x21], 1
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
mov r8d, 3
mov edx, 0xc0000000
mov rcx, rbp
mov r14, qword [sym.imp.KERNEL32.dll_CreateFileA]
call r14
cmp rax, 0xffffffffffffffff
mov rdi, rax
jne 0x43c662
jmp 0x43c627
lea rcx, str.To_continue__add_one_or_more__T_permissive_options._n
call fcn.00405e40
mov rax, qword [rbx + 8]
lea rcx, [rbx + 8]
call qword [rax + 0x18]
mov rax, qword [rbx]
lea r8, str._s:_Port__d_is_empty_or_does_not_exist
mov r9, rbp
mov edx, 2
add rbx, qword [rax - 0x18]
mov dword [rsp + 0x20], r12d
mov rcx, rbx
call fcn.00419c00
jmp 0x43c5d4
lea rcx, [0x00502018]
call fcn.0049ada0
test eax, eax
je 0x43c82d
lea rax, str.pasifm
lea rcx, [0x00502018]
lea rsi, str.pasifm
mov qword [0x00502000], rax
call fcn.0049aeb0
mov r8d, 6
jmp 0x43c83f
mov rax, qword [rbx]
lea r8, str._s:_access_denied
mov r9, rbp
mov edx, 0xd
add rbx, qword [rax - 0x18]
mov rcx, rbx
call fcn.00419c00
xor eax, eax
jmp 0x43c5d4
lea rcx, str.Warning:_Limited_functionality_due_to_missing_admin_rights_n
call fcn.00405e40
mov byte [0x00502008], 1
jmp 0x43c67e
lea rcx, str.To_continue__add_one_or_more__T_permissive_options._n
call fcn.00405e40
mov rax, qword [rbx + 8]
lea rcx, [rbx + 8]
call qword [rax + 0x18]
mov rax, qword [rbx]
mov edx, 0x28
add rbx, qword [rax - 0x18]
mov rcx, rbx
call fcn.00419bf0
jmp 0x43c5d4
cmp byte [r13], 0
je 0x43ca03
lea rcx, str.__UPDATE_DEVICEMAP_via_IOCTL_SCSI_MINIPORT_failed__ReturnCode0x_08x_n
call fcn.00405e40
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], 5
jmp 0x43c7f9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [r13], 0
mov esi, eax
jne 0x43ca65
call qword [sym.imp.msvcrt.dll__errno]
cmp esi, 1
mov ecx, 5
mov edx, 0x28
cmovne edx, ecx
mov dword [rax], edx
jmp 0x43c7f9
mov rax, qword [rbx]
lea r8, str._s:_not_found
mov r9, rbp
mov edx, 2
add rbx, qword [rax - 0x18]
mov rcx, rbx
call fcn.00419c00
xor eax, eax
jmp 0x43c5d4
lea rcx, str.__UPDATE_DEVICEMAP_via_IOCTL_SCSI_MINIPORT_failed__Error_ld_n
mov edx, eax
call fcn.00405e40
jmp 0x43ca23
mov qword [rbx + 0x10], rdi
jmp 0x43c67e