Function at 0x449a70
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db750
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x20], ecx
xor eax, eax
mov dword [ebp - 0x24], eax
call fcn.00447980
mov edi, eax
test edi, edi
jne 0x449abb
push 0x80004005
call fcn.00447670
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e3310]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
xor ebx, ebx
mov dword [ebp - 0x1c], 0
xor edi, edi
mov dword [ebp - 0x14], ebx
call fcn.00447980
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x449afd
push 0x80004005
call fcn.00447670
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4e3310]
mov ecx, dword [ebp - 0x28]
call esi
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push dword [ebp - 0x20]
push str..Scsi_u:
push eax
call fcn.0044b530
mov esi, dword [ebp - 0x18]
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
jne 0x449b5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x449cdd
push 0x3c
call fcn.004b5500
mov edi, eax
add esp, 4
test edi, edi
jne 0x449b78
mov dword [ebp - 0x24], 8
jmp 0x449cd4
push 0x22c
call fcn.004b5500
mov ebx, eax
add esp, 4
mov dword [ebp - 0x20], ebx
test ebx, ebx
jne 0x449b9a
mov dword [ebp - 0x24], 8
jmp 0x449cd4
xor bl, bl
nop dword [eax]
push 0x3c
push 0
push edi
call fcn.004ad200
add esp, 0xc
push 0x22c
push 0
push dword [ebp - 0x20]
call fcn.004ad200
add esp, 0xc
mov dword [edi], 0x1c
lea eax, [edi + 4]
mov dword [edi + 0xc], 0x1388
mov dword [edi + 0x18], 0x210
mov dword [edi + 0x10], 0x1b0501
push 8
push str.SCSIDISK
push eax
call fcn.004bf710
add esp, 0xc
mov byte [edi + 0x26], 0xec
lea eax, [ebp - 0x1c]
mov byte [edi + 0x28], bl
push 0
push eax
push 0x22c
push dword [ebp - 0x20]
push 0x3c
push edi
push 0x4d008
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x449c30
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc bl
mov dword [ebp - 0x24], eax
cmp bl, 2
jb 0x449ba0
jmp 0x449cd1
mov eax, dword [ebp - 0x20]
mov ebx, 0xa
add eax, 0x40
mov dword [ebp - 0x2c], eax
lea edx, [eax + 1]
mov cl, byte [edx - 1]
lea edx, [edx + 2]
mov al, byte [edx - 2]
mov byte [edx - 3], al
mov byte [edx - 2], cl
sub ebx, 1
jne 0x449c41
mov edx, dword [ebp - 0x14]
mov ecx, 1
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x15
or eax, ecx
jge 0x449c77
push 0x15
lea ecx, [ebp - 0x14]
call fcn.0044b030
mov edx, dword [ebp - 0x14]
push 0x14
push dword [ebp - 0x2c]
mov byte [edx + 0x14], 0
push edx
call fcn.004bf710
mov eax, dword [ebp - 0x14]
add esp, 0xc
push dword [eax - 8]
push eax
call fcn.004bfa69
add esp, 8
test eax, eax
js 0x449d66
mov edx, dword [ebp - 0x14]
cmp eax, dword [edx - 8]
jg 0x449d66
mov dword [edx - 0xc], eax
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov byte [eax + edx], 0
call fcn.0044acd0
mov ecx, eax
call fcn.0044ac30
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x14]
push eax
call fcn.0044ae00
mov ebx, dword [ebp - 0x20]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004b5510
add esp, 4
push ebx
call fcn.004b5510
add esp, 4
mov byte [ebp - 4], 1
or ecx, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, ecx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x449d1f
mov ebx, dword [edx]
push edx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x4e3310]
mov ecx, ebx
call edi
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x449d47
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e3310]
mov ecx, edi
call esi
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049384c
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00447670
int3