Function at 0x401710
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43e1e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x44f6d0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebx + 4], 2
mov ecx, dword [eax]
lea esi, [ebx + 8]
lea edi, [ebx + 0xc]
mov dword [esi], ecx
push edx
mov ecx, edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
call fcn.004027e0
mov eax, dword [edi]
mov edx, dword [esi]
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
lea esi, [ebx + 0x10]
push eax
mov ecx, esi
call fcn.004027e0
call fcn.00401e10
mov eax, dword [esi]
push 0x4449d4
push eax
call fcn.00426d97
add esp, 8
test eax, eax
sete al
test al, al
je 0x4017b9
mov ecx, esi
call fcn.00402780
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x401926
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
lea edi, [ebx + 0x18]
push edi
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4018d5
mov ecx, dword [edi]
test ecx, ecx
je 0x4018d5
push ecx
call fcn.00409be8
add esp, 4
test eax, eax
mov dword [ebx + 0x1c], eax
je 0x4018f6
mov ecx, dword [esi]
push edi
push eax
lea edx, [ebx + 0x14]
push edx
mov edx, dword [esp + 0x28]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4018cb
cmp dword [ebx + 0x14], 1
mov dword [esp + 0x18], 1
jne 0x4018f6
mov eax, dword [ebx + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.004028c0
xor eax, eax
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], eax
jne 0x401873
push eax
push str.ContentReg::NewRegValue__4___d
push 0x54
mov dword [esp + 0x24], eax
call fcn.004089a0
mov ebx, str.....ContentPublisherRegDirMonitorContentReg.cpp
mov ecx, 0x20
mov edi, eax
call fcn.00408d60
jmp 0x4018b5
lea edx, [ebx + 0x20]
push edx
lea ecx, [esp + 0x18]
call fcn.00401af0
add esp, 4
test eax, eax
je 0x4018b8
mov eax, dword [edi]
mov ecx, dword [ebx + 0x1c]
push eax
push 0
push ecx
call fcn.00428c20
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 0xc]
add esp, 0xc
push eax
push 0
lea ecx, [esp + 0x1c]
call fcn.00402640
push eax
mov eax, dword [ebx + 0x1c]
push eax
call fcn.0042ef80
add esp, 0xc
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call fcn.00402440
jmp 0x4018f6
push eax
push str.ContentReg::NewRegValue__3___d
push 0x5f
jmp 0x4018dd
push eax
push str.ContentReg::NewRegValue__2___d
push 0x65
call fcn.004089a0
mov ebx, str.....ContentPublisherRegDirMonitorContentReg.cpp
mov ecx, 0x20
mov edi, eax
call fcn.00408d60
add esp, 0xc
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x18], 0
jne 0x401a38
call fcn.00409eaf
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401949
push 0x80004005
call fcn.00402420
push eax
push str.ContentReg::NewRegValue__1___d
push 0x6c
call fcn.004089a0
mov ebx, str.....ContentPublisherRegDirMonitorContentReg.cpp
mov ecx, 0x20
mov edi, eax
call fcn.00408d60
add esp, 0xc
jmp 0x40190c
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x38], 1
call fcn.00409eaf
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40197b
push 0x80004005
call fcn.00402420
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 2
call fcn.00401da0
test eax, eax
je 0x4019cb
mov ecx, dword [esi]
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x20]
push str.ContentReg::NewRegValue__RootKey:_s__SubKey:_s__Value:_s
push edx
call fcn.00402620
mov eax, dword [esp + 0x28]
add esp, 0x14
push eax
push 0x77
jmp 0x4019d2
push str.ContentReg::NewRegValue__GetRootKetString_Failed
push 0x7b
call fcn.004089a0
mov ebx, str.....ContentPublisherRegDirMonitorContentReg.cpp
mov ecx, 0x20
mov edi, eax
call fcn.00408d60
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401a10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401a38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8