Function at 0xa20f30
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0xa8b686
push eax
mov al, byte [0xaf474d]
mov dword fs:[0], esp
sub esp, 0x314
test al, al
push ebx
push ebp
push esi
push edi
je 0xa20f93
mov eax, dword [esp + 0x348]
mov ecx, dword [esp + 0x344]
mov edx, dword [esp + 0x340]
push eax
mov eax, dword [esp + 0x340]
push ecx
mov ecx, dword [esp + 0x340]
push edx
mov edx, dword [esp + 0x340]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0xa2144b
mov ebp, dword [esp + 0x340]
cmp ebp, 1
je 0xa212a1
cmp ebp, 2
je 0xa212a1
cmp ebp, 7
jne 0xa2123a
mov ebx, dword [esp + 0x348]
test ebx, ebx
je 0xa21162
mov esi, dword [esp + 0x344]
test esi, esi
je 0xa21162
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0x100
mov dword [esp + 0x14], eax
jae 0xa20fee
lea eax, [esp + 0x11c]
jmp 0xa20ff7
push ebx
call fcn.00a1fcf0
add esp, 4
mov dword [esp + 0x21c], eax
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [esp + 0x32c], 1
mov dword [esp + 0x10], eax
mov edi, eax
cmp word [esi], 0
mov eax, esi
je 0xa21026
add esi, 2
cmp word [esi], 0
jne 0xa2101d
mov ecx, esi
push 0
sub ecx, eax
push 0
push ebx
push edi
sar ecx, 1
push ecx
push eax
push 0
push 0
call ebp
add edi, eax
sub ebx, eax
je 0xa21045
mov byte [edi], 0
inc edi
dec ebx
add esi, 2
cmp word [esi], 0
je 0xa21054
test ebx, ebx
jne 0xa21015
jmp 0xa2105c
test ebx, ebx
je 0xa2105c
mov byte [edi], 0
inc edi
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [esp + 0x338]
test ebx, ebx
jne 0xa2107b
mov dword [esp + 0x118], ebx
jmp 0xa210ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esp + 0x18], eax
call fcn.00a7e07a
mov esi, eax
add esp, 4
cmp esi, 0xff
jg 0xa210c0
push 0
push 0
lea eax, [esp + 0x20]
push 0x100
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call ebp
test eax, eax
je 0xa210c0
lea ecx, [esp + 0x18]
mov dword [esp + 0x118], ecx
jmp 0xa210e3
lea esi, [esi + esi*2 + 3]
push esi
call fcn.00a1fcf0
add esp, 4
mov dword [esp + 0x118], eax
push 0
push 0
push esi
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call ebp
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x334]
sub edi, eax
push edi
push eax
mov eax, dword [esp + 0x344]
push 7
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0x118]
test eax, eax
je 0xa21134
lea ecx, [esp + 0x18]
cmp eax, ecx
je 0xa21134
push eax
call fcn.00a1fd20
add esp, 4
mov eax, dword [esp + 0x21c]
mov dword [esp + 0x32c], 0xffffffff
test eax, eax
je 0xa21449
lea edx, [esp + 0x11c]
cmp eax, edx
je 0xa21449
jmp 0xa21440
mov ebp, dword [esp + 0x338]
test ebp, ebp
jne 0xa21176
mov dword [esp + 0x118], ebp
jmp 0xa211ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov dword [esp + 0x14], eax
call fcn.00a7e07a
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
add esp, 4
cmp edi, 0xff
jg 0xa211c1
push 0
push 0
lea eax, [esp + 0x20]
push 0x100
push eax
push 0xffffffffffffffff
push ebp
push 0
push 0
call esi
test eax, eax
je 0xa211c1
lea ecx, [esp + 0x18]
mov dword [esp + 0x118], ecx
jmp 0xa211e4
lea edi, [edi + edi*2 + 3]
push edi
call fcn.00a1fcf0
add esp, 4
mov dword [esp + 0x118], eax
push 0
push 0
push edi
push eax
push 0xffffffffffffffff
push ebp
push 0
push 0
call esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x344]
mov ecx, dword [esp + 0x33c]
mov edx, dword [esp + 0x118]
push ebx
push eax
mov eax, dword [esp + 0x33c]
push 7
push ecx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0x118]
test eax, eax
je 0xa21449
lea ecx, [esp + 0x18]
cmp eax, ecx
je 0xa21449
jmp 0xa21440
mov edx, dword [esp + 0x338]
lea ecx, [esp + 0x220]
push edx
call fcn.00a21470
mov eax, dword [eax + 0x100]
mov ecx, dword [esp + 0x348]
mov edx, dword [esp + 0x344]
push ecx
mov ecx, dword [esp + 0x340]
push edx
mov edx, dword [esp + 0x33c]
push ebp
push ecx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0x320]
test eax, eax
je 0xa21449
lea ecx, [esp + 0x220]
cmp eax, ecx
je 0xa21449
jmp 0xa21440
mov esi, dword [esp + 0x344]
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
xor eax, eax
cmp esi, eax
jne 0xa212bd
mov dword [esp + 0x21c], eax
jmp 0xa21339
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ebp, eax
call fcn.00a7e07a
mov edi, eax
add esp, 4
cmp edi, 0xff
jg 0xa21306
push 0
push 0
lea edx, [esp + 0x124]
push 0x100
push edx
push 0xffffffffffffffff
push esi
push 0
push 0
call ebx
test eax, eax
je 0xa21306
lea eax, [esp + 0x11c]
mov dword [esp + 0x21c], eax
jmp 0xa21329
lea edi, [edi + edi*2 + 3]
push edi
call fcn.00a1fcf0
add esp, 4
mov dword [esp + 0x21c], eax
push 0
push 0
push edi
push eax
push 0xffffffffffffffff
push esi
push 0
push 0
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ebp, dword [esp + 0x340]
mov edi, dword [esp + 0x338]
mov ecx, dword [esp + 0x21c]
cmp edi, eax
mov dword [esp + 0x32c], eax
mov dword [esp + 0x10], ecx
jne 0xa2135f
mov dword [esp + 0x118], eax
jmp 0xa213d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ebp, eax
call fcn.00a7e07a
mov esi, eax
add esp, 4
cmp esi, 0xff
jg 0xa213a2
push 0
push 0
lea edx, [esp + 0x20]
push 0x100
push edx
push 0xffffffffffffffff
push edi
push 0
push 0
call ebx
test eax, eax
je 0xa213a2
lea eax, [esp + 0x18]
mov dword [esp + 0x118], eax
jmp 0xa213c5
lea esi, [esi + esi*2 + 3]
push esi
call fcn.00a1fcf0
add esp, 4
mov dword [esp + 0x118], eax
push 0
push 0
push esi
push eax
push 0xffffffffffffffff
push edi
push 0
push 0
call ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebp, dword [esp + 0x340]
mov ecx, dword [esp + 0x348]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x33c]
shr ecx, 1
push ecx
mov ecx, dword [esp + 0x11c]
push edx
mov edx, dword [esp + 0x33c]
push ebp
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0x118]
test eax, eax
je 0xa2141f
lea ecx, [esp + 0x18]
cmp eax, ecx
je 0xa2141f
push eax
call fcn.00a1fd20
add esp, 4
mov eax, dword [esp + 0x21c]
mov dword [esp + 0x32c], 0xffffffff
test eax, eax
je 0xa21449
lea edx, [esp + 0x11c]
cmp eax, edx
je 0xa21449
push eax
call fcn.00a1fd20
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x324]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x320
ret 0x18