Function at 0x1001d8fe
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005f493
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push esi
push 3
lea ecx, [ebp - 0x58]
call fcn.1001ab0d
and dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
jmp 0x1001d938
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jge 0x1001d951
push dword [ebp - 0x14]
lea ecx, [ebp - 0x58]
call fcn.1001abab
mov dword [eax], 0xb110c93b
jmp 0x1001d931
mov dword [ebp - 0x14], 0
jmp 0x1001d961
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jge 0x1001d974
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x38], 0xbb4ebb0c
jmp 0x1001d95a
push 1
lea ecx, [ebp - 0x58]
call fcn.1001abab
mov dword [eax], 0xfffffff4
jmp 0x1001d99e
push 1
lea ecx, [ebp - 0x58]
call fcn.1001abab
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
push 1
lea ecx, [ebp - 0x58]
call fcn.1001abab
cmp dword [eax], 0x1c
jl 0x1001d9c3
mov dword [ebp - 0x34], 0x7596
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x34]
mov dword [ebp + eax - 0x38], ecx
jmp 0x1001d986
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.1001ab8f
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
push 3
lea ecx, [ebp - 0x64]
call fcn.1001ab0d
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], 0xfffffff7
mov dword [ebp - 0x18], 0
jmp 0x1001d9fd
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
jge 0x1001da16
push dword [ebp - 0x18]
lea ecx, [ebp - 0x64]
call fcn.1001abab
mov dword [eax], 0xc93b
jmp 0x1001d9f6
mov dword [ebp - 0x18], 0
jmp 0x1001da26
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jge 0x1001da39
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x4c], 0xed3c15d
jmp 0x1001da1f
mov dword [ebp - 0x1c], 0
jmp 0x1001da49
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 2
jg 0x1001da9e
mov dword [ebp - 0x24], 0
jmp 0x1001da5f
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
jge 0x1001da72
mov eax, dword [ebp - 0x24]
mov dword [ebp + eax*4 - 0x3c], 0xbb4ebb0c
jmp 0x1001da58
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x3c], 0xefc07e17
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x1001da9c
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x1001da42
push 2
lea ecx, [ebp - 0x64]
call fcn.1001abab
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp - 0x1c]
push 1
lea ecx, [ebp - 0x64]
call fcn.1001abab
cmp dword [eax], esi
jne 0x1001dac7
mov dword [ebp - 0x2c], 1
jmp 0x1001dacb
and dword [ebp - 0x2c], 0
push 0
lea ecx, [ebp - 0x64]
call fcn.1001abab
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [eax]
je 0x1001dae5
mov dword [ebp - 0x30], 1
jmp 0x1001dae9
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
neg eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0x4c], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.1001ab8f
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], 0x33a4
mov byte [ebp - 0xe], 0
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x1001db25
push 0
call dword [sym.imp.GDI32.dll_DeleteObject]
mov byte [ebp - 0xf], 0
movzx eax, byte [ebp - 0xf]
test eax, eax
je 0x1001db3c
push 0x1d5d
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
mov eax, dword [ebp - 0x20]
mov dword [eax], 0
jmp 0x1001db52
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax], 3
jge 0x1001db6f
mov eax, dword [ebp - 0x20]
push dword [eax]
mov ecx, dword [ebp - 0x40]
call fcn.1001abab
mov dword [eax], 0xb110c93b
jmp 0x1001db47
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret