Function at 0x10071410
Capabilities:
Get disk size

Disassembly:
sub esp, 0x30
mov eax, dword [0x10206870]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
push esi
xor ebx, ebx
test dword [ebp + 0xc], 0x40000
push edi
mov dword [esp + 0x24], ebp
je 0x10071626
mov ecx, dword [0x10228cd8]
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 0x1007162c
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x1007162c
mov eax, dword [eax + 4]
mov dword [esp + 0x30], eax
cmp eax, ebx
je 0x1007162c
mov esi, dword [eax + 4]
cmp esi, ebx
je 0x1007162c
mov eax, esi
call fcn.100705c0
mov eax, dword [esi + 0xa0]
cmp eax, ebx
je 0x10071605
mov ebp, dword [eax + 4]
cmp ebp, ebx
je 0x10071601
mov esi, dword [ebp + 4]
cmp esi, ebx
je 0x10071601
nop
mov al, byte [esi + 0x18]
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x3c], al
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x44]
push edx
mov byte [esp + 0x49], 0x3a
mov byte [esp + 0x4a], 0x5c
mov byte [esp + 0x4b], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x100715e9
mov eax, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test eax, eax
jge 0x100714fe
fadd qword [0x101f6c58]
mov ecx, dword [esp + 0x28]
fild dword [esp + 0x28]
test ecx, ecx
jge 0x10071510
fadd qword [0x101f6c58]
mov edx, dword [esp + 0x18]
fmulp st(1)
fild dword [esp + 0x18]
test edx, edx
jge 0x10071524
fadd qword [0x101f6c58]
fmulp st(1)
fstp qword [esi + 8]
mov eax, dword [esp + 0x1c]
fild dword [esp + 0x1c]
test eax, eax
jge 0x1007153b
fadd qword [0x101f6c58]
mov ecx, dword [esp + 0x20]
fild dword [esp + 0x20]
test ecx, ecx
jge 0x1007154d
fadd qword [0x101f6c58]
mov edx, dword [esp + 0x18]
fmulp st(1)
fild dword [esp + 0x18]
test edx, edx
jge 0x10071561
fadd qword [0x101f6c58]
mov edi, dword [esi + 0x20]
fmulp st(1)
fst qword [esi + 0x10]
cmp edi, ebx
je 0x100715e7
fld qword [0x101f6c38]
mov eax, dword [edi]
fmul st(1), st(0)
mov edx, dword [eax + 4]
fxch st(1)
mov ecx, edi
fdiv qword [esi + 8]
fstp dword [esp + 0x14]
fsub dword [esp + 0x14]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fmul dword [edi + 0x164]
fstp dword [edi + 0x158]
call edx
test eax, eax
je 0x100715e9
fld dword [edi + 0x158]
fld dword [edi + 0x160]
fcompp
fnstsw ax
test ah, 5
jp 0x100715c4
fld dword [edi + 0x158]
fstp dword [edi + 0x160]
fld dword [edi + 0x158]
fld dword [edi + 0x15c]
fcompp
fnstsw ax
test ah, 0x41
jne 0x100715e9
fld dword [edi + 0x158]
fstp dword [edi + 0x15c]
jmp 0x100715e9
fstp st(0)
cmp ebp, ebx
je 0x10071601
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x10071601
mov esi, dword [eax + 4]
mov ebp, eax
cmp esi, ebx
jne 0x100714b0
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x10071626
mov eax, dword [eax + 8]
cmp eax, ebx
je 0x10071626
mov dword [esp + 0x30], eax
mov eax, dword [eax + 4]
cmp eax, ebx
je 0x10071626
mov esi, eax
jmp 0x10071484
mov ecx, dword [0x10228cd8]
test dword [ebp + 0xc], 0x40000
je 0x1007169c
mov eax, ecx
and eax, 0x80000001
jns 0x10071643
dec eax
or eax, 0xfffffffe
inc eax
jne 0x1007169c
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x1007169c
mov esi, dword [eax + 4]
cmp esi, ebx
je 0x1007169c
mov edi, dword [esi + 4]
cmp edi, ebx
je 0x1007169c
lea ebx, [ebx]
push edi
mov ecx, ebp
call fcn.10070d60
mov ecx, edi
call fcn.10070c00
cmp esi, ebx
je 0x10071681
mov esi, dword [esi + 8]
cmp esi, ebx
je 0x10071681
mov edi, dword [esi + 4]
cmp edi, ebx
jne 0x10071660
inc dword [0x10228cd8]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1003dc89
add esp, 0x30
ret 4
pop edi
inc ecx
pop esi
mov dword [0x10228cd8], ecx
mov ecx, dword [esp + 0x34]
pop ebp
pop ebx
xor ecx, esp
call fcn.1003dc89
add esp, 0x30
ret 4