Function at 0x10020f99
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x910
mov eax, dword [0x10069410]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x903]
push 0x7ff
push ebx
push eax
mov edi, ecx
mov byte [ebp - 0x904], bl
call fcn.1002d750
push 0xff
lea eax, [ebp - 0x103]
mov byte [ebp - 0x104], bl
push ebx
push eax
call fcn.1002d750
add esp, 0x18
lea eax, [ebp - 0x908]
mov esi, 0xf003f
push eax
push esi
push ebx
push str.SOFTWAREIntersect_AllianceAuditServiceRemote_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10021037
lea eax, [ebp - 0x910]
push eax
lea eax, [ebp - 0x908]
push eax
push ebx
push esi
push ebx
push ebx
push ebx
push str.SOFTWAREIntersect_AllianceAuditServiceRemote_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x10021037
push 2
pop eax
jmp 0x10021264
push 0xffffffffffffffff
lea eax, [edi + 0x10]
push eax
lea eax, [ebp - 0x904]
push 0x800
push eax
call fcn.10001f89
lea ecx, [ebp - 0x904]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002105a
sub ecx, edx
lea eax, [ebp - 0x904]
push ecx
push eax
push 1
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.RestrictIP
push dword [ebp - 0x908]
call ebx
xor esi, esi
lea edx, [edi + 4]
test eax, eax
mov eax, 0xffff
push 4
pop ecx
cmovne esi, ecx
cmp dword [edx], 1
sbb ecx, ecx
neg ecx
cmp eax, dword [edx]
sbb eax, eax
neg eax
or ecx, eax
je 0x100210aa
mov dword [edx], 0x1811
push 4
push edx
push 4
push 0
push str.WebPort
push dword [ebp - 0x908]
call ebx
test eax, eax
je 0x100210c5
add esi, 8
cmp dword [edi], 1
jbe 0x100210cd
and dword [edi], 0
push 4
push edi
push 4
push 0
push str.Allow
push dword [ebp - 0x908]
call ebx
test eax, eax
je 0x100210e8
add esi, 0x10
lea eax, [edi + 0x810]
cmp dword [eax], 1
jbe 0x100210f6
and dword [eax], 0
push 4
push eax
push 4
push 0
push str.AccessKey
push dword [ebp - 0x908]
call ebx
test eax, eax
je 0x10021114
add esi, 0x100
lea eax, [edi + 0xc]
cmp dword [eax], 1
jbe 0x1002111f
and dword [eax], 0
push 4
push eax
push 4
push 0
push str.Restrict
push dword [ebp - 0x908]
call ebx
test eax, eax
je 0x1002113a
add esi, 0x20
lea eax, [edi + 8]
cmp dword [eax], 1
jbe 0x10021145
and dword [eax], 0
push 4
push eax
push 4
push 0
push str.WebPortChange
push dword [ebp - 0x908]
call ebx
test eax, eax
je 0x10021160
add esi, 0x40
push 0xffffffffffffffff
lea eax, [edi + 0x814]
push eax
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.10001f89
lea ecx, [ebp - 0x104]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021186
sub ecx, edx
lea eax, [ebp - 0x104]
push ecx
push eax
push 1
push 0
push str.AccessKeySet
push dword [ebp - 0x908]
call ebx
test eax, eax
je 0x100211af
sub esi, 0xffffff80
lea edx, [edi + 0x914]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x90c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100211c0
sub ecx, dword [ebp - 0x90c]
push ecx
push edx
push 1
push 0
push str.AccessKeySetSnare1
push dword [ebp - 0x908]
call ebx
test eax, eax
je 0x100211ea
add esi, 0x100
lea edx, [edi + 0xa14]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x90c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100211fb
sub ecx, dword [ebp - 0x90c]
push ecx
push edx
push 1
push 0
push str.AccessKeySetSnare2
push dword [ebp - 0x908]
call ebx
test eax, eax
je 0x10021225
add esi, 0x200
add edi, 0xb14
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021230
sub ecx, edx
push ecx
push edi
push 1
push 0
push str.AccessKeySetSnare3
push dword [ebp - 0x908]
call ebx
test eax, eax
je 0x10021256
add esi, 0x400
push dword [ebp - 0x908]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000adad
mov esp, ebp
pop ebp
ret