Function at 0x40dfa0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x70
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
lea eax, [esp + 0x10]
push edi
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwareMozillaMozilla_Firefox
push reloc.WS2_32.dll_bind
mov dword [esp + 0x24], esi
xor ebx, ebx
call ebp
test eax, eax
jne 0x40e043
mov ecx, 0x19
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x24]
push str.CurrentVersion
push eax
mov dword [esp + 0x30], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e030
lea ecx, [esp + 0x1c]
push 0x2e
push ecx
mov esi, 1
call fcn.005c72c0
add esp, 8
test eax, eax
je 0x40e030
lea edx, [esp + 0x1c]
mov byte [eax], bl
push edx
call fcn.005c7603
add esp, 4
test eax, eax
je 0x40e030
mov ebx, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40e043
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x14]
xor esi, esi
push ecx
push 0x20019
push esi
push str.SoftwareMozillaAurora
push reloc.WS2_32.dll_bind
call ebp
test eax, eax
jne 0x40e0de
mov ecx, 0x19
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
push esi
push esi
push str.CurrentVersion
push ecx
mov dword [esp + 0x30], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e0c1
lea edx, [esp + 0x1c]
push 0x2e
push edx
mov esi, 1
call fcn.005c72c0
add esp, 8
test eax, eax
je 0x40e0c1
mov byte [eax], 0
lea eax, [esp + 0x1c]
push eax
call fcn.005c7603
add esp, 4
test eax, eax
je 0x40e0c1
mov ebx, eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40e0de
test ebx, ebx
je 0x40e0de
cmp dword [esp + 0x10], ebx
jle 0x40e0de
mov dword [esp + 0x10], ebx
call fcn.00441af0
test eax, eax
je 0x40e2c8
lea edx, [esp + 0x14]
xor esi, esi
push edx
push 0x20119
push esi
push str.SoftwareMozillaMozilla_Firefox
push reloc.WS2_32.dll_bind
call ebp
test eax, eax
jne 0x40e186
mov ecx, 0x19
lea edi, [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], 0x64
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x1c]
push eax
push ecx
push esi
push esi
push str.CurrentVersion
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e169
lea eax, [esp + 0x1c]
push 0x2e
push eax
mov esi, 1
call fcn.005c72c0
add esp, 8
test eax, eax
je 0x40e169
lea ecx, [esp + 0x1c]
mov byte [eax], 0
push ecx
call fcn.005c7603
add esp, 4
test eax, eax
je 0x40e169
mov ebx, eax
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40e186
test ebx, ebx
je 0x40e186
cmp dword [esp + 0x10], ebx
jle 0x40e186
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x14]
xor esi, esi
push eax
push 0x20119
push esi
push str.SoftwareMozillaAurora
push reloc.WS2_32.dll_bind
call ebp
test eax, eax
jne 0x40e221
mov ecx, 0x19
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x24]
push str.CurrentVersion
push eax
mov dword [esp + 0x30], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e204
lea ecx, [esp + 0x1c]
push 0x2e
push ecx
mov esi, 1
call fcn.005c72c0
add esp, 8
test eax, eax
je 0x40e204
lea edx, [esp + 0x1c]
mov byte [eax], 0
push edx
call fcn.005c7603
add esp, 4
test eax, eax
je 0x40e204
mov ebx, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40e221
test ebx, ebx
je 0x40e221
cmp dword [esp + 0x10], ebx
jle 0x40e221
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x14]
xor esi, esi
push ecx
push 0x20119
push esi
push str.SoftwareMozillaWaterfox
push reloc.WS2_32.dll_bind
call ebp
test eax, eax
jne 0x40e2c8
mov ecx, 0x19
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
lea eax, [esp + 0x1c]
push edx
push eax
push esi
push esi
push str.CurrentVersion
push ecx
mov dword [esp + 0x30], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40e2a3
lea edx, [esp + 0x1c]
push 0x2e
push edx
mov esi, 1
call fcn.005c72c0
add esp, 8
test eax, eax
je 0x40e2a3
mov byte [eax], 0
lea eax, [esp + 0x1c]
push eax
call fcn.005c7603
add esp, 4
test eax, eax
je 0x40e2a3
mov ebx, eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40e2c8
mov eax, dword [esp + 0x10]
test ebx, ebx
je 0x40e2cc
cmp eax, ebx
jle 0x40e2cc
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x70
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret