Function at 0x428590
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52fedb
mov eax, dword fs:[0]
push eax
sub esp, 0x548
mov eax, dword [0x57a438]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x514], edx
mov edi, ecx
push 0xd8
lea eax, [ebp - 0xf0]
mov byte [ebp - 0x501], 0
push 0
push eax
call fcn.004fecc0
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
push 0x6c
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x50c], eax
cmp eax, 0x6c
jae 0x4286b1
xor esi, esi
test eax, eax
je 0x4286b1
nop word [eax + eax]
push 0x410
lea eax, [ebp - 0x500]
push 0
push eax
call fcn.004fecc0
mov eax, dword [0x561288]
add esp, 0xc
mov dword [ebp - 0x18], eax
movzx eax, word [0x56128c]
mov word [ebp - 0x14], ax
movzx eax, word [ebp + esi*2 - 0xf0]
add esi, 4
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x500]
push 0x207
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x508], esi
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4286a5
lea esi, [ebp - 0x500]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x428671
sub esi, ecx
mov eax, edi
sar esi, 1
cmp dword [edi + 0x14], 8
jb 0x42868a
mov eax, dword [edi]
push esi
lea ecx, [ebp - 0x500]
push ecx
push eax
call fcn.00518574
add esp, 0xc
test eax, eax
je 0x4286d2
mov esi, dword [ebp - 0x508]
cmp esi, dword [ebp - 0x50c]
jb 0x428610
mov al, byte [ebp - 0x501]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004ac694
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x51c], 0
mov word [ebp - 0x52c], ax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x518], 7
cmp eax, esi
jb 0x428838
sub eax, esi
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [edi + 0x14], 8
jb 0x42870d
mov edi, dword [edi]
push ecx
lea eax, [edi + esi*2]
push eax
lea ecx, [ebp - 0x52c]
call fcn.0040b2e0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x428730
sub ecx, edx
lea eax, [ebp - 0x18]
sar ecx, 1
push ecx
push eax
push ecx
lea ecx, [ebp - 0x52c]
call fcn.00427110
mov esi, dword [ebp - 0x514]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x554], xmm0
movups xmmword [ebp - 0x544], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x544]
movq qword [ebp - 0x510], xmm0
movq qword [ebp - 0x534], xmm0
cmp esi, eax
je 0x4287b9
mov ecx, esi
call fcn.0040b440
movups xmm0, xmmword [ebp - 0x554]
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x510]
movq qword [esi + 0x10], xmm0
jmp 0x4287f5
mov edx, dword [ebp - 0x530]
cmp edx, 8
jb 0x4287f5
mov ecx, dword [ebp - 0x544]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4287eb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42883d
push edx
push ecx
call fcn.004ac6c8
add esp, 8
mov edx, dword [ebp - 0x518]
cmp edx, 8
jb 0x428831
mov ecx, dword [ebp - 0x52c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x428827
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x428842
push edx
push ecx
call fcn.004ac6c8
add esp, 8
mov al, 1
jmp 0x4286b7
call fcn.00417ae0
call fcn.005026a0
call fcn.005026a0
int3