Function at 0x414773
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 0x4147f9
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 0x414846
cmp word [ebp - 0x808], bx
jne 0x414b17
xor eax, eax
mov ecx, esi
inc eax
mov dword [ebp - 0x810], eax
jmp 0x41484c
mov eax, dword [ebp - 0x810]
test ecx, ecx
jne 0x414b17
cmp eax, 1
je 0x414867
cmp eax, 2
je 0x414867
cmp eax, 7
je 0x414867
mov ecx, esi
jmp 0x41486a
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 0x414b13
lea eax, [ebp - 0x814]
mov dword [ebp - 0x80c], 0x67
push eax
push edi
lea eax, [ebp - 0x810]
mov dword [ebp - 0x820], 0x402c80
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 0x4148dc
lea eax, [ebp - 0x814]
push eax
push edi
lea ecx, [ebp - 0x810]
call fcn.0040ed4f
cmp eax, 2
jne 0x414905
cmp word [ebp - 0x808], bx
jne 0x414aff
mov eax, dword [ebp - 0x818]
xor ecx, ecx
mov dword [ebp - 0x810], 1
mov word [eax], cx
mov eax, esi
test eax, eax
jne 0x414aff
cmp dword [ebp + 0xc], ebx
jne 0x414974
mov edx, dword [ebp - 0x810]
cmp edx, 7
ja 0x414a9d
je 0x414a86
test edx, edx
je 0x414974
cmp edx, 2
jbe 0x414a74
cmp edx, 4
je 0x41496b
cmp edx, 5
jne 0x414974
cmp dword [ebp - 0x814], 4
jne 0x414974
mov ecx, dword [ebp - 0x818]
mov ecx, dword [ecx]
call fcn.0041557e
mov ecx, dword [ebp - 0x818]
mov dword [ecx], eax
push 0x6f
pop edi
mov dword [ebp - 0x820], 0x404ad0
jmp 0x41497a
cmp dword [ebp - 0x814], 4
je 0x41495c
mov edi, dword [ebp - 0x80c]
mov eax, dword [0x41edf4]
mov dword [ebp - 0x828], eax
mov dword [ebp - 0x80c], esi
cmp edi, 0x67
jne 0x4149a4
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 0x4149dc
push dword [ebp - 0x80c]
call dword [sym.imp.USER32.dll_SetThreadDpiAwarenessContext]
mov eax, dword [ebp - 0x828]
cmp eax, 1
jne 0x414b05
mov eax, dword [ebp - 0x810]
cmp eax, 7
jne 0x414a17
cmp dword [ebp + 0xc], ebx
jne 0x414a45
lea ecx, [ebp - 0x81c]
call fcn.00415481
mov ecx, dword [ebp - 0x824]
lea edx, [ebp - 0x81c]
call fcn.004154f5
mov eax, dword [ebp - 0x810]
cmp eax, 5
jne 0x414a45
cmp dword [ebp + 0xc], ebx
jne 0x414a45
cmp dword [ebp - 0x814], 4
jne 0x414a45
mov ecx, dword [ebp - 0x818]
mov ecx, dword [ecx]
call fcn.0041557e
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 0x414ade
push 0x73
jmp 0x414b01
push 0x66
pop edi
mov dword [ebp - 0x820], 0x413ef0
jmp 0x41497a
lea ecx, [ebp - 0x81c]
call fcn.004153cf
test eax, eax
je 0x414974
push 0x72
jmp 0x414a76
cmp edx, 0xa
jbe 0x414aca
cmp edx, 0xb
jne 0x414974
cmp dword [ebp - 0x814], 8
jne 0x414974
push 0x75
pop edi
mov dword [ebp - 0x820], 0x404d10
jmp 0x41497a
mov ecx, dword [ebp - 0x824]
lea eax, [ebp - 0x81c]
push eax
call fcn.00418ce5
jmp 0x414b05
push dword [ebp - 0x810]
mov edx, dword [ebp - 0x830]
push dword [ebp - 0x814]
mov ecx, dword [edi]
push dword [ebp - 0x818]
call fcn.00414ffc
jmp 0x414b05
push 0x72
xor ebx, ebx
inc ebx
pop esi
push dword [ebp - 0x818]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x414b1d
push 0x76
jmp 0x414b19
push 0x72
xor ebx, ebx
inc ebx
pop esi
test ebx, ebx
je 0x414b41
lea eax, [ebp - 0x808]
push eax
push 0x10
push 0x70
push esi
push dword [ebp - 0x824]
push dword [0x41edf4]
call fcn.0040eb70
add esp, 0x18
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cc10
leave
ret 8