Function at 0x40dc70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x70
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push ebp
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 ebp, ebp
call ebx
test eax, eax
jne 0x40dd14
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 0x40dd01
lea ecx, [esp + 0x1c]
push 0x2e
push ecx
mov esi, 1
call fcn.005c72c0
add esp, 8
test eax, eax
je 0x40dd01
lea edx, [esp + 0x1c]
mov byte [eax], 0
push edx
call fcn.005c7603
add esp, 4
test eax, eax
je 0x40dd01
mov ebp, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40dd14
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0x14]
xor esi, esi
push ecx
push 0x20019
push esi
push str.SoftwareMozillaAurora
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x40ddab
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 0x40dd92
lea edx, [esp + 0x1c]
push 0x2e
push edx
mov esi, 1
call fcn.005c72c0
add esp, 8
test eax, eax
je 0x40dd92
mov byte [eax], 0
lea eax, [esp + 0x1c]
push eax
call fcn.005c7603
add esp, 4
test eax, eax
je 0x40dd92
mov ebp, eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40ddab
cmp dword [esp + 0x10], ebp
jge 0x40ddab
mov dword [esp + 0x10], ebp
call fcn.00441af0
test eax, eax
je 0x40df89
lea edx, [esp + 0x14]
xor esi, esi
push edx
push 0x20119
push esi
push str.SoftwareMozillaMozilla_Firefox
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x40de4f
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 0x40de36
lea eax, [esp + 0x1c]
push 0x2e
push eax
mov esi, 1
call fcn.005c72c0
add esp, 8
test eax, eax
je 0x40de36
lea ecx, [esp + 0x1c]
mov byte [eax], 0
push ecx
call fcn.005c7603
add esp, 4
test eax, eax
je 0x40de36
mov ebp, eax
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40de4f
cmp dword [esp + 0x10], ebp
jge 0x40de4f
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x14]
xor esi, esi
push eax
push 0x20119
push esi
push str.SoftwareMozillaAurora
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x40dee6
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 0x40decd
lea ecx, [esp + 0x1c]
push 0x2e
push ecx
mov esi, 1
call fcn.005c72c0
add esp, 8
test eax, eax
je 0x40decd
lea edx, [esp + 0x1c]
mov byte [eax], 0
push edx
call fcn.005c7603
add esp, 4
test eax, eax
je 0x40decd
mov ebp, eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40dee6
cmp dword [esp + 0x10], ebp
jge 0x40dee6
mov dword [esp + 0x10], ebp
lea ecx, [esp + 0x14]
xor esi, esi
push ecx
push 0x20119
push esi
push str.SoftwareMozillaWaterfox
push reloc.WS2_32.dll_bind
call ebx
test eax, eax
jne 0x40df89
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 0x40df68
lea edx, [esp + 0x1c]
push 0x2e
push edx
mov esi, 1
call fcn.005c72c0
add esp, 8
test eax, eax
je 0x40df68
mov byte [eax], 0
lea eax, [esp + 0x1c]
push eax
call fcn.005c7603
add esp, 4
test eax, eax
je 0x40df68
mov ebp, eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
test esi, esi
je 0x40df8d
cmp eax, ebp
jge 0x40df8d
pop edi
mov eax, ebp
pop esi
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