Function at 0x4112f2
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x5c4e68]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [esp + 0x125]
push ebx
push eax
mov byte [esp + 0x12c], bl
call fcn.005117f0
add esp, 0xc
push esi
lea eax, [esp + 0x1d]
push ebx
push eax
mov byte [esp + 0x24], bl
call fcn.005117f0
add esp, 0xc
cmp dword [ebp + 8], ebx
mov dword [esp + 0x14], ebx
jne 0x411357
cmp dword [ebp + 0xc], ebx
jne 0x411357
push str.SoftwareMicrosoftWindowsCurrentVersionRun
jmp 0x41135c
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov esi, 0x104
mov ecx, esi
lea eax, [esp + 0x124]
call fcn.004c3b66
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
pop ecx
push ebx
lea eax, [esp + 0x18]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [esp + 0x13c]
push eax
push closesocket
call edi
test eax, eax
je 0x4113da
push ebx
lea eax, [esp + 0x18]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
lea eax, [esp + 0x13c]
push eax
push closesocket
call edi
cmp eax, ebx
je 0x4113da
push eax
push str._GetLastError_
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.:8:SetPaulaServerRegStartup__d__d__FAILED:_RegCreateKeyEx___FAILED:__s_ld
call fcn.004265da
add esp, 0x14
xor eax, eax
jmp 0x411557
cmp dword [ebp + 8], ebx
jne 0x411487
cmp dword [ebp + 0xc], ebx
jne 0x4114ca
push 0x5387f4
push ebx
push ebx
call fcn.00489f49
pop ecx
pop ecx
push eax
push str._s_s__InitServer
lea eax, [esp + 0x24]
push esi
push eax
call fcn.004c53b7
lea eax, [esp + 0x2c]
add esp, 0x14
push eax
call fcn.005120b0
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop ecx
inc eax
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push ebx
push str.PAULA_Server
push dword [esp + 0x28]
call edi
push str.PAULA_Updt.exe
push 0x53886c
push ebx
push ebx
mov dword [esp + 0x20], eax
call fcn.00489f49
pop ecx
pop ecx
push eax
push str._s_s_s__StartupLGUProc__Spawned
lea eax, [esp + 0x28]
push esi
push eax
call fcn.004c53b7
lea eax, [esp + 0x30]
push eax
call fcn.005120b0
add esp, 0x1c
inc eax
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push ebx
push str.PAULA_Update
push dword [esp + 0x28]
call edi
or dword [esp + 0x10], eax
jmp 0x411514
cmp dword [ebp + 0xc], ebx
jne 0x4114ca
push 0x5387f4
push ebx
push ebx
call fcn.00489f49
pop ecx
pop ecx
push eax
push str._s_s__StartOnce
lea eax, [esp + 0x24]
push esi
push eax
call fcn.004c53b7
lea eax, [esp + 0x2c]
add esp, 0x14
push eax
call fcn.005120b0
pop ecx
inc eax
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push ebx
push str.PAULA_Server
jmp 0x411506
push 0x5387f4
push ebx
push ebx
call fcn.00489f49
pop ecx
pop ecx
push eax
push str._s_s__CreateTerminal
lea eax, [esp + 0x24]
push esi
push eax
call fcn.004c53b7
lea eax, [esp + 0x2c]
add esp, 0x14
push eax
call fcn.005120b0
pop ecx
inc eax
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push ebx
push str.PAULA_Create
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [esp + 0x10], eax
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x10], ebx
je 0x411554
mov eax, dword [esp + 0x10]
call fcn.0042780f
push eax
push dword [esp + 0x14]
push ebx
push ebx
call fcn.00489f49
pop ecx
pop ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.:8:SetPaulaServerRegStartup__d__d__FAILED:_RegSetValueEx___FAILED:__s:__d:__s
call fcn.004265da
add esp, 0x18
jmp 0x4113d3
xor eax, eax
inc eax
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051291c
mov esp, ebp
pop ebp
ret