Function at 0x40c860
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4150b1
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x41d048]
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 edi, dword [ebp + 8]
mov bl, 1
call fcn.004065b0
test eax, eax
je 0x40c8ac
call fcn.00406500
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsAcroRd32.exe
cmp ax, 0xffff
je 0x40c8b1
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsAcrobat.exe
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x470], 0x208
lea eax, [ebp - 0x46c]
mov dword [ebp - 0x474], 0
push eax
push 1
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40caf6
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x474]
push eax
push 0
push 0
push dword [ebp - 0x46c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x46c]
xor ecx, ecx
movzx ebx, bl
test eax, eax
cmovne ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x40caf8
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
push eax
push 0x417588
lea ecx, [ebp - 0x468]
mov dword [ebp - 4], eax
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x454], 7
mov word [ebp - 0x468], ax
call fcn.00408510
push 0x19
xor eax, eax
mov byte [ebp - 4], 1
push str.OpenedFromChromeExtension
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
call fcn.00408510
lea eax, [ebp - 0x468]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x450]
push eax
lea eax, [ebp - 0x438]
push edi
push eax
call fcn.0040b490
mov edx, dword [ebp - 0x43c]
add esp, 0x10
cmp edx, 8
jb 0x40ca20
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 3
cmp edx, 0x1000
jb 0x40ca16
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40ca16
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00412a01
add esp, 8
mov edx, dword [ebp - 0x454]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x40ca6c
mov ecx, dword [ebp - 0x468]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 4
cmp edx, 0x1000
jb 0x40ca5e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cae4
push edx
push ecx
call fcn.00412a01
add esp, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
push 1
cmovae eax, dword [ebp - 0x438]
push 0
push eax
lea eax, [ebp - 0x420]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor edx, edx
movzx ebx, bl
cmp eax, 0x20
mov dword [ebp - 4], 0xffffffff
cmovle ebx, edx
mov edx, dword [ebp - 0x424]
cmp edx, 8
jb 0x40caf8
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
mov dword [ebp - 4], 5
cmp edx, 0x1000
jb 0x40caea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40caea
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00412a01
add esp, 8
jmp 0x40caf8
xor bl, bl
mov al, bl
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.004129c0
mov esp, ebp
pop ebp
ret