Function at 0x40f910
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.0041fbb5
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 0x40fbaa
mov eax, dword [ebp]
mov dword [esp + 0x14], ebx
cmp eax, ebx
jbe 0x40fbaa
lea edi, [ebp + 0x1c]
mov dword [esp + 0x18], edi
mov eax, dword [edi]
test eax, eax
jbe 0x40fb8f
push eax
lea ecx, [esp + 0x68]
push 0x4530f4
push ecx
call fcn.0041f1e7
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.0042feea
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.00409b60
add esp, 0xc
lea ecx, [esp + 0x44]
push ecx
push 1
push ebx
mov ecx, ebp
call fcn.0042ffaf
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 0x40fa52
mov edi, 0x4569e8
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.0042ffaf
mov eax, dword [edi - 0xc]
mov edx, dword [edi - 8]
mov ecx, 0x14
call fcn.00420290
push edx
push eax
lea edx, [esp + 0x6c]
push str._d_MB
push edx
call fcn.0041f1e7
add esp, 0x10
lea eax, [esp + 0x64]
mov ecx, ebp
push eax
push 3
push ebx
call fcn.0042ffaf
lea ecx, [esp + 0x44]
push ecx
call fcn.00409ca0
add esp, 4
cmp eax, 0xffffffff
jne 0x40fad8
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 0x40fb3d
lea ecx, [esp + 0x44]
push ecx
call fcn.00409ca0
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 [0x4439c8]
fstp qword [esp + 0x18]
call fcn.00420290
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 [0x4439c8]
fstp qword [esp]
push str._4.2f__
push edx
call fcn.0041f1e7
add esp, 0x10
lea eax, [esp + 0x64]
mov ecx, ebp
push eax
push 4
push ebx
call fcn.0042ffaf
xor edx, edx
lea ecx, [esp + 0x64]
mov dl, byte [edi + 4]
push ecx
push edx
call fcn.0040f700
add esp, 8
lea eax, [esp + 0x64]
mov ecx, ebp
push eax
push 5
push ebx
call fcn.0042ffaf
mov al, byte [edi + 5]
test al, al
mov eax, 0x453cb4
jne 0x40fb7f
mov eax, 0x453cb0
push eax
push 6
push ebx
mov ecx, ebp
call fcn.0042ffaf
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 0x40f99a
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret