Function at 0x1287003
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
push ebx
push esi
push edi
xor esi, esi
push dword [ebp + 0x18]
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
push dword [ebp + 0xc]
call fcn.01286ea5
test eax, eax
je 0x128741e
push dword [ebp + 8]
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x138]
push 0x12813c4
push eax
call edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x138]
push eax
call edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x2001f
push esi
push 0x12813c0
lea eax, [ebp - 0x138]
push esi
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x1287402
push dword [ebp + 0xc]
lea eax, [ebp - 0x138]
push 0x1281914
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
call edi
inc eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push eax
lea eax, [ebp - 0x138]
push eax
push 1
push esi
push esi
push dword [ebp - 8]
call ebx
cmp eax, esi
jne 0x1287402
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x12813c0
push esi
push 0x1281974
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x1287402
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x18]
call fcn.01286e58
test eax, eax
je 0x1287402
lea eax, [ebp - 0x34]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x34]
push eax
push 1
push esi
push esi
push dword [ebp - 4]
call ebx
cmp eax, esi
jne 0x1287402
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x12813c0
push esi
push 0x128196c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x1287402
push dword [ebp + 0x10]
lea eax, [ebp - 0x138]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x1281960
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x138]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x138]
push eax
push 1
push esi
push esi
push dword [ebp - 4]
call ebx
cmp eax, esi
jne 0x1287402
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x2001f
push esi
push 0x12813c0
lea eax, [ebp - 0x138]
push esi
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x1287402
push dword [ebp + 0xc]
lea eax, [ebp - 0x138]
push 0x1281914
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x138]
push eax
push 1
push esi
push esi
push dword [ebp - 8]
call ebx
cmp eax, esi
jne 0x1287402
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x12813c0
push esi
push 0x1281974
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x1287402
lea eax, [ebp - 0x34]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x34]
push eax
push 1
push esi
push esi
push dword [ebp - 4]
call ebx
cmp eax, esi
jne 0x1287402
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x18]
call fcn.01286e58
test eax, eax
je 0x1287402
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x138]
push 0x1281920
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push esi
push 0x2001f
push esi
push 0x12813c0
lea eax, [ebp - 0x138]
push esi
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x1287402
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x12813c0
push esi
push 0x1281944
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x1287402
push dword [ebp + 0xc]
lea eax, [ebp - 0x138]
push dword [ebp + 8]
push 0x128193c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x138]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x138]
push eax
push 1
push esi
push esi
push dword [ebp - 4]
call ebx
cmp eax, esi
jne 0x1287402
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x12813c0
push esi
push 0x1281934
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, esi
jne 0x1287402
push dword [ebp + 0x10]
lea eax, [ebp - 0x138]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x1281960
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x138]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x138]
push eax
push 1
push esi
push esi
push dword [ebp - 4]
call ebx
cmp eax, esi
jne 0x1287402
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push 0x12813c0
push esi
push 0x128192c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0x14]
call fcn.01286e58
test eax, eax
je 0x1287402
lea eax, [ebp - 0x34]
push eax
call edi
inc eax
push eax
lea eax, [ebp - 0x34]
push eax
push 1
push esi
push esi
push dword [ebp - 4]
call ebx
cmp eax, esi
je 0x1287422
cmp dword [ebp - 8], esi
je 0x128741e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
je 0x128741e
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x1287435
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x14