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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
push 2
pop eax
mov esi, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov ebx, 0x406808
cmp dword [ebp + 8], edi
je 0x41471a
cmp dword [ebp + 8], 1
je 0x41471a
cmp dword [ebp + 8], eax
je 0x41471a
push 1
push 0x409
push ebx
push 0x406fc8
call fcn.004155fc
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x414728
xor ecx, ecx
cmp cx, word [eax]
jne 0x41473a
push 1
push 0x40a
push ebx
push 0x406f70
call fcn.004155fc
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x414748
xor eax, eax
cmp ax, word [edi]
jne 0x41475a
push 1
push 0x40b
push ebx
push 0x406878
call fcn.004155fc
push 0x5c
pop eax
cmp ax, word [edi]
jne 0x41476c
and dword [ebp - 0x20], 0
and dword [ebp - 0xc], 0
jmp 0x414776
mov dword [ebp - 0x20], 1
mov dword [ebp - 0xc], edi
mov edi, dword [ebp + 0xc]
push 0x5c
pop eax
cmp ax, word [edi]
jne 0x4147c5
mov eax, dword [esi + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ebx, ebx
push ebx
push dword [ebp - 0xc]
mov dword [ebp - 0x14], 0x100
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, ebx
jne 0x4149da
mov dword [esi + 0x30], 1
jmp 0x4149e7
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4147e1
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4147cf
sub eax, edx
sar eax, 1
mov ecx, eax
jmp 0x4147e3
xor ecx, ecx
mov eax, edi
lea edi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x4147e8
sub eax, edi
sar eax, 1
lea edi, [eax + ecx + 2]
push 2
xor ecx, ecx
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x414822
mov eax, 0x8007000e
jmp 0x414be5
xor ecx, ecx
mov word [eax], cx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x41484a
push eax
push 0x406f64
push edi
push dword [ebp - 4]
call fcn.00413e9b
mov ebx, eax
add esp, 0x10
test ebx, ebx
jl 0x414bd4
push dword [ebp + 0xc]
push edi
push dword [ebp - 4]
call fcn.00409da8
mov ebx, eax
test ebx, ebx
jl 0x414bd4
mov ebx, dword [ebp - 4]
push 0x5c
push ebx
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x41489c
push eax
call dword [sym.imp.USER32.dll_CharNextW]
xor ecx, ecx
mov dword [ebp - 0x18], eax
mov edi, 0x406808
cmp cx, word [eax]
jne 0x4148a4
push 1
push 0x43b
push edi
push 0x406f38
call fcn.004155fc
jmp 0x4148a4
mov dword [ebp - 0x18], ebx
mov edi, 0x406808
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x4148c5
lea eax, [ebp - 8]
push eax
push ebx
call fcn.00414402
test eax, eax
je 0x4148c5
xor edx, edx
inc edx
xor ebx, ebx
mov dword [ebp - 0x10], edx
xor eax, eax
jmp 0x4148de
lea eax, [ebp - 8]
push eax
push dword [esi + 0x24]
push 0
push dword [ebp + 0xc]
push dword [esi + 0xc]
call fcn.0041352a
xor edx, edx
xor ebx, ebx
inc edx
mov ecx, dword [ebp + 8]
sub ecx, ebx
je 0x4149be
dec ecx
je 0x414996
dec ecx
je 0x41490e
push edx
push 0x479
push edi
push 0x406f10
call fcn.004155fc
mov ebx, 0x8000ffff
jmp 0x414bd4
cmp eax, 2
jne 0x41495d
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push dword [esi + 0x24]
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [esi + 0xc]
call fcn.0041357f
cmp eax, ebx
je 0x41478d
cmp eax, 0x522
je 0x41498c
cmp eax, 5
je 0x41498c
push 1
push 0x46f
push edi
push 0x4067f4
call fcn.004155fc
mov ebx, 0x80110021
jmp 0x414bd4
cmp eax, ebx
je 0x41478d
cmp eax, 0x522
je 0x41498c
cmp eax, 5
je 0x41498c
push edx
push 0x473
push edi
push 0x4067f4
call fcn.004155fc
mov ebx, 0x80110031
jmp 0x414bd4
mov ebx, 0x80110823
jmp 0x414bd4
cmp eax, 2
jne 0x4149a2
mov ebx, edx
jmp 0x414bd4
cmp eax, ebx
je 0x41478d
cmp eax, 0x522
je 0x41498c
cmp eax, 5
je 0x41498c
push edx
push 0x466
jmp 0x414977
cmp eax, ebx
je 0x41478d
cmp eax, 0x522
je 0x41498c
cmp eax, 5
je 0x41498c
push edx
push 0x457
jmp 0x414977
mov dword [esi + 0x30], ebx
cmp edi, 0xea
jne 0x4149e7
xor edi, edi
cmp edi, 2
jne 0x4149f9
cmp dword [ebp - 0xc], ebx
jne 0x4149f9
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
xor edi, edi
mov eax, dword [ebp + 8]
dec eax
mov ebx, 0x80110027
je 0x414a57
dec eax
jne 0x414a5f
cmp edi, 2
jne 0x414a5f
push eax
push eax
push eax
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
je 0x414a3b
push 1
push 0x4b0
push 0x406808
push 0x4067f4
call fcn.004155fc
inc ebx
jmp 0x414a5f
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_RegQueryValueExW]
mov edi, eax
jmp 0x414a5f
cmp edi, 2
jne 0x414a5f
xor ebx, ebx
inc ebx
test edi, edi
je 0x414ad6
cmp edi, 2
jne 0x414a6e
cmp dword [ebp + 8], 1
je 0x414a84
push 1
push 0x4bc
push 0x406808
push 0x406e70
call fcn.004155fc
mov eax, dword [ebp - 8]
cmp dword [esi + 0xc], eax
je 0x414bd4
cmp dword [ebp - 0x10], 0
jne 0x414bd4
push eax
call fcn.004135e0
test eax, eax
je 0x414aba
push 1
push 0x4c3
push 0x406808
push 0x4067f4
call fcn.004155fc
cmp dword [ebp - 4], 0
je 0x414be3
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
and dword [ebp - 4], 0
jmp 0x414bd4
mov eax, dword [esi + 4]
xor eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
and eax, 3
xor dword [esi + 4], eax
push 0x5c
pop eax
cmp ax, word [ecx]
je 0x414b83
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x414b39
cmp dword [ebp - 0x10], 0
jne 0x414b19
cmp dword [ebp - 4], 0
je 0x414b19
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0041436c
mov ebx, eax
test ebx, ebx
jl 0x414bd4
cmp dword [esi + 0x2c], 0
je 0x414b31
mov eax, dword [esi + 0x10]
test eax, eax
je 0x414b31
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
and dword [esi + 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x2c], eax
jmp 0x414b6d
push dword [esi + 0xc]
call fcn.004135e0
test eax, eax
je 0x414b5b
push 1
push 0x4e3
push 0x406808
push 0x4067f4
call fcn.004155fc
mov eax, dword [esi + 0x10]
test eax, eax
je 0x414b6d
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
and dword [esi + 0x10], 0
mov eax, dword [ebp - 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
and dword [ebp - 4], 0
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x14], eax
lea edi, [esi + 0x18]
mov eax, dword [edi]
test eax, eax
je 0x414b96
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
and dword [edi], 0
mov ecx, dword [ebp + 0x10]
push 0x5c
pop eax
cmp ax, word [ecx]
je 0x414bb0
push edi
push ecx
call fcn.00413efa
mov ebx, eax
test ebx, ebx
jl 0x414bd4
jmp 0x414bb3
and dword [edi], 0
cmp dword [ebp + 8], 2
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x20], eax
jne 0x414bd2
cmp dword [ebp - 0x24], 1
jne 0x414bd2
mov ebx, 0x110002
jmp 0x414bd4
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x414be3
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc