Function at 0x412e20
Capabilities:
Check if file exists
Get file attributes
Move file
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598d28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov eax, dword [0x6614bc]
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
push str.idmmzcc.xpi
push eax
lea ecx, [ebp - 0x130]
xor ebx, ebx
push 0x637020
push ecx
mov dword [ebp - 4], ebx
call fcn.0056b4da
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x10
lea edx, [ebp - 0x130]
push edx
call esi
cmp eax, 0xffffffff
je 0x413095
mov eax, dword [0x65ca8c]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x6614c8]
push str.idmmzcc3
push ecx
lea edx, [ebp - 0x18]
push str._s_scomponentsidmmzcc.dll
push edx
mov byte [ebp - 4], 1
call fcn.0057f8fb
mov eax, dword [ebp - 0x18]
add esp, 0x10
push eax
call esi
cmp eax, 0xffffffff
je 0x412f40
mov ecx, dword [0x6614c8]
push str.idmmzcc3
push ecx
lea edx, [ebp - 0x18]
push str._s_scomponentsiIDMMzCC.xpt
push edx
call fcn.0057f8fb
mov eax, dword [ebp - 0x18]
add esp, 0x10
push eax
call esi
cmp eax, 0xffffffff
je 0x412f40
mov ecx, dword [0x6614c8]
push str.idmmzcc3
push ecx
lea edx, [ebp - 0x18]
push str._s_schromeidmmzcc.jar
push edx
call fcn.0057f8fb
mov eax, dword [ebp - 0x18]
add esp, 0x10
push eax
call esi
cmp eax, 0xffffffff
je 0x412f40
mov ecx, dword [0x6614c8]
push str.idmmzcc3
push ecx
lea edx, [ebp - 0x18]
push str._s_schrome.manifest
push edx
call fcn.0057f8fb
mov eax, dword [ebp - 0x18]
add esp, 0x10
push eax
call esi
cmp eax, 0xffffffff
je 0x412f40
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x412fdc
jmp 0x412f43
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x130]
push ecx
call fcn.005598e0
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x412f9a
lea edx, [ebp - 0x2c]
push edx
push esi
call fcn.00559ce0
add esp, 8
cmp ebx, dword [ebp - 0x2c]
jae 0x412f91
mov eax, dword [ebp - 0x20]
push eax
push edi
push esi
call fcn.00412830
add esp, 0xc
test eax, eax
jne 0x412f91
mov eax, dword [ebp - 0x2c]
inc ebx
cmp ebx, eax
jae 0x412f91
push esi
call fcn.0055a130
add esp, 4
test eax, eax
je 0x412f65
push esi
call fcn.0055a6e0
add esp, 4
mov ecx, dword [0x65ca8c]
mov dword [ebp + 8], ecx
mov edx, dword [0x6614c8]
push str.idmmzcc3
push edx
lea eax, [ebp + 8]
push 0x637020
push eax
mov byte [ebp - 4], 2
call fcn.0057f8fb
mov ecx, dword [ebp + 8]
add esp, 0x10
push ecx
call fcn.00412da0
add esp, 4
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00586b33
lea edx, [ebp - 0x14]
push edx
push 0xf003f
push 0
push str.SoftwareMozillaFirefoxExtensions
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4130aa
lea eax, [ebp - 0x14]
push 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push 0
push 0xf003f
push 0
push 0x660ff8
push 0
push str.SoftwareMozilla
push reloc.WSOCK32.dll_accept
call ebx
test eax, eax
jne 0x413089
mov ecx, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
lea edx, [ebp - 0x14]
push 0
push edx
push 0
push 0xf003f
push 0
push 0x660ff8
push 0
push str.SoftwareMozillaFirefox
push reloc.WSOCK32.dll_accept
call ebx
test eax, eax
jne 0x413089
mov eax, dword [ebp - 0x14]
push eax
call esi
lea ecx, [ebp - 0x14]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0x660ff8
push 0
push str.SoftwareMozillaFirefoxExtensions
push reloc.WSOCK32.dll_accept
call ebx
test eax, eax
je 0x4130b6
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00586b33
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x65ca8c]
mov dword [ebp + 8], 0
mov dword [ebp - 0x1c], edx
mov eax, dword [0x6614c8]
push str.idmmzcc3
push eax
lea ecx, [ebp - 0x1c]
push 0x637020
push ecx
mov byte [ebp - 4], 3
call fcn.0057f8fb
mov edx, dword [ebp - 0x1c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [ebp - 0x14]
push 1
push eax
push str.mozilla_cc_internetdownloadmanager.com
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x413113
mov dword [ebp + 8], 1
mov eax, dword [ebp - 0x14]
push eax
call esi
lea ecx, [ebp - 0x14]
push ecx
push 0xf003f
push 0
push str.SoftwareMozillaSeaMonkeyExtensions
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4131b0
lea edx, [ebp - 0x14]
push 0
push edx
push 0
push 0xf003f
push 0
push 0x660ff8
push 0
push str.SoftwareMozillaSeaMonkey
push reloc.WSOCK32.dll_accept
call ebx
test eax, eax
jne 0x4131d8
mov eax, dword [ebp - 0x14]
push eax
call esi
lea ecx, [ebp - 0x14]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0x660ff8
push 0
push str.SoftwareMozillaSeaMonkeyExtensions
push reloc.WSOCK32.dll_accept
call ebx
test eax, eax
jne 0x4131d8
mov edx, dword [ebp - 0x1c]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [ebp - 0x14]
push 1
push eax
push str.mozilla_cc_internetdownloadmanager.com
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x14]
push eax
jmp 0x4131d6
mov edx, dword [ebp - 0x1c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [ebp - 0x14]
push edx
push 1
push eax
push str.mozilla_cc_internetdownloadmanager.com
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x14]
push edx
call esi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4132ce
mov eax, dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call esi
cmp eax, 0xffffffff
je 0x4132ce
mov eax, dword [0x65ca8c]
mov dword [ebp - 0x24], eax
mov dword [ebp + 8], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], eax
mov ecx, dword [0x6614c8]
lea edx, [ebp - 0x24]
push ecx
push str._sidmmzcc
push edx
mov byte [ebp - 4], 7
call fcn.0057f8fb
mov eax, dword [0x6614c8]
add esp, 0xc
lea ecx, [ebp + 8]
push eax
push str._sidmmzcc2
push ecx
call fcn.0057f8fb
mov edx, dword [0x6614c8]
add esp, 0xc
lea eax, [ebp - 0x20]
push edx
push str._sidmmzcc01
push eax
call fcn.0057f8fb
mov ecx, dword [0x6614c8]
add esp, 0xc
lea edx, [ebp - 0x28]
push ecx
push str._sidmmzcc02
push edx
call fcn.0057f8fb
mov eax, dword [ebp - 0x24]
add esp, 0xc
push eax
call esi
cmp eax, 0xffffffff
je 0x413285
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov eax, dword [ebp + 8]
push eax
call esi
cmp eax, 0xffffffff
je 0x41329e
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.00586b33
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00586b33
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.00586b33
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.00586b33
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00586b33
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00586b33
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4