Function at 0x43afe9
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x24c
push ebx
push esi
push edi
push 0x4975e4
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.0042c6b0
push 0x800
lea ecx, [ebp + 0x54]
call fcn.0042c827
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 0x43b080
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 0x43b0b5
cmp dword [ebp + 0x7c], ebx
jl 0x43b0b5
push 0x13
push dword [ebp + 0x44]
lea eax, [ebp - 0x1dc]
push eax
call fcn.004301b3
add esp, 0xc
cmp edi, ebx
mov dword [ebp + 0x6c], ebx
je 0x43b0c8
cmp dword [ebp + 0x7c], ebx
mov dword [ebp + 0x50], 1
jge 0x43b0cb
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.00403ce4
cmp dword [ebp + 0x50], ebx
je 0x43b100
push dword [ebp + 0x58]
push dword [ebp + 0x68]
push dword [ebp + 0x6c]
call fcn.00429dd5
add esp, 0xc
cmp dword [ebp + 0x7c], ebx
jge 0x43b163
cmp dword [ebp + 0x6c], ebx
je 0x43b139
push dword [ebp + 0x68]
lea eax, [ebp - 0x1dc]
push 0x482e7c
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.0042c877
inc dword [ebp + 0x64]
jmp 0x43b146
inc dword [ebp + 0x60]
cmp dword [ebp + 0x60], 0x20
jge 0x43b2f0
lea ecx, [ebp + 0x6c]
call fcn.00402a26
inc dword [ebp + 0x68]
cmp dword [ebp + 0x68], 0x3e80
jl 0x43b076
jmp 0x43b2f8
cmp dword [ebp + 0x6c], ebx
je 0x43b2f0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 0x5c]
push 0xc0
push ebx
push esi
call fcn.0046c9b0
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], 0x486bb4
jne 0x43b1b4
mov dword [ebp + 0x64], 0x486bac
cmp edx, 1
jne 0x43b1c0
mov dword [ebp + 0x64], 0x486ba4
mov esi, 0x486b9c
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 0x43b1fe
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 0x43b218
cmp edx, 1
jne 0x43b218
mov eax, dword [ebp + 0x5c]
add eax, 8
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00429cb4
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.00429c34
push dword [ebp + 0x6c]
mov edi, eax
push ebx
mov dword [ebp + 0x44], edx
call fcn.0042e0d5
mov esi, dword [ebp + 0x78]
add esp, 0xc
push 0xc8
mov ecx, esi
mov dword [ebp + 0x58], eax
call fcn.0042c850
push 1
push ebx
push dword [ebp + 0x6c]
call fcn.00430964
add esp, 0xc
cmp eax, 0xc
mov byte [ebp + 0x7f], 0x3f
jne 0x43b270
mov byte [ebp + 0x7f], 0x46
jmp 0x43b279
cmp eax, 0xb
jne 0x43b279
mov byte [ebp + 0x7f], 0x52
push dword [ebp + 0x44]
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.00436260
push dword [ebp + 0x14]
lea eax, [ebp - 0x70]
push dword [ebp + 0x10]
push eax
call fcn.00436260
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 0x43b2e1
push dword [ebp + 0x54]
mov ecx, esi
call fcn.0042c877
cmp dword [ebp + 0x4c], ebx
je 0x43b2f0
push dword [ebp + 0x38]
mov ecx, esi
call fcn.0042c877
lea ecx, [ebp + 0x6c]
call fcn.00402a26
mov eax, dword [ebp + 0x78]
push dword [eax]
call fcn.0040b35a
pop ecx
lea ecx, [ebp + 0x54]
call fcn.00427365
lea ecx, [ebp + 0x5c]
call fcn.00427365
push 0x4975e4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x64]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret