Function at 0x416ce0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x4d9788
call fcn.0046d048
sub esp, 0x120
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov esi, SysReAllocStringLen
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x416d22
lea eax, [ebp - 0x10]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x416d22
xor eax, eax
jmp 0x416f0e
xor esi, esi
cmp dword [ebp + 0xc], esi
je 0x416e13
and byte [ebp - 0x12c], 0
mov dword [ebp - 0x1c], 0x104
call fcn.004d4518
mov eax, dword [eax + 4]
push esi
push edi
lea ecx, [ebp - 0x14]
push 0x514710
push ecx
mov ecx, eax
call fcn.004d4769
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], esi
mov ebx, 0x521388
cmp dword [eax - 8], esi
jne 0x416dec
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x12c]
push eax
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x12c]
lea ecx, [ebp + 0xc]
push eax
call fcn.004cdf9a
push ebx
mov byte [ebp - 4], 1
push dword [ebp + 0xc]
call fcn.0046e794
pop ecx
test eax, eax
pop ecx
jne 0x416dc2
mov esi, 0x514704
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x28]
push 9
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x12c]
push eax
movsb byte es:[edi], byte [esi]
call fcn.0046d4c0
add esp, 0xc
xor esi, esi
call fcn.004d4518
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x12c]
push ecx
mov ecx, eax
push dword [ebp + 8]
push 0x514710
call fcn.004d2139
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.004cdf2c
push dword [ebp + 0x10]
call fcn.0046d440
pop ecx
inc eax
push eax
push dword [ebp + 0x10]
push 1
push esi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
jmp 0x416efd
call fcn.004d4518
mov eax, dword [eax + 4]
push esi
push edi
mov edi, 0x514710
lea ecx, [ebp + 0xc]
push edi
push ecx
mov ecx, eax
call fcn.004d4769
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 2
cmp dword [eax - 8], esi
je 0x416ef6
mov eax, dword [0x518cb0]
mov dword [ebp + 0x10], eax
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 3
call fcn.004cdca1
lea eax, [ebp - 0x18]
push eax
call fcn.00416f90
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 4
call fcn.004ce065
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.004cdf2c
push 0x514704
push dword [ebp + 0x10]
call fcn.0046d2a8
pop ecx
test eax, eax
pop ecx
je 0x416ec1
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
push dword [eax - 8]
push esi
call fcn.004ce35c
push eax
push 1
mov ebx, 0x521388
push esi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0xffffffffffffffff
lea ecx, [ebp + 0x10]
call fcn.004ce3ab
jmp 0x416ed6
mov ebx, 0x521388
push 1
push ebx
push 1
push esi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call fcn.004d4518
mov eax, dword [eax + 4]
push ebx
push dword [ebp + 8]
mov ecx, eax
push edi
call fcn.004d2139
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.004cdf2c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004cdf2c
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret