Function at 0x40dfd0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458bc4
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x46c008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
xor eax, eax
mov dword [ebp - 0x24], eax
mov esi, dword [edi + 4]
mov dword [ebp - 0x20], eax
test esi, esi
je 0x40e033
nop dword [eax]
mov eax, dword [edi]
dec esi
mov edi, dword [eax + esi*4]
test edi, edi
je 0x40e02c
push dword [edi]
call fcn.0044a6fb
push 0xc
push edi
call fcn.0044a823
add esp, 0xc
mov edi, dword [ebp - 0x10]
test esi, esi
jne 0x40e010
cmp byte [0x46e2d1], 0
push 0
mov dword [edi + 4], 0
push 0
jne 0x40e243
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
call ebx
mov esi, eax
test esi, esi
je 0x40e251
push esi
call fcn.0044a831
add esp, 4
mov dword [ebp - 0x1c], eax
push eax
push esi
mov dword [ebp - 4], 0
call ebx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x40e239
cmp eax, esi
ja 0x40e239
push 4
call fcn.0044a831
mov ecx, 3
mov dword [ebp - 0x3c], eax
add esp, 4
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], ecx
mov byte [eax], 0
xor ebx, ebx
mov byte [ebp - 4], 1
cmp ebx, dword [ebp - 0x18]
jae 0x40e225
mov edi, dword [ebp - 0x18]
mov edx, 1
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x14], edx
nop dword [eax]
cmp byte [esi + edx - 1], 0
jne 0x40e214
add esi, ebx
xor ebx, ebx
cmp byte [esi], bl
je 0x40e112
inc ebx
cmp byte [ebx + esi], 0
jne 0x40e0e3
cmp ebx, ecx
jbe 0x40e112
lea eax, [ebx + 1]
push eax
call fcn.0044a831
push dword [ebp - 0x3c]
mov edi, eax
call fcn.0044a6fb
mov edx, dword [ebp - 0x14]
mov eax, edi
mov edi, dword [ebp - 0x10]
add esp, 8
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], ebx
mov ecx, eax
mov dword [ebp - 0x38], ebx
sub ecx, esi
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x40e120
mov dword [ebp - 0x2c], edx
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
mov esi, eax
mov byte [ebp - 4], 2
push 8
mov dword [ebp - 0x48], 0
call fcn.0044a831
mov ebx, dword [ebp - 0x20]
lea edx, [ebp - 0x3c]
xor ecx, ecx
mov dword [ebp - 0x48], eax
add esp, 4
mov dword [ebp - 0x44], 0
mov word [eax], cx
or ebx, 2
xor eax, eax
mov dword [ebp - 0x40], 3
test esi, esi
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x48]
sete al
push eax
call fcn.0040acb0
and ebx, 0xfffffffd
mov dword [ebp - 4], 1
or ebx, 1
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00409cc0
push 0xc
call fcn.0044a8ae
mov ebx, eax
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 4
xor ecx, ecx
mov esi, dword [ebp - 0x44]
mov edx, 2
mov dword [ebx], 0
lea edi, [esi + 1]
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044a831
lea ecx, [edi + edi]
mov dword [ebx + 4], esi
push ecx
mov dword [ebx + 8], esi
mov esi, dword [ebp - 0x48]
push esi
push eax
mov dword [ebx], eax
call fcn.0044b640
mov edi, dword [ebp - 0x10]
push esi
mov ecx, dword [edi + 4]
lea eax, [ecx + 1]
mov dword [edi + 4], eax
mov eax, dword [edi]
mov byte [ebp - 4], 1
mov dword [eax + ecx*4], ebx
call fcn.0044a6fb
mov eax, dword [ebp - 0x3c]
add esp, 0x18
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
inc edx
sub dword [ebp - 0x28], 1
mov dword [ebp - 0x14], edx
jne 0x40e0d0
cmp ebx, dword [ebp - 0x18]
push eax
sete bl
call fcn.0044a6fb
add esp, 4
push dword [ebp - 0x1c]
jmp 0x40e3b8
push dword [ebp - 0x1c]
xor bl, bl
jmp 0x40e3b8
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
call ebx
mov esi, eax
test esi, esi
jne 0x40e265
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044a831
add esp, 4
mov dword [ebp - 0x18], eax
push eax
push esi
mov dword [ebp - 4], 5
call ebx
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x40e3b3
cmp ebx, esi
ja 0x40e3b3
push 8
call fcn.0044a831
mov ecx, eax
mov dword [ebp - 0x44], 0
xor eax, eax
mov dword [ebp - 0x48], ecx
add esp, 4
mov dword [ebp - 0x40], 3
mov word [ecx], ax
xor esi, esi
mov byte [ebp - 4], 6
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], esi
test ebx, ebx
je 0x40e3a3
mov ecx, dword [ebp - 0x18]
mov ebx, 2
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dword [ebp - 0x24], ebx
nop dword [eax]
cmp word [ecx + ebx - 2], 0
jne 0x40e388
lea eax, [edx + ecx]
push eax
lea ecx, [ebp - 0x48]
call fcn.0040a450
lea eax, [esi + 1]
mov dword [ebp - 0x2c], ebx
mov ecx, edi
mov dword [ebp - 0x20], eax
call fcn.00409cc0
push 0xc
call fcn.0044a8ae
mov ebx, eax
mov dword [ebp - 0x30], ebx
mov byte [ebp - 4], 7
xor ecx, ecx
mov esi, dword [ebp - 0x44]
mov edx, 2
mov dword [ebx], 0
lea edi, [esi + 1]
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044a831
lea ecx, [edi + edi]
mov dword [ebx], eax
push ecx
push dword [ebp - 0x48]
mov dword [ebx + 4], esi
push eax
mov dword [ebx + 8], esi
call fcn.0044b640
mov edi, dword [ebp - 0x10]
add esp, 0x14
mov esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 6
mov ecx, dword [edi + 4]
lea eax, [ecx + 1]
mov dword [edi + 4], eax
mov eax, dword [edi]
mov dword [eax + ecx*4], ebx
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
inc esi
add ebx, 2
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], ebx
cmp esi, eax
jb 0x40e2f0
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x20]
cmp eax, ebx
push ecx
sete bl
call fcn.0044a6fb
add esp, 4
jmp 0x40e3b5
xor bl, bl
push dword [ebp - 0x18]
call fcn.0044a6fb
mov al, bl
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret