Function at 0x403ea0
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x40710c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
push ebx
push esi
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0x100
call fcn.00406994
xor ebx, ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x424], ebx
call fcn.00406994
lea eax, [esp + 0x11c]
push 0x100
push eax
push ebx
mov byte [esp + 0x430], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x11c]
push ecx
lea ecx, [esp + 0xc]
call fcn.00406a12
mov edx, dword [0x40ace8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esp + 0x1c]
push edx
push eax
call esi
lea ecx, [esp + 0x10]
push ebx
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403fd8
cmp byte [esp + 0x42c], bl
jne 0x4040a4
lea edx, [esp + 0x18]
lea eax, [esp + 0x21c]
push edx
mov edx, dword [esp + 0x14]
push eax
push ebx
lea ecx, [esp + 0x28]
push ebx
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40407c
lea eax, [esp + 0x21c]
lea ecx, [esp + 0xc]
push eax
call fcn.00406a12
mov ecx, dword [esp + 8]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x404017
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
mov ecx, dword [0x40ad08]
push eax
push ecx
push str.uid:_s_same_version_installed:_s
push 0x40ab68
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, 0x40ac70
push 0x40ab68
call fcn.00406740
lea ecx, [esp + 0xc]
mov byte [esp + 0x424], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x424], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x41c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x420
ret 4
push 0x20
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea edx, [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Mid
push eax
mov ecx, 0x40acd8
mov byte [esp + 0x428], 2
call fcn.00406a18
lea ecx, [esp + 0x14]
mov byte [esp + 0x424], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x40acd8]
mov ecx, dword [esp + 0xc]
mov edx, dword [0x40ad08]
push eax
push ecx
push edx
push str.uid:_s_old_app_path_found:_s_ref:__s_
push 0x40ab68
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp 0x404095
push eax
mov eax, dword [0x40ad08]
push eax
push str.uid:_s_failed_to_read_reg_entry:__d_
push 0x40ab68
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push 0x40ab68
mov ecx, 0x40ac70
call fcn.00406740
push 0x40acd8
lea ecx, [esp + 0x18]
push 0x40a730
push ecx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x428], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x14]
mov byte [esp + 0x424], 1
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 8]
mov eax, dword [0x40ad08]
push edx
push eax
push str.uid:_s_new_app_path:_s
push 0x40ab68
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, 0x40ac70
push 0x40ab68
call fcn.00406740
mov ecx, dword [esp + 8]
lea edx, [esp + 0x31c]
push ecx
push edx
call esi
mov eax, dword [esp + 8]
lea ecx, [esp + 0x31c]
lea edx, [esp + 0x1c]
mov eax, dword [eax - 8]
push eax
mov eax, dword [esp + 0x14]
push ecx
push 1
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov byte [esp + 0x424], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x424], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
jmp 0x403ffe