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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dfcdd
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x663000]
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 esi, edx
mov dword [ebp - 0x280], esi
mov edi, ecx
mov dword [ebp - 0x284], edi
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x50]
push str.GetDriveInformation
mov byte [ebp - 0x54], al
call fcn.00415110
mov dword [ebp - 4], 1
call fcn.0041ca00
cmp dword [eax + 4], 4
jl 0x426b0a
push ecx
lea ecx, [ebp - 0x54]
call fcn.00412f80
mov eax, dword [edi]
mov dword [edi + 4], eax
push 0x322
mov dword [esi], 0
mov dword [esi + 4], 0
mov byte [ebp - 4], 2
call fcn.00465842
add esp, 4
mov ebx, eax
push ebx
push 0x190
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
nop dword [eax + eax]
xor eax, eax
cmp ax, word [ebx]
je 0x426d58
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x426cfb
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x27c]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x426cfb
push 0x208
lea eax, [ebp - 0x25c]
push 0
push eax
call fcn.005b3720
mov esi, dword [ebp - 0x27c]
add esp, 0xc
mov eax, dword [ebp - 0x28c]
mov edx, dword [ebp - 0x278]
mov ecx, dword [ebp - 0x288]
mov dword [ebp - 0x26c], esi
sub esi, eax
mov dword [ebp - 0x268], edx
sbb edx, ecx
mov dword [ebp - 0x270], ecx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], edx
call fcn.00407953
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
cmp eax, 0x100
jbe 0x426c0d
cmp eax, 0xff
jb 0x426d7c
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0xff
cmovae eax, dword [ebp - 0x2c]
xor ecx, ecx
mov word [eax + 0x1fe], cx
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [ebp - 0x280]
mov ecx, ebx
mov eax, dword [ebp - 0x27c]
add dword [esi], eax
mov eax, dword [ebp - 0x278]
adc dword [esi + 4], eax
call fcn.00426d90
cmp eax, 0xffffffff
je 0x426c88
push 0
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x30], 0
push ecx
push 0xc
lea ecx, [ebp - 0x38]
xorps xmm0, xmm0
push ecx
push 0
push 0
push 0x2d1080
push eax
movq qword [ebp - 0x38], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x426c88
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], 0
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
je 0x426cae
mov ecx, 0x88
lea esi, [ebp - 0x274]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x284]
add dword [edi + 4], 0x220
jmp 0x426cbd
lea ecx, [ebp - 0x274]
push ecx
push eax
mov ecx, edi
call fcn.00426fe0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x426cfb
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x426cf1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x426d81
push ecx
push edx
call fcn.005af9e7
add esp, 8
xor eax, eax
cmp ax, word [ebx]
je 0x426d0c
add ebx, 2
xor eax, eax
cmp ax, word [ebx]
jne 0x426d02
add ebx, 2
jmp 0x426b40
lea ecx, [ebp - 0x54]
call fcn.00414a10
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.005af765
mov esp, ebp
pop ebp
ret
call fcn.004121e0
call fcn.005b681f
int3