Function at 0x40c4f0
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x4aefb8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4d25ac]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4d25ac]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [esp + 0x80]
mov ebx, 7
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], edi
mov word [esp + 0x54], cx
push 0xffffffffffffffff
push edi
add eax, 4
lea ecx, [esp + 0x58]
mov dword [esp + 0x80], edi
call fcn.00401c20
push 0x15
mov eax, str.avg_secure_search.xml
lea ecx, [esp + 0x54]
call fcn.00403430
xor edx, edx
push 0x32
mov eax, str.CFirefoxBrowser::CopyXmlToProgramFiles___Copy_from
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edi
mov word [esp + 0x20], dx
call fcn.00401f30
mov eax, esi
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x7c], 1
call fcn.004035d0
mov ebp, 8
add esp, 4
cmp dword [esp + 0x30], ebp
jb 0x40c5b0
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00491101
add esp, 4
xor edx, edx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], edi
mov word [esp + 0x38], dx
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x7c], 2
call fcn.0040e4b0
add esp, 4
test al, al
jne 0x40c653
xor ecx, ecx
push 0x51
mov eax, str.CFirefoxBrowser::CopyXmlToProgramFiles___GetCurrentFirefoxInstallationPath_failed
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edi
mov word [esp + 0x20], cx
call fcn.00401f30
mov edx, esi
push edx
mov byte [esp + 0x7c], 3
call fcn.00403780
add esp, 4
cmp dword [esp + 0x30], ebp
jb 0x40c617
mov eax, dword [esp + 0x1c]
push eax
call fcn.00491101
add esp, 4
cmp dword [esp + 0x4c], ebp
jb 0x40c62a
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00491101
add esp, 4
xor edx, edx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], edi
mov word [esp + 0x38], dx
cmp dword [esp + 0x68], ebp
jb 0x40c64c
mov eax, dword [esp + 0x54]
push eax
call fcn.00491101
add esp, 4
xor al, al
jmp 0x40c71f
push 0xf
mov eax, str._searchplugins_
lea ecx, [esp + 0x38]
call fcn.00403430
push 0x15
mov eax, str.avg_secure_search.xml
lea ecx, [esp + 0x38]
call fcn.00403430
xor ecx, ecx
push 0x30
mov eax, str.CFirefoxBrowser::CopyXmlToProgramFiles___Copy_to
lea esi, [esp + 0x1c]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], edi
mov word [esp + 0x20], cx
call fcn.00401f30
mov edx, esi
push edx
lea ecx, [esp + 0x38]
mov byte [esp + 0x7c], 4
call fcn.004035d0
add esp, 4
cmp dword [esp + 0x30], ebp
jb 0x40c6b9
mov eax, dword [esp + 0x1c]
push eax
call fcn.00491101
add esp, 4
mov ecx, dword [esp + 0x38]
cmp dword [esp + 0x4c], ebp
jae 0x40c6c7
lea ecx, [esp + 0x38]
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x68], ebp
jae 0x40c6d5
lea eax, [esp + 0x54]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
sete byte [esp + 0x17]
cmp dword [esp + 0x4c], ebp
jb 0x40c6f9
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00491101
add esp, 4
xor edx, edx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], edi
mov word [esp + 0x38], dx
cmp dword [esp + 0x68], ebp
jb 0x40c71b
mov eax, dword [esp + 0x54]
push eax
call fcn.00491101
add esp, 4
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.0049110c
add esp, 0x68
ret 4