Function at 0x4aa8c0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dd872
mov eax, dword fs:[0]
push eax
sub esp, 0x378
mov eax, dword [0x65eb68]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov ebx, dword [ebp + 8]
push 0
mov dword [ebp - 0x224], edi
call fcn.004a5f10
lea ecx, [ebp - 0x2f4]
call fcn.004a7da0
lea eax, [ebp - 0x2f4]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.004a95a0
push ebx
lea ecx, [ebp - 0x2f4]
call fcn.004ab270
push ebx
mov ecx, edi
call fcn.004aae50
cmp dword [edi + 0x60], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 1
mov dword [ebp - 0x234], 1
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x248], eax
je 0x4aac9f
lea ecx, [ebp - 0x29c]
call fcn.0056509a
lea ecx, [ebp - 0x278]
mov dword [ebp - method.CXTPMarkupContext::CTooltipContext.virtual_0], vtable.CXTPCommandBarList.0
call fcn.004a3520
mov dword [ebp - 0x27c], edi
mov eax, dword [edi]
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 1
push ecx
mov ecx, edi
call dword [eax + 0x8c]
lea ecx, [ebp - 0x2c8]
call fcn.004d27a0
push 0
push 0x1000
push 0
lea eax, [ebp - 0x2c8]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x33c]
call fcn.0057b132
push ebx
lea eax, [ebp - 0x214]
mov byte [ebp - 4], 3
push str._s_Controls
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x33c]
lea ecx, [ebp - 0x384]
push eax
call fcn.004d4d00
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x29c]
mov dword [ebp - 0x364], eax
mov eax, dword [edi]
push ecx
lea ecx, [ebp - 0x384]
push ecx
mov ecx, edi
call dword [eax + 0x84]
test eax, eax
je 0x4aac54
lea ecx, [ebp - 0x33c]
call fcn.0057b70c
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
push eax
lea ecx, [ebp - 0x2c8]
call fcn.004d2c10
call fcn.0056500f
mov ecx, eax
test ecx, ecx
je 0x4aacfb
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x220], esi
mov ecx, 0x3e80
mov byte [ebp - 4], 5
cmp ecx, dword [ebp - 0x218]
sbb ecx, ecx
neg ecx
cmp dword [ebp - 0x218], 0x3e80
jbe 0x4aaaf3
push ebx
lea eax, [ebp - 0x220]
mov ecx, edi
push eax
call fcn.004a9400
mov esi, dword [ebp - 0x220]
mov ecx, eax
test ecx, ecx
je 0x4aabcc
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 6
call fcn.00576826
push 0
push 0x1001
push esi
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 7
call fcn.00576dda
test eax, eax
je 0x4aab92
push dword [ebp - 0x218]
lea ecx, [ebp - 0x264]
push dword [ebp - 0x21c]
call fcn.0057716a
call fcn.005710c5
push esi
push 0x5fe32c
lea edx, [ebp - 0x214]
mov ecx, dword [eax + 4]
push edx
mov eax, dword [ecx]
call dword [eax + 0x88]
call fcn.005710c5
push 1
push str.LoadFromFile
lea edx, [ebp - 0x214]
mov ecx, dword [eax + 4]
push edx
mov eax, dword [ecx]
call dword [eax + 0x80]
lea ecx, [ebp - 0x264]
call fcn.00576b67
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x264]
call fcn.005768aa
mov dword [ebp - 4], 5
jmp 0x4aac12
call fcn.005710c5
push dword [ebp - 0x218]
lea edx, [ebp - 0x214]
push dword [ebp - 0x21c]
mov ecx, dword [eax + 4]
push 0x5fe32c
push edx
mov eax, dword [ecx]
call dword [eax + 0x90]
call fcn.005710c5
push 0
push str.LoadFromFile
lea edx, [ebp - 0x214]
mov ecx, dword [eax + 4]
push edx
mov eax, dword [ecx]
call dword [eax + 0x80]
lea ecx, [ebp - 0x33c]
call fcn.0057b3e8
lea ecx, [ebp - 0x2c8]
call fcn.0057c711
push dword [ebp - 0x21c]
call fcn.005a1981
add esp, 4
mov byte [ebp - 4], 4
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4aac6f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4aac6f
call fcn.005710c5
push 0
push 0
lea edx, [ebp - 0x214]
mov ecx, dword [eax + 4]
push edx
mov eax, dword [ecx]
call dword [eax + 0x88]
lea ecx, [ebp - 0x384]
call fcn.004d51b0
lea ecx, [ebp - 0x33c]
call fcn.0057b265
lea ecx, [ebp - 0x2c8]
call fcn.004d2880
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 0
call fcn.004c9750
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x50]
test eax, eax
je 0x4aacc8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x50]
cmp dword [eax + 0x1c0], 0
je 0x4aacc8
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x50]
mov ecx, eax
call fcn.005022c0
mov eax, dword [edi + 0x74]
lea ecx, [ebp - 0x2f4]
mov dword [eax + 0x4c], 0
call fcn.004a7e20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00599f9c
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00404e0e
int3