Function at 0x416c80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x20c]
sub esp, 0x20c
push 0xffffffffffffffff
push 0x48c7d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4ada68]
xor eax, ebp
mov dword [ebp + 0x208], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
call fcn.004371a8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x416ce0
push 0x80004005
call fcn.00405e20
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
push 0x32
push str.SOFTWAREMicrosoftCryptographyDefaultsProvider_
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.004031b0
push 0x207
lea ecx, [ebp + 1]
push ebx
push ecx
mov byte [ebp], bl
call fcn.00456da0
add esp, 0xc
push str.IsWow64Process
mov byte [ebp - 4], 1
push str.kernel32
mov dword [ebp - 0x30], 0x208
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x416d51
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
lea ecx, [ebp - 0x14]
cmp dword [ebp - 0x20], ebx
je 0x416d62
push 0x3e
push str.SOFTWAREWow6432NodeMicrosoftCryptographyDefaultsProvider_
jmp 0x416d69
push 0x32
push str.SOFTWAREMicrosoftCryptographyDefaultsProvider_
call fcn.004031b0
cmp edi, ebx
jne 0x416d76
xor eax, eax
jmp 0x416d89
mov eax, edi
lea edx, [eax + 1]
jmp 0x416d80
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x416d80
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x14]
call fcn.00402c80
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x416dc4
push 0x4a5120
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], eax
call fcn.004570ab
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x18]
lea ecx, [ebp]
push ecx
lea edx, [ebp - 0x2c]
push edx
push ebx
push str.Image_Path
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0x416dfa
push 0x4a5120
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], esi
call fcn.004570ab
lea eax, [ebp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x416e00
sub eax, edx
cmp eax, 1
jae 0x416e20
mov esi, 2
jmp 0x416e20
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x416e2e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edx, edx
cmp esi, ebx
sete dl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov dword [ebp - 0x18], ebx
lea ecx, [eax + 0xc]
mov esi, edx
mov edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416e62
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0044ffb2
add ebp, 0x20c
mov esp, ebp
pop ebp
ret