Function at 0x4c59f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56d778
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push esi
push edi
mov eax, dword [0x5d6b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x40], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
call fcn.004dd6c0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
push eax
mov ecx, ebx
call fcn.004c4ff0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push str.softwareMicrosoftInternet_ExplorerToolbar
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4c5bac
push eax
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4c5ba3
cmp dword [ebp - 0x14], eax
je 0x4c5ba3
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x28]
xor ecx, ecx
inc eax
mov byte [ebp - 4], 1
mov edi, 2
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005243ff
mov esi, eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x44], esi
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mul edi
mov byte [ebp - 4], 2
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005243ff
xor ebx, ebx
add esp, 8
mov edi, eax
mov dword [ebp - 0x3c], edi
cmp dword [ebp - 0x14], ebx
jbe 0x4c5b90
lea ebx, [ebx]
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x38], eax
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x34]
push eax
push edi
lea eax, [ebp - 0x60]
push eax
push 0
lea eax, [ebp - 0x38]
push eax
push esi
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x4c5b8a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x26
jne 0x4c5b8a
push esi
lea ecx, [ebp - 0x70]
call fcn.0045a6b0
inc ebx
cmp ebx, dword [ebp - 0x14]
jb 0x4c5b40
push edi
call fcn.0052586e
push esi
mov byte [ebp - 4], 0
call fcn.0052586e
add esp, 8
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4c5bc8
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x44], ebx
mov byte [ebp - 4], 3
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4c5bf5
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 4
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4c5c22
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 5
call fcn.0045adc0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x4c5c4f
push 0x80004005
call fcn.0045a8f0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x6c]
xor ecx, ecx
mov byte [ebp - 4], 6
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x24], ecx
test eax, eax
jle 0x4c5fb9
cmp ecx, eax
jae 0x4c5fa5
mov eax, dword [ebp - 0x70]
push dword [eax + ecx*4]
lea eax, [ebp - 0x34]
push str.CLSID_sInprocServer32
push eax
call fcn.0045acb0
mov eax, dword [edi - 0x10]
lea edx, [edi - 0x10]
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [edx + 4], 0
je 0x4c5ce4
cmp dword [edx + 0xc], 0
lea ecx, [edx + 0xc]
jge 0x4c5cc2
cmp dword [edi - 8], 0
jl 0x4c5fa5
xor eax, eax
mov dword [edi - 0xc], 0
mov word [edi], ax
jmp 0x4c5ce4
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x4c5cd6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x20], 0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x48], 1
push eax
lea eax, [ebp - 0x48]
mov dword [ebp - 0x3c], 0
push eax
push 0
push dword [ebp - 0x34]
push SysReAllocStringLen
call fcn.00515980
add esp, 0x18
test eax, eax
jne 0x4c5f83
mov edx, dword [ebp - 0x20]
test edx, edx
je 0x4c5f91
cmp dword [ebp - 0x3c], eax
jbe 0x4c5d53
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4c5d34
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.0045b6e0
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov edx, dword [edi - 0xc]
test edx, edx
js 0x4c5fa5
cmp word [edi], 0x22
jne 0x4c5dc7
lea eax, [edx - 1]
test eax, eax
js 0x4c5fa5
cmp eax, edx
jg 0x4c5fa5
cmp word [edi + eax*2], 0x22
jne 0x4c5dc7
lea eax, [edx - 2]
push eax
push 1
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0045b170
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.0045a580
mov edx, dword [ebp - 0x4c]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c5e1e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4c5e1e
lea ecx, [esi - 0x10]
lea eax, [edi - 0x10]
mov dword [ebp - 0x20], ecx
cmp eax, ecx
je 0x4c5e21
cmp dword [ecx + 0xc], 0
lea esi, [ecx + 0xc]
jl 0x4c5e14
mov eax, dword [eax]
cmp eax, dword [ecx]
jne 0x4c5e14
lea eax, [edi - 0x10]
push eax
call fcn.0045a950
add esp, 4
mov dword [ebp - 0x50], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4c5e0c
mov esi, dword [ebp - 0x20]
push esi
mov ecx, dword [esi]
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x50]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
jmp 0x4c5e21
push edx
push edi
lea ecx, [ebp - 0x10]
call fcn.0045b6e0
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x10]
push eax
call fcn.004c3d70
add esp, 4
test eax, eax
jne 0x4c5f91
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x6c]
jae 0x4c5fa5
mov eax, dword [ebp - 0x70]
push dword [ebp - 0x30]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x40]
push eax
call fcn.004c70c0
test eax, eax
jne 0x4c5f91
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x6c]
jae 0x4c5fa5
mov eax, dword [ebp - 0x70]
push dword [ebp - 0x30]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x40]
push eax
call fcn.004c6f90
test eax, eax
je 0x4c5e89
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
jmp 0x4c5e93
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], 1
inc dword [eax]
cmp dword [esi - 0xc], 0
jl 0x4c5f91
push str.AskPartnerNetworkToolbar_
push esi
call fcn.00526d32
add esp, 8
test eax, eax
je 0x4c5f91
sub eax, esi
sar eax, 1
mov dword [ebp - 0x50], eax
cmp eax, 0xffffffff
je 0x4c5f91
push str.AskPartnerNetworkToolbar_
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
add ebx, dword [ebp - 0x50]
mov ecx, ebx
test ecx, ecx
js 0x4c5fa5
mov edx, dword [esi - 0xc]
cmp ecx, edx
jg 0x4c5fa5
cmp word [esi + ecx*2], 0x5c
je 0x4c5ef8
cmp ecx, edx
jge 0x4c5ef8
inc ecx
jmp 0x4c5ed7
sub ecx, ebx
lea eax, [ebp - 0x54]
push ecx
push ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.0045b170
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 8
call fcn.0045a580
mov edx, dword [ebp - 0x54]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 6
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c5f36
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x44]
lea eax, [ebp - 0x50]
mov ecx, dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
call fcn.004e0110
test eax, eax
jne 0x4c5f7b
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
jne 0x4c5f6d
push 1
push dword [eax + 8]
mov ecx, eax
call fcn.00521c60
test al, al
je 0x4c5faf
mov eax, dword [ebp + 0x10]
push dword [ebp - 0x58]
mov ecx, eax
push dword [ebp - 0x5c]
push ebx
call fcn.004e0b60
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
jmp 0x4c5f91
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4c5f91
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x24]
inc ecx
mov dword [ebp - 0x24], ecx
cmp ecx, dword [ebp - 0x60]
jge 0x4c5fb9
mov eax, dword [ebp - 0x6c]
jmp 0x4c5c73
push 0x80070057
call fcn.0045a8f0
push 0x8007000e
call fcn.0045a8f0
add esi, 0xfffffff0
mov byte [ebp - 4], 5
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c5fd7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov byte [ebp - 4], 4
or ecx, 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c5ff5
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x34]
or ecx, 0xffffffff
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c6016
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
or ecx, 0xffffffff
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c6034
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x70]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4c607e
mov ebx, dword [ebp - 0x6c]
xor esi, esi
test ebx, ebx
je 0x4c6075
jmp 0x4c6050
mov edx, dword [edi + esi*4]
or ecx, 0xffffffff
sub edx, 0x10
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4c606d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
inc esi
cmp esi, ebx
jb 0x4c6050
mov edi, dword [ebp - 0x70]
push edi
call fcn.0052616f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc