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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d844e
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x65bfd4]
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.00412820
mov dword [ebp - 4], 0
call fcn.00419a30
cmp dword [eax + 4], 4
jl 0x427dc9
push ecx
lea ecx, [ebp - 0x84]
call fcn.00411390
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.004627e5
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 0x42809a
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x428080
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 0x428080
push 0x220
push 0
lea eax, [ebp - 0x2a4]
push eax
call fcn.005adaa0
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.00407534
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x34]
cmp eax, 0x100
jbe 0x427ecd
cmp eax, 0xff
jb 0x428118
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.00407534
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x1c]
cmp esi, 2
jb 0x42811d
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.005ad520
add esp, 4
lea ecx, [ebp - 0x380]
call fcn.00413bf0
mov byte [ebp - 4], 4
mov edx, 0x62a0ec
lea ecx, [ebp - 0x370]
call fcn.00411430
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
cmovae edx, dword [ebp - 0x2c]
push dword [ebp - 0x1c]
mov ecx, eax
call fcn.004117c0
add esp, 4
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x368]
call fcn.00414480
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.00407500
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x380]
call fcn.00413820
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00407500
cmp esi, 0xffffffff
je 0x42803d
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 0x42803d
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 0x428063
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 0x428072
lea ecx, [ebp - 0x2a4]
push ecx
push eax
mov ecx, edi
call fcn.00428350
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call fcn.00407500
nop
xor eax, eax
cmp ax, word [ebx]
je 0x428092
add ebx, 2
mov dword [ebp - 0x2ac], ebx
jmp 0x428080
add ebx, 2
jmp 0x427dfa
mov dword [ebp - 4], eax
jmp 0x4280ea
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.00412760
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.005a909b
mov esp, ebp
pop ebp
ret
call fcn.00410400
call fcn.00410400
int3