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

Disassembly:
sub esp, 0x4c8
mov eax, dword [str.Free_Disk_Space]
mov ecx, dword [0x40e384]
mov edx, dword [0x40e388]
push ebx
push ebp
push esi
mov dword [esp + 0x3c], eax
mov eax, dword [0x40e38c]
push edi
xor ebx, ebx
push str.kernel32.dll
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
je 0x401b0a
push str.GetDiskFreeSpaceExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push esi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x401b0e
mov edi, dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x2c]
mov edx, 1
mov ecx, ebx
shl edx, cl
test eax, edx
je 0x401cdf
lea ecx, [ebx + 0x41]
lea edx, [esp + 0x60]
push ecx
push str._c:_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x6c]
push 0x40e350
push eax
call fcn.00405930
add esp, 0x14
test eax, eax
jne 0x401b82
lea ecx, [esp + 0x60]
push 0x40e34c
push ecx
call fcn.00405930
add esp, 8
test eax, eax
jne 0x401b82
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [esp + 0x34], eax
cmp dword [esp + 0x34], 3
jne 0x401cdf
test edi, edi
je 0x401be4
lea eax, [esp + 0x38]
lea ecx, [esp + 0x58]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x68]
push edx
push eax
call edi
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x164]
push ecx
push edx
push eax
call fcn.00402390
add esp, 0xc
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x6c]
push ecx
push edx
fstp st(0)
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
jmp 0x401c24
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x6c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x164]
imul eax, dword [esp + 0x18]
imul eax, dword [esp + 0x10]
push edx
push eax
call fcn.004022a0
fstp st(0)
add esp, 8
lea ecx, [esp + 0x2ec]
push 0x80
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x30]
push edx
lea ecx, [esp + 0x30]
push eax
push ecx
lea edx, [esp + 0x27c]
push 0x80
lea eax, [esp + 0x78]
push edx
push eax
call ebp
lea ecx, [esp + 0x60]
lea edx, [esp + 0x370]
push ecx
push 0x40e198
push edx
call fcn.004059b0
mov edi, 0x40e348
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x6c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 6
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x70]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x174]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x70]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x54]
push ecx
call fcn.00402af0
mov edi, dword [esp + 0x38]
add esp, 0x18
inc ebx
cmp ebx, 0x20
jb 0x401b1e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x4c8
ret