Function at 0x416370
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e11b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5d7f50]
xor eax, ebp
mov dword [ebp - 0x14], 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 - 0x224], ebx
mov dword [ebp - 0x228], ebx
call fcn.0044b779
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4163cb
push 0x80004005
call fcn.00402bc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x220], eax
push 0x32
push str.SOFTWAREMicrosoftCryptographyDefaultsProvider_
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], ebx
call fcn.00402a20
push 0x207
lea ecx, [ebp - 0x21b]
push ebx
push ecx
mov byte [ebp - 0x21c], bl
call fcn.00543bb0
add esp, 0xc
push str.IsWow64Process
mov byte [ebp - 4], 1
push str.kernel32
mov dword [ebp - 0x23c], 0x208
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x22c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x416454
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
lea ecx, [ebp - 0x220]
cmp dword [ebp - 0x22c], ebx
je 0x41646b
push 0x3e
push str.SOFTWAREWow6432NodeMicrosoftCryptographyDefaultsProvider_
jmp 0x416472
push 0x32
push str.SOFTWAREMicrosoftCryptographyDefaultsProvider_
call fcn.00402a20
cmp edi, ebx
jne 0x41647f
xor eax, eax
jmp 0x41648d
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x416484
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x220]
call fcn.004078f0
mov ecx, dword [ebp - 0x220]
lea eax, [ebp - 0x224]
push eax
push 0x20019
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x228], eax
cmp eax, ebx
je 0x4164da
push 0x5c9e00
lea edx, [ebp - 0x230]
push edx
mov dword [ebp - 0x230], eax
call fcn.00543f24
lea eax, [ebp - 0x23c]
push eax
mov eax, dword [ebp - 0x224]
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x238]
push edx
push ebx
push str.Image_Path
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov dword [ebp - 0x228], esi
cmp esi, ebx
je 0x416525
push 0x5c9e00
lea ecx, [ebp - 0x234]
push ecx
mov dword [ebp - 0x234], esi
call fcn.00543f24
lea eax, [ebp - 0x21c]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x416530
sub eax, edx
cmp eax, 1
jae 0x416553
mov esi, 2
jmp 0x416553
mov eax, dword [ebp - 0x224]
cmp eax, ebx
je 0x416564
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 - 0x220]
add eax, 0xfffffff0
mov dword [ebp - 0x224], ebx
lea ecx, [eax + 0xc]
mov esi, edx
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41659c
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 - 0x14]
xor ecx, ebp
call fcn.0053c99c
mov esp, ebp
pop ebp
ret