Function at 0x10021055
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005f7b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x15c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x100215be
mov eax, dword [ebp + 8]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 0x58]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x64]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x98], eax
lea eax, [ebp + 0x28]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp + 0x5c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x50]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp + 0x60]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x54]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x40], 0x3d4f
mov dword [ebp - 0xc0], str.iotr_lvrnnj_ulp_rrsueelg_efwhkyszq_kzjheveeh_rkoztfoc_oib_gtnwfdom_axhfk
cmp dword [ebp - 0x40], 0x406b
jle 0x100211e9
and dword [ebp - 0x24], 0
jmp 0x1002114a
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x5c5
jge 0x100211d9
and dword [ebp - 0x20], 0
jmp 0x10021164
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x46dd
jge 0x100211d4
and dword [ebp - 0x2c], 0
jmp 0x1002117a
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x2059
jge 0x100211d2
and dword [ebp - 0x28], 0
jmp 0x10021190
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x70a
jge 0x100211d0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
shl eax, cl
mov ecx, dword [ebp - 0x2c]
shl eax, cl
mov ecx, dword [ebp - 0x28]
sar eax, cl
cdq
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x158], edx
push dword [ebp - 0x158]
push dword [ebp - 0x15c]
mov ecx, 0x1007ab78
call fcn.10001bfe
jmp 0x10021189
jmp 0x10021173
jmp 0x1002115d
jmp 0x10021143
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14c], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x40], 0x3d00
jge 0x1002120f
mov edx, dword [ebp - 0xc0]
mov ecx, 0x1007ab78
call fcn.100039fb
jmp 0x1002122b
or dword [ebp - 4], 0xffffffff
jmp 0x10021235
mov eax, dword [ebp - 0xf0]
movzx eax, byte [eax]
test eax, eax
je 0x1002141d
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x14c]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x154], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0xffffffff
ja 0x100213fe
mov eax, dword [ebp - 0xc8]
mov dword [eax], 0xffff
mov eax, 0xffff
test eax, eax
je 0x1002134d
mov eax, 0xa165
test eax, eax
je 0x1002134d
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x1002134d
mov dword [ebp - 0x5c], 1
jmp 0x10021351
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
sub eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x118]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x10021376
push 0xfffffffffffffff7
pop eax
test eax, eax
jne 0x10021376
and dword [ebp - 0x4c], 0
jmp 0x1002137d
mov dword [ebp - 0x4c], 1
push 1
mov ecx, dword [ebp - 0xd0]
call fcn.1000f063
mov eax, dword [eax]
sub eax, dword [ebp - 0x4c]
jne 0x100213a0
mov eax, 0xa81a82e7
test eax, eax
jne 0x100213a0
and dword [ebp - 0x6c], 0
jmp 0x100213a7
mov dword [ebp - 0x6c], 1
mov esi, dword [ebp - 0x6c]
neg esi
push 0
mov ecx, dword [ebp - 0x150]
call fcn.1000f063
cmp esi, dword [eax]
jne 0x100213c8
mov eax, dword [ebp - 0xd8]
cmp dword [eax], 0
jne 0x100213d6
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x100213d6
and dword [ebp - 0x30], 0
jmp 0x100213dd
mov dword [ebp - 0x30], 1
push 0
mov ecx, dword [ebp - 0x120]
call fcn.1000f063
mov ecx, dword [ebp - 0x30]
mov dword [eax], ecx
cmp dword [ebp - 0x30], 0
je 0x100213fe
mov dword [ebp - 0x38], 1
jmp 0x10021402
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
jmp 0x100215b9
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x128]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x54]
mov dword [eax], 0
mov eax, dword [ebp - 0x68]
mov dword [eax], 0
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x3c]
cmp dword [eax], 0
jne 0x10021567
mov eax, dword [ebp - 0xf4]
mov ecx, dword [ebp - 0x54]
mov ecx, dword [ecx]
cmp ecx, dword [eax]
jl 0x1002151a
mov dword [ebp - 0x64], 1
jmp 0x1002151e
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0xfc]
mov eax, dword [eax]
cmp dword [ebp - 0x64], eax
jge 0x10021534
mov dword [ebp - 0x34], 1
jmp 0x10021538
and dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
cmp dword [ebp - 0x34], eax
jle 0x10021553
mov dword [ebp - 0x44], 1
jmp 0x10021557
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
cmp dword [ebp - 0x44], eax
jne 0x10021567
and dword [ebp - 0x50], 0
jmp 0x1002156e
mov dword [ebp - 0x50], 1
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
cmp dword [ebp - 0x50], eax
je 0x10021584
mov dword [ebp - 0x104], 1
jmp 0x1002158b
and dword [ebp - 0x104], 0
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x60]
mov eax, dword [eax]
mov dword [ebp - 0x168], eax
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x68]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x100216cd
lea eax, [ebp + 0x30]
mov dword [ebp - 0x11c], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp - 0x134], eax
mov dword [ebp - 0x70], 0x3d83
mov dword [ebp - 0x114], str.djtyuh_fgfpeadxx_wqq_qzntxlpx_ocbhotg_tgsyzqnm_bgauo_wdph_hzmyfuul
cmp dword [ebp - 0x70], 0x3f2e
jle 0x1002164e
and dword [ebp - 0x18], 0
jmp 0x10021600
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xeb1
jge 0x1002164e
and dword [ebp - 0x1c], 0
jmp 0x10021616
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x77a0
jge 0x1002164c
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
sar eax, cl
cdq
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], edx
push dword [ebp - 0x140]
push dword [ebp - 0x144]
mov ecx, 0x1007ab78
call fcn.10001bfe
jmp 0x1002160f
jmp 0x100215f9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x12c], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x70], 0x3cad
jge 0x10021677
mov edx, dword [ebp - 0x114]
mov ecx, 0x1007ab78
call fcn.100039fb
jmp 0x10021693
or dword [ebp - 4], 0xffffffff
jmp 0x1002169d
mov eax, dword [ebp - 0x11c]
push dword [eax]
mov eax, dword [ebp - 0x124]
push dword [eax]
push dword [ebp - 0x12c]
push 0
push 0x3c0d
push dword [ebp - 0x134]
push 0x696f
call fcn.10022e9b
add esp, 0x1c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret