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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d7dde
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x65afd4]
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 - 0x2b8], esi
mov edi, ecx
mov dword [ebp - 0x2bc], edi
mov dword [ebp - 0x2a8], 0
push str.GetDriveInformation
lea ecx, [ebp - 0x84]
call fcn.004128a0
mov dword [ebp - 4], 0
call fcn.00419ac0
cmp dword [eax + 4], 4
jl 0x427e59
push ecx
lea ecx, [ebp - 0x84]
call fcn.00411500
mov eax, dword [edi]
mov dword [edi + 4], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov byte [ebp - 4], 1
push 0x322
call fcn.00462180
add esp, 4
mov ebx, eax
push ebx
push 0x190
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x2ac], ebx
xor eax, eax
cmp ax, word [ebx]
je 0x42812a
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x428110
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2b4]
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x428110
push 0x220
push 0
lea eax, [ebp - 0x2a4]
push eax
call fcn.005ad460
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 ebx
lea ecx, [ebp - 0x44]
call fcn.004076f8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x34]
cmp eax, 0x100
jbe 0x427f5d
cmp eax, 0xff
jb 0x4281a8
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]
mov ecx, dword [ebp - 0x2b8]
add dword [ecx], eax
mov eax, dword [ebp - 0x2b0]
adc dword [ecx + 4], eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004076f8
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x1c]
cmp esi, 2
jb 0x4281ad
mov dword [ebp - 0x2c8], 1
lea eax, [esi - 2]
mov dword [ebp - 0x2cc], eax
mov edx, 1
cmp eax, edx
cmovb edx, eax
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae ecx, dword [ebp - 0x2c]
add ecx, 4
sub esi, edx
mov dword [ebp - 0x1c], esi
lea eax, [esi*2 - 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.005acee0
add esp, 4
lea ecx, [ebp - 0x380]
call fcn.00413c70
mov byte [ebp - 4], 4
mov edx, 0x629fec
lea ecx, [ebp - 0x370]
call fcn.004115a0
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae edx, dword [ebp - 0x2c]
push dword [ebp - 0x1c]
mov ecx, eax
call fcn.00411930
add esp, 4
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x368]
call fcn.00414520
or dword [ebp - 0x2a8], 1
mov byte [ebp - 4], 5
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], 4
lea ecx, [ebp - 0x68]
call fcn.004076c4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x380]
call fcn.004138a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.004076c4
cmp esi, 0xffffffff
je 0x4280cd
xorps xmm0, xmm0
movq qword [ebp - 0x50], xmm0
mov dword [ebp - 0x48], 0
push 0
lea eax, [ebp - 0x2d0]
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 0x4280cd
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 0
mov eax, dword [edi + 4]
cmp dword [edi + 8], eax
je 0x4280f3
mov ecx, 0x88
lea esi, [ebp - 0x2a4]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x2bc]
add dword [edi + 4], 0x220
jmp 0x428102
lea ecx, [ebp - 0x2a4]
push ecx
push eax
mov ecx, edi
call fcn.004283e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.004076c4
nop
xor eax, eax
cmp ax, word [ebx]
je 0x428122
add ebx, 2
mov dword [ebp - 0x2ac], ebx
jmp 0x428110
add ebx, 2
jmp 0x427e8a
mov dword [ebp - 4], eax
jmp 0x42817a
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.004127e0
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.005a8a56
mov esp, ebp
pop ebp
ret
call fcn.00410570
call fcn.00410570
int3