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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554123
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 0x410696
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x238]
mov esi, eax
call fcn.0045eaa0
mov ecx, dword [0x5c2a74]
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.0053afda
mov eax, dword [ebp + 8]
add esp, 0xc
lea ecx, [ebp - 0x238]
push 1
push eax
call fcn.0045eb80
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.005421be
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 0
call fcn.0045eb70
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.0052776a
add esp, 0x14
lea eax, [ebp - 0x338]
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x130]
push str.idmmzcc.xpi
push eax
push ecx
push 0x5a47ec
push edx
call fcn.00527718
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0x14
lea eax, [ebp - 0x130]
push eax
call esi
cmp eax, 0xffffffff
je 0x410681
mov ecx, dword [0x5c2a74]
mov dword [ebp - 0x14], ecx
mov edx, dword [0x5c7498]
push str.idmmzcc2
push edx
lea eax, [ebp - 0x14]
push str._s_scomponentsidmmzcc.dll
push eax
mov byte [ebp - 4], 3
call fcn.0053afda
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push ecx
call esi
cmp eax, 0xffffffff
je 0x4107b0
mov edx, dword [0x5c7498]
push str.idmmzcc2
push edx
lea eax, [ebp - 0x14]
push str._s_scomponentsiIDMMzCC.xpt
push eax
call fcn.0053afda
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push ecx
call esi
cmp eax, 0xffffffff
je 0x4107b0
mov edx, dword [0x5c7498]
push str.idmmzcc2
push edx
lea eax, [ebp - 0x14]
push str._s_schromeidmmzcc.jar
push eax
call fcn.0053afda
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push ecx
call esi
cmp eax, 0xffffffff
je 0x4107b0
mov edx, dword [0x5c7498]
push str.idmmzcc2
push edx
lea eax, [ebp - 0x14]
push str._s_schrome.manifest
push eax
call fcn.0053afda
mov ecx, dword [ebp - 0x14]
add esp, 0x10
push ecx
call esi
cmp eax, 0xffffffff
je 0x4107b0
mov ebx, dword [ebp + 8]
cmp ebx, edi
je 0x41080a
jmp 0x4107b3
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x130]
push edx
call fcn.00518730
mov esi, eax
add esp, 4
cmp esi, edi
je 0x41080a
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.00518b30
add esp, 8
cmp edi, dword [ebp - 0x2c]
jae 0x410801
mov ecx, dword [ebp - 0x24]
push ecx
push ebx
push esi
call fcn.0040fef0
add esp, 0xc
test eax, eax
jne 0x410801
mov eax, dword [ebp - 0x2c]
inc edi
cmp edi, eax
jae 0x410801
push esi
call fcn.00518f80
add esp, 4
test eax, eax
je 0x4107d5
push esi
call fcn.00519530
add esp, 4
lea edx, [ebp - 0x18]
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 0x4108c8
lea eax, [ebp - 0x18]
push 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
push 0
push 0xf003f
push 0
push 0x5c6ff0
push 0
push str.SoftwareMozilla
push reloc.WSOCK32.dll_accept
call esi
test eax, eax
jne 0x4108b7
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 0x5c6ff0
push 0
push str.SoftwareMozillaFirefox
push reloc.WSOCK32.dll_accept
call esi
test eax, eax
jne 0x4108b7
mov eax, dword [ebp - 0x18]
push eax
call ebx
lea ecx, [ebp - 0x18]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0x5c6ff0
push 0
push str.SoftwareMozillaFirefoxExtensions
push reloc.WSOCK32.dll_accept
call esi
test eax, eax
je 0x4108ce
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005421be
jmp 0x410681
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x5c2a74]
xor esi, esi
mov dword [ebp - 0x1c], edx
mov eax, dword [0x5c7498]
push str.idmmzcc2
push eax
lea ecx, [ebp - 0x1c]
push 0x5a4b44
push ecx
mov byte [ebp - 4], 4
call fcn.0053afda
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 0x410924
mov esi, 1
mov eax, dword [ebp - 0x18]
push eax
call ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.005421be
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.005421be
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