Function at 0x442479
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x2cc
push ebx
push esi
push edi
mov eax, 0x4a6658
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x7c]
and eax, 0x10000
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x7c]
and eax, 0x20000
mov dword [ebp + 0x4c], eax
mov eax, dword [ebp + 0x7c]
and word [ebp + 0x7e], 0xc000
and eax, 0x200000
mov dword [ebp + 0x38], eax
mov eax, dword [ebp + 0x78]
mov eax, dword [eax]
xor ebx, ebx
mov word [eax], bx
push 0x100000
lea ecx, [ebp + 0x58]
mov dword [ebp + 0x68], ebx
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x60], ebx
call fcn.00432b5e
push 0x800
lea ecx, [ebp + 0x54]
call fcn.00432cd5
mov edi, dword [ebp + 0x54]
mov eax, dword [ebp + 0x7c]
cmp eax, ebx
lea esi, [edi + 0x800]
mov word [edi], 0x20
mov word [edi + 2], bx
mov dword [ebp + 0x44], esi
mov word [esi], 0x20
mov word [esi + 2], bx
jl 0x442511
mov dword [ebp + 0x64], eax
jmp 0x442521
mov dword [ebp + 0x64], ebx
cmp dword [ebp + 0x64], 0x3e80
jge 0x4427d4
push dword [ebp + 0x64]
lea eax, [ebp - 0x1dc]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp dword [ebp + 0x50], ebx
je 0x44255d
cmp dword [ebp + 0x7c], ebx
jl 0x44255d
push 0x48f718
push 0x13
lea eax, [edi + 2]
push eax
lea eax, [ebp - 0x1dc]
push eax
call fcn.00436d81
add esp, 0x10
cmp dword [ebp + 0x4c], ebx
mov dword [ebp + 0x6c], ebx
je 0x442571
cmp dword [ebp + 0x7c], ebx
mov dword [ebp + 0x5c], 1
jge 0x442574
mov dword [ebp + 0x5c], 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.004041da
cmp dword [ebp + 0x5c], ebx
je 0x4425aa
lea eax, [esi + 2]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x6c]
call fcn.00430d4c
add esp, 0xc
cmp dword [ebp + 0x7c], ebx
jge 0x442600
cmp dword [ebp + 0x6c], ebx
je 0x4425e3
push dword [ebp + 0x64]
lea eax, [ebp - 0x1dc]
push 0x490b14
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.00432d25
inc dword [ebp + 0x68]
jmp 0x4425f0
inc dword [ebp + 0x60]
cmp dword [ebp + 0x60], 0x20
jge 0x4427cc
lea ecx, [ebp + 0x6c]
call fcn.00402ad9
inc dword [ebp + 0x64]
jmp 0x442514
cmp dword [ebp + 0x6c], ebx
je 0x4427cc
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 0x58]
push 0xc0
push ebx
push esi
call fcn.00479cf0
add esp, 0xc
push ebx
lea eax, [ebp + 0x48]
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 + 0x68], 0x49547c
jne 0x442651
mov dword [ebp + 0x68], 0x495474
cmp edx, 1
jne 0x44265d
mov dword [ebp + 0x68], 0x49546c
mov esi, 0x495464
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 0x44269b
mov eax, dword [ebp + 0x58]
push dword [eax + 8]
lea eax, [ebp - 0x114]
push str._08lX
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x4426b5
cmp edx, 1
jne 0x4426b5
mov eax, dword [ebp + 0x58]
add eax, 8
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00430c2b
pop ecx
pop ecx
push 9
pop ecx
xor eax, eax
mov dword [ebp + 0x10], ebx
lea edi, [ebp + 0x14]
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0x6c]
push edi
lea esi, [ebp + 0x10]
call fcn.00430bab
push edi
push ebx
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x40], edx
call fcn.004347a9
mov esi, dword [ebp + 0x78]
add esp, 0xc
push 0xc8
mov ecx, esi
mov dword [ebp + 0x60], eax
call fcn.00432cfe
push 0x800
push 1
push ebx
push edi
call fcn.00437400
add esp, 0x10
cmp eax, 0xc
mov byte [ebp + 0x7f], 0x3f
jne 0x442710
mov byte [ebp + 0x7f], 0x46
jmp 0x442719
cmp eax, 0xb
jne 0x442719
mov byte [ebp + 0x7f], 0x52
cmp dword [ebp + 0x38], ebx
mov word [ebp - 0x25c], bx
je 0x44274c
lea eax, [ebp + 0x5c]
push eax
push edi
mov dword [ebp + 0x5c], ebx
call fcn.00437977
push dword [ebp + 0x5c]
push edx
push eax
lea eax, [ebp - 0x25c]
push str.__I64d__u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
push dword [ebp + 0x40]
lea eax, [ebp - 0x70]
push dword [ebp + 0x3c]
push eax
call fcn.0046f8a5
push dword [ebp + 0x14]
lea eax, [ebp - 0x30]
push dword [ebp + 0x10]
push eax
call fcn.0046f8a5
lea ecx, [ebp - 0x25c]
push ecx
movsx ecx, byte [ebp + 0x7f]
push ecx
push dword [ebp + 0x68]
mov eax, dword [esi]
push dword [ebp + 0x60]
lea ecx, [ebp - 0x114]
push ecx
push dword [ebp + 0x18]
lea ecx, [ebp - 0x30]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push dword [ebp + 0x64]
push str._2d__14s__14s__6lu__4lu__4lu__4lu__s__2d__s__c_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x50
cmp dword [ebp + 0x50], ebx
mov dword [ebp + 0x68], eax
je 0x4427bd
push dword [ebp + 0x54]
mov ecx, esi
call fcn.00432d25
cmp dword [ebp + 0x4c], ebx
je 0x4427cc
push dword [ebp + 0x44]
mov ecx, esi
call fcn.00432d25
lea ecx, [ebp + 0x6c]
call fcn.00402ad9
mov eax, dword [ebp + 0x78]
push dword [eax]
call fcn.0040c79a
pop ecx
lea ecx, [ebp + 0x54]
call fcn.0042dd2d
lea ecx, [ebp + 0x58]
call fcn.0042dd2d
mov eax, 0x4a6658
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x68]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret