Function at 0x45fda0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push 8
lea ebx, [esi + 0x3c]
mov byte [ebp - 0x18], 0
push ebx
mov dword [ebp - 0x17], edi
call dword [sym.imp.WINMM.dll_timeGetDevCaps]
test eax, eax
je 0x45fdd4
int3
mov eax, dword [ebx]
cmp eax, 1
mov edx, eax
ja 0x45fde2
mov edx, 1
mov ecx, dword [esi + 0x40]
cmp edx, ecx
jae 0x45fdf5
cmp eax, 1
ja 0x45fdf7
mov eax, 1
jmp 0x45fdf7
mov eax, ecx
push eax
mov dword [esi + 0x44], eax
call dword [sym.imp.WINMM.dll_timeBeginPeriod]
lea eax, [esi + 0x4c]
push 3
lea ecx, [ebp - 0x18]
push eax
push ecx
call fcn.00463390
add esp, 0xc
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x45fe30
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp + 8]
lea ecx, [ebp + 8]
push eax
lea edx, [ebp - 4]
push ecx
lea eax, [ebp + 8]
push edx
lea ecx, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push eax
bsf eax, dword [ebp - 4]
mov byte [ebp - 8], al
pop eax
mov ebx, dword [ebp - 8]
mov byte [esi + 0x10], bl
call fcn.0045ffd0
test eax, eax
je 0x45fe6d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x14]
mov dword [ebp - 8], edi
mov ecx, eax
shr ecx, 2
mov dword [ebp - 0x10], ecx
mov dword [esi + 0x18], ecx
mov ecx, dword [esi + 0x158]
mov dword [ebp - 0xc], ecx
fild qword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edi
fild qword [ebp - 0xc]
fld st(0)
fmul st(2)
fmul dword [0x46ec68]
call fcn.00462860
fld dword [0x46e2c0]
fdiv st(1)
mov edi, eax
and ebx, 0xff
mov ecx, ebx
imul edi, dword [esi + 0xc]
fdivr st(2)
mov edx, edi
mov dword [esi + 4], edi
shr edx, cl
lea eax, [edx + 1]
mov dword [ebp - 8], eax
mov dword [esi + 0x1c], eax
call fcn.00462860
mov edx, 1
mov ecx, ebx
shl edx, cl
fstp st(0)
fstp st(0)
imul edx, dword [ebp - 8]
cmp edx, eax
jae 0x45fefd
call fcn.0045fce0
mov eax, 0x80004005
mov dword [esi + 0x184], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov eax, 0x10624dd3
mul dword [esi + 0x158]
shr edx, 6
imul ecx, edx
xor edx, edx
lea eax, [esi + 0x150]
mov dword [ebp - 0x2c], edx
xor ebx, ebx
mov dword [ebp - 0x28], edx
push ebx
mov dword [ebp - 0x24], edx
mov dword [esi + 0x18c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x2c], 0x14
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x1c], eax
mov eax, dword [0x62e0b0]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x28], pe_nt_image_headers32
mov dword [ebp - 0x24], edi
mov ecx, dword [eax]
push esi
push edx
push eax
call dword [ecx + 0xc]
mov edi, eax
cmp edi, ebx
mov dword [esi + 0x184], edi
je 0x45ff76
call fcn.0045fce0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
call fcn.0045fd40
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x24], ebx
mov al, cl
or ch, 0x40
test al, 4
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x180], 1
mov dword [esi + 0x30], ecx
je 0x45ffbd
call fcn.00460240
mov edi, eax
cmp edi, ebx
mov dword [esi + 0x184], edi
je 0x45ffbd
call fcn.0045fce0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x184]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4