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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549a33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x52c
push ebx
push esi
push edi
lea eax, [ebp - 0x130]
mov dword [ebp - 0x10], esp
xor edi, edi
push 0x104
push eax
mov dword [ebp - 0x24], ecx
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x410226
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x238]
mov esi, eax
call fcn.00459300
mov ecx, dword [0x5b5ecc]
mov dword [ebp + 8], ecx
push esi
lea edx, [ebp + 8]
push str.Err__ld_GetMdlFN_in_InstMzExt15_n
push edx
mov byte [ebp - 4], 2
call fcn.0053091a
mov eax, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x238]
push 1
push eax
call fcn.004593e0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00537b04
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 0
call fcn.004593d0
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
lea ecx, [ebp - 0x538]
lea edx, [ebp - 0x438]
push ecx
lea eax, [ebp - 0x338]
push edx
lea ecx, [ebp - 0x20]
push eax
lea edx, [ebp - 0x130]
push ecx
push edx
call fcn.0051d13a
add esp, 0x14
lea eax, [ebp - 0x338]
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x130]
push str.idmmzcc.xpi
push eax
push ecx
push 0x59879c
push edx
call fcn.0051d0e8
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x14
lea eax, [ebp - 0x130]
push eax
call esi
cmp eax, 0xffffffff
je 0x410211
mov ecx, dword [0x5b5ecc]
mov dword [ebp - 0x14], ecx
mov edx, dword [0x5ba8a4]
push str.idmmzcc2
push edx
lea eax, [ebp - 0x14]
push str._s_scomponentsidmmzcc.dll
push eax
mov byte [ebp - 4], 3
call fcn.0053091a
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push ecx
call esi
cmp eax, 0xffffffff
je 0x410340
mov edx, dword [0x5ba8a4]
push str.idmmzcc2
push edx
lea eax, [ebp - 0x14]
push str._s_scomponentsiIDMMzCC.xpt
push eax
call fcn.0053091a
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push ecx
call esi
cmp eax, 0xffffffff
je 0x410340
mov edx, dword [0x5ba8a4]
push str.idmmzcc2
push edx
lea eax, [ebp - 0x14]
push str._s_schromeidmmzcc.jar
push eax
call fcn.0053091a
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push ecx
call esi
cmp eax, 0xffffffff
je 0x410340
mov edx, dword [0x5ba8a4]
push str.idmmzcc2
push edx
lea eax, [ebp - 0x14]
push str._s_schrome.manifest
push eax
call fcn.0053091a
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push ecx
call esi
cmp eax, 0xffffffff
je 0x410340
mov ebx, dword [ebp + 8]
cmp ebx, edi
je 0x41039a
jmp 0x410343
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x130]
push edx
call fcn.0050e1c0
mov esi, eax
add esp, 4
cmp esi, edi
je 0x41039a
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.0050e5c0
add esp, 8
cmp edi, dword [ebp - 0x2c]
jae 0x410391
mov ecx, dword [ebp - 0x24]
push ecx
push ebx
push esi
call fcn.0040fa80
add esp, 0xc
test eax, eax
jne 0x410391
mov eax, dword [ebp - 0x2c]
inc edi
cmp edi, eax
jae 0x410391
push esi
call fcn.0050ea10
add esp, 4
test eax, eax
je 0x410365
push esi
call fcn.0050efc0
add esp, 4
lea edx, [ebp - 0x18]
push edx
push 0xf003f
push 0
push str.SoftwareMozillaFirefoxExtensions
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x410458
lea eax, [ebp - 0x18]
push 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push 0
push 0xf003f
push 0
push 0x5ba440
push 0
push str.SoftwareMozilla
push 0x80000001
call esi
test eax, eax
jne 0x410447
mov ecx, dword [ebp - 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call ebx
lea edx, [ebp - 0x18]
push 0
push edx
push 0
push 0xf003f
push 0
push 0x5ba440
push 0
push str.SoftwareMozillaFirefox
push 0x80000001
call esi
test eax, eax
jne 0x410447
mov eax, dword [ebp - 0x18]
push eax
call ebx
lea ecx, [ebp - 0x18]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0x5ba440
push 0
push str.SoftwareMozillaFirefoxExtensions
push 0x80000001
call esi
test eax, eax
je 0x41045e
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
jmp 0x410211
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x5b5ecc]
xor esi, esi
mov dword [ebp - 0x1c], edx
mov eax, dword [0x5ba8a4]
push str.idmmzcc2
push eax
lea ecx, [ebp - 0x1c]
push 0x598a7c
push ecx
mov byte [ebp - 4], 4
call fcn.0053091a
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 - 0x18]
push 1
push eax
push str.mozilla_cc_internetdownloadmanager.com
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4104b4
mov esi, 1
mov eax, dword [ebp - 0x18]
push eax
call ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.00537b04
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.00537b04
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4