Function at 0x10018210
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x1040
call fcn.100378e0
mov eax, dword [0x1004f860]
xor eax, esp
mov dword [esp + 0x103c], eax
mov eax, dword [esp + 0x1048]
push ebx
xor ebx, ebx
push edi
mov edi, dword [esp + 0x104c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
cmp eax, ebx
jne 0x10018267
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x103c]
xor ecx, esp
call fcn.1003779c
add esp, 0x1040
ret
push ebp
push esi
push 0xf003f
push edi
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x30]
call fcn.10003190
cmp eax, ebx
je 0x10018352
push 0xc
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1001831e
mov ebp, 1
push str.__wipeRegistry__
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
call fcn.1002e6c0
push edi
lea ecx, [esp + 0x1c]
mov dword [esi], eax
mov dword [esp + 0x14], esi
call fcn.10002e00
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
call fcn.10004760
lea ecx, [esp + 0x18]
call fcn.10002330
push 0xc
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1001831e
push str.____Nothing_to_do.
mov dword [esi + 4], ebx
mov dword [esi + 8], ebp
call fcn.1002e6c0
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
mov dword [esi], eax
mov dword [esp + 0x1c], esi
call fcn.10004760
lea ecx, [esp + 0x18]
call fcn.10002330
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x10018328
mov eax, dword [eax]
jmp 0x1001832a
push 0x8007000e
call fcn.1002e6c0
xor eax, eax
push eax
call fcn.10004ff0
add esp, 4
lea ecx, [esp + 0x10]
call fcn.10002330
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x1001834b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
jmp 0x10018705
mov ebp, dword [sym.imp.kernel32.dll_InterlockedDecrement]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0x800
mov esi, dword [esp + 0x24]
lea edx, [esp + 0x44]
push edx
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push ebx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x60]
push ecx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100186f5
push 0xc
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1001831e
push str.__checking_mozilla_plugin_
mov dword [esi + 4], ebx
mov dword [esi + 8], 1
call fcn.1002e6c0
push 0xc
mov dword [esi], eax
mov dword [esp + 0x14], esi
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1001831e
lea eax, [esp + 0x4c]
lea edi, [esi + 8]
push eax
mov dword [esi + 4], ebx
mov dword [edi], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
cmp eax, ebx
je 0x1001831e
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], esi
call fcn.10004760
push edi
call ebp
test eax, eax
jne 0x1001842c
mov eax, dword [esi]
cmp eax, ebx
je 0x10018413
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x10018423
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
push 0xc
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1001831e
lea edi, [esi + 8]
push 0x1003ecc8
mov dword [esi + 4], ebx
mov dword [edi], 1
call fcn.1002e6c0
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
mov dword [esi], eax
mov dword [esp + 0x18], esi
call fcn.10004760
push edi
call ebp
test eax, eax
jne 0x10018497
mov eax, dword [esi]
cmp eax, ebx
je 0x1001847e
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x1001848e
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov esi, dword [esp + 0x30]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100184a0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x50]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x10018691
push 0xc
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1001831e
lea edi, [esi + 8]
push str._MATCH_
mov dword [esi + 4], ebx
mov dword [edi], 1
call fcn.1002e6c0
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
mov dword [esi], eax
mov dword [esp + 0x18], esi
call fcn.10004760
push edi
call ebp
test eax, eax
jne 0x10018532
mov eax, dword [esi]
cmp eax, ebx
je 0x10018519
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x10018529
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x28]
call fcn.10003d00
test eax, eax
je 0x10018695
push 0xc
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1001831e
lea edi, [esi + 8]
push str.__error_code
mov dword [esi + 4], ebx
mov dword [edi], 1
call fcn.1002e6c0
mov dword [esi], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], esi
call fcn.10004760
push edi
call ebp
test eax, eax
jne 0x100185b3
mov eax, dword [esi]
cmp eax, ebx
je 0x1001859a
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x100185aa
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, 0x13
lea edx, [esp + 0x34]
mov word [esp + 0x34], cx
push edx
lea ecx, [esp + 0x24]
mov dword [esp + 0x40], ebx
call fcn.10015dd0
push eax
lea ecx, [esp + 0x14]
call fcn.10004760
mov esi, dword [esp + 0x20]
cmp esi, ebx
je 0x10018619
lea eax, [esi + 8]
push eax
call ebp
test eax, eax
jne 0x10018615
cmp esi, ebx
je 0x10018615
mov eax, dword [esi]
cmp eax, ebx
je 0x100185fc
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x1001860c
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x20], ebx
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
push 0xc
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1001831e
lea edi, [esi + 8]
push 0x1003ecbc
mov dword [esi + 4], ebx
mov dword [edi], 1
call fcn.1002e6c0
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
mov dword [esi], eax
mov dword [esp + 0x18], esi
call fcn.10004760
push edi
call ebp
test eax, eax
jne 0x10018695
mov eax, dword [esi]
cmp eax, ebx
je 0x10018676
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x10018686
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x10018695
inc dword [esp + 0x18]
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x100186a1
mov eax, dword [esi]
jmp 0x100186a3
xor eax, eax
push eax
call fcn.10004ff0
add esp, 4
mov dword [esp + 0x1c], 0x800
cmp esi, ebx
je 0x10018364
lea eax, [esi + 8]
push eax
call ebp
test eax, eax
jne 0x10018364
mov eax, dword [esi]
cmp eax, ebx
je 0x100186d7
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x100186e7
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x10018364
cmp esi, ebx
je 0x10018700
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [esp + 0x104c]
pop esi
pop ebp
pop edi
pop ebx
xor ecx, esp
call fcn.1003779c
add esp, 0x1040
ret