Function at 0x4146e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0473
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x56b114]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x98], esi
push eax
mov dword [ebp - 0x9c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x41479f
cmp dword [ebp - 0x9c], 0
je 0x41479f
lea eax, [ebp - 0x94]
push eax
push 0x20119
push 0
push str.SOFTWAREMicrosoftCryptography
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4147c8
mov edx, str.Failed_to_open_registry_key_x64
mov ecx, 0x56ec10
call fcn.00416850
push eax
call fcn.00416b00
add esp, 4
mov dword [esi + 0x10], 0
mov ecx, esi
push 0
mov dword [esi + 0x14], 0xf
push 0x5170c6
mov byte [esi], 0
call fcn.0040e340
jmp 0x414972
lea eax, [ebp - 0x94]
push eax
push 0x20219
push 0
push str.SOFTWAREMicrosoftCryptography
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4147c8
mov edx, str.Failed_to_open_registry_key_x86
jmp 0x414768
lea eax, [ebp - 0xa0]
push eax
push 0
lea eax, [ebp - 0x98]
push eax
push 0
push str.MachineGuid
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x414818
mov edx, str.Failed_to_query_value_size
mov ecx, 0x56ec10
call fcn.00416850
push eax
call fcn.00416b00
add esp, 4
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41477b
cmp dword [ebp - 0x98], 1
je 0x414828
mov edx, str.Incorrect_registry_value_type
jmp 0x4147f4
mov eax, dword [ebp - 0xa0]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c3f32
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xa0]
push eax
push ebx
lea eax, [ebp - 0x98]
push eax
push 0
push str.MachineGuid
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4148a0
mov edx, str.Failed_to_read_registry_value
mov ecx, 0x56ec10
call fcn.00416850
push eax
call fcn.00416b00
push ebx
call fcn.004c3d32
add esp, 8
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41477b
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040dc30
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], 0
call fcn.004158e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x18]
cmovae ecx, dword [ebp - 0x28]
lea eax, [ecx + eax*2]
push eax
push ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00416030
push ebx
call fcn.004c3d32
add esp, 4
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call sym.R2ClientInstall.exe_public:_void___thiscall_R2Config::R2Utils::constructor_class_R2Config::R2Utils__
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x414931
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x414927
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41498f
push edx
push ecx
call fcn.004c3d01
add esp, 8
lea ecx, [ebp - 0x90]
call fcn.004157f0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x414972
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414968
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414994
push edx
push ecx
call fcn.004c3d01
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c360c
mov esp, ebp
pop ebp
ret
call fcn.004cac9c
call fcn.004cac9c
int3