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

Disassembly:
push 0x448
mov eax, 0x435f6d
call fcn.0041c5c3
mov ebx, edx
mov dword [ebp - 0x44c], ebx
xor edi, edi
mov dword [ebp - 4], edi
xor eax, eax
mov dword [ebp - 0x414], 7
mov esi, 0x3f2
mov dword [ebp - 0x418], edi
mov word [ebp - 0x428], ax
mov edx, ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x440]
call fcn.0040e0a8
push eax
lea ecx, [ebp - 0x428]
call fcn.00409001
push edi
push 1
lea ecx, [ebp - 0x440]
call fcn.0040276a
cmp dword [ebp - 0x414], 8
lea eax, [ebp - 0x428]
mov dword [ebp - 0x450], edi
cmovae eax, dword [ebp - 0x428]
push eax
call fcn.00419d8b
cmp ebx, 1
mov dword [ebp - 0x450], eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop ecx
je 0x410a0c
sub esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00402305
mov ecx, edi
call fcn.004163ba
mov edi, eax
add esp, 0x18
test edi, edi
je 0x410919
cmp edi, 2
jne 0x410b15
xor eax, eax
xor edi, edi
push 0x3fe
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push edi
push eax
call fcn.0041bd90
add esp, 0xc
mov dword [ebp - 0x454], 0x400
mov dword [ebp - 0x448], 4
call fcn.004160cf
lea ecx, [ebp - 0x444]
cmp eax, 1
push ecx
lea eax, [ebp + 0xc]
jne 0x410968
push 0x2021f
jmp 0x41096d
push 0x2001f
cmp dword [ebp + 0x20], 8
push edi
cmovae eax, dword [ebp + 0xc]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov esi, eax
test esi, esi
jne 0x410a03
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0x454]
push ecx
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x448]
push ecx
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push edi
push eax
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp byte [ebp + 8], 0
jne 0x4109c1
test eax, eax
jne 0x4109c1
push 0x50
pop esi
jmp 0x4109fb
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0x450]
push 4
push ecx
push 4
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push edi
push eax
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x410b13
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x410b13
cmp esi, 0x50
je 0x410b13
cmp dword [ebp - 0x44c], 0
je 0x410b13
sub esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.00402305
xor ecx, ecx
inc ecx
call fcn.004163ba
mov edi, eax
add esp, 0x18
test edi, edi
je 0x410a41
cmp edi, 2
jne 0x410b15
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push eax
call fcn.0041bd90
add esp, 0xc
mov dword [ebp - 0x44c], 0x400
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x444]
lea eax, [ebp + 0xc]
mov dword [ebp - 0x448], 4
cmovae eax, dword [ebp + 0xc]
push ecx
push 0x2021f
push 0
push eax
push SysReAllocString
call ebx
mov edi, eax
test edi, edi
jne 0x410b0e
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0x44c]
push ecx
lea ecx, [ebp - 0x410]
push ecx
lea ecx, [ebp - 0x448]
push ecx
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push edi
push eax
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp byte [ebp + 8], 0
jne 0x410ad7
test eax, eax
jne 0x410ad7
push 0x50
pop edi
jmp 0x410b0e
cmp dword [ebp + 0x38], 8
lea ecx, [ebp - 0x450]
push 4
push ecx
push 4
lea eax, [ebp + 0x24]
cmovae eax, dword [ebp + 0x24]
push 0
push eax
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x410b0e
push dword [ebp - 0x444]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
cmovne esi, edi
mov edi, esi
xor ebx, ebx
lea ecx, [ebp - 0x428]
push ebx
push 1
call fcn.0040276a
push ebx
push 1
lea ecx, [ebp + 0xc]
call fcn.0040276a
push ebx
push 1
lea ecx, [ebp + 0x24]
call fcn.0040276a
mov eax, edi
call fcn.0041c572
ret