Function at 0x40cd10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5802dd
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x636f58]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x824], ebx
call fcn.00414e0c
mov ecx, eax
test ecx, ecx
je 0x40cfbf
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x818], eax
push str.SOFTWAREFoxit_SoftwareFoxit_PDF_Reader
lea ecx, [ebp - 0x818]
mov dword [ebp - 4], 0
call fcn.00404090
test al, al
jne 0x40cd91
push 0x28
push str.SOFTWAREFoxit_SoftwareFoxit_PDF_Reader
lea ecx, [ebp - 0x818]
call fcn.00404220
mov dword [ebp - 4], 1
call fcn.00414e0c
mov ecx, eax
test ecx, ecx
je 0x40cfc9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
push str.InstallPath
lea ecx, [ebp - 0x814]
mov byte [ebp - 4], 2
call fcn.00404090
test al, al
jne 0x40cddf
push 0xb
push str.InstallPath
lea ecx, [ebp - 0x814]
call fcn.00404220
lea eax, [ebp - 0x81c]
mov byte [ebp - 4], 3
mov esi, dword [ebp - 0x818]
push eax
push 0x20019
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x820], 0x800
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x40ce99
call fcn.00414e0c
mov ecx, eax
test ecx, ecx
je 0x40cfd3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x611bc8
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.00404090
test al, al
jne 0x40ce50
push 0
push 0x611bc8
mov ecx, ebx
call fcn.00404220
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x814]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ce74
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x40cf9f
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x40cf9f
mov edi, dword [ebp - 0x814]
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x828]
push eax
push 0
push edi
push dword [ebp - 0x81c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x81c]
test eax, eax
je 0x40cf09
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00414e0c
mov ecx, eax
test ecx, ecx
je 0x40cfdd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x611bc8
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.00404090
test al, al
jne 0x40cf65
push 0
push 0x611bc8
jmp 0x40cf5e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00414e0c
mov ecx, eax
test ecx, ecx
je 0x40cfe7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 6
push eax
mov ecx, ebx
call fcn.00404090
test al, al
jne 0x40cf65
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cf47
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.00404220
lea edx, [edi - 0x10]
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cf83
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x40cf9f
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.0054d4f5
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00404570
push 0x80004005
call fcn.00404570
push 0x80004005
call fcn.00404570
push 0x80004005
call fcn.00404570
push 0x80004005
call fcn.00404570
int3