Function at 0x40c880
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x218
push ebx
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x121]
mov byte [esp + 0x120], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [esp + 0x228]
mov dword [esp + 0xc], esi
test al, al
mov ebx, 1
je 0x40c974
push str.XMLS
push 0x43c316
lea eax, [esp + 0x24]
push str._s_s
push eax
call fcn.00429590
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.0040ce70
push str.Update
push 0x43c316
lea edx, [esp + 0x24]
push str._s_s
push edx
call fcn.00429590
add esp, 0x10
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.0040ce70
lea ecx, [esp + 0x1c]
push 0x43c41a
push ecx
call fcn.0042abcf
add esp, 8
test eax, eax
jne 0x40c947
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x218
ret 4
push str.XMLS
push str.Update
push 0x43c316
lea edx, [esp + 0x28]
push str._s_s_s
push edx
call fcn.00429590
add esp, 0x14
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.0040ce70
mov eax, dword [esi + 0x30]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esp + 0x10], ecx
je 0x40cbfe
push ebp
mov ecx, dword [esp + 0x14]
mov ebp, dword [ecx + 8]
mov dword [esp + 0x1c], ebp
mov eax, dword [ebp + 0x410]
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esp + 0x18], ecx
je 0x40cb2f
jmp 0x40c9ab
mov ecx, dword [esp + 0x18]
mov edi, dword [ecx + 8]
lea esi, [edi + 0x11c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebp, [edi + 0x241]
test eax, eax
push ebp
je 0x40ca00
push esi
push 0x43c41a
lea edx, [esp + 0x130]
push str._s_s_s
push edx
call fcn.00429590
add esp, 0x14
lea eax, [esp + 0x20]
push esi
push str.Update
push 0x43c316
push str._s_s_s_
push eax
call fcn.00429590
add esp, 0x14
jmp 0x40ca36
push 0x43c41a
lea ecx, [esp + 0x12c]
push str._s_s
push ecx
call fcn.00429590
add esp, 0x10
lea edx, [esp + 0x20]
push str.Update
push 0x43c316
push str._s_s_
push edx
call fcn.00429590
add esp, 0x10
mov al, byte [esp + 0x22c]
test al, al
je 0x40caaf
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
call fcn.0040ce70
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x24]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x12c]
push ecx
call fcn.00425b10
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x40cb11
lea edx, [esp + 0x20]
push edx
push str.Backup__s_Fail
push 0x43bb00
call fcn.004042f0
add esp, 0xc
jmp 0x40cb11
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x20]
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [edx + ecx], al
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov ecx, dword [edx + 0x410]
cmp eax, ecx
mov dword [esp + 0x18], eax
jne 0x40c9a7
mov ebp, edx
lea esi, [ebp + 0xe8]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40cbe4
push esi
push str.XMLS
push 0x43c41a
lea eax, [esp + 0x130]
push str._s_s_s
push eax
call fcn.00429590
add esp, 0x14
lea ecx, [esp + 0x20]
push esi
push str.XMLS
push str.Update
push 0x43c316
push str._s_s_s_s
push ecx
call fcn.00429590
mov al, byte [esp + 0x244]
add esp, 0x18
test al, al
je 0x40cbd7
mov ecx, dword [esp + 0x10]
push ebp
push 0x3eb
call fcn.0040cf90
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x128]
push edx
push eax
call fcn.00425b10
add esp, 0xc
and ebx, eax
jne 0x40cbe4
lea ecx, [esp + 0x20]
push ecx
push str.Backup__s_Fail
push 0x43bb00
call fcn.004042f0
add esp, 0xc
jmp 0x40cbe4
lea edx, [esp + 0x20]
push edx
call fcn.00425b50
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
mov edx, dword [ecx + 0x30]
cmp eax, edx
mov dword [esp + 0x14], eax
jne 0x40c986
pop ebp
mov al, byte [esp + 0x228]
test al, al
jne 0x40cd18
push str.Update
push 0x43c316
lea edx, [esp + 0x24]
push str._s_smdac.exe
push edx
call fcn.00429590
lea eax, [esp + 0x2c]
push eax
call fcn.00425b50
add esp, 0x14
lea ecx, [esp + 0x1c]
push str.Setup.xml
push str.XMLS
push 0x43c316
push str._s_s_s
push ecx
call fcn.00429590
lea edx, [esp + 0x30]
push edx
call fcn.00425b50
add esp, 0x18
lea eax, [esp + 0x1c]
push str.Setup.xml
push str.XMLS
push str.Update
push 0x43c316
push str._s_s_s_s
push eax
call fcn.00429590
lea ecx, [esp + 0x34]
push ecx
call fcn.00425b50
add esp, 0x1c
lea edx, [esp + 0x1c]
push 0x43757c
push str.Update
push 0x43c316
push str._s_s_s
push edx
call fcn.00429590
lea eax, [esp + 0x30]
push eax
call fcn.00425b50
add esp, 0x18
lea ecx, [esp + 0x1c]
push str.XMLS
push str.Update
push 0x43c316
push str._s_s_s_
push ecx
call fcn.00429590
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
add esp, 0x14
lea edx, [esp + 0x1c]
push edx
call esi
push str.XMLS
push 0x43c316
lea eax, [esp + 0x24]
push str._s_s_
push eax
call fcn.00429590
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
call esi
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x218
ret 4
test ebx, ebx
je 0x40ce5d
push str.CompsVer.inf
push 0x43c41a
lea edx, [esp + 0x128]
push str._s_s
push edx
call fcn.00429590
add esp, 0x10
lea eax, [esp + 0x1c]
push str.CompsVer.inf
push str.Update
push 0x43c316
push str._s_s_s
push eax
call fcn.00429590
lea ecx, [esp + 0x30]
push 0
lea edx, [esp + 0x138]
push ecx
push edx
call fcn.00425b10
add esp, 0x20
lea eax, [esp + 0x120]
push 0x43c41a
push str._smdac.exe
push eax
call fcn.00429590
add esp, 0xc
lea ecx, [esp + 0x1c]
push str.Update
push 0x43c316
push str._s_smdac.exe
push ecx
call fcn.00429590
lea edx, [esp + 0x2c]
push 0
lea eax, [esp + 0x134]
push edx
push eax
call fcn.00425b10
add esp, 0x1c
lea ecx, [esp + 0x1c]
push str.Setup.xml
push str.XMLS
push 0x43c316
push str._s_s_s
push ecx
call fcn.00429590
lea edx, [esp + 0x30]
push 0
push edx
push 0x43c82a
call fcn.00425b10
add esp, 0x20
lea eax, [esp + 0x1c]
push str.Setup.xml
push str.XMLS
push str.Update
push 0x43c316
push str._s_s_s_s
push eax
call fcn.00429590
lea ecx, [esp + 0x34]
push 0
push ecx
push 0x43c82a
call fcn.00425b10
add esp, 0x24
lea edx, [esp + 0x1c]
and ebx, eax
push 0x43757c
push str.Update
push 0x43c316
push str._s_s_s
push edx
call fcn.00429590
lea eax, [esp + 0x30]
push 0
push eax
push 0x43c92e
call fcn.00425b10
add esp, 0x20
and ebx, eax
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x218
ret 4