Function at 0x405940
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4121d8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x419038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, 1
call fcn.00404ae0
test eax, eax
jne 0x405b86
mov dword [ebp - 0x68], 0xffffffff
mov dword [ebp - 0x70], 4
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], eax
mov word [ebp - 0x58], ax
push 0x23
push str.SoftwareAdobeCommonFilesUsageCC_
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
call fcn.00404ae0
push 0x1d
xor eax, eax
mov byte [ebp - 4], 1
push str.SoftwareAdobeAdobe_Acrobat_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00404ae0
push 2
push 0x414d70
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00404ae0
push 4
push str.IMS
lea ecx, [ebp - 0x28]
call fcn.00404ae0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x5c]
push ecx
push esi
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405b2b
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x64]
push eax
push 0
lea eax, [ebp - 0x60]
push eax
push 0
push str.tClientGUID
push dword [ebp - 0x5c]
call ebx
test eax, eax
jne 0x405b22
cmp dword [ebp - 0x60], esi
jne 0x405b22
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x405b22
inc eax
push 0x419517
push eax
call fcn.00404ae0
mov edi, eax
add esp, 8
test edi, edi
je 0x405b22
mov ecx, dword [ebp - 0x64]
inc ecx
push ecx
push 0
push edi
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
push edi
push 0
push 0
push str.tClientGUID
push dword [ebp - 0x5c]
call ebx
test eax, eax
jne 0x405aa9
push edi
lea ecx, [ebp - 0x58]
call fcn.00404ae0
push edi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [ebp - 0x58]
push 0
push str.AdobeID
call fcn.00404ae0
cmp eax, 0xffffffff
je 0x405b22
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x40]
call fcn.00404ae0
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x6c]
push ecx
push 1
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405b1a
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x60]
push eax
push 0
push str.optin
push dword [ebp - 0x6c]
call ebx
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x60], 4
cmove esi, dword [ebp - 0x68]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 8
jb 0x405b3c
push dword [ebp - 0x28]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x405b61
push dword [ebp - 0x40]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x405b86
push dword [ebp - 0x58]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
cmp esi, 1
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410c15
mov esp, ebp
pop ebp
ret