Function at 0x49a53b
Capabilities:
Set registry value

Disassembly:
push 0x20
mov eax, 0x4af3a0
call fcn.004a956e
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov eax, dword [0x4b70c8]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
cmp eax, 0x4b70c8
je 0x49a57a
test byte [eax + 0x1c], 1
je 0x49a57a
cmp byte [eax + 0x19], 5
jb 0x49a57a
push edi
push esi
push dword [ebp + 8]
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00498e9e
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], eax
call fcn.0041706d
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00435b1a
push dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.0049acab
mov ebx, eax
mov edx, dword [0x4b70c8]
cmp edx, 0x4b70c8
je 0x49a5e3
test byte [edx + 0x1c], 2
je 0x49a5e3
cmp byte [edx + 0x19], 4
jb 0x49a5e3
push ebx
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x4102dc
push 0x51
pop ecx
call fcn.0041610f
mov edx, dword [0x4b70c8]
test ebx, ebx
jne 0x49a6e3
lea eax, [ebp - 0x14]
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00424ad7
mov dword [ebp - 0x18], eax
mov edx, dword [0x4b70c8]
cmp edx, 0x4b70c8
je 0x49a631
test byte [edx + 0x1c], 2
je 0x49a631
cmp byte [edx + 0x19], 4
jb 0x49a631
push eax
push dword [ebp - 0x14]
push esi
push dword [edx + 0x14]
push dword [edx + 0x10]
push 0x52
pop ecx
call fcn.00498f94
mov edx, dword [0x4b70c8]
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x49a63e
cmp edi, dword [ebp - 0x14]
je 0x49a71a
push 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], edi
push eax
push 4
push 0
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
mov edx, dword [0x4b70c8]
cmp edx, 0x4b70c8
je 0x49a688
test byte [edx + 0x1c], 2
je 0x49a688
cmp byte [edx + 0x19], 4
jb 0x49a688
push ebx
push edi
push esi
push dword [edx + 0x14]
push dword [edx + 0x10]
push 0x53
pop ecx
call fcn.00498f94
mov edx, dword [0x4b70c8]
cmp dword [ebp - 0x18], 0
jne 0x49a71a
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x10]
push 0
push esi
mov eax, dword [eax]
push 0x3ec
mov esi, dword [eax + 0x24]
mov ecx, esi
call dword [0x4bb544]
mov ecx, dword [ebp - 0x1c]
call esi
mov edx, edi
mov ecx, eax
call fcn.0049c9d8
mov edx, dword [0x4b70c8]
cmp edx, 0x4b70c8
je 0x49a750
test byte [edx + 0x1c], 2
je 0x49a71a
cmp byte [edx + 0x19], 4
jb 0x49a71a
push dword [edx + 0x14]
push dword [edx + 0x10]
push 0x54
jmp 0x49a709
cmp ebx, 2
jne 0x49a71a
mov ebx, 0x490
cmp edx, 0x4b70c8
je 0x49a750
test byte [edx + 0x1c], 2
je 0x49a71a
cmp byte [edx + 0x19], 4
jb 0x49a71a
push dword [edx + 0x14]
push dword [edx + 0x10]
push 0x55
mov edx, 0x4102dc
pop ecx
call fcn.00416054
mov edx, dword [0x4b70c8]
cmp edx, 0x4b70c8
je 0x49a750
test byte [edx + 0x1c], 1
je 0x49a750
movzx ecx, byte [edx + 0x19]
mov eax, ebx
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
cmp ecx, eax
jb 0x49a750
push ebx
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x4102dc
push 0x56
pop ecx
call fcn.0041610f
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004174b0
cmp dword [ebp - 0x2c], 0
je 0x49a76a
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
call fcn.004a953c
ret 0xc