Function at 0x40ec30
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40ec50
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push str.BlindCaffineSubstituteFamousCurtainTrickKingTinHalcyonDaysArapaho
call fcn.0040a8a0
add esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, 0x4254c8
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x10], 0x4253c9
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, 0x4253c9
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov al, byte [ebx + 0x4254c7]
not ecx
dec ecx
cmp al, 0x5c
jne 0x40ec85
dec ebx
cmp byte [0x4253c9], 0x5c
jne 0x40ec97
mov dword [esp + 0x10], 0x4253ca
dec ecx
lea edx, [ecx + ebx + 2]
push edx
call fcn.00419c1d
mov ebp, eax
mov edi, 0x4254c8
or ecx, 0xffffffff
xor eax, eax
add esp, 4
lea edx, [ebx + ebp + 1]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, ebp
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 [esp + 0x14]
or ecx, 0xffffffff
mov byte [ebx + ebp], 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push ebp
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40ed36
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x30]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 0x4255c7
test edx, edx
je 0x40ee4d
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40ee4d
push ebp
call fcn.00419c12
mov edi, 0x4255c7
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, 0x4253c9
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov al, byte [ebp + 0x4255c6]
not ecx
dec ecx
cmp al, 0x5c
jne 0x40ed94
dec ebp
cmp byte [0x4253c9], 0x5c
jne 0x40eda3
mov ebx, 0x4253ca
dec ecx
lea eax, [ecx + ebp + 2]
push eax
call fcn.00419c1d
mov edx, eax
mov edi, 0x4255c7
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
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, ebx
or ecx, 0xffffffff
mov byte [edx + ebp], 0x5c
lea ebp, [edx + ebp + 1]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
mov ebp, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40ee42
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x30]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.00419c12
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret