Function at 0x40ef40
Capabilities:
Delete directory
Delete file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x421e28
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push str.CUninstall::DelAccFile
mov edi, ecx
call fcn.00406b70
add esp, 4
xor ebp, ebp
test eax, eax
jne 0x40efc2
mov eax, dword [edi + 0x20]
push eax
push str.DelAccFile:
push edi
push str.CUninstall::DelAccFile
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040d020
mov ecx, eax
call fcn.0040dcf0
push 1
mov esi, eax
push ebp
mov dword [0x42d048], ebp
mov ecx, dword [esi + 0x240]
push ebp
push ecx
push 1
mov ecx, esi
mov dword [esi + 0x248], ebp
call fcn.0040af90
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [edi + 0x20]
push edx
lea ecx, [esp + 0x14]
call fcn.00401e30
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx - 8]
cmp word [ebx + eax*2 - 2], 0x5c
mov dword [esp + 0x24], ebp
je 0x40f000
push 0x423688
push 0x423688
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea ecx, [esp + 0x18]
call fcn.0040de80
mov ebx, dword [esp + 0x10]
push 0x427038
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040e010
mov edx, dword [esp + 0x14]
push edx
mov byte [esp + 0x28], 1
call fcn.0040e3e0
add esp, 4
push 0x427030
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0040e010
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.00401a80
mov eax, dword [esp + 0x18]
mov ecx, dword [0x42c058]
lea edx, [eax - 0xc]
cmp edx, ecx
mov byte [esp + 0x24], 1
je 0x40f07d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40f07d
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00415965
add esp, 4
mov eax, dword [esp + 0x14]
push eax
call fcn.0040e3e0
add esp, 4
push str.tap_install
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.0040e010
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 3
call fcn.00401a80
mov eax, dword [esp + 0x18]
mov edx, dword [0x42c058]
lea ecx, [eax - 0xc]
cmp ecx, edx
mov byte [esp + 0x24], 1
je 0x40f0e1
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40f0e1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00415965
add esp, 4
mov edx, dword [esp + 0x14]
push edx
call fcn.0040e3e0
add esp, 4
push str.Uninstall.exe
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0040e010
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 4
call fcn.00401a80
mov eax, dword [esp + 0x18]
mov ecx, dword [0x42c058]
lea edx, [eax - 0xc]
cmp edx, ecx
mov byte [esp + 0x24], 1
je 0x40f145
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40f145
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call fcn.00415965
add esp, 4
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.CUninstall::DelAccFile
call fcn.00406b70
add esp, 4
test eax, eax
jne 0x40f1af
push ebx
push str.RemoveDirectory:
push edi
push str.CUninstall::DelAccFile
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040d020
mov ecx, eax
call fcn.0040dcf0
push 1
mov esi, eax
push ebp
mov dword [0x42d048], ebp
mov edx, dword [esi + 0x240]
push ebp
push edx
push 1
mov ecx, esi
mov dword [esi + 0x248], ebp
call fcn.0040af90
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebx - 8], ebp
jl 0x40f2ed
push str.XlaccAir
push ebx
call fcn.00417268
add esp, 8
cmp eax, ebp
je 0x40f2ed
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x40f2ed
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push str.CUninstall::DelAccFile
mov ebx, eax
call fcn.00406b70
add esp, 4
test eax, eax
jne 0x40f243
push ebx
push str.RemoveDirectory_ret:
push edi
push str.CUninstall::DelAccFile
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040d020
mov ecx, eax
call fcn.00403320
push 1
mov esi, eax
push ebp
mov dword [0x42d048], ebp
mov eax, dword [esi + 0x240]
push ebp
push eax
push 1
mov ecx, esi
mov dword [esi + 0x248], ebp
call fcn.0040af90
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, ebp
jne 0x40f28b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.CUninstall::DelAccFile
mov esi, eax
call fcn.00406b70
add esp, 4
test eax, eax
jne 0x40f28b
push 1
push esi
push str.RemoveDirectory_ERROR:
push edi
push str.CUninstall::DelAccFile
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040d020
mov ecx, eax
call fcn.0040dbd0
mov ecx, eax
call fcn.0040b500
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, dword [0x42c058]
lea edx, [esi - 0xc]
cmp edx, eax
je 0x40f2b6
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40f2b6
push esi
call fcn.00415965
add esp, 4
mov ecx, dword [0x42c058]
lea eax, [ebx - 0xc]
cmp eax, ecx
je 0x40f2da
add ebx, 0xfffffff4
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40f2da
push ebx
call fcn.00415965
add esp, 4
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
push str.CUninstall::DelAccFile
call fcn.00406b70
add esp, 4
test eax, eax
jne 0x40f28f
push 0xffffffffffffffff
push str.RemoveDirectory_nPos:
push edi
push str.CUninstall::DelAccFile
call fcn.0040a9c0
add esp, 8
mov ecx, eax
call fcn.0040d020
mov ecx, eax
call fcn.00403320
push 1
mov esi, eax
push ebp
mov dword [0x42d048], ebp
mov ecx, dword [esi + 0x240]
push ebp
push ecx
push 1
mov ecx, esi
mov dword [esi + 0x248], ebp
call fcn.0040af90
add esi, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40f28f