Function at 0x407d70
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x42d210
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43ab90]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00409516
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407db3
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push str.executing_CSetupExDlg::UninstallServices__..._n
mov dword [esp + 0x60], 0
call fcn.00401be0
mov ecx, esi
call fcn.00403550
mov ecx, esi
call fcn.00404210
mov ecx, esi
call fcn.00406e00
mov ecx, esi
call fcn.00406350
mov ecx, esi
call fcn.004067b0
mov ecx, dword [esi + 0x8c]
call fcn.00402c70
push 0
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x8c]
call fcn.004028a0
lea ecx, [esi + 0x84]
push eax
mov byte [esp + 0x5c], 1
call fcn.00401aa0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x58], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407e52
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 1
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esi + 0x8c]
call fcn.004028a0
lea ebx, [esi + 0x88]
push eax
mov ecx, ebx
mov byte [esp + 0x5c], 2
call fcn.00401aa0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x58], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407e9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00409516
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x407eb6
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x2ee
mov byte [esp + 0x5c], 3
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 1
mov dword [esp + 0x24], edi
jmp 0x407ee5
mov edi, dword [esp + 0x24]
cmp edi, 2
jne 0x407f3a
mov ecx, dword [esi + 0x8c]
add ecx, 0xac
push ecx
lea eax, [esi + 0x84]
push eax
lea edx, [esp + 0x30]
push edx
call fcn.004027e0
mov eax, dword [eax]
push 0x80
push eax
call fcn.00418913
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407f4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x407f4c
cmp edi, 3
je 0x408141
cmp edi, 4
je 0x408141
mov ecx, dword [esi + 0x8c]
lea edi, [edi*4 + 0xa4]
add ecx, edi
push ecx
lea ebp, [esi + 0x84]
lea edx, [esp + 0x20]
push ebp
push edx
call fcn.004027e0
mov eax, dword [esi + 0x8c]
add eax, edi
push eax
lea ecx, [esp + 0x3c]
push ebp
push ecx
mov byte [esp + 0x70], 7
call fcn.004027e0
mov eax, dword [eax]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407fb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push str.Deleting_File:
call fcn.00401be0
mov ecx, esi
call fcn.00403550
mov ecx, dword [esi + 0x8c]
add ecx, edi
push ecx
lea edx, [esp + 0x34]
push ebp
push edx
call fcn.004027e0
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x5c], 8
call fcn.00401aa0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0x58], 7
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408019
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x50], esp
mov ebp, esp
push eax
call fcn.00401510
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [ebp], eax
call fcn.00403550
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push 0x42fa1c
call fcn.00401be0
mov ecx, esi
call fcn.00403550
cmp dword [esp + 0x20], 0
jne 0x408113
mov ecx, dword [esi + 0x8c]
add ecx, edi
push ecx
lea edx, [esp + 0x38]
push ebx
push edx
call fcn.004027e0
add esp, 0xc
mov edi, eax
mov byte [esp + 0x58], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [edi]
push 0
push eax
lea ecx, [esp + 0x20]
push str.Uninstall_could_not_delete__s_ret___d_LastError_d_nPlease_delete_manually
push ecx
call fcn.004037b0
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0x58], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4080c1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x50], esp
mov edi, esp
push eax
call fcn.00401510
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.00403550
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push 0x42fa1c
call fcn.00401be0
mov ecx, esi
call fcn.00403550
cmp dword [esi + 0x98], 0
je 0x408113
mov ecx, dword [esp + 0x14]
push 0
push 0x40
push ecx
call fcn.0040c08a
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x58], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4083dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4083dc
mov ecx, dword [esi + 0x8c]
lea edi, [edi*4 + 0xa4]
add ecx, edi
push ecx
lea edx, [esp + 0x3c]
push ebx
push edx
call fcn.004027e0
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40818c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push str.Deleting_File:
call fcn.00401be0
mov ecx, esi
call fcn.00403550
mov ecx, dword [esi + 0x8c]
add ecx, edi
push ecx
lea edx, [esp + 0x40]
push ebx
push edx
call fcn.004027e0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 4
call fcn.00401aa0
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x58], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4081ef
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x50], esp
mov ebp, esp
push eax
call fcn.00401510
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [ebp], eax
call fcn.00403550
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push 0x42fa1c
call fcn.00401be0
mov ecx, esi
call fcn.00403550
cmp dword [esp + 0x20], 0
jne 0x4083dc
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push str.Retry:_Deleting_File:
call fcn.00401be0
mov ecx, esi
call fcn.00403550
mov ecx, dword [esi + 0x8c]
add ecx, edi
push ecx
lea edx, [esp + 0x44]
push ebx
push edx
call fcn.004027e0
add esp, 0xc
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 5
call fcn.00401aa0
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
mov byte [esp + 0x58], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4082a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x50], esp
mov ebp, esp
push eax
call fcn.00401510
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [ebp], eax
call fcn.00403550
mov ecx, dword [esi + 0x8c]
add ecx, edi
push ecx
lea edx, [esp + 0x48]
push ebx
push edx
call fcn.004027e0
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40830a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push 0x42fa1c
call fcn.00401be0
mov ecx, esi
call fcn.00403550
test ebp, ebp
jne 0x4083dc
mov ecx, dword [esi + 0x8c]
add ecx, edi
push ecx
lea edx, [esp + 0x4c]
push ebx
push edx
call fcn.004027e0
add esp, 0xc
mov edi, eax
mov byte [esp + 0x58], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [edi]
push ebp
push eax
lea ecx, [esp + 0x20]
push str.Uninstall_could_not_delete__s_ret___d_LastError_d_nPlease_delete_manually
push ecx
call fcn.004037b0
mov eax, dword [esp + 0x5c]
add eax, 0xfffffff0
add esp, 0x14
mov byte [esp + 0x58], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40838a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x50], esp
mov edi, esp
push eax
call fcn.00401510
add eax, 0x10
add esp, 4
mov ecx, esi
mov dword [edi], eax
call fcn.00403550
push ecx
mov ecx, esp
mov dword [esp + 0x50], esp
push 0x42fa1c
call fcn.00401be0
mov ecx, esi
call fcn.00403550
cmp dword [esi + 0x98], 0
je 0x4083dc
mov ecx, dword [esp + 0x14]
push 0
push 0x40
push ecx
call fcn.0040c08a
mov eax, dword [esp + 0x24]
add eax, 1
cmp eax, 5
mov dword [esp + 0x24], eax
jl 0x407ee1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x58], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408415
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x58], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40843d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret