Function at 0x41ca80
Capabilities:
Get disk information
Get disk size
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x462fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x478ec8]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
call fcn.00401000
cmp eax, 1
jne 0x41cb6d
mov ecx, dword [0x47a880]
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov eax, dword [ecx]
mov eax, dword [eax + 0x74]
lea edx, [esp + 0x1c]
push edx
call eax
mov ecx, dword [0x47a880]
mov edx, dword [ecx]
mov edx, dword [edx + 0x80]
lea eax, [esp + 0x24]
push eax
call edx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
shrd ecx, eax, 0x14
mov dword [esp + 0x34], ecx
shr eax, 0x14
mov ecx, eax
and eax, 0x7fffffff
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x20]
and ecx, 0x80000000
fild qword [esp + 0x34]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], esi
shrd edx, eax, 0x14
fild qword [esp + 0x34]
shr eax, 0x14
fchs
mov ecx, eax
faddp st(1)
and eax, 0x7fffffff
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
and ecx, 0x80000000
fild qword [esp + 0x34]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], esi
fild qword [esp + 0x34]
fchs
faddp st(1)
fsubr st(1)
fdivrp st(1)
jmp 0x41ccd4
fldz
fst qword [esp + 0x34]
fstp qword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x1c], eax
je 0x41cccc
mov bl, 0x41
jbe 0x41cccc
mov ebp, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea esp, [esp]
test al, 1
je 0x41ccbb
push 0x46f8b9
lea ecx, [esp + 0x1c]
call fcn.00417f60
movsx eax, bl
push eax
lea ecx, [esp + 0x1c]
push 0x4679b0
push ecx
mov dword [esp + 0x84], esi
call fcn.00416580
mov edx, dword [esp + 0x24]
add esp, 0xc
push edx
call ebp
cmp eax, 3
jne 0x41cc8f
mov edx, dword [esp + 0x18]
push esi
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x41cc8f
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov eax, edx
sub eax, dword [esp + 0x44]
mov edi, ecx
sbb edi, dword [esp + 0x48]
mov dword [esp + 0x24], eax
mov eax, edi
mov edi, dword [esp + 0x24]
shrd edi, eax, 0x14
shr eax, 0x14
mov dword [esp + 0x4c], edi
mov edi, eax
and eax, 0x7fffffff
mov dword [esp + 0x50], eax
and edi, 0x80000000
mov dword [esp + 0x58], edi
fild qword [esp + 0x4c]
mov dword [esp + 0x54], esi
shrd edx, ecx, 0x14
fild qword [esp + 0x54]
shr ecx, 0x14
fchs
mov eax, ecx
faddp st(1)
and ecx, 0x7fffffff
and eax, 0x80000000
mov dword [esp + 0x5c], edx
fadd qword [esp + 0x2c]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x64], esi
fstp qword [esp + 0x2c]
fild qword [esp + 0x5c]
fild qword [esp + 0x64]
fchs
faddp st(1)
fadd qword [esp + 0x34]
fstp qword [esp + 0x34]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x78], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ccb7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
shr eax, 1
add bl, 1
cmp eax, esi
mov dword [esp + 0x1c], eax
ja 0x41cba0
fld qword [esp + 0x2c]
fdiv qword [esp + 0x34]
fmul qword [0x467478]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret