Function at 0x40f050
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 0x40f162
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 0x40f148
lea eax, [esp + 0x18]
push 0x2e
push eax
mov esi, 1
call fcn.005e63d0
add esp, 8
test eax, eax
je 0x40f0f7
mov byte [eax], 0
lea ecx, [esp + 0x18]
push ecx
call fcn.005e6653
add esp, 4
test eax, eax
je 0x40f148
cmp eax, 0x34
mov dword [esp + 0x14], eax
jle 0x40f119
mov dword [ebx], 1
jmp 0x40f148
cmp eax, 0x1a
jle 0x40f12d
mov edx, dword [esp + 0x88]
mov dword [edx], 1
jmp 0x40f148
cmp eax, 7
jle 0x40f141
mov eax, dword [esp + 0x84]
mov dword [eax], 1
jmp 0x40f148
mov dword [ebp], 1
mov ecx, dword [esp + 0x80]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40f162
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 0x40f24c
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 0x40f232
lea eax, [esp + 0x18]
push 0x2e
push eax
mov esi, 1
call fcn.005e63d0
add esp, 8
test eax, eax
je 0x40f1e1
mov byte [eax], 0
lea ecx, [esp + 0x18]
push ecx
call fcn.005e6653
add esp, 4
test eax, eax
je 0x40f232
cmp eax, 0x34
mov dword [esp + 0x14], eax
jle 0x40f203
mov dword [ebx], 1
jmp 0x40f232
cmp eax, 0x1a
jle 0x40f217
mov edx, dword [esp + 0x88]
mov dword [edx], 1
jmp 0x40f232
cmp eax, 7
jle 0x40f22b
mov eax, dword [esp + 0x84]
mov dword [eax], 1
jmp 0x40f232
mov dword [ebp], 1
mov ecx, dword [esp + 0x80]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40f24c
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 0x40f336
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 0x40f31c
lea eax, [esp + 0x18]
push 0x2e
push eax
mov esi, 1
call fcn.005e63d0
add esp, 8
test eax, eax
je 0x40f2cb
mov byte [eax], 0
lea ecx, [esp + 0x18]
push ecx
call fcn.005e6653
add esp, 4
test eax, eax
je 0x40f31c
cmp eax, 0x34
mov dword [esp + 0x14], eax
jle 0x40f2ed
mov dword [ebx], 1
jmp 0x40f31c
cmp eax, 0x1a
jle 0x40f301
mov edx, dword [esp + 0x88]
mov dword [edx], 1
jmp 0x40f31c
cmp eax, 7
jle 0x40f315
mov eax, dword [esp + 0x84]
mov dword [eax], 1
jmp 0x40f31c
mov dword [ebp], 1
mov ecx, dword [esp + 0x80]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40f336
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 0x40f420
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 0x40f406
lea eax, [esp + 0x18]
push 0x2e
push eax
mov esi, 1
call fcn.005e63d0
add esp, 8
test eax, eax
je 0x40f3b5
mov byte [eax], 0
lea ecx, [esp + 0x18]
push ecx
call fcn.005e6653
add esp, 4
test eax, eax
je 0x40f406
cmp eax, 0x34
mov dword [esp + 0x14], eax
jle 0x40f3d7
mov dword [ebx], 1
jmp 0x40f406
cmp eax, 0x1a
jle 0x40f3eb
mov edx, dword [esp + 0x88]
mov dword [edx], 1
jmp 0x40f406
cmp eax, 7
jle 0x40f3ff
mov eax, dword [esp + 0x84]
mov dword [eax], 1
jmp 0x40f406
mov dword [ebp], 1
mov ecx, dword [esp + 0x80]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40f420
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.0040f570
add esp, 0x1c
test eax, eax
je 0x40f455
mov dword [esp + 0x10], 1
call fcn.00446350
test eax, eax
je 0x40f54e
lea eax, [esp + 0x14]
push eax
push ebx
push edi
push esi
push ebp
push 0x20119
push str.SoftwareMozillaMozilla_Firefox
call fcn.0040f570
add esp, 0x1c
test eax, eax
je 0x40f489
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.0040f570
add esp, 0x1c
test eax, eax
je 0x40f4b0
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.0040f570
add esp, 0x1c
test eax, eax
je 0x40f4d7
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.0040f570
add esp, 0x1c
test eax, eax
je 0x40f4fe
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.0040f570
add esp, 0x1c
test eax, eax
je 0x40f525
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.0040f570
add esp, 0x1c
test eax, eax
je 0x40f54e
mov dword [esp + 0x10], 1
jmp 0x40f556
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40f566
cmp dword [ebx], 0
jne 0x40f562
call fcn.0040eea0
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret