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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ec696
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x677010]
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 - 0x2bc], esi
mov dword [ebp - 0x2a8], 0
lea ecx, [ebp - 0x80]
call fcn.00407a4a
mov dword [ebp - 4], 0
mov byte [ebp - 0x84], 0
push str.GetDriveInformation
lea ecx, [ebp - 0x80]
call fcn.00414ef0
mov dword [ebp - 4], 1
call fcn.0041db40
cmp dword [eax + 4], 4
jl 0x42dee6
push ecx
lea ecx, [ebp - 0x84]
call fcn.00412cf0
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 2
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], 0x11
push 0x322
call fcn.00476ee6
add esp, 4
mov edi, eax
push edi
push 0x190
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x2ac], edi
xor eax, eax
cmp ax, word [edi]
je 0x42e1f4
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x42e196
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2b4]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x42e196
push 0x220
push 0
lea eax, [ebp - 0x2a4]
push eax
call fcn.005c0a60
add esp, 0xc
mov esi, dword [ebp - 0x2b4]
mov dword [ebp - 0x29c], esi
mov edx, dword [ebp - 0x2b0]
mov dword [ebp - 0x298], edx
mov ecx, dword [ebp - 0x2c4]
mov dword [ebp - 0x2a4], ecx
mov eax, dword [ebp - 0x2c0]
mov dword [ebp - 0x2a0], eax
sub esi, ecx
sbb edx, eax
mov dword [ebp - 0x294], esi
mov dword [ebp - 0x290], edx
push edi
lea ecx, [ebp - 0x44]
call fcn.004075e1
mov byte [ebp - 4], 0x12
mov eax, dword [ebp - 0x34]
cmp eax, 0x100
jbe 0x42dff7
cmp eax, 0xff
jae 0x42dfdc
call fcn.00411d60
mov dword [ebp - 0x34], 0xff
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
cmovae eax, dword [ebp - 0x44]
xor ecx, ecx
mov word [eax + 0x1fe], cx
lea eax, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
cmovae eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 0x2b4]
add dword [ebx], eax
mov eax, dword [ebp - 0x2b0]
adc dword [ebx + 4], eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.004075e1
mov byte [ebp - 4], 0x13
cmp dword [ebp - 0x1c], 2
jae 0x42e039
call fcn.00411d60
mov dword [ebp - 0x2b8], 1
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffffe
mov dword [ebp - 0x2c8], eax
mov edx, dword [ebp - 0x2b8]
cmp eax, edx
cmovb edx, eax
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae ecx, dword [ebp - 0x2c]
add ecx, 4
mov eax, dword [ebp - 0x1c]
sub eax, edx
mov dword [ebp - 0x1c], eax
lea eax, [eax*2 - 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.005bfc60
add esp, 4
lea ecx, [ebp - 0x37c]
call fcn.00415be0
mov byte [ebp - 4], 0x15
mov edx, 0x63ed3c
lea ecx, [ebp - 0x36c]
call fcn.00413320
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x16
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0x15
push ecx
mov ecx, eax
call fcn.004137f0
add esp, 4
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x364]
call fcn.00416830
or dword [ebp - 0x2a8], 1
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x54], 8
cmovae eax, dword [ebp - 0x68]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x68]
call fcn.004075ab
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x37c]
call fcn.00415840
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x2c]
call fcn.004075ab
cmp esi, 0xffffffff
je 0x42e178
xorps xmm0, xmm0
movq qword [ebp - 0x50], xmm0
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x2cc]
push eax
push 0xc
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x42e178
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 0
lea eax, [ebp - 0x2a4]
push eax
mov ecx, dword [ebp - 0x2bc]
call fcn.0042e230
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x44]
call fcn.004075ab
xor eax, eax
cmp ax, word [edi]
je 0x42e1a8
add edi, 2
mov dword [ebp - 0x2ac], edi
jmp 0x42e196
add edi, 2
jmp 0x42df23
mov dword [ebp - 4], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.00414900
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.005bc745
mov esp, ebp
pop ebp
ret