Function at 0x10572ae
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
mov eax, dword [0x1075318]
cmp eax, 0x1075318
je 0x10572e3
test dword [eax + 0x1c], 0x20000000
je 0x10572e3
push 0x100f0b8
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01016edb
push 1
push 0x3b7
push 0x100f230
lea ecx, [ebp - 0x48]
call fcn.01055826
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0x88]
mov dword [ebp - 0x8c], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x90]
mov dword [ebp - 0x94], ebx
stosd dword es:[edi], eax
lea edi, [ebp - 0x80]
mov dword [ebp - 0x84], ebx
stosd dword es:[edi], eax
push 0xa
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x54], 0x1010420
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
cmp eax, ebx
je 0x105735b
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x1057367
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x1057373
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov edx, dword [ebp + 8]
mov eax, 0x3cb
cmp edx, ebx
jne 0x105738f
mov dword [ebp - 0x48], 0x80070057
mov word [ebp - 0x42], ax
jmp 0x1057537
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x44], ax
call fcn.0106470b
mov dword [ebp - 0x48], eax
cmp eax, ebx
mov eax, 0x3cd
jl 0x1057386
push 0x5c
pop edx
lea ecx, [ebp - 0x54]
mov word [ebp - 0x44], ax
call fcn.0106469a
mov dword [ebp - 0x48], eax
cmp eax, ebx
mov eax, 0x3ce
jl 0x1057386
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x10573fa
call fcn.0105d3b8
mov dword [ebp - 0x48], eax
mov eax, 0x3d3
jmp 0x1057386
mov eax, 0x3d3
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x18]
push eax
sub esp, 0x10
mov edi, esp
mov esi, 0x100a514
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
mov esi, 0x100f0c8
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x48], ebx
movsd dword es:[edi], dword [esi]
call fcn.0102e0a3
mov dword [ebp - 0x48], eax
cmp eax, ebx
mov eax, 0x3d7
jl 0x1057386
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 0x54]
mov word [ebp - 0x44], ax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov dword [ebp - 0x48], eax
cmp eax, ebx
mov eax, 0x3d8
jl 0x1057386
mov word [ebp - 0x44], ax
lea esi, [eax + 0xd]
push dword [ebp - 0x74]
mov edi, dword [sym.imp.ole32.dll_CoTaskMemFree]
call edi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], ebx
call edi
push 0xa
pop ecx
lea edx, [ebp - 0x14]
push edx
xor eax, eax
lea edx, [ebp - 0x7c]
push edx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x1c]
push 1
mov dword [ebp - 0x14], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
mov dword [ebp - 0x48], eax
jl 0x10574eb
mov ecx, esi
mov word [ebp - 0x44], cx
cmp eax, 1
je 0x10574f5
cmp dword [ebp - 0x14], 1
jne 0x1057466
cmp dword [ebp - 0x7c], 3
jne 0x1057466
mov eax, dword [ebp - 0x5c]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x6c]
adc dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x64]
add dword [ebp - 8], eax
mov eax, dword [ebp - 0x60]
mov edi, ecx
adc dword [ebp - 4], eax
mov eax, dword [ebp - 0x68]
and edi, eax
or edx, 0xffffffff
cmp edi, edx
je 0x10574f1
add dword [ebp - 0x24], ecx
adc dword [ebp - 0x20], eax
jmp 0x1057466
mov word [ebp - 0x42], si
jmp 0x1057537
mov ecx, edx
jmp 0x10574fb
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x1057507
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x1057519
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x105752b
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
mov dword [eax + 4], ecx
mov eax, 0x408
mov dword [ebp - 0x48], ebx
mov word [ebp - 0x44], ax
push dword [ebp - 0x74]
mov esi, dword [sym.imp.ole32.dll_CoTaskMemFree]
call esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], ebx
call esi
mov esi, dword [ebp - 0x48]
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x70], ebx
call fcn.010635b3
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x1057565
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x1057572
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [ebp - 0x48]
call fcn.01055a3c
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10