Function at 0x1008a730
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x100bbc0b
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100e87b8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x40]
xor edi, edi
mov dword [esp + 0x18], edi
mov dword [ebp], edi
mov dword [ebp + 4], edi
push esi
lea ecx, [esp + 0x18]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.1007f440
push 0x100c2258
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], edi
call fcn.10080fc0
test eax, eax
jne 0x1008a7bf
lea eax, [esp + 0x28]
push esi
push eax
call fcn.100819b0
add esp, 8
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x3c], 1
call fcn.1007f5b0
mov byte [esp + 0x38], 0
lea ecx, [esp + 0x28]
jmp 0x1008a877
lea ecx, [esp + 0x14]
call fcn.1007ed80
cmp eax, 2
jg 0x1008a809
push 2
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call fcn.1007f840
push 0x5c
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x44], 2
mov dword [esp + 0x24], 1
call fcn.10080830
add esp, 0xc
mov dword [esp + 0x38], 3
mov ebx, 3
jmp 0x1008a822
push 3
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
call fcn.1007f840
mov ebx, 4
mov dword [esp + 0x38], ebx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebx
call fcn.1007f5b0
test bl, 4
mov dword [esp + 0x38], 3
je 0x1008a84d
and ebx, 0xfffffffb
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], ebx
call fcn.1007ece0
test bl, 2
mov dword [esp + 0x38], 2
je 0x1008a86a
and ebx, 0xfffffffd
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], ebx
call fcn.1007ece0
test bl, 1
mov dword [esp + 0x38], edi
je 0x1008a87c
lea ecx, [esp + 0x20]
call fcn.1007ece0
lea ecx, [esp + 0x14]
call fcn.1007edb0
test eax, eax
je 0x1008a8b0
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.1007ece0
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push str.GetDiskFreeSpaceExW
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
xor esi, esi
cmp ebx, edi
je 0x1008a8f8
mov ecx, dword [esp + 0x44]
push ebp
push ecx
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call fcn.1007ee00
push eax
call ebx
mov esi, eax
cmp esi, edi
jne 0x1008a97f
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
call fcn.1007ee00
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x1008a97f
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
xor ebx, ebx
push ebx
push ebp
xor ecx, ecx
push ecx
push eax
call fcn.100afa90
push edi
push esi
push edx
push eax
call fcn.100afa90
mov ecx, dword [esp + 0x44]
push ebx
mov dword [ecx], eax
push ebp
xor eax, eax
push eax
mov eax, dword [esp + 0x34]
push eax
mov dword [ecx + 4], edx
call fcn.100afa90
push edi
push esi
push edx
push eax
call fcn.100afa90
mov ecx, dword [esp + 0x48]
mov dword [ecx], eax
mov dword [ecx + 4], edx
lea esi, [ebx + 1]
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.1007ece0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret