Function at 0x47c230
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x120], 0
je 0x47c771
cmp dword [esi + 0x11c], 0
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
je 0x47c2ed
lea ecx, [ebp - 0x108]
call fcn.00486920
test eax, eax
je 0x47c76f
mov eax, 0x584fd8
lea ecx, [ebp - 0x108]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x47c2a6
test dl, dl
je 0x47c2a2
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x47c2a6
add ecx, 2
add eax, 2
test dl, dl
jne 0x47c286
xor eax, eax
jmp 0x47c2ab
sbb eax, eax
or eax, 1
test eax, eax
je 0x47c76f
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push 0x586a74
push reloc.WS2_32.dll_accept
call edi
test eax, eax
jne 0x47c76f
jmp 0x47c38e
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push 0x20019
push 0
push 0
push 0
push 0x586a74
push reloc.WS2_32.dll_bind
call edi
test eax, eax
je 0x47c343
push 0
push 0x5e7b10
mov edx, 0x5e749c
call fcn.004254b0
add esp, 8
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.Default
push dword [ebp - 0x10c]
call edi
push dword [ebp - 0x10c]
test eax, eax
je 0x47c38c
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
call ebx
push dword [ebp - 0x11c]
mov ecx, esi
call fcn.0047c780
push dword [ebp - 0x11c]
call ebx
push reloc.WS2_32.dll_accept
call ebx
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push 0x586a74
push reloc.WS2_32.dll_bind
call edi
test eax, eax
jne 0x47c76f
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x114]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push str.Default
push dword [ebp - 0x110]
call edi
mov ecx, dword [ebp - 0x114]
xor edx, edx
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
mov eax, dword [0x5d7d54]
push 4
mov dword [ebp - 0x10c], eax
cmovne ecx, edx
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x114], ecx
push eax
push 4
push edx
push str.DebugMode
push dword [ebp - 0x110]
call edi
movzx eax, byte [0x5d7f61]
push 4
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
push 4
push 0
push str.Avilog
push dword [ebp - 0x110]
call edi
call fcn.00471a00
push eax
push str.path
push dword [ebp - 0x110]
call fcn.0047c160
mov eax, dword [0x5d7d58]
push 4
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
push 4
push 0
push str.DebugLevel
push dword [ebp - 0x110]
call edi
mov ecx, dword [esi + 0x118]
mov eax, dword [ecx]
call dword [eax + 0x1f4]
push 4
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
push 4
push 0
push str.AllowLoopback
push dword [ebp - 0x110]
call edi
mov ecx, dword [esi + 0x118]
mov eax, dword [ecx]
call dword [eax + 0x174]
push 4
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
push 4
push 0
push 0x5ba9bc
push dword [ebp - 0x110]
call edi
mov ecx, dword [ebp - 0x114]
test ecx, ecx
je 0x47c573
mov eax, dword [esi + 0x128]
push 4
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
push 4
push 0
push str.AllowShutdown
push ecx
call edi
mov eax, dword [esi + 0x120]
push 4
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
push 4
push 0
push str.AllowProperties
push dword [ebp - 0x114]
call edi
mov eax, dword [esi + 0x12c]
push 4
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
push 4
push 0
push str.AllowEditClients
push dword [ebp - 0x114]
call edi
mov ecx, dword [esi + 0x118]
mov eax, dword [ecx]
call dword [eax + 0x17c]
push 4
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
push 4
push 0
push 0x5ba994
push dword [ebp - 0x110]
call edi
mov ecx, dword [esi + 0x118]
mov eax, dword [ecx]
call dword [eax + 0x184]
push 4
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
push 4
push 0
push str.rdpmode
push dword [ebp - 0x110]
call edi
mov ecx, dword [esi + 0x118]
mov eax, dword [ecx]
call dword [eax + 0x18c]
push 4
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
push 4
push 0
push str.noscreensaver
push dword [ebp - 0x110]
call edi
mov ecx, dword [esi + 0x118]
mov eax, dword [ecx]
call dword [eax + 0x24c]
push 4
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
push 4
push 0
push str.Secure
push dword [ebp - 0x110]
call edi
mov ecx, dword [esi + 0x118]
mov eax, dword [ecx]
call dword [eax + 0x250]
push 4
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
push 4
push 0
push str.MSLogonRequired
push dword [ebp - 0x110]
call edi
mov ecx, dword [esi + 0x118]
mov eax, dword [ecx]
call dword [eax + 0x258]
push 4
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
push 4
push 0
push str.NewMSLogon
push dword [ebp - 0x110]
call edi
mov ecx, dword [esi + 0x118]
mov eax, dword [ecx]
call dword [eax + 0x260]
push 4
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
push 4
push 0
push str.ReverseAuthRequired
push dword [ebp - 0x110]
call edi
mov ecx, dword [esi + 0x118]
mov eax, dword [ecx]
call dword [eax + 0x278]
push 4
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
push 4
push 0
push str.UseDSMPlugin
push dword [ebp - 0x110]
call edi
mov ecx, dword [esi + 0x118]
mov eax, dword [ecx]
call dword [eax + 0x164]
push 4
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push eax
push 4
push 0
push str.ConnectPriority
push dword [ebp - 0x110]
call edi
mov ecx, dword [esi + 0x118]
mov eax, dword [ecx]
call dword [eax + 0x280]
push 0x100
push eax
push 3
push 0
push str.DSMPlugin
push dword [ebp - 0x110]
call edi
mov ecx, dword [esi + 0x118]
mov eax, dword [ecx]
call dword [eax + 0x294]
push eax
push str.DSMPluginConfig
push dword [ebp - 0x110]
call fcn.0047c160
mov eax, dword [ebp - 0x114]
test eax, eax
je 0x47c762
push eax
call ebx
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x47c76f
push eax
call ebx
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0053d630
mov esp, ebp
pop ebp
ret