Function at 0x42c082
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x244
mov edi, dword [ebp + 0xc]
mov eax, dword [0x5ef0d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], 0
push edi
call fcn.0056d7aa
add esp, 4
mov esi, eax
cmp eax, 7
jbe 0x42c0ec
cmp esi, 0x7fffffff
jae 0x42c641
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x42c110
mov ebx, 0x7ffffffe
mov eax, 0xfffffffe
jmp 0x42c129
lea eax, [ebp - 0x248]
mov dword [eax + 0x10], esi
mov ecx, esi
add ecx, esi
push ecx
push edi
push eax
call fcn.00568520
add esp, 0xc
mov word [ebp + esi*2 - 0x248], 0
jmp 0x42c168
cmp eax, 0xb
mov ebx, 0xa
cmovae ebx, eax
lea eax, [ebx + ebx]
add eax, 2
cmp ebx, 0x7ff
jb 0x42c131
push eax
call fcn.0044d3f7
jmp 0x42c137
push eax
call fcn.0056607a
add esp, 4
mov edi, eax
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x234], ebx
mov eax, esi
add eax, esi
push eax
mov ebx, dword [ebp + 0xc]
push ebx
push edi
call fcn.00568520
add esp, 0xc
mov word [edi + esi*2], 0
mov dword [ebp - 0x248], edi
mov edi, ebx
lea esi, [ebp - 0x248]
push esi
call fcn.0042b460
add esp, 4
mov ebx, eax
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x42c1b9
mov eax, dword [ebp - 0x248]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jb 0x42c1af
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x42c646
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005660aa
add esp, 8
test bl, bl
mov bl, 1
jne 0x42c5f4
mov eax, dword [ebp + 8]
movaps xmm0, xmmword [0x5b5e40]
lea ecx, [ebp - 0x28]
movups xmmword [ecx], xmm0
movsd xmm0, qword [0x5b5e50]
movsd qword [ecx + 0x10], xmm0
mov word [ecx], 0
push ecx
push eax
call fcn.0042b767
add esp, 8
test al, al
je 0x42c245
movaps xmm0, xmmword [0x5b5e40]
movups xmmword [ebp - 0x40], xmm0
movsd xmm0, qword [0x5b5e50]
movsd qword [ebp - 0x30], xmm0
mov word [ebp - 0x40], 0
push edi
call fcn.0056d7aa
add esp, 4
mov esi, eax
cmp eax, 7
jbe 0x42c24c
cmp esi, 0x7fffffff
jae 0x42c641
mov eax, esi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x42c26e
mov ebx, 0x7ffffffe
mov eax, 0xfffffffe
jmp 0x42c287
xor ebx, ebx
jmp 0x42c5bb
mov ecx, edi
lea edi, [ebp - 0x40]
mov dword [edi + 0x10], esi
mov eax, esi
add eax, esi
push eax
push ecx
push edi
call fcn.00568520
add esp, 0xc
mov word [ebp + esi*2 - 0x40], 0
mov edi, dword [edi]
jmp 0x42c2ba
cmp eax, 0xb
mov ebx, 0xa
cmovae ebx, eax
lea eax, [ebx + ebx]
add eax, 2
cmp ebx, 0x7ff
jb 0x42c28f
push eax
call fcn.0044d3f7
jmp 0x42c295
push eax
call fcn.0056607a
add esp, 4
mov edi, eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ebx
mov eax, esi
add eax, esi
push eax
push dword [ebp + 0xc]
push edi
call fcn.00568520
add esp, 0xc
mov word [edi + esi*2], 0
mov dword [ebp - 0x40], edi
lea ecx, [ebp - 0x40]
mov eax, dword [ecx + 0x10]
mov ebx, dword [ecx + 0x14]
cmp ebx, 8
mov esi, ecx
cmovae esi, edi
cmp word [esi + eax*2 - 2], 0x5c
jne 0x42c3fb
lea edi, [eax - 1]
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], 0
cmp eax, edi
cmovb edi, eax
cmp edi, 7
jbe 0x42c325
cmp edi, 0x7fffffff
jae 0x42c641
mov eax, edi
or eax, 7
cmp eax, 0x7ffffffe
jbe 0x42c34b
mov ebx, 0x7ffffffe
mov eax, 0xfffffffe
jmp 0x42c364
mov dword [ebp - 0x238], edi
lea eax, [edi + edi]
push eax
push esi
lea eax, [ebp - 0x248]
push eax
call fcn.00568520
add esp, 0xc
mov word [ebp + edi*2 - 0x248], 0
jmp 0x42c3a0
cmp eax, 0xb
mov ebx, 0xa
cmovae ebx, eax
lea eax, [ebx + ebx]
add eax, 2
cmp ebx, 0x7ff
jb 0x42c36c
push eax
call fcn.0044d3f7
jmp 0x42c372
push eax
call fcn.0056607a
add esp, 4
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x234], ebx
lea ecx, [edi + edi]
push ecx
push esi
push eax
mov esi, eax
call fcn.00568520
add esp, 0xc
mov word [esi + edi*2], 0
mov dword [ebp - 0x248], esi
mov ebx, dword [ebp - 0x2c]
cmp ebx, 8
jb 0x42c3da
mov eax, dword [ebp - 0x40]
lea ecx, [ebx + ebx]
add ecx, 2
cmp ecx, 0x1000
jb 0x42c3d0
mov ecx, eax
add ecx, 0xfffffffc
mov eax, dword [eax - 4]
sub ecx, eax
cmp ecx, 0x20
jae 0x42c646
add ebx, ebx
add ebx, 0x25
mov ecx, ebx
push ecx
push eax
call fcn.005660aa
add esp, 8
movsd xmm0, qword [ebp - 0x238]
movsd qword [ebp - 0x30], xmm0
movups xmm0, xmmword [ebp - 0x248]
movups xmmword [ebp - 0x40], xmm0
mov ebx, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
cmp ebx, 8
cmovae ecx, edi
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x42c40d
mov eax, dword [ebp - 0x28]
push ecx
push eax
call fcn.0056dccb
add esp, 8
test eax, eax
lea edi, [ebp - 0x248]
je 0x42c497
lea esi, [ebp - 0x40]
mov ecx, esi
mov edx, esi
call fcn.0042bc9f
mov ebx, eax
mov ecx, esi
call fcn.0042be6d
test al, al
jne 0x42c49e
test bl, bl
je 0x42c49e
lea edi, [ebp - 0x248]
movaps xmm0, xmmword [0x5b5e40]
movups xmmword [edi], xmm0
movsd xmm0, qword [0x5b5e50]
movsd qword [edi + 0x10], xmm0
mov word [edi], 0
lea ecx, [ebp - 0x28]
mov edx, edi
call fcn.0042beb4
test al, al
je 0x42c4d2
cmp dword [ebp - 0x2c], 8
jb 0x42c477
mov esi, dword [ebp - 0x40]
cmp dword [ebp - 0x234], 8
jb 0x42c486
mov edi, dword [ebp - 0x248]
push esi
push edi
call fcn.0056dccb
add esp, 8
test eax, eax
sete bl
jmp 0x42c4d4
mov bl, 1
jmp 0x42c57e
xor ebx, ebx
test al, al
je 0x42c57e
mov dword [ebp - 0x24c], ebx
mov dword [ebp - 0x250], ebx
push 0x208
push 0xff
push edi
call fcn.005683c0
add esp, 0xc
cmp dword [ebp - 0x2c], 8
jb 0x42c51d
mov eax, dword [ebp - 0x40]
jmp 0x42c520
xor ebx, ebx
mov ecx, dword [ebp - 0x234]
cmp ecx, 8
jb 0x42c57e
mov eax, dword [ebp - 0x248]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jb 0x42c511
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x42c646
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005660aa
add esp, 8
jmp 0x42c57e
lea eax, [ebp - 0x40]
mov eax, dword [eax]
lea ecx, [ebp - 0x250]
mov dword [ecx], eax
push 0x104
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x42c57e
cmp eax, 0x104
je 0x42c57e
push edi
call fcn.0056d7aa
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x30]
add eax, esi
add eax, 0xfffffffe
cmp eax, dword [ebp - 0x18]
jne 0x42c57c
cmp dword [ebp - 0x14], 8
jb 0x42c566
mov eax, dword [ebp - 0x28]
jmp 0x42c569
lea eax, [ebp - 0x28]
push esi
push edi
push eax
call fcn.0057861f
add esp, 0xc
test eax, eax
je 0x42c60b
xor ebx, ebx
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x42c5bb
mov eax, dword [ebp - 0x40]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jb 0x42c5b1
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x42c646
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005660aa
add esp, 8
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x42c5f4
mov eax, dword [ebp - 0x28]
lea edx, [ecx + ecx]
add edx, 2
cmp edx, 0x1000
jb 0x42c5ea
mov edx, eax
add edx, 0xfffffffc
mov eax, dword [eax - 4]
sub edx, eax
cmp edx, 0x20
jae 0x42c646
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005660aa
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00565e42
mov eax, ebx
add esp, 0x244
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebp - 0x2c], 8
jb 0x42c616
mov eax, dword [ebp - 0x40]
jmp 0x42c619
lea eax, [ebp - 0x40]
add eax, 4
cmp dword [ebp - 0x14], 8
jb 0x42c627
mov ecx, dword [ebp - 0x28]
jmp 0x42c62a
lea ecx, [ebp - 0x28]
lea ecx, [ecx + esi*2]
push eax
push ecx
call fcn.0056dccb
add esp, 8
test eax, eax
sete bl
jmp 0x42c57e
call fcn.0044d886
call fcn.0056cec6