Function at 0x5013f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
mov edi, dword [0x76cab0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x254]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x254]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [str.ShortcutItem]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [ebp - 0x254]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x76665c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x839d48]
mov ecx, ebx
xor ebx, ebx
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
jne 0x501494
mov eax, 0x7367f4
push 0x76be10
push eax
call fcn.0070eea0
add esp, 8
test eax, eax
je 0x5014b3
lea edx, [ebp - 0x254]
mov edi, 0x76be10
jmp 0x5014c8
mov edi, dword [0x839d48]
cmp edi, ebx
jne 0x5014c2
mov edi, 0x7367f4
lea edx, [ebp - 0x254]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp - 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 4]
lea edx, [ebp - 0x254]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push edx
push reloc.ijl15.dll_Ordinal_2
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x5015e5
mov ecx, 8
xor eax, eax
lea edi, [ebp - 0x54]
push ebx
rep stosd dword es:[edi], eax
mov ecx, 0x8365d0
stosb byte es:[edi], al
call fcn.006c3110
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x54]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [0x80fe3c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x30]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x837a40]
push ecx
push edx
push ebx
push str.SITEM_d_d_d
push eax
call fcn.0070dea8
mov eax, dword [ebp - 4]
add esp, 0x14
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x54]
push 0x20
push ecx
push 1
lea edx, [ebp - 0x30]
push 0
push edx
push eax
call esi
push ebx
mov ecx, 0x8365d0
call fcn.006e34f0
mov ecx, dword [0x837a40]
mov edx, dword [0x80fe3c]
push ecx
mov dword [ebp - 8], eax
push edx
push ebx
lea eax, [ebp - 0x30]
push str.S_SKILL_USE_LEVEL_d_d_d
push eax
call fcn.0070dea8
mov eax, dword [ebp - 4]
add esp, 0x14
lea ecx, [ebp - 8]
lea edx, [ebp - 0x30]
push 4
push ecx
push 4
push 0
push edx
push eax
call esi
inc ebx
cmp ebx, 0x24
jl 0x50151b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret