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

Disassembly:
push 0xffffffffffffffff
push 0x5bff80
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov eax, dword [0x617560]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call fcn.004c5ee1
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x42413b
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x5c], ebp
call fcn.004cdc49
push ebp
mov byte [esp + 0x60], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push ebp
call edi
mov esi, eax
test esi, esi
je 0x424209
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
mov ebp, eax
push 8
push ebp
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push esi
push 0
push ebp
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_HeapSize]
push eax
call edi
mov al, byte [esi]
test al, al
je 0x4241f7
mov edi, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp al, 0x41
je 0x4241e1
cmp al, 0x42
je 0x4241e1
push esi
call edi
cmp eax, 4
je 0x4241e1
push esi
call edi
cmp eax, 5
je 0x4241e1
push esi
call edi
cmp eax, 6
je 0x4241e1
push esi
call edi
test eax, eax
je 0x4241e1
push esi
call edi
cmp eax, 2
je 0x4241e1
mov ecx, dword [esp + 0x44]
push esi
push ecx
lea ecx, [esp + 0x44]
call fcn.004cdf00
push 0
push esi
call fcn.004e5678
add eax, 1
mov esi, eax
mov al, byte [esi]
add esp, 8
test al, al
jne 0x4241a3
mov edx, dword [esp + 0x18]
push edx
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x44]
xor esi, esi
test eax, eax
jle 0x42426d
mov edi, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test esi, esi
jl 0x4242ce
cmp esi, eax
jge 0x4242ce
mov eax, dword [esp + 0x40]
lea eax, [eax + esi*4]
push eax
lea ecx, [esp + 0x18]
call fcn.00404e20
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x3c]
push eax
push ebx
call edi
test eax, eax
je 0x424262
mov ecx, dword [esp + 0x24]
add dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x28]
adc ebp, edx
mov eax, dword [esp + 0x44]
add esi, 1
cmp esi, eax
jl 0x424219
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x1c]
shrd ecx, edx, 0x1e
shrd eax, ebp, 0x1e
shr ebp, 0x1e
shr edx, 0x1e
test ecx, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x68], ecx
jne 0x4242d3
push eax
mov eax, dword [esp + 0x68]
push str._u_G
push eax
call fcn.00405630
add esp, 0xc
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c], 0
call fcn.004cdce7
lea eax, [ebx - 0x10]
mov dword [esp + 0x5c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x424330
call fcn.004c788e
fild dword [esp + 0x18]
mov ecx, dword [esp + 0x64]
sub esp, 8
fidiv dword [esp + 0x70]
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fmul qword [0x600590]
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fstp qword [esp]
push eax
push str._u_G____2.2f____
push ecx
call fcn.00405630
add esp, 0x14
lea ecx, [esp + 0x3c]
mov byte [esp + 0x5c], 0
call fcn.004cdce7
lea eax, [ebx - 0x10]
mov dword [esp + 0x5c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42433c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0xc