Function at 0x4878c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x268
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4c00c0
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x260], 7
mov dword [ebp - 0x264], 0
mov word [ebp - 0x274], 0
push edi
call fcn.005d3244
add esp, 4
mov esi, eax
cmp eax, 7
jbe 0x48794d
sub esp, 0xc
mov al, byte [ebp - 0x4c]
lea ecx, [ebp - 0x274]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], esi
call fcn.00405590
cmp dword [ebp - 0x260], 7
ja 0x48797b
lea eax, [ebp - 0x274]
jmp 0x487981
mov eax, esi
mov dword [ebp - 0x264], esi
lea ecx, [ebp - 0x274]
add eax, esi
push eax
push edi
push ecx
call fcn.0061e340
add esp, 0xc
mov word [ebp + esi*2 - 0x274], 0
cmp dword [ebp - 0x260], 7
jbe 0x487945
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x10], 1
push 4
push 0x65d1b0
push eax
call fcn.005dcc34
add esp, 0xc
xor ecx, ecx
test eax, eax
mov esi, dword [0x65d1c2]
movsd xmm0, qword [str.pipe_]
sete cl
lea edx, [ecx*4 + 5]
cmp dword [ebp - 0x264], edx
mov dword [ebp - 0x44], esi
movsd qword [ebp - 0x4c], xmm0
jae 0x4879c8
xor ebx, ebx
jmp 0x4879f9
shl ecx, 2
cmp dword [ebp - 0x260], 7
jbe 0x4879dc
mov eax, dword [ebp - 0x274]
jmp 0x4879e2
lea eax, [ebp - 0x274]
lea eax, [eax + ecx*2]
lea ecx, [ebp - 0x4c]
push 5
push ecx
push eax
call fcn.005dcc34
add esp, 0xc
test eax, eax
sete bl
mov ecx, dword [ebp - 0x260]
cmp ecx, 8
jb 0x487a3a
mov eax, dword [ebp - 0x274]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x487a30
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x488186
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov dl, 1
test bl, bl
jne 0x48811f
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], 0
mov word [ebp - 0x4c], 0
mov dword [ebp - 0x10], 8
push ecx
push eax
call fcn.0042e9e0
add esp, 8
mov edi, dword [ebp + 0xc]
test al, al
je 0x487ac1
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], 0
push edi
call fcn.005d3244
add esp, 4
mov esi, eax
cmp eax, 7
jbe 0x487ac8
sub esp, 0xc
mov al, byte [ebp - 0x274]
lea ecx, [ebp - 0x34]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], esi
call fcn.00405590
cmp byte [0x6ceef9], 0
jne 0x487aed
jmp 0x487b18
xor edx, edx
jmp 0x4880e0
mov eax, esi
mov dword [ebp - 0x24], esi
lea ecx, [ebp - 0x34]
add eax, esi
push eax
push edi
push ecx
call fcn.0061e340
add esp, 0xc
mov word [ebp + esi*2 - 0x34], 0
cmp byte [0x6ceef9], 0
je 0x487b18
cmp dword [ebp - 0x38], 7
lea eax, [ebp - 0x4c]
jbe 0x487af9
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x10], 9
push 9
push str.DeviceSftVol_
push eax
call fcn.005dcc34
add esp, 0xc
test eax, eax
je 0x487c74
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
lea ebx, [ebp - 0x34]
mov ecx, ebx
cmp esi, 7
cmova ecx, eax
cmp word [ecx + edx*2 - 2], 0x5c
jne 0x487c33
cmp edx, 2
jb 0x487b49
cmp word [ecx + edx*2 - 4], 0x3a
je 0x487c33
lea edi, [edx - 1]
mov dword [ebp - 0x260], 7
mov dword [ebp - 0x264], 0
mov word [ebp - 0x274], 0
cmp edx, edi
cmovb edi, edx
cmp edi, 7
jbe 0x487ba3
mov dword [ebp - 0x10], 9
sub esp, 0xc
mov al, byte [ebp - 0x64]
mov byte [esp + 4], al
mov dword [esp + 8], ecx
lea ecx, [ebp - 0x274]
mov dword [esp], edi
call fcn.00405590
mov esi, dword [ebp - 0x20]
lea ebx, [ebp - 0x34]
cmp esi, 8
jae 0x487bcc
jmp 0x487bff
lea eax, [edi + edi]
mov dword [ebp - 0x264], edi
lea edx, [ebp - 0x274]
push eax
push ecx
push edx
call fcn.0061e340
add esp, 0xc
mov word [ebp + edi*2 - 0x274], 0
cmp esi, 8
jb 0x487bff
mov eax, dword [ebp - 0x34]
lea ecx, [esi + esi + 2]
cmp ecx, 0x1000
jb 0x487bf5
mov ecx, eax
mov eax, dword [eax - 4]
add ecx, 0xfffffffc
sub ecx, eax
cmp ecx, 0x20
jae 0x4881af
add esi, esi
add esi, 0x25
mov ecx, esi
push ecx
push eax
call fcn.005d319e
add esp, 8
movsd xmm0, qword [ebp - 0x264]
movsd xmm2, qword [ebp - 0x274]
movsd xmm1, qword [ebp - 0x26c]
mov dword [ebp - 0x10], 9
movsd qword [ebp - 0x24], xmm0
movsd qword [ebp - 0x2c], xmm1
movsd qword [ebp - 0x34], xmm2
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x34]
cmp esi, 7
cmovbe eax, ebx
cmp dword [ebp - 0x38], 7
jbe 0x487c44
mov ecx, dword [ebp - 0x4c]
jmp 0x487c47
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x10], 9
push eax
push ecx
call fcn.005d3f0e
add esp, 8
test eax, eax
je 0x487c74
mov ecx, dword [ebp - 0x24]
cmp ecx, 4
jae 0x487c7b
xor eax, eax
cmp ecx, 3
jae 0x487d92
jmp 0x487dce
mov dl, 1
jmp 0x4880a1
cmp dword [ebp - 0x20], 7
lea eax, [ebp - 0x34]
jbe 0x487c87
mov eax, dword [ebp - 0x34]
push 4
push 0x65d1b0
push eax
call fcn.005dcc34
add esp, 0xc
test eax, eax
je 0x487ca2
xor eax, eax
jmp 0x487d8a
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x260], 7
mov dword [ebp - 0x264], 0
mov word [ebp - 0x274], 0
cmp edi, 3
jbe 0x4881aa
mov edx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x20]
lea eax, [edi - 4]
lea ecx, [ebp - 0x2c]
add edx, 8
cmp esi, 7
cmova ecx, edx
cmp eax, 7
jbe 0x487d06
sub esp, 0xc
mov dl, byte [ebp - 0x64]
mov byte [esp + 4], dl
mov dword [esp + 8], ecx
lea ecx, [ebp - 0x274]
mov dword [esp], eax
call fcn.00405590
mov esi, dword [ebp - 0x20]
jmp 0x487d29
mov dword [ebp - 0x264], eax
add eax, eax
lea edx, [ebp - 0x274]
push eax
push ecx
push edx
call fcn.0061e340
add esp, 0xc
mov word [ebp + edi*2 - 0x27c], 0
cmp esi, 8
jb 0x487d61
mov eax, dword [ebp - 0x34]
lea ecx, [esi + esi + 2]
cmp ecx, 0x1000
jb 0x487d57
mov ecx, eax
mov eax, dword [eax - 4]
add ecx, 0xfffffffc
sub ecx, eax
cmp ecx, 0x20
jae 0x4881cc
add esi, esi
add esi, 0x25
mov ecx, esi
push ecx
push eax
call fcn.005d319e
add esp, 8
movsd xmm0, qword [ebp - 0x264]
movsd xmm2, qword [ebp - 0x274]
movsd xmm1, qword [ebp - 0x26c]
mov al, 1
movsd qword [ebp - 0x24], xmm0
movsd qword [ebp - 0x2c], xmm1
movsd qword [ebp - 0x34], xmm2
mov ecx, dword [ebp - 0x24]
cmp ecx, 3
jb 0x487dce
cmp dword [ebp - 0x20], 8
jb 0x487dab
mov ecx, dword [ebp - 0x34]
cmp word [ecx + 2], 0x3a
jne 0x487dce
cmp word [ecx + 4], 0x5c
je 0x487dbc
jmp 0x487dce
cmp word [ebp - 0x32], 0x3a
jne 0x487dce
cmp word [ebp - 0x30], 0x5c
jne 0x487dce
lea ecx, [ebp - 0x34]
movzx ecx, word [ecx]
and ecx, 0xffffffdf
add ecx, 0xffffffbf
cmp cx, 0x1a
setb cl
jmp 0x487dd0
xor ecx, ecx
test cl, cl
jne 0x487e0f
xor al, 1
jne 0x487e0f
mov esi, dword [ebp - 0x3c]
mov ecx, 7
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], 0
cmp esi, 8
jb 0x487ec5
cmp dword [ebp - 0x38], 7
jbe 0x487e9d
mov eax, dword [ebp - 0x4c]
jmp 0x487ea0
test cl, cl
je 0x487f4c
cmp dword [ebp - 0x20], 7
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
jbe 0x487e30
mov eax, dword [ebp - 0x34]
jmp 0x487e33
lea eax, [ebp - 0x34]
test eax, eax
je 0x487f2e
mov eax, dword [eax]
lea ecx, [ebp - 0x274]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x64]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
xor edx, edx
cmp eax, 2
jb 0x4880a1
cmp eax, 0x104
je 0x4880a1
lea esi, [ebp - 0x274]
push esi
call fcn.005d3244
add esp, 4
mov ecx, dword [ebp - 0x24]
lea ecx, [eax + ecx - 2]
cmp ecx, dword [ebp - 0x3c]
jne 0x487f4c
cmp dword [ebp - 0x38], 7
jbe 0x488135
mov ecx, dword [ebp - 0x4c]
jmp 0x488138
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x10], 0xa
push 8
push 0x65d266
push eax
call fcn.005dcc34
add esp, 0xc
test eax, eax
je 0x487f53
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x50]
cmp dword [ebp - 0x38], 7
jbe 0x487edc
mov eax, dword [ebp - 0x4c]
cmp ecx, esi
jb 0x487ee3
cmp ecx, 7
jbe 0x487f0d
mov edi, dword [ebp - 0x64]
jmp 0x487f10
lea eax, [ebp - 0x4c]
cmp ecx, esi
jae 0x487ed2
mov dword [ebp - 0x10], 0xa
sub esp, 0xc
mov cl, byte [ebp - 0x274]
mov byte [esp + 4], cl
lea ecx, [ebp - 0x64]
mov dword [esp + 8], eax
mov dword [esp], esi
call fcn.00405590
xor edx, edx
jmp 0x488062
lea edi, [ebp - 0x64]
lea ecx, [esi + esi]
mov dword [ebp - 0x54], esi
push ecx
push eax
push edi
call fcn.0061e340
add esp, 0xc
mov word [edi + esi*2], 0
xor edx, edx
jmp 0x488062
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
call fcn.005d78db
mov dword [eax], 0x16
call fcn.006207d0
xor edx, edx
jmp 0x4880a1
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x260], 7
mov dword [ebp - 0x264], 0
mov word [ebp - 0x274], 0
cmp esi, 7
jbe 0x4881c7
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x3c]
lea eax, [esi - 8]
add ecx, 0x10
cmp dword [ebp - 0x38], 7
cmovbe ecx, edx
cmp eax, 7
jbe 0x487fb2
sub esp, 0xc
mov dl, byte [ebp - 0x68]
mov byte [esp + 4], dl
mov dword [esp + 8], ecx
lea ecx, [ebp - 0x274]
mov dword [esp], eax
call fcn.00405590
jmp 0x487fd5
mov dword [ebp - 0x264], eax
add eax, eax
lea edx, [ebp - 0x274]
push eax
push ecx
push edx
call fcn.0061e340
add esp, 0xc
mov word [ebp + esi*2 - 0x284], 0
mov ecx, dword [ebp - 0x50]
cmp ecx, 8
jb 0x488010
mov eax, dword [ebp - 0x64]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x488006
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4881d8
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
movsd xmm0, qword [ebp - 0x264]
movsd xmm2, qword [ebp - 0x274]
movsd xmm1, qword [ebp - 0x26c]
cmp dword [ebp - 0x20], 7
movsd qword [ebp - 0x54], xmm0
movsd qword [ebp - 0x5c], xmm1
movsd qword [ebp - 0x64], xmm2
jbe 0x488042
mov eax, dword [ebp - 0x34]
jmp 0x488045
lea eax, [ebp - 0x34]
cmp dword [ebp - 0x50], 7
jbe 0x488050
mov ecx, dword [ebp - 0x64]
jmp 0x488053
lea ecx, [ebp - 0x64]
push eax
push ecx
call fcn.005d3f0e
add esp, 8
test eax, eax
sete dl
mov ecx, dword [ebp - 0x50]
cmp ecx, 8
jb 0x4880a1
mov eax, dword [ebp - 0x64]
mov esi, edx
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x488095
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4881bb
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov edx, esi
mov ecx, dword [ebp - 0x20]
cmp ecx, 8
jb 0x4880e0
mov eax, dword [ebp - 0x34]
mov esi, edx
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4880d4
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x48819e
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov edx, esi
mov ecx, dword [ebp - 0x38]
cmp ecx, 8
jb 0x48811f
mov eax, dword [ebp - 0x4c]
mov esi, edx
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x488113
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x488192
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov edx, esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edx
add esp, 0x268
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x6c], eax
push eax
push esi
push ecx
call fcn.005dcc34
add esp, 0xc
test eax, eax
jne 0x487f4c
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
add ecx, 4
cmp dword [ebp - 0x20], 7
cmova eax, ecx
cmp dword [ebp - 0x38], 7
jbe 0x488169
mov ecx, dword [ebp - 0x4c]
jmp 0x48816c
lea ecx, [ebp - 0x4c]
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx + edx*2]
push eax
push ecx
call fcn.005d3f0e
add esp, 8
test eax, eax
sete dl
jmp 0x4880a1
mov dword [ebp - 0x10], 0
call fcn.006207e0
mov dword [ebp - 0x10], 7
call fcn.006207e0
mov dword [ebp - 0x10], 6
call fcn.006207e0
call fcn.005e9a00
mov dword [ebp - 0x10], 2
call fcn.006207e0
mov dword [ebp - 0x10], 5
call fcn.006207e0
call fcn.005e9a00
mov dword [ebp - 0x10], 3
call fcn.006207e0
mov dword [ebp - 0x10], 4
call fcn.006207e0
nop word cs:[eax + eax]
nop
push ebp
sub esp, 0xc
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
mov ecx, dword [ebp - 0x50]
cmp ecx, 8
jb 0x48829e
mov eax, dword [ebp - 0x64]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x488294
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4882a3
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
add esp, 0xc
pop ebp
ret
call fcn.006207e0
nop dword [eax + eax]
push ebp
sub esp, 0xc
add ebp, 0xc
mov ecx, dword [ebp - 0x20]
cmp ecx, 8
jb 0x4882ee
mov eax, dword [ebp - 0x34]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x4882e4
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x488307
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], 0
add esp, 0xc
pop ebp
ret
call fcn.006207e0
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
mov ecx, dword [ebp - 0x38]
cmp ecx, 8
jb 0x48834e
mov eax, dword [ebp - 0x4c]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x488344
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x488353
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
add esp, 0xc
pop ebp
ret
call fcn.006207e0
nop dword [eax + eax]
push ebp
sub esp, 0xc
add ebp, 0xc
mov ecx, dword [ebp - 0x260]
cmp ecx, 8
jb 0x4883a4
mov eax, dword [ebp - 0x274]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x48839a
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4883a9
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.005d319e
add esp, 8
add esp, 0xc
pop ebp
ret
call fcn.006207e0
int3