Function at 0x42a2a0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x5c8810]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
test dword [esi + 8], 0x40000
push edi
mov dword [esp + 0x10], esi
je 0x42a47a
mov ecx, dword [0x5ca3b0]
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*4]
add eax, eax
mov edx, ecx
sub edx, eax
jne 0x42a486
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x42a486
mov edi, dword [eax + 4]
mov dword [esp + 0x24], edi
cmp edi, ebx
je 0x42a486
mov esi, dword [edi + 4]
cmp esi, ebx
je 0x42a482
jmp 0x42a320
mov ecx, dword [esp + 0x10]
push esi
call fcn.00427f30
mov eax, dword [esi + 0xa0]
cmp eax, ebx
je 0x42a455
mov edi, dword [eax + 4]
cmp edi, ebx
je 0x42a451
mov esi, dword [edi + 4]
cmp esi, ebx
je 0x42a451
mov edi, edi
mov al, byte [esi + 0x18]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x34], al
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x3c]
push edx
mov byte [esp + 0x41], 0x3a
mov byte [esp + 0x42], 0x5c
mov byte [esp + 0x43], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x42a439
mov eax, dword [esp + 0x14]
fild dword [esp + 0x14]
test eax, eax
jge 0x42a39e
fadd qword [0x568da8]
mov ecx, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test ecx, ecx
jge 0x42a3b0
fadd qword [0x568da8]
mov edx, dword [esp + 0x18]
fmulp st(1)
fild dword [esp + 0x18]
test edx, edx
jge 0x42a3c4
fadd qword [0x568da8]
fmulp st(1)
fstp qword [esi + 8]
mov eax, dword [esp + 0x14]
fild dword [esp + 0x14]
test eax, eax
jge 0x42a3db
fadd qword [0x568da8]
mov ecx, dword [esp + 0x28]
fild dword [esp + 0x28]
test ecx, ecx
jge 0x42a3ed
fadd qword [0x568da8]
mov edx, dword [esp + 0x18]
fmulp st(1)
fild dword [esp + 0x18]
test edx, edx
jge 0x42a401
fadd qword [0x568da8]
mov ecx, dword [esi + 0x20]
fmulp st(1)
fst qword [esi + 0x10]
cmp ecx, ebx
je 0x42a437
fld qword [0x565fb0]
push 1
fmul st(1), st(0)
push ecx
fxch st(1)
fdiv qword [esi + 8]
fstp dword [esp + 0x14]
fsub dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fstp dword [esp]
call fcn.0042b550
jmp 0x42a439
fstp st(0)
cmp edi, ebx
je 0x42a451
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x42a451
mov esi, dword [eax + 4]
mov edi, eax
cmp esi, ebx
jne 0x42a350
mov edi, dword [esp + 0x24]
cmp edi, ebx
je 0x42a476
mov eax, dword [edi + 8]
cmp eax, ebx
je 0x42a476
mov dword [esp + 0x24], eax
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x42a476
mov edi, dword [esp + 0x24]
mov esi, eax
jmp 0x42a320
mov esi, dword [esp + 0x10]
mov ecx, dword [0x5ca3b0]
jmp 0x42a486
mov esi, dword [esp + 0x10]
test dword [esi + 8], 0x40000
je 0x42a4f2
mov eax, ecx
and eax, 0x80000001
jns 0x42a49d
dec eax
or eax, 0xfffffffe
inc eax
jne 0x42a4f2
mov eax, dword [esi + 0x1c]
cmp eax, ebx
je 0x42a4f2
mov esi, dword [eax + 4]
cmp esi, ebx
je 0x42a4f2
mov edi, dword [esi + 4]
cmp edi, ebx
je 0x42a4f2
mov ecx, dword [esp + 0x10]
push edi
call fcn.00429f30
mov ecx, dword [esp + 0x10]
push edi
call fcn.004277c0
cmp esi, ebx
je 0x42a4da
mov esi, dword [esi + 8]
cmp esi, ebx
je 0x42a4da
mov edi, dword [esi + 4]
cmp edi, ebx
jne 0x42a4b4
inc dword [0x5ca3b0]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.0053081c
mov esp, ebp
pop ebp
ret
inc ecx
pop edi
mov dword [0x5ca3b0], ecx
mov ecx, dword [esp + 0x30]
pop esi
pop ebx
xor ecx, esp
call fcn.0053081c
mov esp, ebp
pop ebp
ret