Function at 0x4557b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5fd0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x517074]
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.004536c0
mov edi, eax
test edi, edi
jne 0x4557fb
push 0x80004005
call fcn.004533b0
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4db310]
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.004536c0
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x45583d
push 0x80004005
call fcn.004533b0
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4db310]
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.00457270
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 0x45589c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
jmp 0x455a1d
push 0x3c
call fcn.004adc40
mov edi, eax
add esp, 4
test edi, edi
jne 0x4558b8
mov dword [ebp - 0x24], 8
jmp 0x455a14
push 0x22c
call fcn.004adc40
mov ebx, eax
add esp, 4
mov dword [ebp - 0x20], ebx
test ebx, ebx
jne 0x4558da
mov dword [ebp - 0x24], 8
jmp 0x455a14
xor bl, bl
nop dword [eax]
push 0x3c
push 0
push edi
call fcn.004a5940
add esp, 0xc
push 0x22c
push 0
push dword [ebp - 0x20]
call fcn.004a5940
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.004b8aa0
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 0x455970
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc bl
mov dword [ebp - 0x24], eax
cmp bl, 2
jb 0x4558e0
jmp 0x455a11
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 0x455981
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 0x4559b7
push 0x15
lea ecx, [ebp - 0x14]
call fcn.00456d70
mov edx, dword [ebp - 0x14]
push 0x14
push dword [ebp - 0x2c]
mov byte [edx + 0x14], 0
push edx
call fcn.004b8aa0
mov eax, dword [ebp - 0x14]
add esp, 0xc
push dword [eax - 8]
push eax
call fcn.004b8e02
add esp, 8
test eax, eax
js 0x455aa6
mov edx, dword [ebp - 0x14]
cmp eax, dword [edx - 8]
jg 0x455aa6
mov dword [edx - 0xc], eax
lea ecx, [ebp - 0x14]
mov edx, dword [ebp - 0x14]
mov byte [eax + edx], 0
call fcn.00456a10
mov ecx, eax
call fcn.00456970
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x14]
push eax
call fcn.00456b40
mov ebx, dword [ebp - 0x20]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004adc50
add esp, 4
push ebx
call fcn.004adc50
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 0x455a5f
mov ebx, dword [edx]
push edx
mov eax, dword [ebx]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x4db310]
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 0x455a87
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4db310]
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.0048bc9e
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004533b0
int3