Function at 0x432515
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x24c
push ebx
push esi
push edi
push 0x49b604
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [ebp + 0x7c]
mov edi, dword [ebp + 0x7c]
mov eax, dword [ebp + 0x78]
mov eax, dword [eax]
and byte [ebp + 0x7e], 0xfc
xor ebx, ebx
and esi, 0x10000
and edi, 0x20000
mov word [eax], bx
push 0x100000
lea ecx, [ebp + 0x5c]
mov dword [ebp + 0x48], esi
mov dword [ebp + 0x4c], edi
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x3c], ebx
mov dword [ebp + 0x60], ebx
call fcn.0042e06b
push 0x800
lea ecx, [ebp + 0x54]
call fcn.0042e1e2
mov eax, dword [ebp + 0x54]
lea ecx, [eax + 0x800]
mov word [eax], 0x20
add eax, 2
mov word [eax], bx
mov dword [ebp + 0x38], ecx
mov word [ecx], 0x20
add ecx, 2
mov dword [ebp + 0x44], eax
mov dword [ebp + 0x58], ecx
mov word [ecx], bx
mov dword [ebp + 0x68], ebx
mov eax, dword [ebp + 0x7c]
cmp eax, ebx
jl 0x4325ac
mov dword [ebp + 0x68], eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x1dc]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp esi, ebx
je 0x4325e1
cmp dword [ebp + 0x7c], ebx
jl 0x4325e1
push 0x13
push dword [ebp + 0x44]
lea eax, [ebp - 0x1dc]
push eax
call fcn.00431ce7
add esp, 0xc
cmp edi, ebx
mov dword [ebp + 0x6c], ebx
je 0x4325f4
cmp dword [ebp + 0x7c], ebx
mov dword [ebp + 0x50], 1
jge 0x4325f7
mov dword [ebp + 0x50], ebx
push ebx
push 0x20000000
push 3
push ebx
push 3
push 0x80000000
lea eax, [ebp - 0x1dc]
push eax
lea ecx, [ebp + 0x6c]
call fcn.00404073
cmp dword [ebp + 0x50], ebx
je 0x43262c
push dword [ebp + 0x58]
push dword [ebp + 0x68]
push dword [ebp + 0x6c]
call fcn.0042b54d
add esp, 0xc
cmp dword [ebp + 0x7c], ebx
jge 0x43268f
cmp dword [ebp + 0x6c], ebx
je 0x432665
push dword [ebp + 0x68]
lea eax, [ebp - 0x1dc]
push 0x486f64
push eax
mov dword [ebp + 0x60], ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp + 0x78]
add esp, 0xc
lea eax, [ebp - 0x1dc]
push eax
call fcn.0042e232
inc dword [ebp + 0x64]
jmp 0x432672
inc dword [ebp + 0x60]
cmp dword [ebp + 0x60], 0x20
jge 0x43281c
lea ecx, [ebp + 0x6c]
call fcn.00402abc
inc dword [ebp + 0x68]
cmp dword [ebp + 0x68], 0x3e80
jl 0x4325a2
jmp 0x432824
cmp dword [ebp + 0x6c], ebx
je 0x43281c
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 0x5c]
push 0xc0
push ebx
push esi
call fcn.00470340
add esp, 0xc
push ebx
lea eax, [ebp + 0x3c]
push eax
push 0x100000
push esi
push ebx
push ebx
push 0x70050
push dword [ebp + 0x6c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov edx, dword [esi]
cmp edx, ebx
mov dword [ebp + 0x64], 0x48a5ac
jne 0x4326e0
mov dword [ebp + 0x64], 0x48a5a4
cmp edx, 1
jne 0x4326ec
mov dword [ebp + 0x64], 0x48a59c
mov esi, 0x48a594
lea edi, [ebp - 0x114]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x27
xor eax, eax
cmp edx, ebx
pop ecx
lea edi, [ebp - 0x10e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jne 0x43272a
mov eax, dword [ebp + 0x5c]
push dword [eax + 8]
lea eax, [ebp - 0x114]
push str._08lX
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x432744
cmp edx, 1
jne 0x432744
mov eax, dword [ebp + 0x5c]
add eax, 8
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0042b42c
pop ecx
pop ecx
push 9
pop ecx
push dword [ebp + 0x6c]
xor eax, eax
mov dword [ebp + 0x10], ebx
lea edi, [ebp + 0x14]
lea esi, [ebp + 0x10]
rep stosd dword es:[edi], eax
call fcn.0042b3ac
push dword [ebp + 0x6c]
mov edi, eax
push ebx
mov dword [ebp + 0x44], edx
call fcn.0042fa5a
mov esi, dword [ebp + 0x78]
add esp, 0xc
push 0xc8
mov ecx, esi
mov dword [ebp + 0x58], eax
call fcn.0042e20b
push 1
push ebx
push dword [ebp + 0x6c]
call fcn.00432498
add esp, 0xc
cmp eax, 0xc
mov byte [ebp + 0x7f], 0x3f
jne 0x43279c
mov byte [ebp + 0x7f], 0x46
jmp 0x4327a5
cmp eax, 0xb
jne 0x4327a5
mov byte [ebp + 0x7f], 0x52
push dword [ebp + 0x44]
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.0042dbdb
push dword [ebp + 0x14]
lea eax, [ebp - 0x70]
push dword [ebp + 0x10]
push eax
call fcn.0042dbdb
movsx ecx, byte [ebp + 0x7f]
push ecx
push dword [ebp + 0x64]
mov eax, dword [esi]
push dword [ebp + 0x58]
lea ecx, [ebp - 0x114]
push ecx
push dword [ebp + 0x18]
lea ecx, [ebp - 0x70]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push dword [ebp + 0x68]
push str._2d__14s__14s__6lu__4lu__4lu__4lu__s__2d__s__c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x4c
cmp dword [ebp + 0x48], ebx
mov dword [ebp + 0x64], eax
je 0x43280d
push dword [ebp + 0x54]
mov ecx, esi
call fcn.0042e232
cmp dword [ebp + 0x4c], ebx
je 0x43281c
push dword [ebp + 0x38]
mov ecx, esi
call fcn.0042e232
lea ecx, [ebp + 0x6c]
call fcn.00402abc
mov eax, dword [ebp + 0x78]
push dword [eax]
call fcn.0040bf57
pop ecx
lea ecx, [ebp + 0x54]
call fcn.00428a48
lea ecx, [ebp + 0x5c]
call fcn.00428a48
push 0x49b604
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x64]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret