Function at 0x40d820
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x411d48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x6d]
mov byte [esp + 0x6c], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [esp + 0x17]
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x20], al
call fcn.00409e60
mov edi, str.._
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x20]
push ebp
call fcn.00403cf0
test al, al
je 0x40d8b0
mov edi, dword [esp + 0x20]
mov ecx, ebp
mov edx, ecx
mov esi, str.._
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.00409eb0
mov dword [esp + 0x94], ebx
mov ebx, dword [esp + 0x9c]
mov esi, 1
push ebx
push esi
lea ecx, [esp + 0x24]
call fcn.0040a850
mov edi, 0x418960
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x418960
lea ecx, [esp + 0x24]
call fcn.0040e390
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40d8f9
mov eax, 0x4126d8
lea ecx, [esp + 0x6c]
push 0x20
lea edx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x20]
push 0
push ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp eax, esi
jne 0x40d9b0
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x14]
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
push str._08X
lea eax, [esp + 0x34]
push 0x20
push eax
call sub.MSVCRT.dll__snprintf
lea edi, [esp + 0x3c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0xa0]
push esi
not ecx
dec ecx
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00403cf0
test al, al
je 0x40d990
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00409eb0
push 1
lea ecx, [esp + 0x20]
mov dword [esp + 0x98], 0xffffffff
call fcn.00409e60
mov eax, 1
jmp 0x40db4c
cmp dword [0x413190], esi
jne 0x40d9bd
call fcn.0040e56d
push esi
push esi
lea ecx, [esp + 0x24]
call fcn.00403cf0
test al, al
je 0x40d9e3
mov ecx, dword [esp + 0x20]
movsx eax, bl
mov ah, al
mov byte [ecx], al
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], esi
mov byte [eax + 1], 0
mov edi, 0x41896c
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x413190]
sub ecx, edx
cmp ecx, esi
ja 0x40da09
call fcn.0040e56d
test esi, esi
jbe 0x40da4e
mov edx, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x20]
lea ebp, [edx + esi]
push ebp
call fcn.00403cf0
test al, al
je 0x40da4e
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov ecx, esi
mov esi, 0x41896c
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
call fcn.00409eb0
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40da5b
mov eax, 0x4126d8
lea ecx, [esp + 0x6c]
push 0x20
lea edx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x20]
push 0
push ecx
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp eax, 1
jne 0x40db26
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x4d]
mov byte [esp + 0x4c], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x14]
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
push str._08X
lea eax, [esp + 0x54]
push 0x20
push eax
call sub.MSVCRT.dll__snprintf
lea edi, [esp + 0x5c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
mov ebx, dword [esp + 0xa0]
push 1
not ecx
dec ecx
mov ebp, ecx
mov ecx, ebx
push ebp
call fcn.00403cf0
test al, al
je 0x40daf6
mov edi, dword [ebx + 4]
mov ecx, ebp
mov edx, ecx
lea esi, [esp + 0x4c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 4]
mov dword [ebx + 8], ebp
mov byte [eax + ebp], 0
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x40db1f
mov al, byte [ecx - 1]
test al, al
je 0x40db15
cmp al, 0xff
je 0x40db15
dec al
mov byte [ecx - 1], al
mov eax, 1
jmp 0x40db4c
dec ecx
push ecx
call fcn.0040e562
add esp, 4
mov eax, 1
jmp 0x40db4c
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x40db4a
mov al, byte [ecx - 1]
test al, al
je 0x40db40
cmp al, 0xff
je 0x40db40
dec al
mov byte [ecx - 1], al
jmp 0x40db4a
dec ecx
push ecx
call fcn.0040e562
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x88
ret