Function at 0x404120
Capabilities:
Persist via run registry key
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492980
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
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 [0x4d5594]
mov ebx, dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_char_const___int_]
push 0xffffffffffffffff
push str.fmol
lea ecx, [ebp - 0x360]
mov dword [ebp - 0x438], eax
call ebx
lea edi, [ebp - 0x42c]
mov dword [ebp - 4], 0
call fcn.0042cad0
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.DuiLib.dll_public:_char_const____thiscall_DuiLib::CDuiString::GetData_void_const]
push 0xffffffffffffffff
mov ecx, eax
call esi
push eax
lea ecx, [ebp - 0x3a4]
call ebx
mov byte [ebp - 4], 3
mov ecx, edi
mov edi, dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
call edi
push str.SysConfig.ini
lea ecx, [ebp - 0x3a4]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::Append_char_const__]
push 0x103
lea ecx, [ebp - 0x113]
push 0
push ecx
mov byte [ebp - 0x114], 0
call fcn.00475cb0
add esp, 0xc
lea ecx, [ebp - 0x3a4]
call esi
push eax
push 0
push 0x4a1d74
push str.SysConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [ebp - 0x3a4]
mov ebx, eax
call esi
push eax
push 0x104
lea edx, [ebp - 0x114]
push edx
push 0x4a1520
push str.RName
push str.SysConfig
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x114]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404225
sub eax, ecx
mov esi, dword [sym.imp.DuiLib.dll_public:_char_const____thiscall_DuiLib::CDuiString::operator_char_const__void_const]
je 0x404295
lea ecx, [ebp - 0x114]
test ebx, ebx
je 0x40426b
xor eax, eax
cmp byte [ebp - 0x114], al
je 0x404260
lea ebx, [ebx]
xor byte [ecx], al
inc eax
inc ecx
cmp eax, 5
jne 0x40425b
xor eax, eax
cmp byte [ecx], 0
jne 0x404250
push 0xffffffffffffffff
lea eax, [ebp - 0x114]
push eax
jmp 0x40426e
push 0xffffffffffffffff
push ecx
lea ecx, [ebp - 0x360]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::Assign_char_const___int_]
mov ecx, dword [ebp - 0x438]
add ecx, 0x230
call esi
push eax
lea ecx, [ebp - 0x360]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::Append_char_const__]
lea edx, [ebp - 0x430]
push edx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4043ca
push 0x103
push eax
mov byte [ebp - 0x31c], al
lea eax, [ebp - 0x31b]
push eax
call fcn.00475cb0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x31c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x3e8]
call dword [sym.imp.DuiLib.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_void_]
lea edx, [ebp - 0x31c]
push edx
lea eax, [ebp - 0x3e8]
push str.__s___mini
push eax
mov byte [ebp - 4], 4
call dword [sym.imp.DuiLib.dll_public:_int___cdecl_DuiLib::CDuiString::Format_char_const__]
push 0x103
lea ecx, [ebp - 0x217]
push 0
push ecx
mov dword [ebp - 0x434], 0x104
mov byte [ebp - 0x218], 0
call fcn.00475cb0
add esp, 0x18
lea edx, [ebp - 0x434]
push edx
lea eax, [ebp - 0x218]
push eax
push 0
push 0
lea ecx, [ebp - 0x360]
call esi
mov ecx, dword [ebp - 0x430]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x3e8]
call dword [sym.imp.DuiLib.dll_public:_int___thiscall_DuiLib::CDuiString::CompareNoCase_char_const__const]
test eax, eax
jne 0x4043b1
mov eax, dword [ebp - 0x430]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x3e8]
mov byte [ebp - 4], 3
call edi
lea ecx, [ebp - 0x3a4]
mov byte [ebp - 4], 0
call edi
lea ecx, [ebp - 0x360]
mov dword [ebp - 4], 0xffffffff
call edi
mov al, 1
jmp 0x4043e7
mov ecx, dword [ebp - 0x430]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x3e8]
mov byte [ebp - 4], 3
call edi
lea ecx, [ebp - 0x3a4]
mov byte [ebp - 4], 0
call edi
lea ecx, [ebp - 0x360]
mov dword [ebp - 4], 0xffffffff
call edi
xor al, al
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