Function at 0x40eb00
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5498e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
mov eax, dword [0x5b5ecc]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x198], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push str.SoftwareMozillaMozilla_Firefox
mov ecx, ebp
mov byte [esp + 0x1a4], 1
mov byte [ebp + 0x66], 0
call fcn.0040e960
test eax, eax
je 0x40eb89
mov edx, dword [esp + 0x10]
mov ecx, ebp
push edx
push 9
call fcn.0040f2e0
test eax, eax
je 0x40eb75
mov byte [ebp + 0x66], 1
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor eax, eax
push 0
mov al, byte [ebp + 0x66]
push eax
push ecx
push edx
jmp 0x40ebb1
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push str.Softwaremozilla.orgMozilla_Firefox
mov ecx, ebp
call fcn.0040e960
test eax, eax
je 0x40ebba
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0
push 0
push edx
push eax
push 2
mov ecx, ebp
call fcn.0040eff0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push str.SOFTWAREmozilla.orgMozilla
mov ecx, ebp
call fcn.0040e960
test eax, eax
je 0x40ebeb
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
push 0
push eax
push ecx
push 4
mov ecx, ebp
call fcn.0040eff0
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push str.SOFTWARENetscapeNetscape
mov ecx, ebp
call fcn.0040e960
test eax, eax
je 0x40ec1c
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 0
push 0
push ecx
push edx
push 5
mov ecx, ebp
call fcn.0040eff0
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push str.SOFTWARENetscapeNetscape_6
mov ecx, ebp
call fcn.0040e960
test eax, eax
je 0x40ec4d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push 0
push 0
push edx
push eax
push 5
mov ecx, ebp
call fcn.0040eff0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push edx
push str.SOFTWARENetscapeNetscape_Browser
mov ecx, ebp
call fcn.0040e960
test eax, eax
je 0x40ec7e
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
push 0
push eax
push ecx
push 8
mov ecx, ebp
call fcn.0040eff0
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
push str.SOFTWAREMozillaNetscape_Navigator
mov ecx, ebp
call fcn.0040e960
test eax, eax
je 0x40ecaf
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 0
push 0
push ecx
push edx
push 0xb
mov ecx, ebp
call fcn.0040eff0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x1c]
push eax
push 0xf003f
push 0
push str.SoftwareFlockFlock
push 0x80000002
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40ee1e
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x12c]
push ecx
push edx
push 0
push 0
push str.CurrentVersion
push eax
mov dword [esp + 0x30], 0x64
call esi
test eax, eax
jne 0x40ee13
mov ecx, dword [0x5b5ecc]
mov dword [esp + 0x20], ecx
lea edx, [esp + 0x12c]
lea eax, [esp + 0x20]
push edx
push str._sMain
push eax
mov byte [esp + 0x1a4], 2
call fcn.0053091a
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
add esp, 0xc
lea ecx, [esp + 0x24]
push ecx
push 0xf003f
push 0
push edx
push eax
call ebx
test eax, eax
jne 0x40ee02
lea ecx, [esp + 0x18]
lea edx, [esp + 0x28]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x34]
push str.Install_Directory
push eax
mov dword [esp + 0x30], 0x104
call esi
test eax, eax
jne 0x40edf7
lea ecx, [esp + 0x28]
lea edx, [esp + 0x14]
push ecx
push str._s_flock.exe
push edx
call fcn.0053091a
add esp, 0xc
lea eax, [esp + 0x12c]
lea ecx, [esp + 0x10]
push eax
push 0x597ddc
push ecx
call fcn.0053091a
mov edx, dword [esp + 0x1c]
push 0x20
push edx
call fcn.0051c7f0
add esp, 0x14
test eax, eax
je 0x40ede0
mov byte [eax], 0
mov edx, dword [esp + 0x10]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + edx - 1], 0x2e
jne 0x40ede0
dec ecx
push 0
push ecx
lea ecx, [esp + 0x18]
call fcn.00538038
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push 0
push 0
push eax
push ecx
push 6
mov ecx, ebp
call fcn.0040eff0
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
mov byte [esp + 0x198], 1
call fcn.00537b04
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
push ecx
push 0xf003f
push 0
push str.SoftwareOpera_Software
push 0x80000001
call ebx
test eax, eax
jne 0x40efa9
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push 0
mov edi, 0x104
push str.Last_Directory
push ecx
mov dword [esp + 0x30], edi
call esi
test eax, eax
je 0x40ef9e
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push 0
push str.Last_CommandLine
push ecx
mov dword [esp + 0x30], edi
call esi
test eax, eax
je 0x40eeb3
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
lea eax, [esp + 0x28]
push edx
push eax
push 0
push 0
push str.Last_Directory2
push ecx
mov dword [esp + 0x30], edi
call esi
test eax, eax
jne 0x40ef9e
jmp 0x40ef08
lea edx, [esp + 0x28]
push 0x598fd0
push edx
call fcn.0051cb70
add esp, 8
test eax, eax
je 0x40eee2
lea eax, [esp + 0x28]
push 0x5c
push eax
call fcn.0051c7b0
add esp, 8
test eax, eax
je 0x40ef08
mov byte [eax + 1], 0
jmp 0x40ef08
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x28]
push ecx
push edx
push 0
push 0
push str.Last_Directory2
push eax
mov dword [esp + 0x30], edi
call esi
test eax, eax
jne 0x40ef9e
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x27], 0x5c
je 0x40ef4b
mov edi, 0x598f5c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x14]
push eax
push str._sOpera.exe
push ecx
call fcn.0053091a
mov eax, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 0x10]
mov ecx, ebp
push 0
push edx
push eax
call fcn.0040f420
test eax, eax
jne 0x40ef87
push 0x599794
lea ecx, [esp + 0x14]
call fcn.00537c8d
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
push 0
push 0
push ecx
push edx
push 3
mov ecx, ebp
call fcn.0040eff0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x198], 0
call fcn.00537b04
lea ecx, [esp + 0x14]
mov dword [esp + 0x198], 0xffffffff
call fcn.00537b04
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret