Function at 0x40c500
Capabilities:
Delete volume shadow copies

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40c9c8
sub esp, 0x50
mov eax, dword [esp + 0x58]
test eax, eax
je 0x40c9af
movzx ecx, byte [eax + 4]
test cl, 4
jne 0x40c999
mov ecx, dword [esp + 0x54]
mov edx, dword [ecx + 0x2c]
mov ebx, dword [edx]
mov ebp, dword [eax + 8]
mov esi, dword [esp + 0x5c]
mov dword [esp], esi
mov dword [esp + 4], ebp
call ebx
mov eax, dword [esp + 8]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x58]
movzx ebx, byte [ecx + 4]
xor ebx, 4
mov byte [ecx + 4], bl
mov ebx, dword [ecx + 0xc]
test ebx, ebx
jne 0x40c5b1
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x28]
mov edx, dword [ecx]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov byte [esp + 8], 1
call fcn.0040a920
mov eax, dword [0x6573b0]
mov ecx, dword [esp + 0xc]
test eax, eax
jne 0x40c599
mov eax, dword [esp + 0x58]
mov dword [eax + 0xc], ecx
jmp 0x40c5a9
mov ebx, dword [esp + 0x58]
lea edi, [ebx + 0xc]
mov eax, ecx
call fcn.0045f3d0
mov eax, ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
jmp 0x40c5d9
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.0040d0b0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x18]
mov eax, edx
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
movzx ebp, byte [ecx + 5]
mov edx, ecx
mov ecx, ebp
mov esi, 1
shl esi, cl
lea ebp, [esi - 1]
and ebp, eax
mov esi, dword [edx + 0x10]
test esi, esi
je 0x40c618
mov dword [esp + 0x1c], ebp
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
call fcn.0040d280
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x1c]
movzx esi, word [ebx + 0x32]
imul ebp, esi
add ebp, dword [edx + 0xc]
mov esi, eax
shr eax, 0x18
cmp al, 5
jae 0x40c62f
add eax, 5
mov byte [esp + 0x13], al
xor ecx, ecx
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x38], ecx
xor ecx, ecx
jmp 0x40c6c6
mov esi, dword [esp + 0x38]
jmp 0x40c650
mov ebp, edi
mov esi, dword [esp + 0x38]
mov edi, dword [edx + 0x10]
test edi, edi
jne 0x40c842
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ecx
mov edi, dword [edx]
inc edi
movzx eax, byte [edx + 5]
cmp edi, 8
jle 0x40c69a
mov dword [esp + 0x44], esi
mov ecx, eax
mov ebp, 1
shl ebp, cl
shr ebp, 1
lea esi, [ebp + ebp*2]
lea ebp, [ebp + esi*4]
cmp ebp, edi
jb 0x40c5b7
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x44]
movzx edi, word [edx + 6]
cmp al, 0xf
jbe 0x40c6a8
mov eax, 0xf
and eax, 0xf
mov ecx, eax
mov ebp, 1
shl ebp, cl
cmp di, bp
jae 0x40c5b7
jmp 0x40c835
mov esi, dword [esp + 0x18]
mov dword [esp + 0x3c], ebp
mov byte [esp + 0x24], al
xor eax, eax
mov dword [esp + 0x14], eax
movzx eax, byte [esp + 0x24]
jmp 0x40c702
movzx esi, word [ebx + 0x32]
lea ebp, [ebp + esi - 4]
mov ebp, dword [ebp]
test ebp, ebp
jne 0x40c6c2
jmp 0x40c64a
inc esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x38], edi
mov esi, dword [esp + 0x18]
mov edi, ebp
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x14]
cmp esi, 8
jae 0x40c6db
mov dword [esp + 0x30], edi
test byte [ebp], al
movzx edi, byte [ebp + esi]
add ebp, esi
xchg edi, ebx
cmp al, bl
xchg edi, ebx
je 0x40c783
xchg edi, eax
cmp al, 1
xchg edi, eax
ja 0x40c76c
test ecx, ecx
jne 0x40c76c
movzx eax, byte [ebx + 0x30]
imul esi, eax
mov dword [esp + 0x20], esi
movzx ebx, byte [ebx + 0x31]
mov esi, dword [esp + 0x14]
imul ebx, esi
lea eax, [ebx + eax*8]
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x20]
lea esi, [esi + ebx + 8]
lea eax, [eax + ebx + 8]
mov ebx, dword [esp + 0x54]
mov ecx, ebp
mov ebp, esi
mov dword [esp + 0x38], eax
movzx eax, byte [esp + 0x13]
mov esi, dword [esp + 0x14]
jmp 0x40c770
mov ebp, dword [esp + 0x30]
xchg edi, eax
test al, al
xchg edi, eax
je 0x40c644
mov edi, dword [esp + 0x38]
jmp 0x40c6ef
mov dword [esp + 0x34], ecx
movzx ebp, byte [ebx + 0x30]
imul ebp, esi
mov edi, dword [esp + 0x3c]
lea ebp, [ebp + edi + 8]
mov edi, dword [ebx + 0x34]
test edi, 1
je 0x40c7a4
mov ebp, dword [ebp]
mov dword [esp + 0x2c], ebp
mov eax, dword [ebx + 0x20]
mov edx, dword [eax + 0x10]
mov eax, dword [edx]
mov ecx, dword [esp + 0x5c]
mov dword [esp], ecx
mov dword [esp + 4], ebp
call eax
movzx eax, byte [esp + 8]
test al, al
jne 0x40c7e8
movzx eax, byte [esp + 0x13]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
mov edi, dword [esp + 0x38]
jmp 0x40c6ef
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 0x34]
test ecx, 8
je 0x40c816
mov ecx, dword [eax + 0x20]
mov dword [esp], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
call fcn.0040f2a0
mov eax, dword [esp + 0x54]
movzx ecx, byte [eax + 0x30]
movzx edx, byte [eax + 0x31]
mov ebx, dword [esp + 0x14]
imul edx, ebx
lea ecx, [edx + ecx*8]
mov edx, dword [esp + 0x3c]
lea ecx, [edx + ecx + 8]
jmp 0x40c95c
movzx eax, byte [esp + 0x13]
mov ecx, dword [esp + 0x48]
mov ebp, dword [esp + 0x4c]
test ecx, ecx
jne 0x40c87d
mov dword [esp], edx
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
call fcn.0040bb60
mov ecx, dword [esp + 0xc]
test byte [ecx], al
nop
mov eax, dword [esp + 0x54]
movzx edx, byte [eax + 0x30]
lea ebp, [ecx + 8]
lea esi, [ecx + edx*8 + 8]
movzx eax, byte [esp + 0x13]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], ecx
mov edi, dword [ebx + 0x34]
test edi, 1
je 0x40c8e0
mov dword [esp + 0x40], ebp
mov eax, dword [ebx + 0x20]
mov ecx, dword [eax]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov byte [esp + 8], 1
call fcn.0040a920
mov edi, dword [esp + 0x40]
test byte [edi], al
mov eax, dword [0x6573b0]
mov ecx, dword [esp + 0xc]
test eax, eax
jne 0x40c8c2
mov dword [edi], ecx
jmp 0x40c8c9
mov eax, ecx
call fcn.0045f3d0
movzx eax, byte [esp + 0x13]
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x38]
mov ebp, ecx
mov ecx, dword [esp + 0x34]
mov edi, dword [ebx + 0x34]
test edi, 2
je 0x40c92c
mov dword [esp + 0x30], ebp
mov eax, dword [ebx + 0x24]
mov ecx, dword [eax]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov byte [esp + 8], 1
call fcn.0040a920
mov edi, dword [esp + 0x38]
test byte [edi], al
mov eax, dword [0x6573b0]
mov ecx, dword [esp + 0xc]
test eax, eax
jne 0x40c91d
mov dword [edi], ecx
jmp 0x40c924
mov eax, ecx
call fcn.0045f3d0
mov ebx, dword [esp + 0x54]
mov ebp, dword [esp + 0x30]
mov eax, dword [ebx + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov eax, dword [esp + 0x5c]
mov dword [esp + 8], eax
call fcn.0040f2a0
movzx eax, byte [esp + 0x13]
mov ecx, dword [esp + 0x34]
mov byte [ecx], al
mov eax, dword [esp + 0x58]
inc dword [eax]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x58]
movzx ebx, byte [edx + 4]
test bl, 4
je 0x40c983
and ebx, 0xfffffffb
mov byte [edx + 4], bl
mov eax, dword [eax + 0x34]
test eax, 2
je 0x40c97b
mov ecx, dword [ecx]
mov dword [esp + 0x60], ecx
add esp, 0x50
ret
lea eax, [0x54c432]
mov dword [esp], eax
mov dword [esp + 4], 0x15
call fcn.00433a00
lea eax, [0x54c432]
mov dword [esp], eax
mov dword [esp + 4], 0x15
call fcn.00433a00
lea eax, [0x537fa0]
mov dword [esp], eax
lea eax, [0x57d96c]
mov dword [esp + 4], eax
call fcn.004332d0
nop
call fcn.0045e000
jmp fcn.0040c500