Function at 0x40ee60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov edi, 0x4254c8
or ecx, 0xffffffff
xor eax, eax
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]
mov dword [esp + 0x10], 0
not ecx
dec ecx
cmp al, 0x5c
mov dword [esp + 0x14], 0x4253c9
jne 0x40ee9f
dec ebx
cmp byte [0x4253c9], 0x5c
jne 0x40eeb1
mov dword [esp + 0x14], 0x4253ca
dec ecx
lea eax, [ecx + ebx + 2]
push ebp
push eax
call fcn.00419c1d
mov ebp, eax
mov edi, 0x4254c8
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebx + ebp + 1]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
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 + 0x14]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push ebp
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ebx, dword [esp + 0x28]
test eax, eax
jne 0x40f0e5
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push ebx
push 0
push edi
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebx]
inc ecx
push ecx
call fcn.00419c1d
mov edx, dword [esp + 0x24]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x10]
push ebx
push esi
push edi
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40f0e9
test esi, esi
je 0x40ef88
push esi
call fcn.00419c12
add esp, 4
mov ecx, 0x4255c7
mov dword [esp + 0x14], 0
test ecx, ecx
je 0x40f0e5
mov edi, ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40f0e5
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
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 0x40efee
dec ebp
cmp byte [0x4253c9], 0x5c
jne 0x40effd
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 + 0x14]
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 0x40f0e1
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push esi
push eax
push edi
push eax
push ebx
push edx
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esi]
inc eax
push eax
call fcn.00419c1d
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x14], eax
push esi
push eax
push edi
push 0
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40f0e1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40f0cf
push eax
call fcn.00419c12
add esp, 4
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x14], 0
mov esi, dword [esp + 0x14]
jmp 0x40f0e9
mov ebx, dword [esp + 0x28]
mov esi, dword [esp + 0x14]
push ebp
call fcn.00419c12
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
pop ebp
test eax, eax
je 0x40f11b
test esi, esi
je 0x40f125
mov eax, dword [ebx]
push eax
push esi
push str.BlindCaffineSubstituteFamousCurtainTrickKingTinHalcyonDaysArapaho
call fcn.0040a8a0
add esp, 0xc
test esi, esi
je 0x40f125
mov ecx, dword [ebx]
mov byte [ecx + esi], 0
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0xc
ret