Function at 0x415703
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x864
mov eax, dword [0x41f024]
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 - 0x820], eax
push 0xffffffffffffffff
push 0x100c
xor esi, esi
mov dword [ebp - 0x828], edi
push dword [edi]
mov ebx, esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x808]
mov dword [ebp - 0x824], eax
mov dword [ebp - 0x850], ecx
lea ecx, [ebp - 0x864]
push ecx
push eax
push 0x1073
push dword [edi]
mov dword [ebp - 0x85c], esi
mov dword [ebp - 0x84c], 0x400
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x824], ebx
jne 0x415789
xor eax, eax
mov word [ebp - 0x808], ax
lea eax, [ebp - 0x808]
mov dword [ebp - 0x818], eax
lea eax, [ebp - 0x810]
push eax
push esi
lea eax, [ebp - 0x80c]
push eax
push ecx
lea eax, [ebp - 0x808]
push eax
push dword [edi + 0x64]
call fcn.0040fbf3
cmp eax, 2
jne 0x4157d1
cmp word [ebp - 0x808], bx
jne 0x415a55
xor eax, eax
inc eax
mov dword [ebp - 0x80c], eax
jmp 0x4157df
test eax, eax
jne 0x415a55
mov eax, dword [ebp - 0x80c]
cmp eax, 1
je 0x4157f2
cmp eax, 2
je 0x4157f2
cmp eax, 7
je 0x4157f2
mov ecx, esi
jmp 0x4157f5
push 2
pop ecx
mov eax, dword [ebp - 0x810]
add eax, ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0x814], eax
test eax, eax
je 0x415a49
lea ecx, [ebp - 0x810]
push ecx
push eax
lea eax, [ebp - 0x80c]
push eax
push ecx
lea eax, [ebp - 0x808]
push eax
push dword [edi + 0x64]
call fcn.0040fbf3
cmp eax, 2
jne 0x41585c
cmp word [ebp - 0x808], bx
jne 0x415a42
mov eax, dword [ebp - 0x814]
xor ecx, ecx
mov dword [ebp - 0x80c], 1
mov word [eax], cx
jmp 0x415864
test eax, eax
jne 0x415a42
cmp dword [ebp + 0xc], ebx
jne 0x4158d3
mov edx, dword [ebp - 0x80c]
cmp edx, 7
ja 0x4159d8
je 0x4159c1
test edx, edx
je 0x4158d3
cmp edx, 2
jbe 0x4159b5
cmp edx, 4
je 0x4158ca
cmp edx, 5
jne 0x4158d3
cmp dword [ebp - 0x810], 4
jne 0x4158d3
mov ecx, dword [ebp - 0x814]
mov ecx, dword [ecx]
call fcn.004164b8
mov ecx, dword [ebp - 0x814]
mov dword [ecx], eax
push 0x6f
mov ecx, 0x404cf0
mov ebx, dword [0x41fe14]
mov edi, esi
mov dword [ebp - 0x81c], esi
jmp 0x4158f4
cmp dword [ebp - 0x810], 4
je 0x4158b3
mov ebx, dword [0x41fe14]
push 0xfffffffffffffffe
mov dword [ebp - 0x81c], 1
call dword [sym.imp.USER32.dll_SetThreadDpiAwarenessContext]
mov edi, eax
mov ecx, 0x402e00
push 0x67
pop eax
lea edx, [ebp - 0x818]
push edx
push ecx
push dword [ebp - 0x820]
push eax
push ebx
call dword [sym.imp.USER32.dll_DialogBoxParamW]
mov ebx, eax
cmp dword [ebp - 0x81c], esi
je 0x41591c
push edi
call dword [sym.imp.USER32.dll_SetThreadDpiAwarenessContext]
cmp ebx, 1
jne 0x415a32
mov eax, dword [ebp - 0x80c]
cmp eax, 7
jne 0x415957
cmp dword [ebp + 0xc], esi
jne 0x415985
lea ecx, [ebp - 0x818]
call fcn.004163af
mov ecx, dword [ebp - 0x820]
lea edx, [ebp - 0x818]
call fcn.00416429
mov eax, dword [ebp - 0x80c]
cmp eax, 5
jne 0x415985
cmp dword [ebp + 0xc], esi
jne 0x415985
cmp dword [ebp - 0x810], 4
jne 0x415985
mov ecx, dword [ebp - 0x814]
mov ecx, dword [ecx]
call fcn.004164b8
mov ecx, dword [ebp - 0x814]
mov dword [ecx], eax
mov eax, dword [ebp - 0x80c]
push dword [ebp - 0x810]
mov edi, dword [ebp - 0x828]
push dword [ebp - 0x814]
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 0x415a13
push 0x73
xor ebx, ebx
pop esi
inc ebx
jmp 0x415a34
push 0x66
mov ecx, 0x414e10
jmp 0x4158ba
lea ecx, [ebp - 0x818]
call fcn.004162f7
test eax, eax
je 0x4158d3
push 0x72
jmp 0x4159b7
cmp edx, 0xa
jbe 0x4159ff
cmp edx, 0xb
jne 0x4158d3
cmp dword [ebp - 0x810], 8
jne 0x4158d3
push 0x75
mov ecx, 0x404f40
jmp 0x4158ba
mov ecx, dword [ebp - 0x820]
lea eax, [ebp - 0x818]
push eax
call fcn.00419c75
jmp 0x415a34
push dword [ebp - 0x80c]
mov edx, dword [ebp - 0x824]
push dword [ebp - 0x810]
mov ecx, dword [edi]
push dword [ebp - 0x814]
call fcn.00415f1a
mov ebx, esi
push dword [ebp - 0x814]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x415a4f
push 0x72
jmp 0x4159af
push 0x76
xor ebx, ebx
pop esi
inc ebx
test ebx, ebx
je 0x415a78
jmp 0x415a58
push 0x72
pop esi
lea eax, [ebp - 0x808]
push eax
push 0x10
push 0x70
push esi
push dword [ebp - 0x820]
push dword [0x41fe14]
call fcn.0040fa08
add esp, 0x18
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041dc30
leave
ret 8