Function at 0x128743c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0x18]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01287003
test eax, eax
je 0x12874ae
lea eax, [ebp - 0x30]
push eax
push dword [ebp + 0x18]
call fcn.01286e58
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x134]
push 0x1281920
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp + 0x14]
mov esi, 0xf003f
push eax
push esi
lea eax, [ebp - 0x134]
push ebx
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x12874b5
xor eax, eax
jmp 0x12876dd
lea eax, [ebp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push ebx
push 0x12813c0
push ebx
push 0x12819b4
push dword [ebp + 0x14]
call edi
cmp eax, ebx
mov dword [ebp + 0x18], eax
jne 0x12876b9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0xc]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push ebx
push 0x12813c0
push ebx
push 0x12819a8
push dword [ebp + 0x14]
call edi
cmp eax, ebx
mov dword [ebp + 0x18], eax
jne 0x12876b9
lea eax, [ebp - 0x134]
push 2
push eax
push 1
push ebx
push ebx
push dword [ebp - 4]
mov byte [ebp - 0x134], 0x30
mov byte [ebp - 0x133], bl
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
mov dword [ebp + 0x18], eax
jne 0x12876b9
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push esi
push ebx
push 0x12813c0
push ebx
push 0x12819a4
push dword [ebp - 4]
call edi
cmp eax, ebx
mov dword [ebp + 0x18], eax
jne 0x12876b9
push dword [ebp + 0x1c]
lea eax, [ebp - 0x134]
push 0x12817e4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x134]
push eax
push 1
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
mov dword [ebp + 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x18], ebx
jne 0x12876b9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x134]
push 0x104
push eax
push dword [0x128e2c4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
movzx eax, word [ebp + 0x20]
push eax
lea eax, [ebp - 0x30]
push 0x128199c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push ebx
push 0x12813c0
push ebx
push 0x128198c
push dword [ebp + 0x14]
call edi
cmp eax, ebx
mov dword [ebp + 0x18], eax
jne 0x12876b9
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x134]
push eax
push 1
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
mov dword [ebp + 0x18], eax
jne 0x12876b9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
push ebx
push 0x12813c0
push ebx
push 0x1281984
push dword [ebp + 0x14]
call edi
cmp eax, ebx
mov dword [ebp + 0x18], eax
jne 0x12876b9
push dword [ebp + 0x10]
lea eax, [ebp - 0x134]
push 0x128197c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x134]
push eax
push 1
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp + 0x18], eax
cmp dword [ebp + 0x14], ebx
je 0x12876c7
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], ebx
je 0x12876d5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp + 0x18], ebx
sete al
pop edi
pop esi
pop ebx
leave
ret 0x1c