Function at 0x10001a50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
movzx edi, byte [ebp + 0x14]
mov ecx, dword [0x1002c70c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
neg edi
sbb edi, edi
xor esi, esi
push esi
lea eax, [ebp - 0xc]
push eax
push esi
and edi, 0x100
or edi, 0xf003f
push edi
push esi
push esi
push esi
push ecx
push SysReAllocString
mov dword [ebp - 0xc], esi
call ebx
test eax, eax
jne 0x10001abd
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
push esi
lea edx, [ebp - 8]
push edx
push esi
push edi
push esi
push esi
push esi
push eax
push ecx
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10001ac9
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 0x80040201
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001ad1
sub eax, esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
mov eax, dword [ebp - 8]
push edx
push 1
push 0
push 0
push eax
call esi
mov edx, dword [0x1002c71c]
mov eax, dword [ebp - 8]
push 0
lea ecx, [ebp + 0x14]
push ecx
push 0
push edi
push 0
push 0
push 0
push edx
push eax
mov dword [ebp + 0x14], 0
call ebx
test eax, eax
je 0x10001b34
mov ecx, dword [ebp - 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [ebp - 0xc]
push edx
call esi
pop edi
pop esi
mov eax, 0x80040201
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov eax, edx
lea ecx, [eax + 1]
mov dword [ebp - 0x10], ecx
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001b40
sub eax, dword [ebp - 0x10]
inc eax
push eax
push edx
mov edx, dword [ebp + 0x14]
push 1
push 0
push 0
push edx
call esi
mov eax, dword [0x1002c724]
mov ecx, dword [0x1002c720]
mov edx, dword [ebp + 0x14]
push 0xa
push eax
push 1
push 0
push ecx
push edx
call esi
mov eax, dword [ebp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov edx, dword [0x1002c728]
mov eax, dword [ebp - 8]
push 0
lea ecx, [ebp + 0x14]
push ecx
push 0
push edi
push 0
push 0
push 0
push edx
push eax
mov dword [ebp + 0x14], 0
call ebx
test eax, eax
jne 0x10001bcd
mov ecx, dword [0x1002c72c]
mov edx, dword [ebp + 0x14]
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0
push edi
push 0
push 0
push 0
push ecx
push edx
call ebx
test eax, eax
je 0x10001be5
mov eax, dword [ebp + 0x14]
push eax
call esi
mov ecx, dword [ebp - 8]
push ecx
call esi
mov edx, dword [ebp - 0xc]
push edx
call esi
pop edi
pop esi
mov eax, 0x80040201
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push eax
call esi
mov edx, dword [0x1002c730]
mov eax, dword [ebp + 0x14]
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push edi
push 0
push 0
push 0
push edx
push eax
mov dword [ebp - 4], 0
call ebx
test eax, eax
je 0x10001c30
mov ecx, dword [ebp + 0x14]
push ecx
call esi
mov edx, dword [ebp - 8]
push edx
call esi
mov eax, dword [ebp - 0xc]
push eax
call esi
pop edi
pop esi
mov eax, 0x80040201
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
call esi
mov eax, dword [0x1002c734]
mov ecx, dword [ebp + 0x14]
push 0
lea edx, [ebp - 4]
push edx
push 0
push edi
push 0
push 0
push 0
push eax
push ecx
mov dword [ebp - 4], 0
call ebx
test eax, eax
je 0x10001c7a
mov edx, dword [ebp + 0x14]
push edx
call esi
mov eax, dword [ebp - 8]
push eax
call esi
mov ecx, dword [ebp - 0xc]
push ecx
call esi
pop edi
pop esi
mov eax, 0x80040201
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call esi
mov ecx, dword [0x1002c738]
mov edx, dword [ebp + 0x14]
push 0
lea eax, [ebp - 4]
push eax
push 0
push edi
push 0
push 0
push 0
push ecx
push edx
mov dword [ebp - 4], 0
call ebx
test eax, eax
jne 0x10001bc7
mov eax, dword [ebp - 4]
push eax
call esi
mov ecx, dword [ebp + 0x14]
xor edi, edi
push ecx
mov dword [ebp - 4], edi
call esi
mov edx, dword [ebp - 8]
push edx
mov dword [ebp + 0x14], edi
call esi
mov eax, dword [ebp - 0xc]
push eax
mov dword [ebp - 8], edi
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret