Function at 0x10156640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x428], 1
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x424], edi
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x1015669a
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x2f
call fcn.10003680
add esp, 4
test eax, eax
je 0x101566b9
lea ecx, [ebp - 0x420]
push ecx
push str.SOFTWAREMicrosoftInternet_ExplorerURLSearchHooks
push ebx
call eax
jmp 0x101566cc
lea eax, [ebp - 0x420]
push eax
push str.SOFTWAREMicrosoftInternet_ExplorerURLSearchHooks
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov ebx, eax
test esi, esi
je 0x101566d9
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
test ebx, ebx
jne 0x10156a0a
mov dword [ebp - 0x41c], ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
mov ebx, dword [ebp - 0x420]
add esp, 0xc
mov dword [ebp - 0x418], 0x104
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x10156726
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x3f
call fcn.10003680
add esp, 4
push 0
push 0
push 0
push 0
test eax, eax
je 0x10156755
lea ecx, [ebp - 0x418]
push ecx
lea ecx, [ebp - 0x20c]
push ecx
push dword [ebp - 0x41c]
push ebx
call eax
jmp 0x10156770
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
test esi, esi
je 0x1015677d
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test ebx, ebx
jne 0x101569c7
cmp word [ebp - 0x20c], 0x7b
jne 0x101569bc
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x424]
push str.CLSID_sInprocServer32
push eax
call fcn.10002cb0
push 0x208
lea eax, [ebp - 0x414]
push ebx
push eax
call sub.msvcrt.dll_memset
mov edi, dword [ebp - 0x424]
lea eax, [ebp - 0x418]
add esp, 0x18
mov dword [ebp - 0x418], 0x208
push 0x20219
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x428]
push eax
push 0x10202940
push edi
push SysReAllocString
call fcn.100585c0
test eax, eax
jne 0x101569bc
mov eax, dword [ebp - 0x428]
cmp eax, 1
je 0x10156816
cmp eax, 2
jne 0x101569bc
push 0x650
call sub.msvcrt.dll_malloc
mov ebx, eax
add esp, 4
mov dword [ebp - 0x440], ebx
test ebx, ebx
je 0x101569c7
push 0x650
push 0
push ebx
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x434]
lea esi, [ebp - 0x20c]
mov dword [ebx + 4], 0x40
add esp, 0xc
mov dword [ebx + 0x624], eax
mov edx, 0x104
lea eax, [ebx + 8]
mov dword [ebx + 0x628], 0x10206000
sub esi, eax
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x10156890
movzx ecx, word [esi + eax]
test cx, cx
je 0x10156890
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x10156870
jmp 0x10156894
test edx, edx
jne 0x10156897
sub eax, 2
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x42c]
call fcn.10002490
mov ecx, dword [ebp - 0x430]
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.101565c0
lea ecx, [ebx + 0x210]
mov edx, 0x104
mov esi, dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x101568f6
movzx eax, word [esi]
test ax, ax
je 0x101568f6
mov word [ecx], ax
add esi, 2
add ecx, 2
sub edx, 1
jne 0x101568d4
jmp 0x101568fa
test edx, edx
jne 0x101568fd
sub ecx, 2
xor eax, eax
or esi, 0xffffffff
mov word [ecx], ax
mov eax, esi
mov edx, dword [ebp - 0x438]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10156922
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x42c]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1015693f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea esi, [ebx + 0x210]
push esi
call fcn.1000aa00
add esp, 4
test eax, eax
je 0x101569b3
push esi
call fcn.10154e30
mov ecx, dword [ebp - 0x430]
add esp, 4
mov dword [ebx + 0x620], eax
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x43c], 0x40
push eax
lea ecx, [ecx + 4]
call fcn.101547d0
mov ecx, dword [eax + 4]
cmp dword [eax + 8], ecx
je 0x10156999
mov dword [ecx], ebx
add dword [eax + 4], 4
inc dword [ebp - 0x41c]
jmp 0x101566ea
lea edx, [ebp - 0x440]
push edx
push ecx
mov ecx, eax
call fcn.100cc490
inc dword [ebp - 0x41c]
jmp 0x101566ea
push ebx
call sub.msvcrt.dll_free
add esp, 4
inc dword [ebp - 0x41c]
jmp 0x101566ea
mov ebx, dword [ebp - 0x420]
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x101569e3
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x44
call fcn.10003680
add esp, 4
push ebx
test eax, eax
je 0x101569f6
call eax
jmp 0x101569fc
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10156a07
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
or eax, 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x10156a1f
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4