Function at 0x1001f43
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1cfc
call fcn.01006660
mov eax, dword [0x1008010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor ebx, ebx
push 0x5c
mov dword [ebp - 0x1c68], eax
xor edi, edi
lea eax, [ebp - 0x1cf8]
inc edi
push ebx
push eax
mov dword [ebp - 0x1c78], ebx
mov dword [ebp - 0x1c6c], edi
mov dword [ebp - 0x1c7c], edi
mov dword [ebp - 0x1c84], 0x80004005
mov dword [ebp - 0x1cfc], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push 0x1001478
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [ebp - 0x1c70], edi
cmp edi, ebx
je 0x1001fe6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1001fe6
push esi
call fcn.01001c3f
mov dword [ebp - 0x1c6c], ebx
jmp 0x1002578
mov dword [0x1008034], esi
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.01006c7f
cmp eax, ebx
mov dword [ebp - 0x1c84], eax
jl 0x1002578
push esi
call fcn.0100396f
lea eax, [ebp - 0x1c80]
push eax
lea eax, [ebp - 0x1c64]
push eax
push dword [ebp - 0x1c68]
mov dword [ebp - 0x1c64], ebx
mov dword [ebp - 0x1c80], ebx
call fcn.010018c7
test eax, eax
jne 0x100204b
push ebx
push 0x100146c
push 0x10013c8
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1002578
push 4
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x1c68]
call fcn.01001b0f
mov esi, eax
neg eax
sbb eax, eax
and eax, 0x100
or dword [ebp - 0x1c64], eax
push dword [ebp - 0x1c64]
call fcn.01001dce
cmp eax, 2
jne 0x100208b
cmp edi, ebx
je 0x100239f
push edi
jmp 0x1002393
cmp esi, ebx
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
jne 0x10020a2
test byte [ebp - 0x1c64], 3
je 0x1002181
test byte [ebp - 0x1c64], 2
jne 0x1002197
push 0x6c0
call fcn.01001885
pop ecx
cmp eax, ebx
je 0x10020d9
push dword [ebp - 0x1c80]
lea ecx, [ebp - 0xc]
push dword [ebp - 0x1c64]
push ecx
mov ecx, eax
call fcn.0100581a
mov edi, eax
jmp 0x10020db
xor edi, edi
cmp edi, ebx
je 0x1002378
cmp dword [edi + 0x6b0], ebx
jne 0x1002363
cmp dword [edi], 0x1a
jne 0x100232e
cmp dword [edi + 0x670], ebx
je 0x100212a
push 0xffffffffffffffff
push dword [edi + 0x66c]
mov dword [edi + 0x6b0], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x66c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x6b0], ebx
lea eax, [ebp - 0xc]
push eax
push 0x65
call fcn.01005b85
pop ecx
pop ecx
push 0x100
mov dword [ebp - 0x1c74], eax
lea eax, [ebp - 0xf68]
push eax
push 0x13
push dword [0x1008034]
call esi
push 0x10030
lea eax, [ebp - 0xf68]
push eax
push dword [ebp - 0x1c74]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x1c74]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 1
mov ecx, edi
call fcn.01001d4e
lea eax, [ebp - 0xc]
push eax
call fcn.0100628c
test eax, eax
jne 0x10020a2
jmp 0x1002578
push 0x3a
pop eax
mov word [ebp - 0x12], ax
push 0x5c
pop eax
mov word [ebp - 0x10], ax
xor eax, eax
mov word [ebp - 0xe], ax
mov dword [ebp - 0x1c68], 0x41
mov ax, word [ebp - 0x1c68]
push 0x6c0
mov word [ebp - 0x14], ax
call fcn.01001885
pop ecx
cmp eax, ebx
je 0x10021ea
push dword [ebp - 0x1c80]
lea ecx, [ebp - 0x14]
push dword [ebp - 0x1c64]
push ecx
mov ecx, eax
call fcn.0100581a
mov edi, eax
jmp 0x10021ec
xor edi, edi
cmp edi, ebx
je 0x100225d
cmp dword [edi + 0x6b0], ebx
jne 0x1002204
cmp dword [edi], 0x1a
je 0x1002204
mov ecx, edi
call fcn.010044ab
mov eax, dword [edi + 0x670]
cmp eax, ebx
je 0x1002216
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 0x658]
mov dword [ebp - 0x1c6c], eax
cmp dword [edi + 0x670], ebx
je 0x1002254
push 0xffffffffffffffff
push dword [edi + 0x66c]
mov dword [edi + 0x6b0], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x66c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x6b0], ebx
push 1
mov ecx, edi
call fcn.01001d4e
inc dword [ebp - 0x1c68]
cmp word [ebp - 0x1c68], 0x5a
jbe 0x10021b5
push 0x10013ac
push 0x1001398
push ebx
call dword [sym.imp.SHLWAPI.dll_Ordinal_271]
test eax, eax
je 0x100228c
mov dword [ebp - 0x1c7c], ebx
cmp dword [ebp - 0x1c7c], ebx
je 0x1002578
test byte [ebp - 0x1c64], 0x18
je 0x1002578
lea eax, [ebp - 0x1c8c]
push eax
lea eax, [ebp - 0x1c9c]
push eax
lea eax, [ebp - 0x1c94]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x1c8c]
mov ecx, dword [ebp - 0x1c88]
shrd eax, ecx, 0x14
shr ecx, 0x14
test byte [ebp - 0x1c64], 8
mov dword [ebp - 0x1c74], eax
mov edi, 0x33e
je 0x1002442
cmp eax, 0x12c
jae 0x10023fc
push 0x32c
cmp eax, 0x50
lea eax, [ebp - 0x6ec]
push eax
push 0x4b1
push dword [0x1008034]
jae 0x10023c0
call esi
push edi
lea eax, [ebp - 0xd68]
push eax
push 0x4b3
jmp 0x10023cf
push edi
push ebx
call fcn.01003765
test eax, eax
je 0x100235d
or dword [edi + 0x65c], 0x80000000
test byte [ebp - 0x1c64], 5
jne 0x1002363
cmp dword [edi + 0x668], ebx
je 0x1002363
mov ecx, edi
call fcn.010044ab
jmp 0x1002363
mov dword [ebp - 0x1c7c], ebx
mov eax, dword [edi + 0x658]
push 1
mov ecx, edi
mov dword [ebp - 0x1c6c], eax
call fcn.01001d4e
cmp dword [ebp - 0x1c6c], 5
jne 0x1002271
cmp dword [ebp - 0x1c70], ebx
je 0x100239f
push dword [ebp - 0x1c70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c70], ebx
push dword [ebp + 0x14]
push dword [ebp - 0x1c68]
push ebx
call fcn.01001e2e
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 0x1c6c], ecx
jmp 0x1002578
call esi
push edi
lea eax, [ebp - 0xd68]
push eax
push 0x4b2
push dword [0x1008034]
call esi
push 0x40
lea eax, [ebp - 0x94]
push eax
push 0x4b0
push dword [0x1008034]
call esi
mov dword [ebp - 0x1c78], 0xffff
jmp 0x10024a9
push 0x40
lea eax, [ebp - 0x94]
push eax
push 0x4b6
push dword [0x1008034]
call esi
push 0x32c
lea eax, [ebp - 0x6ec]
push eax
push 0x4b8
push dword [0x1008034]
call esi
push edi
lea eax, [ebp - 0xd68]
push eax
push 0x4b7
push dword [0x1008034]
call esi
jmp 0x10024a9
test byte [ebp - 0x1c64], 0x10
je 0x10024a0
cmp eax, 0x32
push 0x40
lea eax, [ebp - 0x94]
push eax
jae 0x1002405
push 0x4b0
push dword [0x1008034]
call esi
push 0x32c
lea eax, [ebp - 0x6ec]
push eax
push 0x4b4
push dword [0x1008034]
call esi
push edi
lea eax, [ebp - 0xd68]
push eax
push 0x4b5
push dword [0x1008034]
call esi
mov dword [ebp - 0x1c78], 0xfffe
jmp 0x10024a9
xor eax, eax
mov word [ebp - 0x6ec], ax
cmp word [ebp - 0x6ec], bx
je 0x10024d3
push dword [ebp - 0x1c74]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x6ec]
push eax
lea eax, [ebp - 0x15e4]
push edi
push eax
call fcn.01001ee4
add esp, 0x14
push 0x32c
lea eax, [ebp - 0x6ec]
push eax
push 0x4b9
push dword [0x1008034]
call esi
lea eax, [ebp - 0x6ec]
push eax
lea eax, [ebp - 0xd68]
push eax
push 0x100136c
lea eax, [ebp - 0x1c60]
push edi
push eax
call fcn.01001ee4
add esp, 0x14
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x1ce8], ecx
mov ecx, dword [ebp - 0x1c78]
xor eax, eax
inc eax
push ebx
mov dword [ebp - 0x1ce4], ecx
push ebx
lea ecx, [ebp - 0x15e4]
mov dword [ebp - 0x1cec], eax
mov dword [ebp - 0x1cf0], eax
mov dword [ebp - 0x1cd0], eax
mov dword [ebp - 0x1ce0], ecx
push ebx
lea eax, [ebp - 0x1cfc]
lea ecx, [ebp - 0x1c60]
push eax
mov dword [ebp - 0x1cfc], 0x60
mov dword [ebp - 0x1cdc], ecx
mov dword [ebp - 0x1ca8], 0x1001d74
call dword [sym.imp.COMCTL32.dll_Ordinal_345]
push dword [ebp - 0x1c84]
call fcn.01006cba
call fcn.01003985
cmp dword [ebp - 0x1c70], ebx
pop edi
pop esi
pop ebx
je 0x100259f
push dword [ebp - 0x1c70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1c6c]
xor ecx, ebp
call fcn.0100663c
leave
ret 0x10