Function at 0x417d40
Capabilities:
Get disk information
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x465471
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x485300]
xor eax, esp
mov dword [esp + 0x2a8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x485300]
xor eax, esp
push eax
lea eax, [esp + 0x2c0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2d0]
mov dword [esp + 0x28], eax
mov eax, dword [str..ScsiN:]
mov dword [esp + 0x20], ecx
mov ecx, dword [0x473904]
mov dword [esp + 0x24], edx
mov edx, dword [0x473908]
mov dword [esp + 0x74], eax
mov eax, dword [0x47390c]
mov dword [esp + 0x78], ecx
mov ecx, dword [0x473910]
mov dword [esp + 0x7c], edx
mov dx, word [0x473914]
xor ebp, ebp
mov byte [esp + 0x17], 0
mov word [esp + 0x6c], 0x20
mov word [esp + 0x6e], 0x3a
mov word [esp + 0x70], 0x5c
mov word [esp + 0x72], bp
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov word [esp + 0x88], dx
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
xor esi, esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], esi
xor ebx, ebx
mov al, byte [esp + 0x17]
test al, al
jne 0x418051
mov ecx, esi
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x2c]
test ecx, eax
je 0x41803d
lea eax, [esp + 0x6c]
lea edx, [esi + 0x41]
push eax
mov word [esp + 0x70], dx
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 3
je 0x417e48
cmp eax, 6
jne 0x41803d
push ebp
push ebp
push 3
push ebp
push 3
lea ecx, [ebx + 0x30]
push 0xc0000000
lea edx, [esp + 0x8c]
add ebx, 1
push edx
mov word [esp + 0xa0], cx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41803d
xor ebx, ebx
push 0x22d
lea eax, [esp + 0x90]
push ebp
push eax
call fcn.00447890
mov ecx, dword [str.SCSIDISK]
mov edx, dword [0x47391c]
add esp, 0xc
push ebp
lea eax, [esp + 0x34]
push eax
push 0x22d
mov dword [esp + 0x9c], ecx
lea ecx, [esp + 0x98]
push ecx
push 0x3c
mov dword [esp + 0xa8], edx
mov edx, ecx
push edx
push 0x4d008
push edi
mov dword [esp + 0xac], 0x1c
mov dword [esp + 0xb8], 0x2710
mov dword [esp + 0xc4], 0x211
mov dword [esp + 0xbc], 0x1b0501
mov byte [esp + 0xd2], 0xec
mov byte [esp + 0xd4], bl
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x418026
cmp byte [esp + 0xee], 0
je 0x418026
push 0x13
push 0xa
lea ecx, [esp + 0xc0]
lea esi, [esp + 0x58]
call fcn.004170b0
add esp, 8
mov ecx, dword [esp + 0x28]
push 0xffffffffffffffff
push ebp
push eax
mov dword [esp + 0x2d4], ebp
call fcn.00403700
mov dword [esp + 0x2c8], 0xffffffff
cmp dword [esp + 0x68], 0x10
jb 0x417f70
mov eax, dword [esp + 0x54]
push eax
call fcn.00442665
add esp, 4
push 0x2e
push 0x1b
lea ecx, [esp + 0xc0]
lea esi, [esp + 0x58]
call fcn.004170b0
add esp, 8
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
push ebp
push eax
mov dword [esp + 0x2d4], 1
call fcn.00403700
mov dword [esp + 0x2c8], 0xffffffff
cmp dword [esp + 0x68], 0x10
jb 0x417fbe
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00442665
add esp, 4
push 0x1a
push 0x17
lea ecx, [esp + 0xc0]
lea esi, [esp + 0x3c]
call fcn.004170b0
add esp, 8
mov ecx, dword [esp + 0x24]
push 0xffffffffffffffff
push ebp
push eax
mov dword [esp + 0x2d4], 2
call fcn.00403700
mov dword [esp + 0x2c8], 0xffffffff
cmp dword [esp + 0x4c], 0x10
jb 0x41800c
mov edx, dword [esp + 0x38]
push edx
call fcn.00442665
add esp, 4
mov esi, dword [esp + 0x18]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebp
mov byte [esp + 0x38], 0
mov byte [esp + 0x17], 1
add ebx, 1
cmp ebx, 2
jl 0x417e81
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebx, dword [esp + 0x1c]
add esi, 1
cmp esi, 0x20
mov dword [esp + 0x18], esi
jl 0x417e06
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x2c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.0044266a
add esp, 0x2b8
ret