Function at 0x4fb550
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x605d46
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x6b000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x87c], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x870], eax
mov ax, word [0x639ee0]
push 0x206
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push 0
push eax
call fcn.00588800
push dword [ebp + 8]
lea eax, [ebp - 0x428]
push str..PhysicalDrive_d
push eax
call fcn.004fb460
add esp, 0x18
lea eax, [ebp - 0x428]
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x88c], edi
cmp edi, 0xffffffff
je 0x4fb95d
push edi
mov dword [ebp - 0x874], 0
call dword [sym.imp.SCSIEngine.dll_public:_static_unsigned_int___cdecl_SCSIEngine::ComputeSectorSize_void__]
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
add esp, 4
mov dword [ebp - 0x878], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x874]
movq qword [ebp - 0x858], xmm0
movups xmmword [ebp - 0x868], xmm0
push 0
push eax
push 0x18
lea eax, [ebp - 0x868]
push eax
push 0
push 0
push 0x74080
push edi
call esi
test eax, eax
je 0x4fb7ad
mov al, byte [ebp - 0x865]
test al, al
je 0x4fb7ad
mov cl, byte [ebp + 8]
xorps xmm0, xmm0
shr al, cl
and al, 0x10
mov byte [ebp - 0x841], 0
neg al
movlpd qword [ebp - 0x83f], xmm0
push 0x210
sbb al, al
movlpd qword [ebp - 0x837], xmm0
and al, 0xb5
mov dword [ebp - 0x82f], 0
add al, 0xec
mov byte [ebp - 0x869], al
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00588800
mov ecx, dword [ebp + 8]
add esp, 0xc
mov al, cl
mov dword [ebp - 0x848], 0x10100
and al, 1
mov byte [ebp - 0x844], 0
or al, 0xfa
mov byte [ebp - 0x840], cl
shl al, 4
mov byte [ebp - 0x843], al
mov al, byte [ebp - 0x869]
push 0
mov byte [ebp - 0x842], al
lea eax, [ebp - 0x874]
push eax
push 0x210
lea eax, [ebp - 0x220]
mov dword [ebp - 0x84c], 0x200
push eax
push 0x20
lea eax, [ebp - 0x84c]
push eax
push 0x7c088
push edi
call esi
test eax, eax
je 0x4fb7ad
xor eax, eax
nop dword [eax]
nop dword [eax + eax]
movq xmm1, qword [ebp + eax*2 - 0x210]
xorps xmm0, xmm0
punpcklwd xmm1, xmm0
movups xmmword [ebp + eax*4 - 0x828], xmm1
movq xmm1, qword [ebp + eax*2 - 0x208]
punpcklwd xmm1, xmm0
movups xmmword [ebp + eax*4 - 0x818], xmm1
movq xmm1, qword [ebp + eax*2 - 0x200]
punpcklwd xmm1, xmm0
movups xmmword [ebp + eax*4 - 0x808], xmm1
movq xmm1, qword [ebp + eax*2 - 0x1f8]
punpcklwd xmm1, xmm0
movups xmmword [ebp + eax*4 - 0x7f8], xmm1
add eax, 0x10
cmp eax, 0x100
jl 0x4fb720
push dword [ebp - 0x878]
mov ecx, dword [ebp - 0x87c]
lea eax, [ebp - 0x828]
push eax
push dword [ebp + 8]
call fcn.004fbcd0
mov eax, dword [ebp - 0x870]
mov dword [eax], 1
jmp 0x4fb934
push 0
lea eax, [ebp - 0x870]
mov dword [ebp - 0x870], 0
push eax
push 0x28
lea eax, [ebp - 0x850]
push eax
push 0
push 0
push 0x700a0
push edi
call esi
test eax, eax
je 0x4fb934
push 0x30
call fcn.00560437
add esp, 4
mov ecx, eax
call fcn.004fb970
mov esi, eax
mov dword [ebp - 0x888], esi
test esi, esi
je 0x4fb934
mov eax, dword [ebp + 8]
mov dword [esi + 0x24], eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x884]
mov dword [esi + 0xc], 0
push eax
call fcn.004fbf80
mov dword [ebp - 4], 0
mov edx, dword [eax]
mov edi, dword [esi]
sub edi, 0x10
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x4fb879
cmp dword [edi + 0xc], 0
jl 0x4fb86e
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4fb86e
call fcn.0040c950
mov dword [ebp - 0x880], eax
lea edx, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4fb867
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x880]
add eax, 0x10
mov dword [esi], eax
jmp 0x4fb879
push dword [edx - 0xc]
mov ecx, esi
push edx
call fcn.0040c9d0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x884]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4fb89e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x83c]
mov eax, 0x200
test ecx, ecx
cmovne eax, ecx
cdq
push edx
push eax
push dword [ebp - 0x834]
push dword [ebp - 0x838]
call fcn.005dda10
push edx
push eax
push 0
push dword [ebp - 0x878]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
call fcn.005dd6d0
push 0
push 0x100000
push edx
push eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
call fcn.005dda10
movd xmm0, eax
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [0x664dc8]
movss dword [esi + 0x20], xmm0
mov dword [esi + 0x28], 0
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x4fb91c
push 9
push 0x65b7a8
mov ecx, esi
call fcn.0040c9d0
mov ecx, dword [ebp - 0x87c]
lea eax, [ebp - 0x888]
push eax
call fcn.004fc310
mov edi, dword [ebp - 0x88c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055f9be
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4fb93b
xor eax, eax
jmp 0x4fb940