Function at 0x4080f2
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x250
lea ebp, [esp - 4]
mov eax, dword [0x44b074]
xor eax, ebp
mov dword [ebp + 0x250], eax
push 0x60
mov eax, 0x43ce48
call fcn.0043997f
mov eax, dword [ebp + 0x25c]
push 5
pop ecx
mov esi, str..ScsiN:
lea edi, [ebp + 0x230]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x260]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x264]
xor ebx, ebx
mov dword [ebp - 0x30], eax
mov byte [ebp - 0xd], bl
mov word [ebp + 0x248], 0x20
mov word [ebp + 0x24a], 0x3a
mov word [ebp + 0x24c], 0x5c
mov word [ebp + 0x24e], bx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], ebx
or esi, 0xffffffff
cmp byte [ebp - 0xd], bl
jne 0x408325
mov edx, dword [ebp - 0x28]
xor edi, edi
inc edi
mov eax, edi
shl eax, cl
test edx, eax
je 0x408315
lea eax, [ebp + 0x248]
add ecx, 0x41
push eax
mov word [ebp + 0x248], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
je 0x4081be
cmp eax, 6
jne 0x408315
mov eax, dword [ebp - 0x18]
push ebx
push ebx
push 3
push ebx
add eax, 0x30
inc dword [ebp - 0x18]
push 3
mov word [ebp + 0x240], ax
push 0xc0000000
lea eax, [ebp + 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, esi
mov dword [ebp - 0x1c], eax
je 0x408315
mov dword [ebp - 0x14], ebx
push 0x22d
lea eax, [ebp]
push ebx
push eax
call fcn.0041e7c0
push 8
lea eax, [ebp + 4]
push 0x4428d0
push eax
mov dword [ebp], 0x1c
mov dword [ebp + 0xc], 0x2710
mov dword [ebp + 0x18], 0x211
mov dword [ebp + 0x10], 0x1b0501
call fcn.0041ee70
mov al, byte [ebp - 0x14]
add esp, 0x18
push ebx
mov byte [ebp + 0x28], al
lea eax, [ebp - 0x34]
push eax
push 0x22d
lea eax, [ebp]
push eax
push 0x3c
push eax
push 0x4d008
push dword [ebp - 0x1c]
mov byte [ebp + 0x26], 0xec
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4082ff
cmp byte [ebp + 0x62], bl
je 0x4082ff
push 0x13
lea eax, [ebp + 0x2c]
push eax
push 0xa
pop ecx
lea edx, [ebp - 0x50]
call fcn.00407787
pop ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
push esi
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00404ba7
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], esi
call fcn.00404ce5
push 0x2e
lea eax, [ebp + 0x2c]
push eax
push 0x1b
pop ecx
lea edx, [ebp - 0x50]
call fcn.00407787
pop ecx
pop ecx
mov ecx, dword [ebp - 0x24]
push esi
push ebx
push eax
mov dword [ebp - 4], edi
call fcn.00404ba7
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], esi
call fcn.00404ce5
push 0x1a
lea eax, [ebp + 0x2c]
push eax
push 0x17
pop ecx
lea edx, [ebp - 0x6c]
call fcn.00407787
pop ecx
pop ecx
mov ecx, dword [ebp - 0x30]
push esi
push ebx
push eax
mov dword [ebp - 4], 2
call fcn.00404ba7
push ebx
push edi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], esi
call fcn.00404ce5
mov byte [ebp - 0xd], 1
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jl 0x4081f5
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x20]
inc ecx
cmp ecx, 0x20
mov dword [ebp - 0x20], ecx
jl 0x40817e
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x250]
xor ecx, ebp
call fcn.0041e8c8
add ebp, 0x254
leave
ret