Function at 0x1000a650
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060f3f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1000a714
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x60]
movzx eax, byte [eax]
test eax, eax
je 0x1000a6e9
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x1000a6ca
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 2
jge 0x1000a6e7
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x38]
call fcn.1000461c
mov dword [eax], 0xa9f65634
jmp 0x1000a6bf
jmp 0x1000a70f
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
movzx eax, byte [eax]
test eax, eax
je 0x1000a70f
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x1000a931
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x48], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x50], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0x40], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
test eax, eax
je 0x1000a91b
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x20], 0x76820624
mov dword [ebp - 0x74], 0xfffffffe
push 3
lea ecx, [ebp - 0x80]
call fcn.1000457d
and dword [ebp - 4], 0
mov dword [ebp - 0x84], 0x4185a1fa
mov dword [ebp - 0x28], 1
push 1
push 0x36c4
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x80]
push eax
push 0x76f2
push 0x4d6e
push 0x5477
push 0x5c21
push 1
push 0x31ec
push 0x558d
push 0x338c
push 0x35d0
push 0
push 0x5d0b
push 0x46dc
call fcn.100124ed
add esp, 0x40
mov dword [ebp - 0x20], 0
jmp 0x1000a7e5
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
je 0x1000a7fb
push 0
push 0x72db
call fcn.1000c104
pop ecx
pop ecx
jmp 0x1000a7de
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.10004600
lea ecx, [ebp - 0x9c]
call fcn.100044d9
mov dword [ebp - 4], 1
push 0
lea eax, [ebp - 0x9c]
push eax
push dword [ebp - 0x30]
call fcn.1000c0c8
add esp, 0xc
and dword [ebp - 0x18], 0
jmp 0x1000a841
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [eax]
jae 0x1000a889
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
add eax, dword [ebp - 0x18]
xor edx, edx
div dword [0x1007899c]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 4]
movzx edx, byte [eax + edx]
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x34]
mov ecx, dword [ecx]
movzx ecx, byte [ecx + eax]
call fcn.1000786c
push eax
lea ecx, [ebp - 0x9c]
call fcn.10004512
jmp 0x1000a83a
mov dword [ebp - 0x24], 0x2667a876
mov dword [ebp - 0x1c], 0
jmp 0x1000a8a0
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 3
jge 0x1000a8b6
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0xac], 1
jmp 0x1000a899
mov dword [ebp - 0x24], 0
jmp 0x1000a8c6
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 2
jg 0x1000a8ea
mov byte [ebp - 0xd], 0
push 0x718a
push 0x67b8
push 0
lea eax, [ebp - 0xd]
push eax
call fcn.1000a61f
add esp, 0x10
jmp 0x1000a8bf
lea eax, [ebp - 0x9c]
push eax
mov ecx, dword [ebp - 0x58]
call fcn.100044f4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x9c]
call fcn.100044ea
jmp 0x1000a931
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret