Function at 0x414314
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
sub esp, 0x74
lea ebp, [esp - 4]
mov eax, dword [0x50e7dc]
xor eax, ebp
mov dword [ebp + 0x74], eax
push 0x138
mov eax, 0x4c5d65
call fcn.0049f575
xor esi, esi
mov dword [ebp + 0x2c], esi
push esi
lea ecx, [ebp + 0x58]
mov dword [ebp + 0x70], 0xf
call fcn.00405a99
push str.extensions.rdf
lea ecx, [ebp]
mov dword [ebp - 4], esi
call fcn.00404bd0
xor ebx, ebx
lea eax, [ebp + 0x58]
mov byte [ebp - 4], 1
inc ebx
push eax
lea edi, [ebp]
mov dword [ebp + 0x2c], ebx
call fcn.00414961
test al, al
je 0x41439f
cmp dword [ebp + 0x70], 0x10
mov eax, dword [ebp + 0x5c]
jae 0x414380
lea eax, [ebp + 0x5c]
push eax
lea ecx, [ebp - 0x144]
call fcn.0041c01b
push 3
pop ebx
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp + 0x3b], 0
test eax, eax
jne 0x4143a3
mov byte [ebp + 0x3b], 1
test bl, 2
je 0x4143c5
lea eax, [ebp - 0x140]
and ebx, 0xfffffffd
cmp dword [ebp - 0x144], eax
je 0x4143c5
push dword [ebp - 0x144]
call fcn.0049f900
pop ecx
mov dword [ebp - 4], esi
test bl, 1
je 0x4143db
push esi
push 1
lea ecx, [ebp]
and ebx, 0xfffffffe
call fcn.004058b3
cmp byte [ebp + 0x3b], 0
je 0x4143f5
xor bl, bl
push esi
push 1
lea ecx, [ebp + 0x58]
call fcn.00404ec6
mov al, bl
jmp 0x4148f1
push esi
lea ecx, [ebp + 0x3c]
mov dword [ebp + 0x54], 0xf
call fcn.00405a99
push str.extensions.cache
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.00404bd0
lea eax, [ebp + 0x3c]
mov byte [ebp - 4], 3
or ebx, 4
push eax
lea edi, [ebp]
mov dword [ebp + 0x2c], ebx
call fcn.00414961
test al, al
je 0x41445b
cmp dword [ebp + 0x54], 0x10
mov eax, dword [ebp + 0x40]
jae 0x41443c
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp - 0x144]
call fcn.0041c01b
push dword [eax]
or ebx, 8
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [ebp + 0x3b], 1
test eax, eax
jne 0x41445f
mov byte [ebp + 0x3b], 0
test bl, 8
je 0x414481
lea eax, [ebp - 0x140]
and ebx, 0xfffffff7
cmp dword [ebp - 0x144], eax
je 0x414481
push dword [ebp - 0x144]
call fcn.0049f900
pop ecx
mov dword [ebp - 4], 2
test bl, 4
je 0x414498
push esi
push 1
lea ecx, [ebp]
call fcn.004058b3
cmp byte [ebp + 0x3b], 0
je 0x4144d8
cmp dword [ebp + 0x54], 0x10
mov eax, dword [ebp + 0x40]
jae 0x4144aa
lea eax, [ebp + 0x40]
push eax
lea ecx, [ebp - 0x144]
call fcn.0041c01b
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x140]
cmp dword [ebp - 0x144], eax
je 0x4144d8
push dword [ebp - 0x144]
call fcn.0049f900
pop ecx
push 3
pop eax
mov byte [ebp + 0x3a], 0
mov word [ebp - 0x24], ax
mov dword [ebp - 0x1c], esi
mov dword [ebp + 0x34], esi
lea eax, [ebp + 0x34]
push eax
mov byte [ebp - 4], 6
call fcn.00404d45
cmp eax, esi
jge 0x41454d
push str.CFirefoxBrowser::EnableInExtensionsRDF___Unable_to_create_XML_parser_object
lea ecx, [ebp]
call fcn.00404bd0
mov byte [ebp - 4], 7
lea eax, [ebp]
push eax
call fcn.004017f5
pop ecx
push esi
push 1
lea ecx, [ebp]
call fcn.004058b3
mov byte [ebp - 4], 5
mov eax, dword [ebp + 0x34]
cmp eax, esi
je 0x414531
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push esi
push 1
lea ecx, [ebp + 0x3c]
call fcn.00404ec6
mov bl, 1
jmp 0x4143e3
cmp dword [ebp + 0x34], esi
jne 0x414565
push str.CFirefoxBrowser::EnableInExtensionsRDF___Unable_to_create_XML_parser_object
lea ecx, [ebp]
call fcn.00404bd0
mov byte [ebp - 4], 8
jmp 0x41450b
cmp dword [ebp + 0x70], 0x10
mov eax, dword [ebp + 0x5c]
mov dword [ebp + 0x20], esi
jae 0x414574
lea eax, [ebp + 0x5c]
push eax
lea ecx, [ebp - 0x144]
call fcn.0041c01b
mov byte [ebp - 4], 9
mov eax, dword [eax]
xor ecx, ecx
mov word [ebp + 0xc], cx
push eax
lea ecx, [ebp + 0xc]
call fcn.0040145f
lea edx, [ebp + 0x20]
push edx
mov byte [ebp - 4], 0xa
mov eax, dword [ebp + 0x34]
mov ecx, dword [eax]
sub esp, 0x10
mov edi, esp
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0xe8]
mov esi, eax
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 6
cmp dword [ebp - 0x144], eax
je 0x4145df
push dword [ebp - 0x144]
call fcn.0049f900
pop ecx
xor ebx, ebx
cmp esi, ebx
jl 0x41484b
cmp word [ebp + 0x20], bx
je 0x41484b
mov dword [ebp + 0x2c], ebx
lea edx, [ebp + 0x2c]
push edx
mov byte [ebp - 4], 0xc
mov eax, dword [ebp + 0x34]
mov ecx, dword [eax]
push str.RDF:Description
push eax
call dword [ecx + 0xdc]
mov edi, eax
cmp edi, ebx
jl 0x414801
mov dword [ebp + 0x24], ebx
mov byte [ebp - 4], 0xd
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax]
lea edx, [ebp + 0x24]
push edx
push eax
call dword [ecx + 0x24]
mov byte [ebp + 0x3b], bl
cmp byte [ebp + 0x3b], 0
jne 0x4147f0
cmp edi, ebx
jl 0x4147f0
mov eax, dword [ebp + 0x24]
cmp eax, ebx
je 0x4147f3
mov dword [ebp + 0x28], ebx
lea edx, [ebp + 0x28]
push edx
mov byte [ebp - 4], 0xe
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
cmp eax, ebx
jne 0x4147ab
mov dword [ebp + 0x30], ebx
lea edx, [ebp + 0x30]
push edx
mov byte [ebp - 4], 0xf
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax]
push str.NS1:name
push eax
call dword [ecx + 0x1c]
cmp eax, ebx
jne 0x41479a
mov eax, dword [ebp + 0x30]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x68]
push dword [ebp - 0x14]
lea ecx, [ebp + 0x1c]
call fcn.00404a87
mov byte [ebp - 4], 0x10
cmp dword [ebp + 0x30], ebx
je 0x4146b2
push ebx
lea eax, [ebp + 0x30]
push eax
call fcn.004101cf
push str.AVG_Security_Toolbar
lea esi, [ebp + 0x1c]
call fcn.0041befb
test eax, eax
jl 0x41478f
mov eax, dword [ebp + 0x28]
mov ecx, dword [eax]
lea edx, [ebp + 0x30]
push edx
push str.NS1:userDisabled
push eax
mov byte [ebp + 0x3b], 1
call dword [ecx + 0x24]
cmp dword [ebp + 0x30], ebx
je 0x4146ec
push ebx
lea eax, [ebp + 0x30]
push eax
call fcn.004101cf
cmp dword [ebp + 0x70], 0x10
mov eax, dword [ebp + 0x5c]
jae 0x4146f8
lea eax, [ebp + 0x5c]
push eax
lea ecx, [ebp - 0x144]
call fcn.0041c01b
mov byte [ebp - 4], 0x11
mov eax, dword [eax]
xor ecx, ecx
mov word [ebp + 0xc], cx
push eax
lea ecx, [ebp + 0xc]
call fcn.0040145f
mov byte [ebp - 4], 0x12
mov eax, dword [ebp + 0x34]
mov ecx, dword [eax]
sub esp, 0x10
mov edi, esp
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x108]
mov edi, eax
lea eax, [ebp + 0xc]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x140]
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x144], eax
je 0x41475f
push dword [ebp - 0x144]
call fcn.0049f900
pop ecx
cmp edi, ebx
jge 0x41478b
push str.CFirefoxBrowser::EnableInExtensionsRDF___failed_to_save_the_modified_extension.rdf
lea ecx, [ebp - 0x40]
call fcn.00404bd0
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 0x13
call fcn.004017f5
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004058b3
jmp 0x41478f
mov byte [ebp + 0x3a], 1
mov ecx, dword [ebp + 0x1c]
add ecx, 0xfffffff0
call fcn.00401713
mov byte [ebp - 4], 0xe
mov eax, dword [ebp + 0x30]
cmp eax, ebx
je 0x4147ab
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp + 0x24], ebx
je 0x4147ba
push ebx
lea eax, [ebp + 0x24]
push eax
call fcn.004101cf
cmp dword [ebp + 0x28], ebx
je 0x4147c9
push ebx
lea eax, [ebp + 0x28]
push eax
call fcn.004101cf
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax]
lea edx, [ebp + 0x24]
push edx
push eax
call dword [ecx + 0x24]
mov byte [ebp - 4], 0xd
mov eax, dword [ebp + 0x28]
cmp eax, ebx
je 0x414630
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x414630
mov eax, dword [ebp + 0x24]
mov byte [ebp - 4], 0xc
cmp eax, ebx
je 0x414801
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 6
mov eax, dword [ebp + 0x2c]
cmp eax, ebx
je 0x414812
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 5
mov eax, dword [ebp + 0x34]
cmp eax, ebx
je 0x414823
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push ebx
push 1
lea ecx, [ebp + 0x3c]
call fcn.00404ec6
push ebx
push 1
lea ecx, [ebp + 0x58]
call fcn.00404ec6
mov al, byte [ebp + 0x3a]
jmp 0x4148f1
push str.CFirefoxBrowser::EnableInExtensionsRDF___Unable_to_load_XML_document_into_the_parser
lea ecx, [ebp - 0x40]
call fcn.00404bd0
lea eax, [ebp - 0x40]
push eax
mov byte [ebp - 4], 0xb
call fcn.004017f5
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004058b3
mov byte [ebp - 4], 5
mov eax, dword [ebp + 0x34]
cmp eax, ebx
je 0x414882
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push ebx
push 1
lea ecx, [ebp + 0x3c]
call fcn.00404ec6
xor bl, bl
xor esi, esi
jmp 0x4143e3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.0049f533
add ebp, 0x78
leave
ret