Function at 0x140004384
Capabilities:
Check if file exists
Check if process is running under wine
Get file attributes

Disassembly:
sub rsp, 0x7c8
mov qword [rsp + 0x60], 0xffffffff80000002
lea r8, str.HARDWAREDEVICEMAPScsiScsi_Port_0Scsi_Bus_0Target_Id_0Logical_Unit_Id_0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x4e0]
call fcn.1400012b0
nop
mov qword [rsp + 0x68], 0xffffffff80000002
lea r8, str.HARDWAREDescriptionSystem
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x508]
call fcn.1400012b0
nop
mov qword [rsp + 0x70], 0xffffffff80000002
lea r8, str.SYSTEMControlSet001ControlSystemInformation
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x530]
call fcn.1400012b0
nop
mov qword [rsp + 0x78], 0xffffffff80000002
lea r8, str.HARDWAREACPIDSDTVBOX__
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x558]
call fcn.1400012b0
nop
mov qword [rsp + 0x80], 0xffffffff80000002
lea r8, str.HARDWAREACPIFADTVBOX__
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x580]
call fcn.1400012b0
nop
mov qword [rsp + 0x88], 0xffffffff80000002
lea r8, str.HARDWAREACPIRSDTVBOX__
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x5a8]
call fcn.1400012b0
nop
mov qword [rsp + 0x90], 0xffffffff80000002
lea r8, str.SOFTWAREOracleVirtualBox_Guest_Additions
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x5d0]
call fcn.1400012b0
nop
mov qword [rsp + 0x98], 0xffffffff80000002
lea r8, str.SYSTEMControlSet001ServicesVBoxGuest
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x5f8]
call fcn.1400012b0
nop
mov qword [rsp + 0xa0], 0xffffffff80000002
lea r8, str.SYSTEMControlSet001ServicesVBoxMouse
lea rdx, [rsp + 0xa0]
lea rcx, [rsp + 0x620]
call fcn.1400012b0
nop
mov qword [rsp + 0xa8], 0xffffffff80000002
lea r8, str.SYSTEMControlSet001ServicesVBoxService
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x648]
call fcn.1400012b0
nop
mov qword [rsp + 0xb0], 0xffffffff80000002
lea r8, str.SYSTEMControlSet001ServicesVBoxSF
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0x670]
call fcn.1400012b0
nop
mov qword [rsp + 0xb8], 0xffffffff80000002
lea r8, str.SYSTEMControlSet001ServicesVBoxVideo
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x698]
call fcn.1400012b0
nop
mov qword [rsp + 0xc0], 0xffffffff80000002
lea r8, str.SOFTWAREVMware__Inc.VMware_Tools
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x6c0]
call fcn.1400012b0
nop
mov qword [rsp + 0xc8], 0xffffffff80000002
lea r8, str.SOFTWAREWine
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x6e8]
call fcn.1400012b0
nop
mov qword [rsp + 0xd0], 0xffffffff80000002
lea r8, str.SOFTWAREMicrosoftVirtual_MachineGuestParameters
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x710]
call fcn.1400012b0
nop
mov qword [rsp + 0xd8], 0xffffffff80000002
lea r8, str.SYSTEMCurrentControlSetServicesDiskEnum
lea rdx, [rsp + 0xd8]
lea rcx, [rsp + 0x738]
call fcn.1400012b0
nop
mov qword [rsp + 0xe0], 0xffffffff80000002
lea r8, str.SYSTEMCurrentControlSetEnumIDE
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x760]
call fcn.1400012b0
nop
mov qword [rsp + 0xe8], 0xffffffff80000002
lea r8, str.SYSTEMCurrentControlSetEnumSCSI
lea rdx, [rsp + 0xe8]
lea rcx, [rsp + 0x788]
call fcn.1400012b0
nop
lea rcx, [rsp + 0x33]
call fcn.140002074
mov qword [rsp + 0xf0], rax
lea rcx, [rsp + 0x7b0]
mov r8, rcx
lea rdx, [rsp + 0x4e0]
lea rcx, [rsp + 0x170]
call fcn.140002c28
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x150], xmm0
mov rax, qword [rsp + 0xf0]
mov r8, rax
lea rdx, [rsp + 0x150]
lea rcx, [rsp + 0x120]
call fcn.140002c9c
nop
lea r9, [fcn.14000376c]
mov r8d, 0x12
mov edx, 0x28
lea rcx, [rsp + 0x4e0]
call fcn.140007564
nop
lea rax, [rsp + 0x120]
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x48]
call fcn.140005a8c
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x48]
call fcn.140005aa8
mov qword [rsp + 0xf8], rax
jmp 0x140004712
mov rax, qword [rsp + 0x38]
add rax, 0x28
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xf8]
cmp qword [rsp + 0x38], rax
je 0x140004796
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
add rax, 8
mov rcx, rax
call fcn.140005d8c
lea rcx, [rsp + 0x100]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
mov rdx, rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140004791
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov byte [rsp + 0x30], 1
lea rcx, [rsp + 0x120]
call fcn.1400037c4
mov al, byte [rsp + 0x30]
jmp 0x140004af8
jmp 0x140004704
lea rdx, str.system32driversVBoxMouse.sys
lea rcx, [rsp + 0x190]
call fcn.140002b8c
nop
lea rdx, str.system32driversVBoxGuest.sys
lea rcx, [rsp + 0x1b0]
call fcn.140002b8c
nop
lea rdx, str.system32driversVBoxSF.sys
lea rcx, [rsp + 0x1d0]
call fcn.140002b8c
nop
lea rdx, str.system32driversVBoxVideo.sys
lea rcx, [rsp + 0x1f0]
call fcn.140002b8c
nop
lea rdx, str.system32_vboxdisp.dll
lea rcx, [rsp + 0x210]
call fcn.140002b8c
nop
lea rdx, str.system32_vboxhook.dll
lea rcx, [rsp + 0x230]
call fcn.140002b8c
nop
lea rdx, str.system32_vboxmrxnp.dll
lea rcx, [rsp + 0x250]
call fcn.140002b8c
nop
lea rdx, str.system32_vboxogl.dll
lea rcx, [rsp + 0x270]
call fcn.140002b8c
nop
lea rdx, str.system32_vboxoglarrayspu.dll
lea rcx, [rsp + 0x290]
call fcn.140002b8c
nop
lea rdx, str.system32_vboxoglcrutil.dll
lea rcx, [rsp + 0x2b0]
call fcn.140002b8c
nop
lea rdx, str.system32_vboxoglerrorspu.dll
lea rcx, [rsp + 0x2d0]
call fcn.140002b8c
nop
lea rdx, str.system32_vboxoglfeedbackspu.dll
lea rcx, [rsp + 0x2f0]
call fcn.140002b8c
nop
lea rdx, str.system32_vboxoglpackspu.dll
lea rcx, [rsp + 0x310]
call fcn.140002b8c
nop
lea rdx, str.system32_vboxoglpassthroughspu.dll
lea rcx, [rsp + 0x330]
call fcn.140002b8c
nop
lea rdx, str.system32_vboxservice.exe
lea rcx, [rsp + 0x350]
call fcn.140002b8c
nop
lea rdx, str.system32_vboxtray.exe
lea rcx, [rsp + 0x370]
call fcn.140002b8c
nop
lea rdx, str.system32VBoxControl.exe
lea rcx, [rsp + 0x390]
call fcn.140002b8c
nop
lea rdx, [0x140027168]
lea rcx, [rsp + 0x3b0]
call fcn.140002b8c
nop
lea rdx, [0x1400271a8]
lea rcx, [rsp + 0x3d0]
call fcn.140002b8c
nop
lea rdx, str.system32drivers_vm3dmp.sys
lea rcx, [rsp + 0x3f0]
call fcn.140002b8c
nop
lea rdx, str.system32drivers_vmci.sys
lea rcx, [rsp + 0x410]
call fcn.140002b8c
nop
lea rdx, str.system32drivers_vmhgfs.sys
lea rcx, [rsp + 0x430]
call fcn.140002b8c
nop
lea rdx, str.system32drivers_vmmemctl.sys
lea rcx, [rsp + 0x450]
call fcn.140002b8c
nop
lea rdx, str.system32drivers_vmmouse.sys
lea rcx, [rsp + 0x470]
call fcn.140002b8c
nop
lea rdx, str.system32drivers_vmrawdsk.sys
lea rcx, [rsp + 0x490]
call fcn.140002b8c
nop
lea rdx, str.system32drivers_vmusbmouse.sys
lea rcx, [rsp + 0x4b0]
call fcn.140002b8c
nop
lea rcx, [rsp + 0x34]
call fcn.140002074
mov qword [rsp + 0x108], rax
lea rcx, [rsp + 0x4d0]
mov r8, rcx
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0x180]
call fcn.140002c28
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x160], xmm0
mov rax, qword [rsp + 0x108]
mov r8, rax
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0x138]
call fcn.140002d18
nop
lea r9, [fcn.140003710]
mov r8d, 0x1a
mov edx, 0x20
lea rcx, [rsp + 0x190]
call fcn.140007564
nop
lea rax, [rsp + 0x138]
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x58]
call fcn.140005a8c
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x58]
call fcn.140005aa8
mov qword [rsp + 0x110], rax
jmp 0x140004a75
mov rax, qword [rsp + 0x40]
add rax, 0x20
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x110]
cmp qword [rsp + 0x40], rax
je 0x140004ad4
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x118], rax
mov rcx, qword [rsp + 0x118]
call fcn.140005d8c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140004ad2
mov byte [rsp + 0x31], 1
lea rcx, [rsp + 0x138]
call fcn.1400037e0
nop
lea rcx, [rsp + 0x120]
call fcn.1400037c4
mov al, byte [rsp + 0x31]
jmp 0x140004af8
jmp 0x140004a67
mov byte [rsp + 0x32], 0
lea rcx, [rsp + 0x138]
call fcn.1400037e0
nop
lea rcx, [rsp + 0x120]
call fcn.1400037c4
mov al, byte [rsp + 0x32]
add rsp, 0x7c8
ret