Function at 0x40e670
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5f55fb
push eax
mov dword fs:[0], esp
sub esp, 0xfc
lea eax, [esp]
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SoftwareMozillaMozilla_Firefox
push reloc.WS2_32.dll_bind
mov ebp, 1
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e72c
mov ecx, 0x19
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
push edx
push ebx
push ebx
push str.CurrentVersion
push eax
mov dword [esp + 0x2c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e719
lea ecx, [esp + 0x28]
push 0x2e
push ecx
mov esi, ebp
call fcn.005c72c0
add esp, 8
cmp eax, ebx
je 0x40e719
lea edx, [esp + 0x28]
mov byte [eax], bl
push edx
call fcn.005c7603
add esp, 4
cmp eax, ebx
je 0x40e719
cmp eax, 8
jge 0x40e719
xor ebp, ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x40e9ad
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
push 0x20019
push ebx
push str.SoftwareMozillaAurora
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e7c7
mov ecx, 0x19
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x28]
push edx
push eax
push ebx
push ebx
push str.CurrentVersion
push ecx
mov dword [esp + 0x2c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e7b4
lea edx, [esp + 0x28]
mov esi, 1
push 0x2e
push edx
mov ebp, esi
call fcn.005c72c0
add esp, 8
cmp eax, ebx
je 0x40e7b4
mov byte [eax], bl
lea eax, [esp + 0x28]
push eax
call fcn.005c7603
add esp, 4
cmp eax, ebx
je 0x40e7b4
cmp eax, 8
jge 0x40e7b4
xor ebp, ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x40e9ad
call fcn.00441af0
test eax, eax
je 0x40e9a1
lea edx, [esp + 0x10]
xor esi, esi
push edx
push 0x20119
push ebx
push str.SoftwareMozillaMozilla_Firefox
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e86f
mov ecx, 0x19
lea edi, [esp + 0x28]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], 0x64
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
push ecx
push ebx
push ebx
push str.CurrentVersion
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e85c
lea eax, [esp + 0x28]
mov esi, 1
push 0x2e
push eax
mov ebp, esi
call fcn.005c72c0
add esp, 8
cmp eax, ebx
je 0x40e85c
lea ecx, [esp + 0x28]
mov byte [eax], bl
push ecx
call fcn.005c7603
add esp, 4
cmp eax, ebx
je 0x40e85c
cmp eax, 8
jge 0x40e85c
xor ebp, ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x40e9ad
lea eax, [esp + 0x10]
xor esi, esi
push eax
push 0x20119
push ebx
push str.SoftwareMozillaAurora
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e90a
mov ecx, 0x19
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x28]
push ecx
push edx
push ebx
push ebx
push str.CurrentVersion
push eax
mov dword [esp + 0x2c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e8f7
lea ecx, [esp + 0x28]
mov esi, 1
push 0x2e
push ecx
mov ebp, esi
call fcn.005c72c0
add esp, 8
cmp eax, ebx
je 0x40e8f7
lea edx, [esp + 0x28]
mov byte [eax], bl
push edx
call fcn.005c7603
add esp, 4
cmp eax, ebx
je 0x40e8f7
cmp eax, 8
jge 0x40e8f7
xor ebp, ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x40e9ad
lea ecx, [esp + 0x10]
xor esi, esi
push ecx
push 0x20119
push ebx
push str.SoftwareMozillaWaterfox
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40e9a1
mov ecx, 0x19
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x28]
push edx
push eax
push ebx
push ebx
push str.CurrentVersion
push ecx
mov dword [esp + 0x2c], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e992
lea edx, [esp + 0x28]
mov esi, 1
push 0x2e
push edx
mov ebp, esi
call fcn.005c72c0
add esp, 8
cmp eax, ebx
je 0x40e992
mov byte [eax], bl
lea eax, [esp + 0x28]
push eax
call fcn.005c7603
add esp, 4
cmp eax, ebx
je 0x40e992
cmp eax, 8
jge 0x40e992
xor ebp, ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x40e9ad
call fcn.0040e5a0
xor eax, eax
jmp 0x40eb02
call fcn.0040dc70
mov edi, eax
push edi
call fcn.0040e2e0
add esp, 4
test eax, eax
je 0x40e9c8
xor eax, eax
jmp 0x40eb02
lea edx, [esp + 0x18]
push edx
push 0xf003f
push ebx
push str.SoftwareMozillaFirefoxExtensions
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40e9ee
xor eax, eax
jmp 0x40eb02
cmp dword [esp + 0x11c], ebx
je 0x40ea31
cmp ebp, ebx
je 0x40ea31
xor esi, esi
push 0x6a2f5c
call fcn.00418560
add esp, 4
test eax, eax
jne 0x40ea24
push 0x3e8
call fcn.00423810
add esp, 4
inc esi
cmp esi, 0x12c
jl 0x40e9fd
push 0x2bf20
call fcn.00423810
add esp, 4
xor esi, esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov word [esp + 0x20], bx
cmp edi, 0x1a
mov dword [esp + 0x114], ebx
mov ecx, str.idmmzcc7
jg 0x40ea56
mov ecx, str.idmmzcc5
mov eax, dword [0x6d1130]
cmp eax, ebx
jne 0x40ea64
mov eax, 0x6d1134
push ecx
push eax
push 0x6a2074
lea ecx, [esp + 0x28]
call fcn.0040eb20
cmp edi, 0x1a
mov eax, 0x6a2d34
jg 0x40ea83
mov eax, 0x6a2ce4
push eax
lea eax, [esp + 0x90]
push eax
call fcn.005c742a
lea ecx, [esp + 0x94]
push ecx
call fcn.0040ecb0
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.00402050
push eax
call fcn.005c7292
add esp, 4
lea edx, [eax + eax + 2]
lea ecx, [esp + 0x1c]
push edx
call fcn.00402050
mov ecx, dword [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x98]
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40eae1
mov esi, 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x114], 0xffffffff
call fcn.00401070
mov eax, esi
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x108
ret