Function at 0x43da00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c205
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x49d034]
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 - 0x28], edx
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], eax
call fcn.00409480
mov ecx, eax
test ecx, ecx
je 0x43de9e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
xor ebx, ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], ebx
call fcn.00409480
mov ecx, eax
test ecx, ecx
je 0x43de9e
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x18]
push edi
push str..Scsi_u:
push eax
call fcn.00408e2a
mov edi, dword [ebp - 0x18]
add esp, 0xc
mov dword [ebp - 0x24], edi
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40], eax
cmp eax, 0xffffffff
jne 0x43dac7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
jmp 0x43de34
push 0x3c
call fcn.00454c58
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x43dae3
mov dword [ebp - 0x30], 8
jmp 0x43de2b
push 0x22c
call fcn.00454c58
add esp, 4
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x43db03
mov dword [ebp - 0x30], 8
jmp 0x43de2b
mov byte [ebp - 0x1d], 0
jmp 0x43db13
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
push 0x22c
mov dword [ebx + 0x30], 0
push 0
mov dword [ebx + 0x34], 0
push eax
mov dword [ebx + 0x38], 0
call fcn.00451b90
push 8
lea eax, [ebx + 4]
mov dword [ebx], 0x1c
push str.SCSIDISK
push eax
mov dword [ebx + 0xc], 0x1388
mov dword [ebx + 0x18], 0x210
mov dword [ebx + 0x10], 0x1b0501
call fcn.00454c80
mov al, byte [ebp - 0x1d]
add esp, 0x18
mov ecx, dword [ebp - 0x2c]
mov byte [ebx + 0x28], al
lea eax, [ebp - 0x1c]
mov byte [ebx + 0x26], 0xec
push 0
push eax
push 0x22c
push ecx
push 0x3c
push ebx
push 0x4d008
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x43dbe7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
mov al, byte [ebp - 0x1d]
inc al
mov byte [ebp - 0x1d], al
cmp al, 2
jb 0x43db10
jmp 0x43de2b
mov edi, dword [ebp - 0x2c]
xor edx, edx
nop dword [eax]
mov cl, byte [edi + edx + 0x40]
mov al, byte [edi + edx + 0x41]
mov byte [edi + edx + 0x40], al
mov byte [edi + edx + 0x41], cl
add edx, 2
cmp edx, 0x14
jl 0x43dbf0
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x15
or eax, ecx
mov edi, dword [ebp - 0x24]
jge 0x43dc2a
push 0x15
lea ecx, [ebp - 0x14]
call fcn.00408cb5
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
push 0x14
add eax, 0x40
mov byte [esi + 0x14], 0
push eax
push esi
call fcn.00454c80
push dword [esi - 8]
push esi
call fcn.00454da4
add esp, 0x14
test eax, eax
js 0x43dead
cmp eax, dword [esi - 8]
jg 0x43dead
mov dword [esi - 0xc], eax
lea ecx, [ebp - 0x14]
mov byte [eax + esi], 0
call fcn.00408a11
mov eax, dword [ebp - 0x28]
mov esi, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [esi - 0x10]
lea eax, [ecx - 0x10]
mov dword [ebp - 0x34], eax
cmp edx, eax
je 0x43de2b
lea edi, [eax + 0xc]
mov dword [ebp - 0x38], edi
mov edi, dword [eax + 0xc]
test edi, edi
mov dword [ebp - 0x3c], edi
mov edi, dword [ebp - 0x24]
js 0x43dd1b
mov edx, dword [edx]
cmp edx, dword [eax]
jne 0x43dd1b
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0x10]
lea ecx, [esi - 0x10]
mov edx, eax
cmp dword [ecx + 0xc], 0
lea eax, [ecx + 0xc]
jl 0x43dcc0
cmp edx, dword [ecx]
jne 0x43dcc0
mov dword [ebp - 0x24], ecx
lock inc dword [eax]
jmp 0x43dcf1
mov eax, dword [edx]
push 1
push dword [ecx + 4]
mov ecx, edx
call dword [eax]
mov ecx, eax
mov dword [ebp - 0x24], ecx
test ecx, ecx
je 0x43dea8
mov eax, dword [esi - 0xc]
mov dword [ecx + 4], eax
mov eax, esi
mov edx, dword [esi - 0xc]
add ecx, 0x10
inc edx
push edx
push eax
call fcn.00409000
add esp, 8
mov ecx, dword [ebp - 0x38]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x43dd0b
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [edx]
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
add eax, 0x10
mov dword [ecx], eax
jmp 0x43de2b
mov edx, dword [esi - 0xc]
mov dword [ebp - 0x24], edx
test edx, edx
jne 0x43dd87
cmp dword [eax + 4], 0
mov edx, dword [eax]
mov dword [ebp - 0x34], edx
je 0x43de2b
cmp dword [ebp - 0x3c], 0
jge 0x43dd58
cmp dword [ecx - 8], 0
jl 0x43dead
mov eax, dword [ebp - 0x28]
mov dword [ecx - 0xc], 0
mov eax, dword [eax]
mov byte [eax], 0
jmp 0x43de2b
mov edx, dword [ebp - 0x38]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x43dd72
lea edx, [ecx - 0x10]
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x28]
add eax, 0x10
mov dword [ecx], eax
jmp 0x43de2b
mov eax, dword [ecx - 0xc]
mov dword [ebp - 0x44], eax
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x38], eax
test edx, edx
js 0x43dead
mov eax, 1
sub eax, dword [ebp - 0x3c]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx - 8]
sub eax, edx
or eax, dword [ebp - 0x34]
jge 0x43ddc2
mov ecx, dword [ebp - 0x28]
push edx
call fcn.00408cb5
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x44]
ja 0x43de04
add eax, ecx
jne 0x43dde0
call fcn.00454c45
mov dword [eax], 0x16
call fcn.00454b6b
jmp 0x43de11
cmp dword [ecx - 8], edx
jae 0x43ddf7
call fcn.00454c45
mov dword [eax], 0x22
call fcn.00454b6b
jmp 0x43de11
push edx
push eax
push ecx
call fcn.00451cf0
add esp, 0xc
jmp 0x43de11
push edx
mov edx, dword [ecx - 8]
push esi
call fcn.00409000
add esp, 8
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov eax, dword [edx]
cmp ecx, dword [eax - 8]
jg 0x43dead
mov dword [eax - 0xc], ecx
mov eax, dword [edx]
mov byte [ecx + eax], 0
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00454c63
push dword [ebp - 0x2c]
call fcn.00454c63
add esp, 8
mov byte [ebp - 4], 1
or ebx, 0xffffffff
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x43de63
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x43de7f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x30]
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.0044f515
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004091c0
call fcn.00408e1f
push 0x80070057
call fcn.004091c0
int3