Function at 0x4383ed
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x24c
push ebx
push esi
push edi
push 0x49062c
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.0042add7
push 0x800
lea ecx, [ebp + 0x54]
call fcn.0042aed6
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 0x438484
mov dword [ebp + 0x68], eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x1dc]
push 0x47ff90
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
cmp esi, ebx
je 0x4384b9
cmp dword [ebp + 0x7c], ebx
jl 0x4384b9
push 0x13
push dword [ebp + 0x44]
lea eax, [ebp - 0x1dc]
push eax
call fcn.0042eb07
add esp, 0xc
cmp edi, ebx
mov dword [ebp + 0x6c], ebx
je 0x4384cc
cmp dword [ebp + 0x7c], ebx
mov dword [ebp + 0x50], 1
jge 0x4384cf
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.00403b3c
cmp dword [ebp + 0x50], ebx
je 0x438504
push dword [ebp + 0x58]
push dword [ebp + 0x68]
push dword [ebp + 0x6c]
call fcn.00428a5a
add esp, 0xc
cmp dword [ebp + 0x7c], ebx
jge 0x438567
cmp dword [ebp + 0x6c], ebx
je 0x43853d
push dword [ebp + 0x68]
lea eax, [ebp - 0x1dc]
push 0x4806cc
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.0042af26
inc dword [ebp + 0x64]
jmp 0x43854a
inc dword [ebp + 0x60]
cmp dword [ebp + 0x60], 0x20
jge 0x4386f4
lea ecx, [ebp + 0x6c]
call fcn.004029f8
inc dword [ebp + 0x68]
cmp dword [ebp + 0x68], 0x3e80
jl 0x43847a
jmp 0x4386fc
cmp dword [ebp + 0x6c], ebx
je 0x4386f4
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, dword [ebp + 0x5c]
push 0xc0
push ebx
push esi
call fcn.00466780
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], 0x4806c4
jne 0x4385b8
mov dword [ebp + 0x64], 0x4806bc
cmp edx, 1
jne 0x4385c4
mov dword [ebp + 0x64], 0x4806b4
mov esi, 0x4806ac
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 0x438602
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 0x43861c
cmp edx, 1
jne 0x43861c
mov eax, dword [ebp + 0x5c]
add eax, 8
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00428939
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.004288b9
push dword [ebp + 0x6c]
mov edi, eax
push ebx
mov dword [ebp + 0x44], edx
call fcn.0042c3bd
mov esi, dword [ebp + 0x78]
add esp, 0xc
push 0xc8
mov ecx, esi
mov dword [ebp + 0x58], eax
call fcn.0042aeff
push 1
push ebx
push dword [ebp + 0x6c]
call fcn.0042f22d
add esp, 0xc
cmp eax, 0xc
mov byte [ebp + 0x7f], 0x3f
jne 0x438674
mov byte [ebp + 0x7f], 0x46
jmp 0x43867d
cmp eax, 0xb
jne 0x43867d
mov byte [ebp + 0x7f], 0x52
push dword [ebp + 0x44]
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.00434504
push dword [ebp + 0x14]
lea eax, [ebp - 0x70]
push dword [ebp + 0x10]
push eax
call fcn.00434504
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 0x4386e5
push dword [ebp + 0x54]
mov ecx, esi
call fcn.0042af26
cmp dword [ebp + 0x4c], ebx
je 0x4386f4
push dword [ebp + 0x38]
mov ecx, esi
call fcn.0042af26
lea ecx, [ebp + 0x6c]
call fcn.004029f8
mov eax, dword [ebp + 0x78]
push dword [eax]
call fcn.0040aea9
pop ecx
lea ecx, [ebp + 0x54]
call fcn.0042602e
lea ecx, [ebp + 0x5c]
call fcn.0042602e
push 0x49062c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 0x64]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret