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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4ba110]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x28], 0
mov eax, dword [esi + 0x3c]
sub eax, 0
mov bl, byte [esi + 0x39]
push edi
mov dword [ebp - 0x30], ecx
je 0x410c91
dec eax
jne 0x410d7f
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x410bc3
mov eax, dword [esi]
jmp 0x410bc5
mov eax, esi
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x24]
push edx
push 0
push eax
mov eax, dword [ecx]
push eax
mov dword [ebp - 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410bf7
mov eax, dword [ebp - 0x24]
sub eax, 4
neg eax
sbb eax, eax
and eax, 0xd
test eax, eax
setne cl
or cl, bl
je 0x410d7f
xor edx, edx
push 0xffffffffffffffff
lea eax, [esi + 0x1c]
push edx
mov ebx, 7
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], dx
call fcn.0040b320
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x3c], edi
jae 0x410c31
lea eax, [ebp - 0x50]
push eax
call fcn.00473f4d
add esp, 4
cmp dword [ebp - 0x3c], 8
mov edi, eax
jb 0x410c4e
mov eax, dword [ebp - 0x50]
push eax
call fcn.00473515
add esp, 4
xor ecx, ecx
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], 0
mov word [ebp - 0x50], cx
jb 0x410c66
mov esi, dword [esi]
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
push 4
lea edx, [ebp - 0x24]
push edx
push 4
push 0
push esi
push ecx
mov dword [ebp - 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047421a
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x410c9b
mov eax, dword [esi]
jmp 0x410c9d
mov eax, esi
mov edx, dword [ebp - 0x34]
add edx, edx
mov dword [ebp - 0x24], edx
lea edx, [ebp - 0x24]
push edx
push 0
lea edx, [ebp - 0x2c]
push edx
push 0
push eax
mov eax, dword [ecx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410cd7
mov eax, dword [ebp - 0x2c]
cmp eax, 1
je 0x410cd3
cmp eax, 2
je 0x410cd3
mov eax, 0xd
jmp 0x410cd5
xor eax, eax
test eax, eax
setne cl
or cl, bl
je 0x410d7f
cmp byte [esi + 0x38], 0
je 0x410d2f
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2c], esp
xor edx, edx
push 0xffffffffffffffff
lea eax, [esi + 0x1c]
push edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], dx
call fcn.0040b320
lea edi, [ebp - 0x20]
call fcn.00412cd0
add esp, 0x1c
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x28], 1
jb 0x410d2b
mov edi, dword [eax]
jmp 0x410d3a
mov edi, eax
jmp 0x410d3a
cmp dword [esi + 0x30], 8
lea edi, [esi + 0x1c]
jb 0x410d3a
mov edi, dword [edi]
mov ebx, 8
cmp dword [esi + 0x14], ebx
jb 0x410d46
mov esi, dword [esi]
test edi, edi
je 0x410d68
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test byte [ebp - 0x28], 1
je 0x410d7f
cmp dword [ebp - 0xc], ebx
jb 0x410d7f
mov eax, dword [ebp - 0x20]
push eax
call fcn.00473515
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047421a
mov esp, ebp
pop ebp
ret