Function at 0x40fbd0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b8
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x1004
mov dword [esp + 0x28], esi
call fcn.0041ff85
mov ebp, eax
add esp, 4
mov ecx, 0x401
xor eax, eax
mov edi, ebp
xor ebx, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x37c]
push ebx
push ebx
push 0x1009
push eax
mov dword [esp + 0x38], ebp
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 0x8c]
lea ecx, [esp + 0x40]
push ebx
push ecx
mov eax, dword [edx]
push 0x1004
push ebp
push ebx
push ebx
push 0x7400c
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40fe6a
mov eax, dword [ebp]
mov dword [esp + 0x14], ebx
cmp eax, ebx
jbe 0x40fe6a
lea edi, [ebp + 0x1c]
mov dword [esp + 0x18], edi
mov eax, dword [edi]
test eax, eax
jbe 0x40fe4f
push eax
lea ecx, [esp + 0x68]
push 0x4530f4
push ecx
call fcn.0041f5b7
add esp, 0xc
lea edx, [esp + 0x64]
lea ebp, [esi + 0x360]
push 0
push 0
push 0
push 0
push edx
push ebx
push 3
mov ecx, ebp
call fcn.004302da
mov edx, dword [esi + 0x8c]
mov ecx, dword [edi]
lea eax, [esp + 0x44]
push eax
mov eax, dword [edx + 4]
push ecx
push eax
call fcn.00409cc0
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
push 1
push ebx
mov ecx, ebp
call fcn.0043039f
push 0
lea edx, [esp + 0x40]
push 0
push edx
push 0
push 0
lea eax, [esp + 0xdc]
push 0x64
lea ecx, [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x40fd12
mov edi, 0x456d28
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc8]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0xc8]
push ecx
push 2
push ebx
mov ecx, ebp
call fcn.0043039f
mov eax, dword [edi - 0xc]
mov edx, dword [edi - 8]
mov ecx, 0x14
call fcn.00420750
push edx
push eax
lea edx, [esp + 0x6c]
push str._d_MB
push edx
call fcn.0041f5b7
add esp, 0x10
lea eax, [esp + 0x64]
mov ecx, ebp
push eax
push 3
push ebx
call fcn.0043039f
lea ecx, [esp + 0x44]
push ecx
call fcn.00409e00
add esp, 4
cmp eax, 0xffffffff
jne 0x40fd98
or ecx, eax
mov edi, str.0.00_
xor eax, eax
lea edx, [esp + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x24]
jmp 0x40fdfd
lea ecx, [esp + 0x44]
push ecx
call fcn.00409e00
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
fild qword [esp + 0x38]
mov eax, dword [edi - 0xc]
mov edx, dword [edi - 8]
add esp, 4
mov ecx, 0x14
fmul qword [0x4439d8]
fstp qword [esp + 0x18]
call fcn.00420750
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], edx
fild qword [esp + 0x2c]
sub esp, 8
lea edx, [esp + 0x6c]
fdivr qword [esp + 0x20]
fsubr qword [0x4439d8]
fstp qword [esp]
push str._4.2f__
push edx
call fcn.0041f5b7
add esp, 0x10
lea eax, [esp + 0x64]
mov ecx, ebp
push eax
push 4
push ebx
call fcn.0043039f
xor edx, edx
lea ecx, [esp + 0x64]
mov dl, byte [edi + 4]
push ecx
push edx
call fcn.0040f9c0
add esp, 8
lea eax, [esp + 0x64]
mov ecx, ebp
push eax
push 5
push ebx
call fcn.0043039f
mov al, byte [edi + 5]
test al, al
mov eax, 0x453ff4
jne 0x40fe3f
mov eax, 0x453ff0
push eax
push 6
push ebx
mov ecx, ebp
call fcn.0043039f
mov ebp, dword [esp + 0x28]
inc ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp]
inc eax
add edi, 0x20
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
jb 0x40fc5a
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret