Function at 0x47dce0
Capabilities:
Get disk information
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583db3
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x615000]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x23], eax
mov byte [ebp - 0x40], 0
xor ecx, ecx
mov dword [ebp - 0x3f], ecx
mov dword [ebp - 0x3b], ecx
mov byte [ebp - 0x37], cl
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x14], 0
je 0x47df94
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp + 0xc]
jge 0x47df94
mov eax, dword [ebp - 0x14]
and eax, 1
je 0x47df7e
mov ecx, dword [ebp - 0x10]
add ecx, 0x41
push ecx
push 0x5dcf40
lea edx, [ebp - 0x24]
push edx
call fcn.0047f560
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
push str.._s
lea ecx, [ebp - 0x40]
push ecx
call fcn.0047f590
add esp, 0xc
call fcn.00402270
mov dword [ebp - 0x4c], eax
lea edx, [ebp - 0x24]
mov dword [ebp - 0x50], edx
cmp dword [ebp - 0x50], 0
jne 0x47ddb0
mov dword [ebp - 0xf0], 0
jmp 0x47de0f
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 1
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x3fffffff
jle 0x47ddd5
mov dword [ebp - 0xf4], 0
jmp 0x47de03
mov eax, dword [ebp - 0x44]
shl eax, 1
call fcn.0056a8e0
mov dword [ebp - 0xf8], esp
mov ecx, dword [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x50]
push eax
mov ecx, dword [ebp - 0xf8]
push ecx
call fcn.00402280
mov dword [ebp - 0xf4], eax
mov edx, dword [ebp - 0xf4]
mov dword [ebp - 0xf0], edx
mov eax, dword [ebp - 0xf0]
push eax
call fcn.0047dc00
add esp, 4
movzx ecx, al
test ecx, ecx
je 0x47df7e
push 0
push 0
push 3
push 0
push 3
push 0
lea edx, [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x54], eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0xc
lea ecx, [ebp - 0x30]
push ecx
push 0
push 0
push 0x2d1080
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x47df6d
lea ecx, [ebp - 0xec]
call fcn.0041f850
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0042e580
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 0x41
push eax
push 0x5dcf4c
lea ecx, [ebp - 0x58]
push ecx
call fcn.00407930
add esp, 0xc
push 0
lea ecx, [ebp - 0x58]
call fcn.00405e80
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x47debe
mov dword [ebp - 0xfc], 0
jmp 0x47df1f
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x3fffffff
jle 0x47dee3
mov dword [ebp - 0x100], 0
jmp 0x47df13
mov eax, dword [ebp - 0x44]
shl eax, 1
call fcn.0056a8e0
mov dword [ebp - 0x104], esp
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x44]
shl ecx, 1
push ecx
mov edx, dword [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x104]
push eax
call fcn.004022d0
mov dword [ebp - 0x100], eax
mov ecx, dword [ebp - 0x100]
mov dword [ebp - 0xfc], ecx
mov edx, dword [ebp - 0xfc]
push edx
lea ecx, [ebp - 0xb4]
call fcn.00405fb0
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0xec]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0047ea30
mov edx, dword [ebp - 0x34]
add edx, 1
mov dword [ebp - 0x34], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0042e5a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xec]
call fcn.0047d520
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x54], 0
mov ecx, dword [ebp - 0x14]
shr ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x47dd41
mov eax, dword [ebp - 0x34]
lea esp, [ebp - 0x108]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0055abea
mov esp, ebp
pop ebp
ret