Function at 0x449de0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dbaa0
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.00447cf0
mov edi, eax
test edi, edi
jne 0x449e2b
push 0x80004005
call fcn.004479e0
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.00447cf0
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x449e6d
push 0x80004005
call fcn.004479e0
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.0044b8a0
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 0x449ecc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x44a04d
push 0x3c
call fcn.004b58d0
mov edi, eax
add esp, 4
test edi, edi
jne 0x449ee8
mov dword [ebp - 0x24], 8
jmp 0x44a044
push 0x22c
call fcn.004b58d0
mov ebx, eax
add esp, 4
mov dword [ebp - 0x20], ebx
test ebx, ebx
jne 0x449f0a
mov dword [ebp - 0x24], 8
jmp 0x44a044
xor bl, bl
nop dword [eax]
push 0x3c
push 0
push edi
call fcn.004ad5f0
add esp, 0xc
push 0x22c
push 0
push dword [ebp - 0x20]
call fcn.004ad5f0
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.004bfb60
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 0x449fa0
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc bl
mov dword [ebp - 0x24], eax
cmp bl, 2
jb 0x449f10
jmp 0x44a041
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 0x449fb1
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 0x449fe7
push 0x15
lea ecx, [ebp - 0x14]
call fcn.0044b3a0
mov edx, dword [ebp - 0x14]
push 0x14
push dword [ebp - 0x2c]
mov byte [edx + 0x14], 0
push edx
call fcn.004bfb60
mov eax, dword [ebp - 0x14]
add esp, 0xc
push dword [eax - 8]
push eax
call fcn.004bfeb9
add esp, 8
test eax, eax
js 0x44a0d6
mov edx, dword [ebp - 0x14]
cmp eax, dword [edx - 8]
jg 0x44a0d6
mov dword [edx - 0xc], eax
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov byte [eax + edx], 0
call fcn.0044b040
mov ecx, eax
call fcn.0044afa0
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x14]
push eax
call fcn.0044b170
mov ebx, dword [ebp - 0x20]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004b58e0
add esp, 4
push ebx
call fcn.004b58e0
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 0x44a08f
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 0x44a0b7
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.00493bec
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004479e0
int3