Function at 0x42db70
Capabilities:
Get disk information
Get disk information via ioctl
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e58aa
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x672014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x284], esi
lea ecx, [ebp - 0x50]
call fcn.00407dfc
mov dword [ebp - 4], 0
mov byte [ebp - 0x54], 0
push 0x13
push str.GetDriveInformation
lea ecx, [ebp - 0x50]
call fcn.004075f5
mov dword [ebp - 4], 1
mov eax, dword [0x67e3a8]
test eax, eax
jne 0x42dc0a
push 0x68
call fcn.0046f39a
add esp, 4
mov dword [ebp - 0x288], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x42dbff
push ecx
mov ecx, eax
call fcn.0041d120
jmp 0x42dc01
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x67e3a8], eax
cmp dword [eax + 4], 4
jl 0x42dc19
push ecx
lea ecx, [ebp - 0x54]
call fcn.004127e0
mov byte [ebp - 4], 0xf
mov byte [ebp - 4], 3
mov eax, dword [esi]
mov dword [esi + 4], eax
mov byte [ebp - 4], 1
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov byte [ebp - 4], 0x12
push 0x322
call fcn.0046f3d6
add esp, 4
mov edi, eax
push edi
push 0x190
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x278], edi
xor eax, eax
cmp ax, word [edi]
je 0x42de1e
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x42ddc0
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x280]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x42ddc0
push 0x220
push 0
lea eax, [ebp - 0x274]
push eax
call fcn.005ba0f0
add esp, 0xc
mov esi, dword [ebp - 0x280]
mov dword [ebp - 0x26c], esi
mov edx, dword [ebp - 0x27c]
mov dword [ebp - 0x268], edx
mov ecx, dword [ebp - 0x290]
mov dword [ebp - 0x274], ecx
mov eax, dword [ebp - 0x28c]
mov dword [ebp - 0x270], eax
sub esi, ecx
sbb edx, eax
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], edx
push edi
lea ecx, [ebp - 0x2c]
call fcn.00407456
mov byte [ebp - 4], 0x13
mov eax, dword [ebp - 0x1c]
cmp eax, 0x100
jbe 0x42dd2a
cmp eax, 0xff
jae 0x42dd0f
call fcn.00407c18
mov dword [ebp - 0x1c], 0xff
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax + 0x1fe], cx
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x280]
add dword [ebx], eax
mov eax, dword [ebp - 0x27c]
adc dword [ebx + 4], eax
mov ecx, edi
call fcn.0042de50
cmp eax, 0xffffffff
je 0x42dd9f
xorps xmm0, xmm0
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], 0
push 0
lea ecx, [ebp - 0x288]
push ecx
push 0xc
lea ecx, [ebp - 0x38]
push ecx
push 0
push 0
push 0x2d1080
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42dd9f
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0
lea eax, [ebp - 0x274]
push eax
mov ecx, dword [ebp - 0x284]
call fcn.0042e1d0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x2c]
call fcn.00407420
nop dword [eax]
xor eax, eax
cmp ax, word [edi]
je 0x42ddd2
add edi, 2
mov dword [ebp - 0x278], edi
jmp 0x42ddc0
add edi, 2
jmp 0x42dc56
mov dword [ebp - 4], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.004141f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005b5208
mov esp, ebp
pop ebp
ret