Function at 0x41a720
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x240
mov edi, dword [ebp + 0xc]
mov eax, dword [0x511014]
xor eax, ebp
mov dword [esp + 0x238], eax
lea esi, [esp + 0x28]
mov ecx, esi
push edi
call fcn.0041b590
cmp byte [esi + 0xb], 0
jns 0x41a756
mov esi, dword [esp + 0x28]
push 4
push 0x5093a0
push esi
call fcn.0049604b
add esp, 0xc
xor ecx, ecx
test eax, eax
sete cl
movzx eax, byte [esp + 0x33]
test al, al
jns 0x41a77c
mov edx, dword [esp + 0x2c]
jmp 0x41a781
mov edx, eax
and edx, 0x7f
lea esi, [ecx*4 + 5]
cmp edx, esi
jb 0x41aab0
shl ecx, 2
test al, al
jns 0x41a79d
mov eax, dword [esp + 0x28]
jmp 0x41a7a1
lea eax, [esp + 0x28]
lea eax, [eax + ecx*2]
push 5
push str.pipe_
push eax
call fcn.0049604b
add esp, 0xc
test eax, eax
sete bl
mov al, byte [esp + 0x33]
test al, al
jns 0x41a7cd
push dword [esp + 0x28]
call fcn.00494aa1
add esp, 4
test bl, bl
jne 0x41aab7
mov eax, dword [ebp + 8]
xor ecx, ecx
lea ebx, [esp + 0x18]
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
mov dword [ebx + 8], ecx
push ebx
push eax
call fcn.00488260
add esp, 8
test al, al
je 0x41aabf
xor eax, eax
dec eax
lea esi, [esp + 8]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
push edi
call fcn.0041b590
mov cl, byte [esi + 0xb]
movzx eax, cl
test cl, cl
jns 0x41aa9d
mov edx, dword [esp + 0xc]
test edx, edx
je 0x41aade
mov esi, dword [esp + 8]
cmp word [esi + edx*2 - 2], 0x5c
je 0x41aac9
test cl, cl
jns 0x41a843
mov eax, dword [esp + 8]
jmp 0x41a847
lea eax, [esp + 8]
cmp byte [esp + 0x23], 0
jns 0x41a852
mov ebx, dword [esp + 0x18]
push eax
push ebx
call fcn.00496097
add esp, 8
test eax, eax
je 0x41aad3
movzx ebx, byte [esp + 0x13]
mov ecx, ebx
and ecx, 0x7c
test bl, bl
mov eax, dword [esp + 0xc]
cmovs ecx, eax
cmp ecx, 4
jb 0x41aad7
test bl, bl
jns 0x41a88a
mov eax, dword [esp + 8]
jmp 0x41a88e
lea eax, [esp + 8]
push 4
push 0x5093a0
push eax
call fcn.0049604b
add esp, 0xc
test eax, eax
sete al
mov edi, eax
jne 0x41a8e4
lea eax, [esp + 0x14]
lea esi, [esp + 8]
lea ecx, [esp + 0x28]
push eax
push 0xffffffffffffffff
push 4
push esi
call fcn.0041b4d0
cmp byte [esi + 0xb], 0
jns 0x41a8d0
push dword [esp + 8]
call fcn.00494aa1
add esp, 4
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
movsd xmm0, qword [esp + 0x28]
movsd qword [esp + 8], xmm0
mov eax, dword [esp + 0xc]
mov bl, byte [esp + 0x13]
mov ecx, ebx
and cl, 0x7f
test bl, bl
movzx ecx, cl
cmovs ecx, eax
cmp ecx, 3
jb 0x41aaff
test bl, bl
jns 0x41aae1
test eax, eax
je 0x41ab06
mov ecx, dword [esp + 8]
cmp word [ecx + 2], 0x3a
jne 0x41aaff
cmp eax, 2
jb 0x41ab09
cmp word [ecx + 4], 0x5c
jne 0x41aaff
movzx eax, word [ecx]
and eax, 0xffffffdf
add eax, 0xffffffbf
cmp ax, 0x1a
setb al
test al, al
jne 0x41a954
mov ecx, edi
xor cl, 1
je 0x41ab55
xor ecx, ecx
test al, al
je 0x41aaa6
mov dword [esp + 0x234], ecx
mov dword [esp + 4], 0
mov dword [esp + 0x230], ecx
lea edi, [esp + 0x28]
push 0x208
push 0xff
push edi
call fcn.00498980
add esp, 0xc
test bl, bl
jns 0x41a995
mov eax, dword [esp + 8]
jmp 0x41a999
lea eax, [esp + 8]
mov eax, dword [eax]
lea ecx, [esp + 0x230]
mov dword [ecx], eax
push 0x104
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
cmp eax, 2
jb 0x41aa5d
cmp eax, 0x104
je 0x41aa5d
push edi
call fcn.00495e86
add esp, 4
mov esi, eax
movzx eax, byte [esp + 0x13]
test al, al
jns 0x41a9df
mov eax, dword [esp + 0xc]
jmp 0x41a9e2
and eax, 0x7f
lea ecx, [esi + eax]
add ecx, 0xfffffffe
movzx eax, byte [esp + 0x23]
test al, al
jns 0x41a9f7
mov edx, dword [esp + 0x1c]
jmp 0x41a9fc
mov edx, eax
and edx, 0x7f
cmp ecx, edx
jne 0x41aaa6
test al, al
jns 0x41aa0e
mov eax, dword [esp + 0x18]
jmp 0x41aa12
lea eax, [esp + 0x18]
push esi
push edi
push eax
call fcn.0049604b
add esp, 0xc
test eax, eax
jne 0x41aaa6
lea ecx, [esp + 0xc]
mov eax, dword [ecx - 4]
add eax, 4
cmp byte [ecx + 7], 0
cmovns eax, ecx
cmp byte [esp + 0x23], 0
jns 0x41aa43
mov ecx, dword [esp + 0x18]
jmp 0x41aa47
lea ecx, [esp + 0x18]
lea ecx, [ecx + esi*2]
push eax
push ecx
call fcn.00496097
add esp, 8
test eax, eax
sete al
mov dword [esp + 4], eax
cmp byte [esp + 0x13], 0
jns 0x41aa70
push dword [esp + 8]
call fcn.00494aa1
add esp, 4
cmp byte [esp + 0x23], 0
jns 0x41aa83
push dword [esp + 0x18]
call fcn.00494aa1
add esp, 4
mov ecx, dword [esp + 0x238]
xor ecx, ebp
call fcn.00496ce3
mov eax, dword [esp + 4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
je 0x41aade
mov edx, eax
jmp 0x41a82d
mov dword [esp + 4], 0
jmp 0x41aa5d
xor ebx, ebx
jmp 0x41a7bd
mov al, 1
mov dword [esp + 4], eax
jmp 0x41aa83
mov dword [esp + 4], 0
jmp 0x41aa70
test cl, cl
jns 0x41ab0c
mov eax, dword [esp + 0xc]
jmp 0x41ab0f
mov al, 1
jmp 0x41aa59
xor edi, edi
jmp 0x41a8ec
int3
je 0x41ab06
cmp word [esp + 0xa], 0x3a
jne 0x41aaff
cmp bl, 1
jbe 0x41ab09
cmp ax, 0x5c
jne 0x41aaff
lea ecx, [esp + 8]
jmp 0x41a935
xor eax, eax
jmp 0x41a945
int3
int3
and eax, 0x7f
dec eax
lea edx, [esp + 0x14]
lea esi, [esp + 8]
lea ecx, [esp + 0x28]
push edx
push eax
push 0
push esi
call fcn.0041b4d0
cmp byte [esi + 0xb], 0
jns 0x41ab38
push dword [esp + 8]
call fcn.00494aa1
add esp, 4
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
movsd xmm0, qword [esp + 0x28]
movsd qword [esp + 8], xmm0
mov cl, byte [esp + 0x13]
jmp 0x41a839
xor eax, eax
lea esi, [esp + 0x28]
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esp + 4], 0
mov dword [esi + 8], eax
lea ecx, [esp + 0x18]
mov edx, esi
call fcn.00420c90
test al, al
je 0x41aba9
cmp byte [esp + 0x13], 0
jns 0x41ab87
mov eax, dword [esp + 8]
jmp 0x41ab8b
lea eax, [esp + 8]
cmp byte [esp + 0x33], 0
jns 0x41ab96
mov esi, dword [esp + 0x28]
push eax
push esi
call fcn.00496097
add esp, 8
test eax, eax
sete al
mov dword [esp + 4], eax
cmp byte [esp + 0x33], 0
jns 0x41aa5d
push dword [esp + 0x28]
call fcn.00494aa1
add esp, 4
jmp 0x41aa5d