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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x5f2e68]
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.005306b0
add esp, 0xc
push esi
lea eax, [esp + 0x1d]
push ebx
push eax
mov byte [esp + 0x24], bl
call fcn.005306b0
add esp, 0xc
cmp dword [ebp + 8], ebx
mov dword [esp + 0x14], ebx
jne 0x413318
cmp dword [ebp + 0xc], ebx
jne 0x413318
push str.SoftwareMicrosoftWindowsCurrentVersionRun
jmp 0x41331d
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
mov esi, 0x104
mov ecx, esi
lea eax, [esp + 0x124]
call fcn.004ccc3f
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 SysStringLen
call edi
test eax, eax
je 0x41339b
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 0x41339b
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.0042b70b
add esp, 0x14
xor eax, eax
jmp 0x413518
cmp dword [ebp + 8], ebx
jne 0x413448
cmp dword [ebp + 0xc], ebx
jne 0x41348b
push 0x558744
push ebx
push ebx
call fcn.00493030
pop ecx
pop ecx
push eax
push str._s_s__InitServer
lea eax, [esp + 0x24]
push esi
push eax
call fcn.004ce4e5
lea eax, [esp + 0x2c]
add esp, 0x14
push eax
call fcn.00530f70
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 0x5587bc
push ebx
push ebx
mov dword [esp + 0x20], eax
call fcn.00493030
pop ecx
pop ecx
push eax
push str._s_s_s__StartupLGUProc__Spawned
lea eax, [esp + 0x28]
push esi
push eax
call fcn.004ce4e5
lea eax, [esp + 0x30]
push eax
call fcn.00530f70
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 0x4134d5
cmp dword [ebp + 0xc], ebx
jne 0x41348b
push 0x558744
push ebx
push ebx
call fcn.00493030
pop ecx
pop ecx
push eax
push str._s_s__StartOnce
lea eax, [esp + 0x24]
push esi
push eax
call fcn.004ce4e5
lea eax, [esp + 0x2c]
add esp, 0x14
push eax
call fcn.00530f70
pop ecx
inc eax
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push ebx
push str.PAULA_Server
jmp 0x4134c7
push 0x558744
push ebx
push ebx
call fcn.00493030
pop ecx
pop ecx
push eax
push str._s_s__CreateTerminal
lea eax, [esp + 0x24]
push esi
push eax
call fcn.004ce4e5
lea eax, [esp + 0x2c]
add esp, 0x14
push eax
call fcn.00530f70
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 0x413515
mov eax, dword [esp + 0x10]
call fcn.0042c952
push eax
push dword [esp + 0x14]
push ebx
push ebx
call fcn.00493030
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.0042b70b
add esp, 0x18
jmp 0x413394
xor eax, eax
inc eax
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005317e7
mov esp, ebp
pop ebp
ret