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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x86c
mov eax, dword [0x41e024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 2
mov edi, ecx
mov dword [ebp - 0x824], eax
push 0xffffffffffffffff
push 0x100c
xor esi, esi
mov dword [ebp - 0x82c], edi
push dword [edi]
mov ebx, esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x808]
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x858], ecx
lea ecx, [ebp - 0x86c]
push ecx
push eax
push 0x1073
push dword [edi]
mov dword [ebp - 0x864], esi
mov dword [ebp - 0x854], 0x400
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x830], ebx
jne 0x41472f
xor eax, eax
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x808]
mov dword [ebp - 0x81c], eax
lea eax, [ebp - 0x814]
push eax
push esi
lea eax, [ebp - 0x810]
push eax
push esi
lea eax, [ebp - 0x808]
push eax
push dword [edi + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
cmp ecx, 2
jne 0x41477c
cmp word [ebp - 0x808], bx
jne 0x414a4d
xor eax, eax
mov ecx, esi
inc eax
mov dword [ebp - 0x810], eax
jmp 0x414782
mov eax, dword [ebp - 0x810]
test ecx, ecx
jne 0x414a4d
cmp eax, 1
je 0x41479d
cmp eax, 2
je 0x41479d
cmp eax, 7
je 0x41479d
mov ecx, esi
jmp 0x4147a0
push 2
pop ecx
mov eax, dword [ebp - 0x814]
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x818], edi
test edi, edi
je 0x414a49
lea eax, [ebp - 0x814]
mov dword [ebp - 0x80c], 0x67
push eax
push edi
lea eax, [ebp - 0x810]
mov dword [ebp - 0x820], 0x402c40
push eax
push esi
lea eax, [ebp - 0x808]
push eax
mov eax, dword [ebp - 0x82c]
push dword [eax + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414812
lea eax, [ebp - 0x814]
push eax
push edi
lea ecx, [ebp - 0x810]
call fcn.0040ecbf
cmp eax, 2
jne 0x41483b
cmp word [ebp - 0x808], bx
jne 0x414a35
mov eax, dword [ebp - 0x818]
xor ecx, ecx
mov dword [ebp - 0x810], 1
mov word [eax], cx
mov eax, esi
test eax, eax
jne 0x414a35
cmp dword [ebp + 0xc], ebx
jne 0x4148aa
mov edx, dword [ebp - 0x810]
cmp edx, 7
ja 0x4149d3
je 0x4149bc
test edx, edx
je 0x4148aa
cmp edx, 2
jbe 0x4149aa
cmp edx, 4
je 0x4148a1
cmp edx, 5
jne 0x4148aa
cmp dword [ebp - 0x814], 4
jne 0x4148aa
mov ecx, dword [ebp - 0x818]
mov ecx, dword [ecx]
call fcn.004154a8
mov ecx, dword [ebp - 0x818]
mov dword [ecx], eax
push 0x6f
pop edi
mov dword [ebp - 0x820], 0x404a90
jmp 0x4148b0
cmp dword [ebp - 0x814], 4
je 0x414892
mov edi, dword [ebp - 0x80c]
mov eax, dword [0x41edec]
mov dword [ebp - 0x828], eax
mov dword [ebp - 0x80c], esi
cmp edi, 0x67
jne 0x4148da
push 0xfffffffffffffffe
call dword [sym.imp.USER32.dll_SetThreadDpiAwarenessContext]
mov dword [ebp - 0x80c], eax
mov eax, dword [ebp - 0x828]
lea ecx, [ebp - 0x81c]
push ecx
push dword [ebp - 0x820]
push dword [ebp - 0x824]
push edi
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov dword [ebp - 0x828], eax
cmp edi, 0x67
jne 0x414912
push dword [ebp - 0x80c]
call dword [sym.imp.USER32.dll_SetThreadDpiAwarenessContext]
mov eax, dword [ebp - 0x828]
cmp eax, 1
jne 0x414a3b
mov eax, dword [ebp - 0x810]
cmp eax, 7
jne 0x41494d
cmp dword [ebp + 0xc], ebx
jne 0x41497b
lea ecx, [ebp - 0x81c]
call fcn.004153a4
mov ecx, dword [ebp - 0x824]
lea edx, [ebp - 0x81c]
call fcn.00415418
mov eax, dword [ebp - 0x810]
cmp eax, 5
jne 0x41497b
cmp dword [ebp + 0xc], ebx
jne 0x41497b
cmp dword [ebp - 0x814], 4
jne 0x41497b
mov ecx, dword [ebp - 0x818]
mov ecx, dword [ecx]
call fcn.004154a8
mov ecx, dword [ebp - 0x818]
mov dword [ecx], eax
mov eax, dword [ebp - 0x810]
push dword [ebp - 0x814]
mov edi, dword [ebp - 0x82c]
push dword [ebp - 0x818]
push eax
push esi
lea eax, [ebp - 0x808]
push eax
push dword [edi + 0x64]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x414a14
push 0x73
jmp 0x414a37
push 0x66
pop edi
mov dword [ebp - 0x820], 0x413e20
jmp 0x4148b0
lea ecx, [ebp - 0x81c]
call fcn.0049cf0c
test eax, eax
je 0x4148aa
push 0x72
jmp 0x4149ac
cmp edx, 0xa
jbe 0x414a00
cmp edx, 0xb
jne 0x4148aa
cmp dword [ebp - 0x814], 8
jne 0x4148aa
push 0x75
pop edi
mov dword [ebp - 0x820], 0x404cd0
jmp 0x4148b0
mov ecx, dword [ebp - 0x824]
lea eax, [ebp - 0x81c]
push eax
call fcn.00418ae0
jmp 0x414a3b
push dword [ebp - 0x810]
mov edx, dword [ebp - 0x830]
push dword [ebp - 0x814]
mov ecx, dword [edi]
push dword [ebp - 0x818]
call fcn.00414f32
jmp 0x414a3b
push 0x72
xor ebx, ebx
inc ebx
pop esi
push dword [ebp - 0x818]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x414a53
push 0x76
jmp 0x414a4f
push 0x72
xor ebx, ebx
inc ebx
pop esi
test ebx, ebx
je 0x414a77
lea eax, [ebp - 0x808]
push eax
push 0x10
push 0x70
push esi
push dword [ebp - 0x824]
push dword [0x41edec]
call fcn.0040eae0
add esp, 0x18
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ca70
leave
ret 8