Function at 0x499a70
Capabilities:
Set registry value

Disassembly:
push 0x1c
mov eax, 0x4af2ec
call fcn.004a956e
mov ebx, ecx
mov dword [ebp - 0x18], ebx
mov eax, dword [0x4b70c8]
mov edi, dword [ebp + 0xc]
cmp eax, 0x4b70c8
je 0x499aaf
test byte [eax + 0x1c], 1
je 0x499aaf
cmp byte [eax + 0x19], 5
jb 0x499aaf
push dword [edi]
push dword [ebp + 8]
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0x26
pop ecx
call fcn.00498e15
lea eax, [ebp - 0x14]
xor esi, esi
and dword [ebp - 0x14], esi
mov ecx, ebx
push eax
push dword [ebp + 8]
call fcn.0049a057
mov ebx, eax
mov edx, dword [0x4b70c8]
cmp edx, 0x4b70c8
je 0x499afc
test byte [edx + 0x1c], 2
je 0x499afc
movzx ecx, byte [edx + 0x19]
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
cmp ecx, eax
jb 0x499afc
push dword [ebp - 0x14]
push dword [ebp + 8]
push ebx
push dword [edx + 0x14]
push dword [edx + 0x10]
call fcn.00498d89
test ebx, ebx
jne 0x499b37
cmp dword [ebp - 0x14], 1
jne 0x499b37
mov dword [edi], 2
mov eax, dword [0x4b70c8]
cmp eax, 0x4b70c8
je 0x499b37
test byte [eax + 0x1c], 2
je 0x499b37
cmp byte [eax + 0x19], 4
jb 0x499b37
push dword [eax + 0x14]
mov edx, 0x4102dc
push dword [eax + 0x10]
push 0x28
pop ecx
call fcn.00416054
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.0041706d
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00435b1a
xor ebx, ebx
and dword [ebp - 0x24], ebx
and dword [ebp - 0x20], ebx
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], ebx
jne 0x499d4a
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x28]
push eax
call fcn.0049adcb
mov esi, eax
mov edx, dword [0x4b70c8]
mov ebx, 0x4b70c8
cmp edx, ebx
je 0x499ba9
test byte [edx + 0x1c], 2
je 0x499ba9
cmp byte [edx + 0x19], 4
jb 0x499ba9
push esi
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x4102dc
push 0x29
pop ecx
call fcn.0041610f
mov edx, dword [0x4b70c8]
test esi, esi
jne 0x499da6
and dword [edi], esi
lea ecx, [ebp - 0x28]
or dword [ebp - 0x14], 0xffffffff
push edi
push dword [ebp - 0x10]
call fcn.00424ad7
mov esi, eax
mov edx, dword [0x4b70c8]
cmp edx, ebx
je 0x499bf5
test byte [edx + 0x1c], 2
je 0x499bf5
cmp byte [edx + 0x19], 4
jb 0x499bf5
push esi
push dword [edi]
push dword [ebp - 0x10]
push dword [edx + 0x14]
push dword [edx + 0x10]
push 0x2a
pop ecx
call fcn.00498f94
mov edx, dword [0x4b70c8]
cmp esi, 2
je 0x499c0a
test esi, esi
jne 0x499da6
cmp dword [edi], esi
jne 0x499da6
test esi, esi
jne 0x499c13
mov eax, dword [edi]
mov dword [ebp - 0x14], eax
push edi
push 0x41021c
lea ecx, [ebp - 0x28]
call fcn.00424ad7
mov esi, eax
mov edx, dword [0x4b70c8]
cmp edx, ebx
je 0x499c55
test byte [edx + 0x1c], 2
je 0x499c55
cmp byte [edx + 0x19], 4
jb 0x499c55
push esi
push dword [edi]
push 0x41021c
push dword [edx + 0x14]
push dword [edx + 0x10]
push 0x2b
pop ecx
call fcn.00498f94
mov edx, dword [0x4b70c8]
mov ebx, dword [ebp - 0x28]
cmp esi, 2
jne 0x499cb1
push 4
lea eax, [ebp - 0x1c]
xor ecx, ecx
push eax
push 4
push ecx
push 0x41021c
push ebx
mov dword [edi], ecx
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov edx, dword [0x4b70c8]
cmp edx, 0x4b70c8
je 0x499cb1
test byte [edx + 0x1c], 2
je 0x499cb1
cmp byte [edx + 0x19], 4
jb 0x499cb1
push esi
push dword [edi]
push 0x41021c
push dword [edx + 0x14]
push dword [edx + 0x10]
push 0x2c
pop ecx
call fcn.00498f94
mov edx, dword [0x4b70c8]
test esi, esi
jne 0x499d08
mov eax, dword [edi]
cmp eax, dword [ebp - 0x14]
je 0x499d08
push 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 4
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov edx, dword [0x4b70c8]
cmp edx, 0x4b70c8
je 0x499d08
test byte [edx + 0x1c], 2
je 0x499d08
cmp byte [edx + 0x19], 4
jb 0x499d08
push esi
push dword [edi]
push dword [ebp - 0x10]
push dword [edx + 0x14]
push dword [edx + 0x10]
push 0x2d
pop ecx
call fcn.00498f94
mov edx, dword [0x4b70c8]
cmp dword [edi], 0
jne 0x499d50
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
and dword [ebp - 0x1c], 0
push eax
push 0x41023c
push dword [ebp - 0x10]
call fcn.0049a254
test eax, eax
jne 0x499d31
inc eax
cmp dword [ebp - 0x1c], eax
jne 0x499d31
mov dword [edi], eax
cmp dword [edi], 0
mov edx, dword [0x4b70c8]
jne 0x499d50
mov ecx, dword [ebp - 0x18]
push edi
push dword [ebp + 8]
call fcn.0049b9b0
mov esi, eax
mov edx, dword [0x4b70c8]
cmp edx, 0x4b70c8
je 0x499d86
test byte [edx + 0x1c], 1
je 0x499d86
movzx ecx, byte [edx + 0x19]
mov eax, esi
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 5
cmp ecx, eax
jb 0x499d86
push esi
push dword [edx + 0x14]
push dword [edx + 0x10]
mov edx, 0x4102dc
push 0x2e
pop ecx
call fcn.0041610f
test ebx, ebx
je 0x499d91
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.004174b0
mov eax, esi
call fcn.004a953c
ret 8
mov ebx, dword [ebp - 0x28]
jmp 0x499d50