Function at 0x40aaa0
Capabilities:
Delete directory
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x44b3be
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov eax, dword [0x465ac0]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x4c], 0
test byte [0x46aa84], 1
jne 0x40ab09
or dword [0x46aa84], 1
push str.uninstall.exe
mov ecx, 0x46aa80
mov byte [esp + 0x50], 1
call fcn.00402e60
push 0x44bbb0
call fcn.0043180b
add esp, 4
mov byte [esp + 0x4c], 0
lea ecx, [esp + 0x2c]
call fcn.004207ae
mov byte [esp + 0x4c], 2
call fcn.00414fb2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ab31
push 0x80004005
call fcn.00402f70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x4c], 3
mov ecx, dword [esp + 0x54]
push ecx
lea edx, [esp + 0x1c]
push str._s.
push edx
call fcn.00402880
mov esi, dword [esp + 0x24]
add esp, 0xc
push 0
push esi
lea ecx, [esp + 0x34]
call fcn.00420846
test eax, eax
jne 0x40ab7e
mov byte [esp + 0x4c], 2
lea eax, [esi - 0x10]
jmp 0x40ad94
push 0x457f40
lea ecx, [esp + 0x18]
call fcn.00402e60
mov ebx, 4
mov byte [esp + 0x4c], bl
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x2c]
call fcn.00420600
lea ecx, [esp + 0x2c]
mov dword [esp + 0x28], eax
call fcn.0042076f
test eax, eax
jne 0x40ad37
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x30]
call fcn.00420ab7
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x50], 5
call fcn.004026d0
mov byte [esp + 0x4c], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40abfa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x30]
call eax
test eax, eax
mov eax, dword [esp + 0x14]
je 0x40ac53
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00402770
mov ecx, dword [esp + 0x2c]
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0040aaa0
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40ad37
mov edx, dword [esp + 0x14]
push ebx
push eax
push edx
call ebp
jmp 0x40ad37
add eax, 0xfffffff0
push eax
call fcn.00402770
lea esi, [eax + 0x10]
add esp, 4
mov dword [esp + 0x1c], esi
mov byte [esp + 0x4c], 6
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40ac8d
push edi
lea ecx, [esp + 0x20]
call fcn.00402c60
mov esi, dword [esp + 0x1c]
lea eax, [edi + 1]
push eax
push esi
call fcn.00432d14
add esp, 8
test edi, edi
jl 0x40adfb
cmp edi, dword [esi - 8]
jg 0x40adfb
xor ecx, ecx
mov dword [esi - 0xc], edi
mov word [esi + edi*2], cx
mov eax, dword [0x46aa80]
test eax, eax
je 0x40acd9
cmp dword [esi - 0xc], ecx
jl 0x40acd9
push eax
push esi
call fcn.00432aee
add esp, 8
test eax, eax
je 0x40acd9
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x40ad0d
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40ad17
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
push eax
push ecx
push str.del:_s_0x_x
mov ecx, 0x457c84
call fcn.0040cd20
mov ecx, eax
call fcn.0040cea0
add esp, 0xc
mov edx, dword [esp + 0x14]
push ebx
push 0
push edx
call ebp
lea eax, [esi - 0x10]
mov byte [esp + 0x4c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ad37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x28], 0
jne 0x40ab9b
lea ecx, [esp + 0x2c]
call fcn.0042051a
mov ecx, dword [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40ad63
mov edx, dword [esp + 0x54]
push ebx
push eax
push edx
call ebp
mov byte [esp + 0x4c], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ad88
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x4c], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40adad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4c], 0
call fcn.004207d7
mov dword [esp + 0x4c], 0xffffffff
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ade3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 4
push 0x80070057
call fcn.00402f70
int3