Function at 0x40dd40
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x467e02
mov eax, dword fs:[0]
push eax
mov eax, 0x1460
call fcn.00450b30
mov eax, dword [0x487bb0]
xor eax, esp
mov dword [esp + 0x145c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x487bb0]
xor eax, esp
push eax
lea eax, [esp + 0x1474]
mov dword fs:[0], eax
mov ebp, ecx
mov edi, dword [esp + 0x1484]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
mov dword [esp + 0x24], edi
mov byte [edi + 4], bl
push 0x114
lea eax, [esp + 0x430]
push ebx
push eax
mov dword [esp + 0x1488], ebx
mov dword [esp + 0x28], 1
call fcn.0044fe60
add esp, 0xc
lea ecx, [esp + 0x42c]
push ecx
mov dword [esp + 0x430], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x43c], 2
jne 0x40e0ff
mov dword [esp + 0x14], ebx
push 0xff
lea edx, [esp + 0x775]
push ebx
push edx
mov byte [esp + 0x77c], bl
call fcn.0044fe60
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x780]
push str..Scsi_d:
push ecx
call fcn.0044ff2b
add esp, 0x18
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
lea edx, [esp + 0x788]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e0ed
mov dword [esp + 0x18], ebx
lea esp, [esp]
push 0x230
lea eax, [esp + 0x544]
push ebx
push eax
call fcn.0044fe60
push 8
lea ecx, [esp + 0x554]
push str.SCSIDISK
push ecx
mov dword [esp + 0x558], 0x1c
mov dword [esp + 0x564], 0x2710
mov dword [esp + 0x570], 0x214
mov dword [esp + 0x568], 0x1b0501
call fcn.00451fc0
mov dl, byte [esp + 0x30]
add esp, 0x18
push ebx
lea eax, [esp + 0x24]
push eax
push 0x230
lea ecx, [esp + 0x54c]
push ecx
push 0x3f
mov byte [esp + 0x57c], dl
mov edx, ecx
push edx
push 0x4d008
push esi
mov byte [esp + 0x586], 0xec
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40e0cf
push 0x3ff
lea eax, [esp + 0x875]
push ebx
push eax
mov byte [esp + 0x87c], bl
call fcn.0044fe60
push 0x3ff
lea ecx, [esp + 0xc81]
push ebx
push ecx
mov byte [esp + 0xc88], bl
call fcn.0044fe60
push 0x3ff
lea edx, [esp + 0x108d]
push ebx
push edx
mov byte [esp + 0x1094], bl
call fcn.0044fe60
add esp, 0x24
cmp byte [esp + 0x5a2], bl
je 0x40e0cf
push 0x3fc
lea eax, [esp + 0x34]
push ebx
push eax
mov dword [esp + 0x38], ebx
call fcn.0044fe60
add esp, 0xc
xor eax, eax
lea esp, [esp]
movzx ecx, word [esp + eax*2 + 0x56c]
mov dword [esp + eax*4 + 0x2c], ecx
inc eax
cmp eax, 0x100
jl 0x40df60
xor eax, eax
mov ecx, 0xa
jmp 0x40df80
mov edx, dword [esp + ecx*4 + 0x2c]
shr edx, 8
mov byte [esp + eax + 0x870], dl
mov dl, byte [esp + ecx*4 + 0x2c]
inc eax
mov byte [esp + eax + 0x870], dl
inc ecx
inc eax
cmp ecx, 0x13
jle 0x40df80
mov byte [esp + eax + 0x870], bl
dec eax
push eax
lea eax, [esp + 0x874]
push eax
mov ecx, ebp
call fcn.0040cfb0
xor eax, eax
mov ecx, 0x1b
mov edx, dword [esp + ecx*4 + 0x2c]
shr edx, 8
mov byte [esp + eax + 0xc70], dl
mov dl, byte [esp + ecx*4 + 0x2c]
inc eax
mov byte [esp + eax + 0xc70], dl
inc ecx
inc eax
cmp ecx, 0x2e
jle 0x40dfc0
mov byte [esp + eax + 0xc70], bl
dec eax
push eax
lea eax, [esp + 0xc74]
push eax
mov ecx, ebp
call fcn.0040cfb0
xor eax, eax
mov ecx, 0x17
mov edx, dword [esp + ecx*4 + 0x2c]
shr edx, 8
mov byte [esp + eax + 0x1070], dl
mov dl, byte [esp + ecx*4 + 0x2c]
inc eax
mov byte [esp + eax + 0x1070], dl
inc ecx
inc eax
cmp ecx, 0x1a
jle 0x40e000
mov byte [esp + eax + 0x1070], bl
dec eax
push eax
lea eax, [esp + 0x1074]
push eax
mov ecx, ebp
call fcn.0040cfb0
lea ecx, [esp + 0x870]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esp + 0x870]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40e051
sub eax, edx
je 0x40e0cf
lea eax, [esp + 0xc70]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40e070
sub eax, edx
push eax
lea edx, [esp + 0xc74]
push edx
mov ecx, edi
call fcn.00403100
lea eax, [esp + 0x1070]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40e093
sub eax, edx
push eax
lea eax, [esp + 0x1074]
push eax
mov ecx, edi
call fcn.00403100
lea eax, [esp + 0x870]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40e0b6
sub eax, edx
push eax
lea ecx, [esp + 0x874]
push ecx
mov ecx, edi
call fcn.00403100
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 2
mov dword [esp + 0x18], eax
jl 0x40de50
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 0x14], ebx
jne 0x40e0ff
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 0x10
mov dword [esp + 0x14], eax
jl 0x40ddef
mov eax, edi
mov ecx, dword [esp + 0x1474]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x145c]
xor ecx, esp
call fcn.0044ffb3
add esp, 0x146c
ret 4