Function at 0x40f060
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x6c
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
push ebx
mov ebx, dword [esp + 0x80]
push ebp
mov ebp, dword [esp + 0x78]
push esi
lea edx, [esp + 0x7c]
push edi
xor esi, esi
push edx
push 0x20019
mov dword [ebp], esi
push esi
mov dword [eax], esi
push str.SoftwareMozillaMozilla_Firefox
mov dword [ecx], esi
push reloc.WS2_32.dll_bind
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [ebx], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f172
mov ecx, 0x19
lea edi, [esp + 0x18]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x8c], 0x64
rep stosd dword es:[edi], eax
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x18]
push eax
push ecx
push esi
push esi
push str.CurrentVersion
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f158
lea eax, [esp + 0x18]
push 0x2e
push eax
mov esi, 1
call fcn.005e51d0
add esp, 8
test eax, eax
je 0x40f107
mov byte [eax], 0
lea ecx, [esp + 0x18]
push ecx
call fcn.005e5453
add esp, 4
test eax, eax
je 0x40f158
cmp eax, 0x34
mov dword [esp + 0x14], eax
jle 0x40f129
mov dword [ebx], 1
jmp 0x40f158
cmp eax, 0x1a
jle 0x40f13d
mov edx, dword [esp + 0x88]
mov dword [edx], 1
jmp 0x40f158
cmp eax, 7
jle 0x40f151
mov eax, dword [esp + 0x84]
mov dword [eax], 1
jmp 0x40f158
mov dword [ebp], 1
mov ecx, dword [esp + 0x80]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40f172
mov dword [esp + 0x10], 1
lea edx, [esp + 0x80]
xor esi, esi
push edx
push 0x20019
push esi
push str.SoftwareMozillaAurora
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f25c
mov ecx, 0x19
lea edi, [esp + 0x18]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x8c], 0x64
rep stosd dword es:[edi], eax
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x18]
push eax
push ecx
push esi
push esi
push str.CurrentVersion
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f242
lea eax, [esp + 0x18]
push 0x2e
push eax
mov esi, 1
call fcn.005e51d0
add esp, 8
test eax, eax
je 0x40f1f1
mov byte [eax], 0
lea ecx, [esp + 0x18]
push ecx
call fcn.005e5453
add esp, 4
test eax, eax
je 0x40f242
cmp eax, 0x34
mov dword [esp + 0x14], eax
jle 0x40f213
mov dword [ebx], 1
jmp 0x40f242
cmp eax, 0x1a
jle 0x40f227
mov edx, dword [esp + 0x88]
mov dword [edx], 1
jmp 0x40f242
cmp eax, 7
jle 0x40f23b
mov eax, dword [esp + 0x84]
mov dword [eax], 1
jmp 0x40f242
mov dword [ebp], 1
mov ecx, dword [esp + 0x80]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40f25c
mov dword [esp + 0x10], 1
lea edx, [esp + 0x80]
xor esi, esi
push edx
push 0x20019
push esi
push str.SoftwareMozillaMozilla_Firefox_ESR
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f346
mov ecx, 0x19
lea edi, [esp + 0x18]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x8c], 0x64
rep stosd dword es:[edi], eax
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x18]
push eax
push ecx
push esi
push esi
push str.CurrentVersion
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f32c
lea eax, [esp + 0x18]
push 0x2e
push eax
mov esi, 1
call fcn.005e51d0
add esp, 8
test eax, eax
je 0x40f2db
mov byte [eax], 0
lea ecx, [esp + 0x18]
push ecx
call fcn.005e5453
add esp, 4
test eax, eax
je 0x40f32c
cmp eax, 0x34
mov dword [esp + 0x14], eax
jle 0x40f2fd
mov dword [ebx], 1
jmp 0x40f32c
cmp eax, 0x1a
jle 0x40f311
mov edx, dword [esp + 0x88]
mov dword [edx], 1
jmp 0x40f32c
cmp eax, 7
jle 0x40f325
mov eax, dword [esp + 0x84]
mov dword [eax], 1
jmp 0x40f32c
mov dword [ebp], 1
mov ecx, dword [esp + 0x80]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40f346
mov dword [esp + 0x10], 1
lea edx, [esp + 0x80]
xor esi, esi
push edx
push 0x20019
push esi
push str.SoftwareMozillaNightly
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40f430
mov ecx, 0x19
lea edi, [esp + 0x18]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x8c], 0x64
rep stosd dword es:[edi], eax
lea eax, [esp + 0x8c]
lea ecx, [esp + 0x18]
push eax
push ecx
push esi
push esi
push str.CurrentVersion
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40f416
lea eax, [esp + 0x18]
push 0x2e
push eax
mov esi, 1
call fcn.005e51d0
add esp, 8
test eax, eax
je 0x40f3c5
mov byte [eax], 0
lea ecx, [esp + 0x18]
push ecx
call fcn.005e5453
add esp, 4
test eax, eax
je 0x40f416
cmp eax, 0x34
mov dword [esp + 0x14], eax
jle 0x40f3e7
mov dword [ebx], 1
jmp 0x40f416
cmp eax, 0x1a
jle 0x40f3fb
mov edx, dword [esp + 0x88]
mov dword [edx], 1
jmp 0x40f416
cmp eax, 7
jle 0x40f40f
mov eax, dword [esp + 0x84]
mov dword [eax], 1
jmp 0x40f416
mov dword [ebp], 1
mov ecx, dword [esp + 0x80]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40f430
mov dword [esp + 0x10], 1
mov edi, dword [esp + 0x88]
mov esi, dword [esp + 0x84]
lea edx, [esp + 0x14]
push edx
push ebx
push edi
push esi
push ebp
push 0x20019
push str.SoftwareMozillaFirefox_Developer_Edition
call fcn.0040f580
add esp, 0x1c
test eax, eax
je 0x40f465
mov dword [esp + 0x10], 1
call fcn.00446240
test eax, eax
je 0x40f55e
lea eax, [esp + 0x14]
push eax
push ebx
push edi
push esi
push ebp
push 0x20119
push str.SoftwareMozillaMozilla_Firefox
call fcn.0040f580
add esp, 0x1c
test eax, eax
je 0x40f499
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x14]
push ecx
push ebx
push edi
push esi
push ebp
push 0x20119
push str.SoftwareMozillaAurora
call fcn.0040f580
add esp, 0x1c
test eax, eax
je 0x40f4c0
mov dword [esp + 0x10], 1
lea edx, [esp + 0x14]
push edx
push ebx
push edi
push esi
push ebp
push 0x20119
push str.SoftwareMozillaWaterfox
call fcn.0040f580
add esp, 0x1c
test eax, eax
je 0x40f4e7
mov dword [esp + 0x10], 1
lea eax, [esp + 0x14]
push eax
push ebx
push edi
push esi
push ebp
push 0x20119
push str.SoftwareMozillaMozilla_Firefox_ESR
call fcn.0040f580
add esp, 0x1c
test eax, eax
je 0x40f50e
mov dword [esp + 0x10], 1
lea ecx, [esp + 0x14]
push ecx
push ebx
push edi
push esi
push ebp
push 0x20119
push str.SoftwareMozillaNightly
call fcn.0040f580
add esp, 0x1c
test eax, eax
je 0x40f535
mov dword [esp + 0x10], 1
lea edx, [esp + 0x14]
push edx
push ebx
push edi
push esi
push ebp
push 0x20119
push str.SoftwareMozillaFirefox_Developer_Edition
call fcn.0040f580
add esp, 0x1c
test eax, eax
je 0x40f55e
mov dword [esp + 0x10], 1
jmp 0x40f566
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40f576
cmp dword [ebx], 0
jne 0x40f572
call fcn.0040eeb0
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret