Function at 0x10066bc0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009dbd7
mov eax, dword fs:[0]
push eax
sub esp, 0x500
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x4f8], eax
push ebx
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x510]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
mov word [esp + 0x304], ax
lea eax, [esp + 0x306]
push eax
xor bl, bl
call sub.MSVCR110.dll_memset
xor eax, eax
add esp, 0xc
mov dword [esp + 0x1c], 0
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], eax
mov word [esp + 0x3c], ax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], eax
mov word [esp + 0x54], ax
xor esi, esi
mov dword [esp + 0x518], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov byte [esp + 0x518], 1
push 0x206
xor edi, edi
mov word [esp + 0xf8], ax
lea eax, [esp + 0xfa]
push edi
push eax
mov dword [esp + 0x7c], 0x104
call sub.MSVCR110.dll_memset
add esp, 0xc
xor eax, eax
push 0x10
push str.SOFTWAREMozilla
lea ecx, [esp + 0x7c]
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], edi
mov word [esp + 0x7c], ax
call fcn.100089b0
mov byte [esp + 0x518], 2
cmp dword [esp + 0x88], 8
lea ecx, [esp + 0x6c]
push ecx
push 0x20019
lea eax, [esp + 0x7c]
cmovae eax, dword [esp + 0x7c]
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x80], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10066e5a
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
lea esp, [esp]
lea eax, [esp + 0x8c]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x108]
push eax
push edi
push esi
mov dword [esp + 0x90], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10066e45
push 0x11
push str.SOFTWAREMozilla_
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], reloc.OLEAUT32.dll_SysReAllocString
call fcn.100089b0
cmp word [esp + 0xf4], 0
jne 0x10066d80
xor eax, eax
jmp 0x10066d9f
lea eax, [esp + 0xf4]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10066d90
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x2c]
call fcn.10011f70
push 4
push str._bin
lea ecx, [esp + 0x2c]
call fcn.10011f70
push 9
push str.PathToExe
lea ecx, [esp + 0x44]
call fcn.100089b0
push 0xb
push str.firefox.exe
lea ecx, [esp + 0x5c]
call fcn.100089b0
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x24], 1
call sym.iImportLib.dll_bool___cdecl_elex::software::GetAppPathByReg_class_elex::software::iCheckApp_const__
mov bl, al
add esp, 4
inc edi
test bl, bl
je 0x10066d20
cmp dword [esp + 0x50], 8
push 0
lea edx, [esp + 0x70]
push edx
lea edx, [esp + 0x304]
push edx
lea ecx, [esp + 0x48]
cmovae ecx, dword [esp + 0x48]
cmp dword [esp + 0x44], 8
push 1
lea eax, [esp + 0x34]
cmovae eax, dword [esp + 0x34]
push ecx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x88], 0x208
call sym.iImportLib.dll_bool___cdecl_elex::reg::ReadKeyValueW_struct_HKEY_____wchar_t_const___wchar_t_const___unsigned_long_int__unsigned_char___unsigned_long_int___unsigned_long_int_
add esp, 0x1c
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10066e62
push esi
call edi
xor esi, esi
mov dword [esp + 0x10], esi
jmp 0x10066e62
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor bl, bl
mov dword [esp + 0x14], 0
test bl, bl
jne 0x10066f88
xor eax, eax
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], 0
mov word [esp + 0x94], ax
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], eax
mov word [esp + 0xac], ax
mov dword [esp + 0xd8], 7
mov dword [esp + 0xd4], eax
mov word [esp + 0xc4], ax
mov dword [esp + 0xf0], 7
mov dword [esp + 0xec], eax
mov word [esp + 0xdc], ax
lea eax, [esp + 0x94]
push eax
sub esp, 0x18
mov byte [esp + 0x534], 3
mov ecx, esp
mov dword [esp + 0x88], esp
push str.firefox.exe
call fcn.10008550
sub esp, 0x18
mov ecx, esp
push str.Mozilla_Firefox
mov byte [esp + 0x550], 4
call fcn.10008550
mov byte [esp + 0x54c], 3
call sym.iImportLib.dll_bool___cdecl_elex::software::QueryUninstallData_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____class_elex::software::iCkeckByUnistall__
mov bl, al
add esp, 0x34
test bl, bl
je 0x10066f7c
cmp dword [esp + 0xd8], 8
lea eax, [esp + 0xc4]
cmovae eax, dword [esp + 0xc4]
push eax
lea eax, [esp + 0x300]
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0xc
lea eax, [esp + 0x2fc]
push str._firefox.exe
push 0x104
push eax
call dword [sym.imp.MSVCR110.dll_wcscat_s]
add esp, 0xc
lea ecx, [esp + 0x94]
call fcn.10067000
cmp dword [esp + 0x88], 8
jb 0x10066f9f
push dword [esp + 0x74]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], 0
mov word [esp + 0x74], ax
test esi, esi
je 0x10066fc3
push esi
call edi
lea ecx, [esp + 0x1c]
call fcn.10066b10
mov al, bl
mov ecx, dword [esp + 0x510]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4f8]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret