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

Disassembly:
push 0xffffffffffffffff
push 0x4069cc
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], pe_nt_image_headers32
call fcn.00406264
xor ebx, ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0x424], ebx
call fcn.00406264
lea eax, [esp + 0x11c]
push pe_nt_image_headers32
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.004062e2
mov edx, dword [0x409ce8]
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 0x403aa8
cmp byte [esp + 0x42c], bl
jne 0x403b74
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 0x403b4c
lea eax, [esp + 0x21c]
lea ecx, [esp + 0xc]
push eax
call fcn.004062e2
mov ecx, dword [esp + 8]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x403ae7
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
mov ecx, dword [0x409d08]
push eax
push ecx
push str.uid:_s_same_version_installed:_s
push 0x409b68
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, 0x409c70
push 0x409b68
call fcn.00406010
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, 0x409cd8
mov byte [esp + 0x428], 2
call fcn.004062e8
lea ecx, [esp + 0x14]
mov byte [esp + 0x424], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x409cd8]
mov ecx, dword [esp + 0xc]
mov edx, dword [0x409d08]
push eax
push ecx
push edx
push str.uid:_s_old_app_path_found:_s_ref:__s_
push 0x409b68
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp 0x403b65
push eax
mov eax, dword [0x409d08]
push eax
push str.uid:_s_failed_to_read_reg_entry:__d_
push 0x409b68
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push 0x409b68
mov ecx, 0x409c70
call fcn.00406010
push 0x409cd8
lea ecx, [esp + 0x18]
push 0x409720
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 [0x409d08]
push edx
push eax
push str.uid:_s_new_app_path:_s
push 0x409b68
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, 0x409c70
push 0x409b68
call fcn.00406010
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 0x403ace