Function at 0x45ad90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5296ea
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x581980]
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 eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0x100], esi
mov dword [ebp - 0x104], ebx
mov dword [ebp - 4], 1
mov edi, 7
xor ecx, ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push ebx
mov eax, 0x5641f8
mov word [esi], cx
call fcn.00403af0
xor edx, edx
push ebx
mov eax, 0x5641f8
lea esi, [ebp - 0x9c]
mov dword [ebp - 0x104], 1
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], dx
call fcn.00403af0
mov ecx, dword [ebp - 0xf8]
mov byte [ebp - 4], 2
call fcn.0045a1e0
test eax, eax
je 0x45b1e2
xor eax, eax
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xe0], ebx
mov word [ebp - 0xf0], ax
xor ecx, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
xor edx, edx
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xc4], ebx
mov word [ebp - 0xd4], dx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], cx
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
mov byte [ebp - 4], 8
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
cmp eax, ebx
je 0x45aeb4
jmp 0x45aeb0
shr eax, 1
jne 0x45aeb0
sub esp, 0x1c
mov esi, esp
xor eax, eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov dword [ebp - 0xf4], esp
mov word [esi], ax
push 0xc
mov eax, str.SerialNumber
call fcn.00403af0
sub esp, 0x1c
mov byte [ebp - 4], 9
mov esi, esp
mov dword [ebp - 0xfc], esp
xor ecx, ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push 0xa
mov eax, str.Win32_BIOS
mov word [esi], cx
call fcn.00403af0
mov edx, dword [ebp - 0xf8]
push edx
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 8
call fcn.0045a9c0
sub esp, 0x1c
mov esi, esp
xor eax, eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov dword [ebp - 0xfc], esp
mov word [esi], ax
push 0xc
mov eax, str.SerialNumber
call fcn.00403af0
sub esp, 0x1c
mov byte [ebp - 4], 0xa
mov esi, esp
mov dword [ebp - 0xf4], esp
xor ecx, ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push 0xf
mov eax, str.Win32_DiskDrive
mov word [esi], cx
call fcn.00403af0
mov edx, dword [ebp - 0xf8]
push edx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.0045a9c0
sub esp, 0x1c
mov esi, esp
xor eax, eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov dword [ebp - 0xfc], esp
mov word [esi], ax
push 0xc
mov eax, str.SerialNumber
call fcn.00403af0
sub esp, 0x1c
mov byte [ebp - 4], 0xb
mov esi, esp
mov dword [ebp - 0xf4], esp
xor ecx, ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
push 0xf
mov eax, str.Win32_BaseBoard
mov word [esi], cx
call fcn.00403af0
mov edx, dword [ebp - 0xf8]
push edx
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 8
call fcn.0045a9c0
call fcn.00457ef0
push ebx
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.00402710
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xfc], esp
xor eax, eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push ebx
lea edx, [ebp - 0x64]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.00402710
lea eax, [ebp - 0x48]
push eax
call fcn.004575a0
add esp, 0x20
mov edi, eax
lea esi, [ebp - 0x64]
mov byte [ebp - 4], 0xc
call fcn.00402120
mov byte [ebp - 4], 8
cmp dword [ebp - 0x34], 8
jb 0x45b030
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004f287e
add esp, 4
lea ecx, [ebp - 0x48]
call fcn.00459a60
mov edi, eax
lea esi, [ebp - 0xb8]
mov byte [ebp - 4], 0xd
call fcn.00402120
mov byte [ebp - 4], 8
cmp dword [ebp - 0x34], 8
jb 0x45b05f
mov edx, dword [ebp - 0x48]
push edx
call fcn.004f287e
add esp, 4
lea ecx, [ebp - 0x48]
call fcn.00459ce0
mov edi, eax
lea esi, [ebp - 0x80]
mov byte [ebp - 4], 0xe
call fcn.00402120
mov esi, 8
mov byte [ebp - 4], 8
cmp dword [ebp - 0x34], esi
jb 0x45b08f
mov eax, dword [ebp - 0x48]
push eax
call fcn.004f287e
add esp, 4
cmp dword [ebp - 0x6c], esi
jb 0x45b09f
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0xf4], ecx
jmp 0x45b0a8
lea edx, [ebp - 0x80]
mov dword [ebp - 0xf4], edx
mov edi, dword [ebp - 0x64]
cmp dword [ebp - 0x50], esi
jae 0x45b0b3
lea edi, [ebp - 0x64]
cmp dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x2c]
jae 0x45b0be
lea esi, [ebp - 0x2c]
call fcn.004599b0
neg eax
sbb eax, eax
neg eax
push eax
mov eax, dword [ebp - 0xf4]
push eax
push edi
push esi
push str._s_s_s_d
lea eax, [ebp - 0x48]
call fcn.004578e0
add esp, 0x14
mov edi, eax
lea esi, [ebp - 0x9c]
mov byte [ebp - 4], 0xf
call fcn.00402120
mov edi, 8
cmp dword [ebp - 0x34], edi
jb 0x45b10a
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004f287e
add esp, 4
cmp dword [ebp - 0x6c], edi
jb 0x45b11b
mov edx, dword [ebp - 0x80]
push edx
call fcn.004f287e
add esp, 4
xor eax, eax
mov esi, 7
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], ax
cmp dword [ebp - 0xa4], edi
jb 0x45b143
mov ecx, dword [ebp - 0xb8]
push ecx
call fcn.004f287e
add esp, 4
xor edx, edx
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], dx
cmp dword [ebp - 0x50], edi
jb 0x45b169
mov eax, dword [ebp - 0x64]
push eax
call fcn.004f287e
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
cmp dword [ebp - 0xc0], edi
jb 0x45b18c
mov edx, dword [ebp - 0xd4]
push edx
call fcn.004f287e
add esp, 4
xor eax, eax
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0xc4], ebx
mov word [ebp - 0xd4], ax
cmp dword [ebp - 0x18], edi
jb 0x45b1b2
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004f287e
add esp, 4
xor edx, edx
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0xdc], edi
jb 0x45b2c4
mov eax, dword [ebp - 0xf0]
push eax
call fcn.004f287e
add esp, 4
jmp 0x45b2c4
call fcn.00457ef0
xor ecx, ecx
push ebx
mov word [ebp - 0x2c], cx
push eax
or eax, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
call fcn.00402710
sub esp, 0x1c
mov byte [ebp - 4], 0x10
mov ecx, esp
mov dword [ebp - 0xfc], esp
push ebx
lea eax, [ebp - 0x2c]
xor edx, edx
push eax
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00402710
lea ecx, [ebp - 0x48]
push ecx
call fcn.004575a0
add esp, 0x20
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0x11
call fcn.00402120
mov esi, 8
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x34], esi
jb 0x45b25b
mov edx, dword [ebp - 0x48]
push edx
call fcn.004f287e
add esp, 4
cmp dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x2c]
jae 0x45b266
lea esi, [ebp - 0x2c]
call fcn.004599b0
neg eax
sbb eax, eax
neg eax
push eax
push esi
push str._s_d
lea eax, [ebp - 0x48]
call fcn.004578e0
add esp, 0xc
mov edi, eax
lea esi, [ebp - 0x9c]
mov byte [ebp - 4], 0x12
call fcn.00402120
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x45b2aa
mov eax, dword [ebp - 0x48]
push eax
call fcn.004f287e
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], esi
jb 0x45b2bf
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004f287e
add esp, 4
mov esi, 7
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xfc], esp
push ebx
lea eax, [ebp + 0xc]
xor edx, edx
push eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00402710
sub esp, 0x1c
mov byte [ebp - 4], 0x13
mov ecx, esp
mov dword [ebp - 0xf4], esp
push ebx
lea eax, [ebp - 0x9c]
xor edx, edx
push eax
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00402710
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0xf8]
mov byte [ebp - 4], 2
call fcn.0045a5c0
mov byte [ebp - 4], 0x14
mov esi, dword [ebp - 0x100]
mov edi, eax
call fcn.00402120
mov edi, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], edi
jb 0x45b34f
mov edx, dword [ebp - 0x48]
push edx
call fcn.004f287e
add esp, 4
mov esi, dword [ebp - 0xf8]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x45b364
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esi]
cmp eax, ebx
je 0x45b372
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebp - 0x88], edi
jb 0x45b38f
mov eax, dword [ebp - 0x9c]
push eax
call fcn.004f287e
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], cx
cmp dword [ebp + 0x20], edi
jb 0x45b3b9
mov edx, dword [ebp + 0xc]
push edx
call fcn.004f287e
add esp, 4
mov eax, dword [ebp - 0x100]
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.004f2889
mov esp, ebp
pop ebp
ret 0x20