Function at 0x451b20
Capabilities:
Get disk information

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d0ee3
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x128
mov eax, dword [0x4f7040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
mov dword [ebp - 4], 0
mov ecx, eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0x70], 0
push 0
movups xmmword [eax], xmm0
push 0x4e72be
mov dword [ebp - 0x8c], eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
call fcn.00429d30
mov dword [ebp - 4], 0
mov eax, 1
mov dword [ebp - 0x7c], eax
xorps xmm0, xmm0
mov dword [ebp - 0x70], eax
xor edi, edi
lea eax, [ebp - 0x30]
movq qword [ebp - 0x20], xmm0
push eax
push 0x1a
movups xmmword [ebp - 0x30], xmm0
mov word [ebp - 0x18], di
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov ecx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor esi, esi
mov dword [ebp - 0x78], ecx
nop dword [eax + eax]
lea eax, [ebp - 0x30]
add eax, esi
push eax
call ecx
cmp eax, 3
lea ecx, [edi + 1]
cmovne ecx, edi
add esi, 4
mov edi, ecx
mov ecx, dword [ebp - 0x78]
cmp esi, 0x1a
jb 0x451be0
lea eax, [edi + edi*4]
lea eax, [eax*8 + 0x48c0]
push eax
call fcn.004b32d9
mov ecx, eax
add esp, 4
mov dword [ebp - 0xb8], ecx
xor eax, eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x74], eax
lea edi, [ecx + 0x48c0]
mov ecx, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xa8], ecx
mov ecx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 0xac], ecx
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x84], ecx
mov ecx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x80], edi
mov dword [ebp - 0xb4], ecx
nop dword [eax]
lea esi, [ebp - 0x30]
add esi, eax
push esi
call dword [ebp - 0x78]
cmp eax, 3
jne 0x4520a2
movsx eax, byte [esi]
push eax
lea eax, [ebp - 0x68]
push str.._c:
push eax
call fcn.00452190
add esp, 0xc
lea eax, [ebp - 0x68]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [ebp - 0xa8]
mov dword [ebp - 0xb0], eax
cmp eax, 0xffffffff
je 0x45208a
push 0
lea ecx, [ebp - 0x6c]
push ecx
push 0x28
push edi
push 0
push 0
push 0x700a0
push eax
call dword [ebp - 0xac]
test eax, eax
je 0x452064
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
test eax, eax
jg 0x451cf8
jl 0x451cdd
test ecx, ecx
jae 0x451cf8
neg ecx
adc eax, 0
neg eax
push eax
push ecx
lea ecx, [ebp - 0x33]
call fcn.004521b0
add esp, 8
mov byte [eax - 1], 0x2d
dec eax
jmp 0x451d05
push eax
push ecx
lea ecx, [ebp - 0x33]
call fcn.004521b0
add esp, 8
push ecx
lea ecx, [ebp - 0x33]
push ecx
push eax
lea ecx, [ebp - 0x134]
call fcn.00443110
mov edi, dword [ebp - 0x7c]
or edi, 6
mov dword [ebp - 0x70], edi
mov edx, dword [ebp - 0x74]
lea ecx, [ebp - 0xec]
mov dword [ebp - 4], 1
call fcn.00436260
push eax
mov edx, str.drive
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xd4]
call fcn.0043de20
add esp, 4
mov ecx, eax
mov byte [ebp - 4], 3
mov esi, dword [ecx + 0x14]
mov eax, esi
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, 2
jb 0x451d80
lea eax, [edx + 2]
mov dword [ecx + 0x10], eax
mov eax, ecx
cmp esi, 0xf
jbe 0x451d70
mov eax, dword [ecx]
mov esi, 0x2820
mov word [eax + edx], si
mov byte [eax + edx + 2], 0
jmp 0x451d93
push 2
push 0x4eddf8
push dword [ebp - 0x6c]
push 2
call fcn.00429e20
mov ecx, eax
movups xmm0, xmmword [ecx]
or edi, 8
movups xmmword [ebp - 0x11c], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [ebp - 0x10c], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov dword [ebp - 0x70], edi
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x11c]
push eax
push dword [ebp - 0x6c]
lea ecx, [ebp - 0xa4]
call fcn.0043fb40
or edi, 0x10
mov dword [ebp - 0x70], edi
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x90]
mov eax, edx
mov ecx, dword [ebp - 0x94]
sub eax, ecx
cmp eax, 1
jb 0x451e27
lea eax, [ecx + 1]
cmp edx, 0xf
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0xa4]
cmova eax, dword [ebp - 0xa4]
mov word [eax + ecx], 0x29
lea eax, [ebp - 0xa4]
jmp 0x451e3e
push 1
push 0x4eddf4
push dword [ebp - 0x6c]
lea ecx, [ebp - 0xa4]
push 1
call fcn.00429e20
movups xmm0, xmmword [eax]
or edi, 0x20
movups xmmword [ebp - 0x104], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xf4], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x70], edi
lea eax, [ebp - 0x104]
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x8c]
push eax
call fcn.004296f0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0xf0]
cmp ecx, 0xf
jbe 0x451ec3
mov edx, dword [ebp - 0x104]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x451eb9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4520ee
push ecx
push edx
call fcn.004a3a80
add esp, 8
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x90]
cmp ecx, 0xf
jbe 0x451f01
mov edx, dword [ebp - 0xa4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x451ef7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4520ee
push ecx
push edx
call fcn.004a3a80
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x108]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0xf
mov byte [ebp - 0xa4], 0
cmp ecx, 0xf
jbe 0x451f5a
mov edx, dword [ebp - 0x11c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x451f50
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4520ee
push ecx
push edx
call fcn.004a3a80
add esp, 8
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0xc0]
cmp ecx, 0xf
jbe 0x451f98
mov edx, dword [ebp - 0xd4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x451f8e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4520ee
push ecx
push edx
call fcn.004a3a80
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0xd8]
mov dword [ebp - 0xc4], 0
mov dword [ebp - 0xc0], 0xf
mov byte [ebp - 0xd4], 0
cmp ecx, 0xf
jbe 0x451ff1
mov edx, dword [ebp - 0xec]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x451fe7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4520ee
push ecx
push edx
call fcn.004a3a80
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0xf
mov byte [ebp - 0xec], 0
cmp ecx, 0xf
jbe 0x45204a
mov edx, dword [ebp - 0x134]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x452040
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4520ee
push ecx
push edx
call fcn.004a3a80
add esp, 8
mov edi, dword [ebp - 0x80]
push dword [ebp - 0xb0]
inc dword [ebp - 0x74]
add edi, 0x28
mov dword [ebp - 0x80], edi
call dword [ebp - 0xb4]
jmp 0x4520a2
call dword [ebp - 0x84]
push eax
lea eax, [ebp - 0x68]
push eax
push str.Error_retrieving_drive_geometry_for_drive__s__error_code__d__n
call fcn.00401330
add esp, 0xc
push dword [ebp - 0xb0]
call dword [ebp - 0xb4]
jmp 0x4520a2
call dword [ebp - 0x84]
push eax
lea eax, [ebp - 0x68]
push eax
push str.Error_opening_handle_to_physical_drive__s__error_code__d__n
call fcn.00401330
add esp, 0xc
mov eax, dword [ebp - 0x88]
add eax, 4
mov dword [ebp - 0x88], eax
cmp eax, 0x1a
jb 0x451c60
push dword [ebp - 0xb8]
call fcn.004ae469
mov eax, dword [ebp - 0x8c]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a3760
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.004b359d
int3