Function at 0x1002a369
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10067c72
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x190
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1002a3c1
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x140], eax
push 0x6e4c
push dword [ebp - 0x10c]
push dword [ebp - 0x140]
push 1
call fcn.1002ad4f
add esp, 0x10
jmp 0x1002ad41
lea eax, [ebp + 8]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x128]
movzx eax, byte [eax]
test eax, eax
je 0x1002a98d
mov dword [ebp - 0x3c], 7
mov dword [ebp - 0x98], 0xc12a7b09
mov dword [ebp - 0x180], 0xe3f1571c
mov dword [ebp - 0x30], 0x8b421dd2
mov dword [ebp - 0x130], 0
mov dword [ebp - 0xd8], 0xd664087a
mov dword [ebp - 0x170], 0x50730467
mov dword [ebp - 0x16c], 0x50730467
mov dword [ebp - 0x168], 0x50730467
mov dword [ebp - 0x164], 0x50730467
lea ecx, [ebp - 0x45]
call fcn.1000dbe3
push eax
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x19c]
call fcn.1000dbe6
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x17c]
call fcn.1000db92
and dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x28], 0xdfe1602a
mov dword [ebp - 0x58], 0xf3ae864e
mov dword [ebp - 0x18], 0
jmp 0x1002a494
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jge 0x1002a4a7
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x50], 0xc75d
jmp 0x1002a48d
mov dword [ebp - 0x18], 0
jmp 0x1002a4b7
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
jge 0x1002a4cd
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x14c], 0x7a76
jmp 0x1002a4b0
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
jne 0x1002a65d
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x14c]
push 4
pop ecx
shl ecx, 0
mov ecx, dword [ebp + ecx - 0x14c]
inc ecx
push 4
pop edx
shl edx, 0
mov dword [ebp + edx - 0x14c], ecx
test eax, eax
jne 0x1002a609
push 4
pop eax
shl eax, 0
mov ecx, 0xafc4
sub ecx, dword [ebp + eax - 0x14c]
cmp ecx, 0xd241
jle 0x1002a530
mov dword [ebp - 0xdc], 1
jmp 0x1002a537
and dword [ebp - 0xdc], 0
mov eax, dword [ebp - 0x98]
cmp dword [ebp - 0xdc], eax
je 0x1002a54e
mov dword [ebp - 0x68], 1
jmp 0x1002a552
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x30]
add eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x3c]
jg 0x1002a569
mov dword [ebp - 0xc8], 1
jmp 0x1002a570
and dword [ebp - 0xc8], 0
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0xc8], eax
jle 0x1002a584
mov dword [ebp - 0x70], 1
jmp 0x1002a588
and dword [ebp - 0x70], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x50]
cmp dword [ebp - 0x70], eax
jg 0x1002a5a3
mov dword [ebp - 0xd0], 1
jmp 0x1002a5aa
and dword [ebp - 0xd0], 0
cmp dword [ebp - 0xd0], 0
jne 0x1002a5bc
mov dword [ebp - 0x78], 1
jmp 0x1002a5c0
and dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xd8]
push 4
pop ecx
imul ecx, ecx, 0
imul eax, dword [ebp + ecx - 0x50]
cmp eax, 0xb13f
jle 0x1002a5ea
mov dword [ebp - 0x80], 1
jmp 0x1002a5ee
and dword [ebp - 0x80], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x14c]
cmp dword [ebp - 0x80], eax
jg 0x1002a609
and dword [ebp - 0xe0], 0
jmp 0x1002a613
mov dword [ebp - 0xe0], 1
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 2
jb 0x1002a62e
mov dword [ebp - 0x88], 1
jmp 0x1002a635
and dword [ebp - 0x88], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x50]
cmp dword [ebp - 0x88], eax
jne 0x1002a64b
cmp dword [ebp - 0x30], 0
mov eax, 0xec5c
test eax, eax
jne 0x1002a65d
and dword [ebp - 0xe8], 0
jmp 0x1002a667
mov dword [ebp - 0xe8], 1
cmp dword [ebp - 0xe8], 0x85b90c32
jae 0x1002a67f
mov dword [ebp - 0x90], 1
jmp 0x1002a686
and dword [ebp - 0x90], 0
cmp dword [ebp - 0x90], 0xae5249f3
je 0x1002a69e
mov dword [ebp - 0xf0], 1
jmp 0x1002a6a5
and dword [ebp - 0xf0], 0
push 2
lea ecx, [ebp - 0x17c]
call fcn.1000dbd4
mov ecx, dword [ebp - 0xf0]
sub ecx, dword [eax]
add ecx, dword [ebp - 0x130]
cmp ecx, 0x21365d5a
jg 0x1002a6d4
mov dword [ebp - 0x11c], 1
jmp 0x1002a6db
and dword [ebp - 0x11c], 0
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x58], 0
jne 0x1002a6fb
or eax, 0xffffffff
jne 0x1002a6fb
and dword [ebp - 0xfc], 0
jmp 0x1002a705
mov dword [ebp - 0xfc], 1
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0xfc], eax
jle 0x1002a719
mov dword [ebp - 0x38], 1
jmp 0x1002a71d
and dword [ebp - 0x38], 0
push 2
lea ecx, [ebp - 0x17c]
call fcn.1000dbd4
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
mov eax, dword [ebp - 0x58]
cmp dword [ebp - 0x38], eax
jne 0x1002a743
mov dword [ebp - 0xf8], 1
jmp 0x1002a74a
and dword [ebp - 0xf8], 0
mov eax, dword [ebp - 0x58]
imul eax, dword [ebp - 0xf8]
cmp eax, 0x4c81e2e8
jle 0x1002a767
mov dword [ebp - 0xa4], 1
jmp 0x1002a76e
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x1002a78f
mov eax, 0x976cc225
test eax, eax
jne 0x1002a78f
and dword [ebp - 0x138], 0
jmp 0x1002a799
mov dword [ebp - 0x138], 1
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x184], eax
push 0xfffffffffffffffc
pop eax
test eax, eax
je 0x1002a7c1
mov dword [ebp - 0x124], 1
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x28], eax
jmp 0x1002a96f
mov byte [ebp - 0x1a], 0
movzx eax, byte [ebp - 0x1a]
test eax, eax
je 0x1002a7da
push 0
push 0x18d0
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov dword [ebp - 0x13c], 0x18f1
cmp dword [ebp - 0x13c], 0xab5
jge 0x1002a951
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x188]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x1000a1ec
call fcn.1004d4be
add esp, 0x10
and dword [ebp - 0x12c], 0
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x44]
lea ecx, [ebp - 0x108]
call fcn.10040ad7
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
and dword [ebp - 0x10], 0
cmp dword [ebp - 0x4c], 0
je 0x1002a942
lea eax, [ebp - 0x2c]
push eax
push 0x1000a0c8
call fcn.1004d4be
pop ecx
pop ecx
mov eax, dword [ebp - 0x2c]
shl eax, 1
cmp eax, dword [ebp - 0x134]
jg 0x1002a89b
and dword [ebp - 0x10], 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x108]
call fcn.1000dbd4
cmp dword [eax], 0
je 0x1002a899
push dword [ebp - 0x10]
lea ecx, [ebp - 0x108]
call fcn.1000dbd4
mov eax, dword [eax]
cmp eax, dword [ebp - 0x2c]
jg 0x1002a899
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
jmp 0x1002a868
jmp 0x1002a8d3
mov eax, dword [ebp - 0x44]
dec eax
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x108]
call fcn.1000dbd4
cmp dword [eax], 0
je 0x1002a8d3
push dword [ebp - 0x10]
lea ecx, [ebp - 0x108]
call fcn.1000dbd4
mov eax, dword [eax]
cmp eax, dword [ebp - 0x2c]
jl 0x1002a8d3
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
jmp 0x1002a8a2
push dword [ebp - 0x10]
lea ecx, [ebp - 0x108]
call fcn.1000dbd4
cmp dword [eax], 0
jne 0x1002a8f2
mov dword [ebp - 0xd4], 1
jmp 0x1002a8f9
and dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0xd4]
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x108]
call fcn.1000dbd4
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x10]
inc eax
push eax
push 0x1000a0cc
call fcn.1004d076
pop ecx
pop ecx
call fcn.1004f391
push 0x20
pop ecx
shl ecx, 0
add eax, ecx
push eax
call fcn.1004f520
pop ecx
jmp 0x1002a83d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x108]
call fcn.100243d2
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x1002a96f
push 0
push 0x14fb
push 0xc50
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x17c]
call fcn.1000dbb8
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyW]
jmp 0x1002ad41
mov dword [ebp - 0x110], 0x4c3c69ae
mov dword [ebp - 0x14], 0x182eac45
mov dword [ebp - 0xb4], 0x263126ff
mov dword [ebp - 0x54], 0xfffffff7
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0x24], 0xd8f8f576
mov dword [ebp - 0x114], 0x17b2
cmp dword [ebp - 0x114], 0x446
jge 0x1002aa4b
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0xac]
push eax
push 0x1000a0e8
call fcn.1004d4be
add esp, 0xc
or dword [ebp - 0xec], 0xffffffff
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x20], eax
jmp 0x1002aa0a
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0xac]
jle 0x1002aa39
push dword [ebp - 0xac]
push dword [ebp - 0x20]
call fcn.1002a1d5
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x1002aa37
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xec], eax
jmp 0x1002aa39
jmp 0x1002aa03
push dword [ebp - 0xec]
push 0x1000a0cc
call fcn.1004d076
pop ecx
pop ecx
mov dword [ebp - 0x6c], 0x352f76ec
mov dword [ebp - 0xc0], 0x205b2906
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x15c], 0xbc9c3d06
mov dword [ebp - 0x158], 0xbc9c3d06
mov dword [ebp - 0x154], 0xbc9c3d06
mov dword [ebp - 0x150], 0xbc9c3d06
mov dword [ebp - 0x5c], 0xb17b722b
mov eax, dword [ebp - 0x14]
sub eax, 0x151ee88f
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
add eax, dword [ebp - 0x14]
imul eax, eax, 0xa81f
cmp eax, dword [ebp - 0x54]
jle 0x1002aabd
mov dword [ebp - 0x60], 1
jmp 0x1002aac1
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x60], eax
je 0x1002aad5
mov dword [ebp - 0xbc], 1
jmp 0x1002aadc
and dword [ebp - 0xbc], 0
mov eax, dword [ebp - 0xbc]
sub eax, dword [ebp - 0x54]
cmp eax, 1
jb 0x1002aaf6
mov dword [ebp - 0x120], 1
jmp 0x1002aafd
and dword [ebp - 0x120], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x194], eax
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x14], eax
je 0x1002ab26
mov dword [ebp - 0xf4], 1
jmp 0x1002ab2d
and dword [ebp - 0xf4], 0
cmp dword [ebp - 0xf4], 7
je 0x1002ab42
mov dword [ebp - 0xc4], 1
jmp 0x1002ab49
and dword [ebp - 0xc4], 0
mov eax, dword [ebp - 0xc0]
imul eax, dword [ebp - 0xc4]
cmp eax, dword [ebp - 0x54]
jle 0x1002ab67
mov dword [ebp - 0xe4], 1
jmp 0x1002ab6e
and dword [ebp - 0xe4], 0
cmp dword [ebp - 0xe4], 0x40c8e82
jne 0x1002ab86
mov dword [ebp - 0xcc], 1
jmp 0x1002ab8d
and dword [ebp - 0xcc], 0
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0xcc], eax
jge 0x1002aba4
mov dword [ebp - 0x9c], 1
jmp 0x1002abab
and dword [ebp - 0x9c], 0
cmp dword [ebp - 0x9c], 0xffffffff
jne 0x1002abc7
push 5
pop eax
test eax, eax
je 0x1002abc7
mov dword [ebp - 0xa0], 1
jmp 0x1002abce
and dword [ebp - 0xa0], 0
mov eax, dword [ebp - 0xb0]
cmp dword [ebp - 0xa0], eax
je 0x1002abe8
mov dword [ebp - 0xa8], 1
jmp 0x1002abef
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xa8]
sub eax, 0xed5e
cmp eax, 0xfff6
jne 0x1002ac13
cmp dword [ebp - 0xb0], 0
jne 0x1002ac13
and dword [ebp - 0xb8], 0
jmp 0x1002ac1d
mov dword [ebp - 0xb8], 1
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0xb8]
jne 0x1002ac31
mov dword [ebp - 0x64], 1
jmp 0x1002ac35
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x6c], eax
jne 0x1002ac55
mov dword [ebp - 0x74], 1
jmp 0x1002ac59
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x74], eax
jle 0x1002ac6a
mov dword [ebp - 0x7c], 1
jmp 0x1002ac6e
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x7c], eax
jg 0x1002ac82
mov dword [ebp - 0x84], 1
jmp 0x1002ac89
and dword [ebp - 0x84], 0
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0x15c], 0xd7770b16
cmp dword [ebp - 0x84], 0xd7770b16
je 0x1002acb2
mov dword [ebp - 0x8c], 1
jmp 0x1002acb9
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x5c]
dec eax
mov dword [ebp - 0x5c], eax
imul eax, dword [ebp - 0x8c], 0x5f6
cmp dword [ebp - 0x5c], eax
jg 0x1002acdb
mov dword [ebp - 0x94], 1
jmp 0x1002ace2
and dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x94]
sub eax, 0x399d012c
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], 0
jmp 0x1002ad00
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jg 0x1002ad31
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x34]
mov dword [ebp + eax*4 - 0x15c], ecx
mov byte [ebp - 0x1b], 0
movzx eax, byte [ebp - 0x1b]
test eax, eax
je 0x1002ad2f
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x1002acf9
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret