Function at 0x40f030
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 0x40f142
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 0x40f128
lea eax, [esp + 0x18]
push 0x2e
push eax
mov esi, 1
call fcn.005e71f0
add esp, 8
test eax, eax
je 0x40f0d7
mov byte [eax], 0
lea ecx, [esp + 0x18]
push ecx
call fcn.005e7473
add esp, 4
test eax, eax
je 0x40f128
cmp eax, 0x34
mov dword [esp + 0x14], eax
jle 0x40f0f9
mov dword [ebx], 1
jmp 0x40f128
cmp eax, 0x1a
jle 0x40f10d
mov edx, dword [esp + 0x88]
mov dword [edx], 1
jmp 0x40f128
cmp eax, 7
jle 0x40f121
mov eax, dword [esp + 0x84]
mov dword [eax], 1
jmp 0x40f128
mov dword [ebp], 1
mov ecx, dword [esp + 0x80]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40f142
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 0x40f22c
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 0x40f212
lea eax, [esp + 0x18]
push 0x2e
push eax
mov esi, 1
call fcn.005e71f0
add esp, 8
test eax, eax
je 0x40f1c1
mov byte [eax], 0
lea ecx, [esp + 0x18]
push ecx
call fcn.005e7473
add esp, 4
test eax, eax
je 0x40f212
cmp eax, 0x34
mov dword [esp + 0x14], eax
jle 0x40f1e3
mov dword [ebx], 1
jmp 0x40f212
cmp eax, 0x1a
jle 0x40f1f7
mov edx, dword [esp + 0x88]
mov dword [edx], 1
jmp 0x40f212
cmp eax, 7
jle 0x40f20b
mov eax, dword [esp + 0x84]
mov dword [eax], 1
jmp 0x40f212
mov dword [ebp], 1
mov ecx, dword [esp + 0x80]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40f22c
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 0x40f316
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 0x40f2fc
lea eax, [esp + 0x18]
push 0x2e
push eax
mov esi, 1
call fcn.005e71f0
add esp, 8
test eax, eax
je 0x40f2ab
mov byte [eax], 0
lea ecx, [esp + 0x18]
push ecx
call fcn.005e7473
add esp, 4
test eax, eax
je 0x40f2fc
cmp eax, 0x34
mov dword [esp + 0x14], eax
jle 0x40f2cd
mov dword [ebx], 1
jmp 0x40f2fc
cmp eax, 0x1a
jle 0x40f2e1
mov edx, dword [esp + 0x88]
mov dword [edx], 1
jmp 0x40f2fc
cmp eax, 7
jle 0x40f2f5
mov eax, dword [esp + 0x84]
mov dword [eax], 1
jmp 0x40f2fc
mov dword [ebp], 1
mov ecx, dword [esp + 0x80]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40f316
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 0x40f400
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 0x40f3e6
lea eax, [esp + 0x18]
push 0x2e
push eax
mov esi, 1
call fcn.005e71f0
add esp, 8
test eax, eax
je 0x40f395
mov byte [eax], 0
lea ecx, [esp + 0x18]
push ecx
call fcn.005e7473
add esp, 4
test eax, eax
je 0x40f3e6
cmp eax, 0x34
mov dword [esp + 0x14], eax
jle 0x40f3b7
mov dword [ebx], 1
jmp 0x40f3e6
cmp eax, 0x1a
jle 0x40f3cb
mov edx, dword [esp + 0x88]
mov dword [edx], 1
jmp 0x40f3e6
cmp eax, 7
jle 0x40f3df
mov eax, dword [esp + 0x84]
mov dword [eax], 1
jmp 0x40f3e6
mov dword [ebp], 1
mov ecx, dword [esp + 0x80]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40f400
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.0040f550
add esp, 0x1c
test eax, eax
je 0x40f435
mov dword [esp + 0x10], 1
call fcn.004466f0
test eax, eax
je 0x40f52e
lea eax, [esp + 0x14]
push eax
push ebx
push edi
push esi
push ebp
push 0x20119
push str.SoftwareMozillaMozilla_Firefox
call fcn.0040f550
add esp, 0x1c
test eax, eax
je 0x40f469
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.0040f550
add esp, 0x1c
test eax, eax
je 0x40f490
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.0040f550
add esp, 0x1c
test eax, eax
je 0x40f4b7
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.0040f550
add esp, 0x1c
test eax, eax
je 0x40f4de
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.0040f550
add esp, 0x1c
test eax, eax
je 0x40f505
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.0040f550
add esp, 0x1c
test eax, eax
je 0x40f52e
mov dword [esp + 0x10], 1
jmp 0x40f536
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40f546
cmp dword [ebx], 0
jne 0x40f542
call fcn.0040ee80
mov dword [ebx], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret