Function at 0x40c0b0
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 0x40c1a4
push str.XMLS
push 0x439eb6
lea eax, [esp + 0x24]
push str._s_s
push eax
call fcn.00426b7c
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.0040c6a0
push str.Update
push 0x439eb6
lea edx, [esp + 0x24]
push str._s_s
push edx
call fcn.00426b7c
add esp, 0x10
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.0040c6a0
lea ecx, [esp + 0x1c]
push 0x439fba
push ecx
call fcn.00427f8f
add esp, 8
test eax, eax
jne 0x40c177
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x218
ret 4
push str.XMLS
push str.Update
push 0x439eb6
lea edx, [esp + 0x28]
push str._s_s_s
push edx
call fcn.00426b7c
add esp, 0x14
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
call fcn.0040c6a0
mov eax, dword [esi + 0x30]
push ebp
mov ecx, dword [eax]
cmp ecx, eax
mov dword [esp + 0x14], ecx
je 0x40c42c
test ebx, ebx
je 0x40c415
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 0x40c354
jmp 0x40c1e3
mov ecx, dword [esp + 0x18]
test ebx, ebx
je 0x40c3f8
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 0x40c240
push esi
push 0x439fba
lea edx, [esp + 0x130]
push str._s_s_s
push edx
call fcn.00426b7c
add esp, 0x14
lea eax, [esp + 0x20]
push esi
push str.Update
push 0x439eb6
push str._s_s_s_
push eax
call fcn.00426b7c
add esp, 0x14
jmp 0x40c276
push 0x439fba
lea ecx, [esp + 0x12c]
push str._s_s
push ecx
call fcn.00426b7c
add esp, 0x10
lea edx, [esp + 0x20]
push str.Update
push 0x439eb6
push str._s_s_
push edx
call fcn.00426b7c
add esp, 0x10
mov al, byte [esp + 0x22c]
test al, al
je 0x40c2d4
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
call fcn.0040c6a0
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.00423550
add esp, 0xc
mov ebx, eax
jmp 0x40c336
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 0x40c1df
mov ebp, edx
test ebx, ebx
je 0x40c3f8
lea esi, [ebp + 0xe8]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40c3f8
push esi
push str.XMLS
push 0x439fba
lea eax, [esp + 0x130]
push str._s_s_s
push eax
call fcn.00426b7c
add esp, 0x14
lea ecx, [esp + 0x20]
push esi
push str.XMLS
push str.Update
push 0x439eb6
push str._s_s_s_s
push ecx
call fcn.00426b7c
mov al, byte [esp + 0x244]
add esp, 0x18
test al, al
je 0x40c3eb
mov ecx, dword [esp + 0x10]
push ebp
push 0x3eb
call fcn.0040c7c0
lea edx, [esp + 0x20]
push 0
lea eax, [esp + 0x128]
push edx
push eax
call fcn.00423550
add esp, 0xc
and ebx, eax
jmp 0x40c3f8
lea ecx, [esp + 0x20]
push ecx
call fcn.00423590
add esp, 4
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx]
mov edx, dword [ecx + 0x30]
cmp eax, edx
mov dword [esp + 0x14], eax
jne 0x40c1b6
test ebx, ebx
jne 0x40c42c
lea edx, [esp + 0x20]
push edx
push str.Backup__s_Fail
push 0x4396a0
call fcn.00404420
add esp, 0xc
mov al, byte [esp + 0x22c]
pop ebp
test al, al
jne 0x40c547
push str.Update
push 0x439eb6
lea eax, [esp + 0x24]
push str._s_smdac.exe
push eax
call fcn.00426b7c
lea ecx, [esp + 0x2c]
push ecx
call fcn.00423590
add esp, 0x14
lea edx, [esp + 0x1c]
push str.Setup.xml
push str.XMLS
push 0x439eb6
push str._s_s_s
push edx
call fcn.00426b7c
lea eax, [esp + 0x30]
push eax
call fcn.00423590
add esp, 0x18
lea ecx, [esp + 0x1c]
push str.Setup.xml
push str.XMLS
push str.Update
push 0x439eb6
push str._s_s_s_s
push ecx
call fcn.00426b7c
lea edx, [esp + 0x34]
push edx
call fcn.00423590
add esp, 0x1c
lea eax, [esp + 0x1c]
push 0x4354d0
push str.Update
push 0x439eb6
push str._s_s_s
push eax
call fcn.00426b7c
lea ecx, [esp + 0x30]
push ecx
call fcn.00423590
add esp, 0x18
lea edx, [esp + 0x1c]
push str.XMLS
push str.Update
push 0x439eb6
push str._s_s_s_
push edx
call fcn.00426b7c
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
add esp, 0x14
lea eax, [esp + 0x1c]
push eax
call esi
push str.XMLS
push 0x439eb6
lea ecx, [esp + 0x24]
push str._s_s_
push ecx
call fcn.00426b7c
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
call esi
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x218
ret 4
test ebx, ebx
je 0x40c68c
push str.CompsVer.inf
push 0x439fba
lea eax, [esp + 0x128]
push str._s_s
push eax
call fcn.00426b7c
add esp, 0x10
lea ecx, [esp + 0x1c]
push str.CompsVer.inf
push str.Update
push 0x439eb6
push str._s_s_s
push ecx
call fcn.00426b7c
lea edx, [esp + 0x30]
push 0
lea eax, [esp + 0x138]
push edx
push eax
call fcn.00423550
add esp, 0x20
lea ecx, [esp + 0x120]
push 0x439fba
push str._smdac.exe
push ecx
call fcn.00426b7c
add esp, 0xc
lea edx, [esp + 0x1c]
push str.Update
push 0x439eb6
push str._s_smdac.exe
push edx
call fcn.00426b7c
lea eax, [esp + 0x2c]
push 0
lea ecx, [esp + 0x134]
push eax
push ecx
call fcn.00423550
add esp, 0x1c
lea edx, [esp + 0x1c]
push str.Setup.xml
push str.XMLS
push 0x439eb6
push str._s_s_s
push edx
call fcn.00426b7c
lea eax, [esp + 0x30]
push 0
push eax
push 0x43a3ca
call fcn.00423550
add esp, 0x20
lea ecx, [esp + 0x1c]
push str.Setup.xml
push str.XMLS
push str.Update
push 0x439eb6
push str._s_s_s_s
push ecx
call fcn.00426b7c
lea edx, [esp + 0x34]
push 0
push edx
push 0x43a3ca
call fcn.00423550
add esp, 0x24
and ebx, eax
lea eax, [esp + 0x1c]
push 0x4354d0
push str.Update
push 0x439eb6
push str._s_s_s
push eax
call fcn.00426b7c
lea ecx, [esp + 0x30]
push 0
push ecx
push 0x43a4ce
call fcn.00423550
add esp, 0x20
and ebx, eax
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x218
ret 4