Function at 0x100fae70
Capabilities:
Get disk size

Disassembly:
sub esp, 0x38
mov eax, dword [0x10291440]
xor eax, esp
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x50]
push ebx
push ebp
mov ebp, dword [esp + 0x48]
push edi
mov edi, dword [esp + 0x48]
mov dword [esp + 0x28], ecx
test edi, edi
jne 0x100fae99
mov dword [ecx], edi
jmp 0x100faebd
mov eax, dword [edi]
mov dword [ecx], 0
test eax, eax
je 0x100faebd
test byte [eax + 0x80], 6
je 0x100faebd
push ebp
push str.fileops:_open__s
push edi
call fcn.100d0b10
add esp, 0xc
mov ebx, dword [esp + 0x54]
push 0x3ff
push ebx
push str.__os_open
push edi
call fcn.100d0a90
add esp, 0x10
test eax, eax
jne 0x100fb277
mov ecx, ebp
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100faee2
sub ecx, edx
mov dword [esp + 0x10], 0
push esi
lea eax, [ecx + 1]
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], eax
push ecx
add eax, eax
push eax
push edi
call fcn.100dc800
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100fb248
push dword [esp + 0x1c]
push dword [esp + 0x18]
push 0xffffffffffffffff
push ebp
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x100faf49
call fcn.100f3810
push eax
call fcn.100f3830
mov esi, eax
add esp, 4
test esi, esi
jne 0x100fb248
lea eax, [esp + 0x10]
push eax
push 0x3c
push 1
push edi
call fcn.100dc7a0
add esp, 0x10
test eax, eax
jne 0x100fb276
mov eax, dword [esp + 0x10]
add eax, 0x1c
push eax
push ebp
push edi
call fcn.100dc8f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x100fb248
test edi, edi
je 0x100faff1
mov eax, dword [edi + 4]
test eax, eax
je 0x100faf98
push eax
push edi
call fcn.100dbf50
add esp, 8
test eax, eax
jne 0x100fafd1
mov eax, dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x5c]
mov dword [eax + 4], ecx
mov ecx, dword [edi + 0x5c]
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
mov ecx, dword [edi + 4]
mov eax, dword [esp + 0x10]
mov dword [edi + 0x5c], eax
test ecx, ecx
je 0x100fafed
push ecx
push edi
call fcn.100dc5b0
add esp, 8
test eax, eax
je 0x100fafe9
pop esi
pop edi
pop ebp
mov eax, 0xffff8702
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.1021eb98
add esp, 0x38
ret
mov eax, dword [esp + 0x10]
or byte [eax + 0x38], 1
mov eax, ebx
shl eax, 0x19
not eax
and eax, 0xc0000000
or eax, 0x80000000
mov dword [esp + 0x28], eax
call fcn.1011b6d0
neg eax
mov ecx, ebx
mov edx, 0x80
sbb eax, eax
and ecx, 0x12
and eax, 4
add eax, 3
mov dword [esp + 0x1c], eax
cmp cl, 0x12
jne 0x100fb032
mov dword [esp + 0x18], 1
jmp 0x100fb06e
mov eax, ebx
and eax, 0x202
cmp eax, 0x200
jne 0x100fb04a
mov dword [esp + 0x18], 5
jmp 0x100fb06e
test ebx, 0x200
je 0x100fb05c
mov dword [esp + 0x18], 2
jmp 0x100fb06e
test bl, 2
mov eax, 0
setne al
add eax, 3
mov dword [esp + 0x18], eax
test bl, 8
je 0x100fb080
mov eax, dword [esp + 0x10]
mov edx, 0x80000080
or byte [eax + 0x38], 2
test bl, 0x80
mov esi, 0x8000000
mov eax, 0x10000000
cmove esi, eax
or esi, edx
mov dword [esp + 0x20], esi
test ebx, 0x100
je 0x100fb0a8
or esi, 0x4000000
mov dword [esp + 0x20], esi
test bl, 4
je 0x100fb119
cmp dword [esp + 0x54], 0
je 0x100fb119
cmp byte [ebp], 0
je 0x100fb119
cmp byte [ebp + 1], 0x3a
jne 0x100fb0e0
mov eax, dword [esp + 0x14]
lea ebx, [esp + 0x3c]
movzx eax, word [eax]
push eax
push str._c:_
mov eax, ebx
push 8
push eax
call fcn.100fb290
add esp, 0x10
jmp 0x100fb0e2
xor ebx, ebx
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x44]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x100fb119
mov eax, dword [esp + 0x54]
xor edx, edx
div dword [esp + 0x24]
test edx, edx
jne 0x100fb119
or esi, 0x20000000
mov dword [esp + 0x20], esi
mov eax, dword [esp + 0x10]
mov ebx, 2
mov ebp, dword [esp + 0x28]
mov dword [eax + 0x14], 0xffffffff
mov eax, dword [esp + 0x10]
mov dword [eax + 0x10], 0xffffffff
mov eax, dword [esp + 0x10]
mov edx, dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [eax + 0x10], 0xffffffff
jne 0x100fb173
push 0
push esi
push dword [esp + 0x20]
push 0
push dword [esp + 0x2c]
push ebp
push dword [esp + 0x2c]
call edx
mov ecx, dword [esp + 0x10]
mov edx, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x10], 0xffffffff
je 0x100fb1a2
mov ecx, dword [esp + 0x58]
test ecx, 0x120
jne 0x100fb1a6
cmp dword [eax + 0x14], 0xffffffff
jne 0x100fb1a6
push 0
push esi
push 3
push 0
push dword [esp + 0x2c]
push ebp
push dword [esp + 0x2c]
call edx
mov ecx, dword [esp + 0x10]
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x58]
cmp dword [eax + 0x10], 0xffffffff
je 0x100fb1ba
test ecx, 0x120
jne 0x100fb1f6
cmp dword [eax + 0x14], 0xffffffff
jne 0x100fb1f6
call fcn.100f3810
push eax
call fcn.100f3830
mov esi, eax
add esp, 4
cmp esi, 0x17
je 0x100fb1d9
cmp esi, 0x18
je 0x100fb1d9
cmp esi, 0x1c
jne 0x100fb248
cmp ebx, 6
jg 0x100fb248
push 0
push ebx
push edi
call fcn.1015c310
mov esi, dword [esp + 0x2c]
add esp, 0xc
add ebx, 2
jmp 0x100fb138
mov edx, dword [esp + 0x14]
test edx, edx
je 0x100fb218
push edx
push edi
call fcn.100dc7e0
mov eax, dword [esp + 0x18]
add esp, 8
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x14], 0
test cl, 0x40
je 0x100fb225
or byte [eax + 0x38], 0x10
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
or byte [eax + 0x38], 4
mov eax, dword [esp + 0x10]
pop esi
pop edi
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.1021eb98
add esp, 0x38
ret
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100fb262
push eax
push edi
call fcn.100dc7e0
add esp, 8
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100fb274
push eax
push edi
call fcn.100facb0
add esp, 8
mov eax, esi
pop esi
mov ecx, dword [esp + 0x40]
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.1021eb98
add esp, 0x38
ret