Function at 0x6608b71c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [ebp + 0x10]
push ebx
or dword [ebp - 4], 0xffffffff
or dword [ebp - 8], 0xffffffff
movzx ecx, word [eax + 0x5a]
movzx eax, word [eax + 0x58]
push esi
push edi
push ecx
push eax
lea eax, [ebp - 0x30]
push 0x66050218
push eax
xor edi, edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x158]
push 0x660583c0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp + 8], edi
mov dword [ebp - 0xc], edi
jle 0x6608b8f0
mov eax, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov dword [ebp - 0x10], eax
mov edi, 0x660583c0
push edi
call esi
mov ecx, 0x100
sub ecx, eax
push ecx
push edi
call esi
lea eax, [ebp + eax - 0x158]
push eax
push dword [ebp - 0x10]
call fcn.6601bc33
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x50], 0
je 0x6608b7be
lea eax, [ebp - 0x158]
push eax
push SysReAllocStringLen
call fcn.6601bcc2
mov edi, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x158]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x6608b7de
mov dword [ebp - 4], edi
test eax, eax
mov edi, eax
jne 0x6608b8f0
mov edi, dword [ebp + 0x10]
push dword [edi + 8]
call esi
push eax
push dword [edi + 8]
push 1
push 0
push dword [ebp - 4]
call ebx
mov edi, eax
test edi, edi
jne 0x6608b8f4
push dword [ebp + 0x18]
call esi
push eax
push dword [ebp + 0x18]
push 1
push 0x6608b470
push dword [ebp - 4]
call ebx
mov edi, eax
test edi, edi
jne 0x6608b8f4
push dword [ebp + 0x18]
call esi
push eax
push dword [ebp + 0x18]
push 1
push 0x6608b480
push dword [ebp - 4]
call ebx
mov edi, eax
test edi, edi
jne 0x6608b8f4
mov eax, dword [ebp + 8]
lea ecx, [eax - 1]
cmp dword [ebp - 0xc], ecx
jne 0x6608b91b
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x54], edi
je 0x6608b8ca
mov edi, dword [ebp - 8]
lea eax, [ebp - 8]
push eax
push 0x660583a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x6608b878
mov dword [ebp - 8], edi
test eax, eax
mov edi, eax
jne 0x6608b8f0
push dword [ebp + 0x14]
call esi
push eax
push dword [ebp + 0x14]
push 1
push edi
push dword [ebp - 8]
call ebx
mov edi, eax
test edi, edi
jne 0x6608b8f4
lea eax, [ebp - 0x30]
push eax
call esi
push eax
lea eax, [ebp - 0x30]
push eax
push 1
push edi
push 0x66050210
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, eax
test edi, edi
jne 0x6608b8f4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 8], 0xffffffff
mov edi, eax
test edi, edi
jne 0x6608b8f4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
mov edi, eax
test edi, edi
jne 0x6608b8f4
inc dword [ebp - 0xc]
add dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jl 0x6608b781
test edi, edi
je 0x6608b912
cmp dword [ebp - 4], 0xffffffff
je 0x6608b903
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 0xffffffff
je 0x6608b912
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x14
lea ecx, [ebp - 0x58]
push 0x27
push ecx
mov ecx, dword [ebp + 0xc]
shl eax, 4
lea eax, [eax + ecx - 0x10]
push eax
call fcn.6601bc33
lea eax, [ebp - 0x58]
push eax
call esi
push eax
lea eax, [ebp - 0x58]
push eax
push 1
push 0x6608b498
push dword [ebp - 4]
call ebx
mov edi, eax
jmp 0x6608b8c6