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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x86c
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
push 0xffffffffffffffff
push 0x100c
push dword [0x41b084]
mov edi, ecx
mov dword [ebp - 0x828], edx
xor esi, esi
mov dword [ebp - 0x814], 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 [0x41b084]
mov dword [ebp - 0x864], esi
mov dword [ebp - 0x854], 0x400
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x830], ebx
jne 0x4117ff
xor eax, eax
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x808]
mov dword [ebp - 0x820], eax
lea eax, [ebp - 0x818]
push eax
push esi
lea eax, [ebp - 0x810]
push eax
push esi
lea eax, [ebp - 0x808]
push eax
push dword [0x41b098]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
cmp ecx, 2
jne 0x41184f
cmp word [ebp - 0x808], bx
jne 0x411b3b
xor eax, eax
mov ecx, esi
inc eax
mov dword [ebp - 0x810], eax
jmp 0x411855
mov eax, dword [ebp - 0x810]
test ecx, ecx
jne 0x411b3b
cmp eax, 1
je 0x411870
cmp eax, 2
je 0x411870
cmp eax, 7
je 0x411870
mov ecx, esi
jmp 0x411873
push 2
pop ecx
mov eax, dword [ebp - 0x818]
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [ebp - 0x81c], edi
test edi, edi
je 0x411b31
lea eax, [ebp - 0x818]
mov dword [ebp - 0x80c], 0x67
push eax
push edi
lea eax, [ebp - 0x810]
mov dword [ebp - 0x824], 0x4025b0
push eax
push esi
lea eax, [ebp - 0x808]
push eax
push dword [0x41b098]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4118e3
lea eax, [ebp - 0x818]
mov edx, edi
push eax
lea ecx, [ebp - 0x810]
call fcn.0040bd9d
cmp eax, 2
jne 0x41190c
cmp word [ebp - 0x808], bx
jne 0x411b17
mov eax, dword [ebp - 0x81c]
xor ecx, ecx
mov dword [ebp - 0x810], 1
mov word [eax], cx
mov eax, esi
test eax, eax
jne 0x411b17
cmp dword [ebp - 0x828], ebx
jne 0x41197e
mov edx, dword [ebp - 0x810]
cmp edx, 7
ja 0x411aaf
je 0x411a98
test edx, edx
je 0x41197e
cmp edx, 2
jbe 0x411a86
cmp edx, 4
je 0x411975
cmp edx, 5
jne 0x41197e
cmp dword [ebp - 0x818], 4
jne 0x41197e
mov ecx, dword [ebp - 0x81c]
mov ecx, dword [ecx]
call fcn.004125b1
mov ecx, dword [ebp - 0x81c]
mov dword [ecx], eax
push 0x6f
pop eax
mov dword [ebp - 0x824], 0x4043d0
jmp 0x411984
cmp dword [ebp - 0x818], 4
je 0x411966
mov eax, dword [ebp - 0x80c]
mov ecx, dword [0x41be1c]
mov edi, esi
movzx eax, ax
mov dword [ebp - 0x80c], eax
mov dword [ebp - 0x82c], ecx
cmp eax, 0x67
jne 0x4119b6
push 0xfffffffffffffffe
call dword [sym.imp.USER32.dll_SetThreadDpiAwarenessContext]
mov ecx, dword [ebp - 0x82c]
mov edi, eax
mov eax, dword [ebp - 0x80c]
lea edx, [ebp - 0x820]
push edx
push dword [ebp - 0x824]
push dword [ebp - 0x814]
push eax
push ecx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
cmp dword [ebp - 0x80c], 0x67
mov dword [ebp - 0x82c], eax
jne 0x4119ed
push edi
call dword [sym.imp.USER32.dll_SetThreadDpiAwarenessContext]
mov eax, dword [ebp - 0x82c]
cmp eax, 1
jne 0x411b1d
mov eax, dword [ebp - 0x810]
mov edi, dword [ebp - 0x828]
cmp eax, 7
jne 0x411a2d
test edi, edi
jne 0x411a5a
lea ecx, [ebp - 0x820]
call fcn.004124a9
mov ecx, dword [ebp - 0x814]
lea edx, [ebp - 0x820]
call fcn.0041251f
mov eax, dword [ebp - 0x810]
cmp eax, 5
jne 0x411a5a
test edi, edi
jne 0x411a5a
cmp dword [ebp - 0x818], 4
jne 0x411a5a
mov ecx, dword [ebp - 0x81c]
mov ecx, dword [ecx]
call fcn.004125b1
mov ecx, dword [ebp - 0x81c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x810]
push dword [ebp - 0x818]
push dword [ebp - 0x81c]
push eax
push esi
lea eax, [ebp - 0x808]
push eax
push dword [0x41b098]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x411af2
push 0x73
jmp 0x411b19
push 0x66
pop eax
mov dword [ebp - 0x824], 0x410f50
jmp 0x411984
lea ecx, [ebp - 0x820]
call fcn.0049adf4
test eax, eax
je 0x41197e
push 0x72
jmp 0x411a88
cmp edx, 0xa
jbe 0x411adc
cmp edx, 0xb
jne 0x41197e
cmp dword [ebp - 0x818], 8
jne 0x41197e
push 0x75
pop eax
mov dword [ebp - 0x824], 0x404610
jmp 0x411984
mov edi, dword [ebp - 0x814]
lea eax, [ebp - 0x820]
push eax
mov ecx, edi
call fcn.00415c28
jmp 0x411b23
push dword [ebp - 0x810]
mov edx, dword [ebp - 0x830]
push dword [ebp - 0x818]
mov ecx, dword [0x41b084]
push dword [ebp - 0x81c]
call fcn.00412046
jmp 0x411b1d
push 0x72
xor ebx, ebx
inc ebx
pop esi
mov edi, dword [ebp - 0x814]
push dword [ebp - 0x81c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x411b41
mov edi, dword [ebp - 0x814]
push 0x76
jmp 0x411b3d
push 0x72
xor ebx, ebx
inc ebx
pop esi
test ebx, ebx
je 0x411b63
lea eax, [ebp - 0x808]
push eax
push 0x10
push 0x70
movzx eax, si
push eax
push edi
push dword [0x41be1c]
call fcn.0040bbba
add esp, 0x18
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419cc0
mov esp, ebp
pop ebp
ret