Function at 0x466260
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4f5568]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x114], 0
je 0x4666e7
cmp dword [esi + 0x110], 0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x46631d
lea ecx, [ebp - 0x110]
call fcn.0046fff0
test eax, eax
je 0x4666e7
mov eax, 0x4d9f42
lea ecx, [ebp - 0x110]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4662d6
test dl, dl
je 0x4662d2
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4662d6
add ecx, 2
add eax, 2
test dl, dl
jne 0x4662b6
xor eax, eax
jmp 0x4662db
sbb eax, eax
or eax, 1
test eax, eax
je 0x4666e7
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x124]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push 0x4db79c
push reloc.WS2_32.dll_accept
call edi
test eax, eax
jne 0x4666e7
jmp 0x4663be
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push 0x4db79c
push reloc.WS2_32.dll_bind
call edi
test eax, eax
je 0x466373
push 0
push 0x50259c
mov edx, 0x502a84
call fcn.0041b520
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x124]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.Default
push dword [ebp - 0x114]
call edi
push dword [ebp - 0x114]
test eax, eax
je 0x4663bc
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004aca59
mov esp, ebp
pop ebp
ret
call ebx
push dword [ebp - 0x124]
mov ecx, esi
call fcn.00466700
push dword [ebp - 0x124]
call ebx
push reloc.WS2_32.dll_accept
call ebx
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x118]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push 0x4db79c
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x4666e7
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x11c]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.Default
push dword [ebp - 0x118]
call edi
mov ecx, dword [ebp - 0x11c]
xor edx, edx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov eax, dword [0x4f6c5c]
push 4
mov dword [ebp - 0x114], eax
cmovne ecx, edx
lea eax, [ebp - 0x114]
mov dword [ebp - 0x11c], ecx
push eax
push 4
push edx
push str.DebugMode
push dword [ebp - 0x118]
call edi
movzx eax, byte [0x4f6e69]
push 4
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push eax
push 4
push 0
push str.Avilog
push dword [ebp - 0x118]
call edi
call fcn.0045be60
push eax
push str.path
push dword [ebp - 0x118]
call fcn.00466190
mov eax, dword [0x4f6c60]
push 4
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push eax
push 4
push 0
push str.DebugLevel
push dword [ebp - 0x118]
call edi
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x1cc]
push 4
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push eax
push 4
push 0
push str.AllowLoopback
push dword [ebp - 0x118]
call edi
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x168]
push 4
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push eax
push 4
push 0
push 0x4e05c8
push dword [ebp - 0x118]
call edi
mov ecx, dword [ebp - 0x11c]
test ecx, ecx
je 0x4665a3
mov eax, dword [esi + 0x118]
push 4
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push eax
push 4
push 0
push str.AllowShutdown
push ecx
call edi
mov eax, dword [esi + 0x114]
push 4
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push eax
push 4
push 0
push str.AllowProperties
push dword [ebp - 0x11c]
call edi
mov eax, dword [esi + 0x11c]
push 4
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push eax
push 4
push 0
push str.AllowEditClients
push dword [ebp - 0x11c]
call edi
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x170]
push 4
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push eax
push 4
push 0
push 0x4e05b8
push dword [ebp - 0x118]
call edi
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x220]
push 4
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push eax
push 4
push 0
push str.MSLogonRequired
push dword [ebp - 0x118]
call edi
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x228]
push 4
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push eax
push 4
push 0
push str.NewMSLogon
push dword [ebp - 0x118]
call edi
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x240]
push 4
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push eax
push 4
push 0
push str.UseDSMPlugin
push dword [ebp - 0x118]
call edi
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x158]
push 4
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x114]
push eax
push 4
push 0
push str.ConnectPriority
push dword [ebp - 0x118]
call edi
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x248]
push 0x100
push eax
push 3
push 0
push str.DSMPlugin
push dword [ebp - 0x118]
call edi
mov ecx, dword [esi + 0x10c]
mov eax, dword [ecx]
call dword [eax + 0x25c]
push eax
push str.DSMPluginConfig
push dword [ebp - 0x118]
call fcn.00466190
mov eax, dword [ebp - 0x11c]
test eax, eax
je 0x4666da
push eax
call ebx
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x4666e7
push eax
call ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004aca59
mov esp, ebp
pop ebp
ret