Function at 0x403480
Capabilities:
Get common file path
Get startup folder
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x406693
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x52c
push ebx
push ebp
push esi
mov esi, ecx
push edi
push str.TA_Start
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x10]
mov dword [esp + 0x544], 0
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x544], 1
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x23c]
push 0x100
push eax
push 0
mov byte [esp + 0x550], 2
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x23c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00405b02
lea edx, [esp + 0x34]
push edx
push 7
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edi, eax
test edi, edi
jl 0x40352f
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edi, eax
jmp 0x403558
mov edx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x3c]
push edx
push eax
push str.Crt_lnk_sfl_:_s_s__X_
push 0x409a00
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, esi
push 0x409a00
call fcn.00404c60
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
mov bl, 3
test edi, edi
mov byte [esp + 0x544], bl
jl 0x403631
lea edx, [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push 0x4095b0
push eax
call sub.MFC42.DLL_operator
push str..lnk
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x550], 4
call sub.MFC42.DLL_operator_1
push eax
lea edx, [esp + 0x20]
lea eax, [esp + 0x2c]
push edx
push eax
mov byte [esp + 0x550], 5
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x544], 8
call fcn.00405af6
lea ecx, [esp + 0x20]
mov byte [esp + 0x544], 7
call fcn.00405af6
mov eax, dword [esi + 0x8c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
push eax
push ebp
push ecx
push edx
mov ecx, esi
call fcn.00405840
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push eax
push ecx
push str.clnk:_s_s__X_
push 0x409a00
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, esi
push 0x409a00
call fcn.00404c60
lea ecx, [esp + 0x28]
mov byte [esp + 0x544], bl
call fcn.00405af6
jmp 0x40365a
mov edx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x3c]
push edx
push eax
push str.clnk_pfi_:_s_s__X_
push 0x409a00
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, esi
push 0x409a00
call fcn.00404c60
lea ebp, [esi + 0x8c]
lea ecx, [esp + 0x20]
push ebp
push 0x409578
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x548], 9
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x544], bl
call fcn.00405af6
mov edx, dword [esi + 0x88]
lea edi, [esi + 0xcc]
push edx
push str._sZN
push edi
mov dword [esp + 0x3c], 0x100
call sub.MFC42.DLL_CString::Format
mov edi, dword [edi]
add esp, 0xc
lea eax, [esp + 0x13c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
call edi
mov eax, dword [esi + 0xa8]
lea ecx, [esp + 0x24]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403908
lea edx, [esp + 0x30]
lea eax, [esp + 0x43c]
push edx
mov edx, dword [esp + 0x28]
push eax
push 0
lea ecx, [esp + 0x148]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40382c
lea eax, [esp + 0x43c]
lea ecx, [esp + 0x14]
push eax
call fcn.00405b02
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x4037cd
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xac]
push eax
push ecx
push str.uid:_s_svi:_s
push 0x409a00
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, esi
push 0x409a00
call fcn.00404c60
lea ecx, [esp + 0x1c]
mov byte [esp + 0x544], 2
call fcn.00405af6
lea ecx, [esp + 0x14]
mov byte [esp + 0x544], 1
call fcn.00405af6
lea ecx, [esp + 0x10]
mov byte [esp + 0x544], 0
call fcn.00405af6
lea ecx, [esp + 0x18]
mov dword [esp + 0x544], 0xffffffff
call fcn.00405af6
xor al, al
jmp 0x40394f
push 0x20
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea edx, [esp + 0x20]
push eax
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Mid
push eax
mov ecx, ebp
mov byte [esp + 0x548], 0xa
call fcn.00405bc2
lea ecx, [esp + 0x20]
mov byte [esp + 0x544], bl
call fcn.00405af6
mov eax, dword [ebp]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0xac]
push eax
push ecx
push edx
push str.uid:_s_oapf:_s_ref:__s_
push 0x409a00
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp 0x403846
push eax
mov eax, dword [esi + 0xac]
push eax
push str.uid:_s_frre:__d_
push 0x409a00
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push 0x409a00
mov ecx, esi
call fcn.00404c60
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0xac]
push ecx
push edx
push str.uid:_s_nap:_s
push 0x409a00
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, esi
push 0x409a00
call fcn.00404c60
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x33c]
push eax
push ecx
call edi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x13c]
mov eax, dword [edx - 8]
mov edx, dword [esp + 0x24]
push eax
lea eax, [esp + 0x340]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x544], 2
call fcn.00405af6
lea ecx, [esp + 0x14]
mov byte [esp + 0x544], 1
call fcn.00405af6
lea ecx, [esp + 0x10]
mov byte [esp + 0x544], 0
call fcn.00405af6
lea ecx, [esp + 0x18]
mov dword [esp + 0x544], 0xffffffff
call fcn.00405af6
mov al, 1
jmp 0x40394f
lea ecx, [esp + 0x1c]
mov byte [esp + 0x544], 2
call fcn.00405af6
lea ecx, [esp + 0x14]
mov byte [esp + 0x544], 1
call fcn.00405af6
lea ecx, [esp + 0x10]
mov byte [esp + 0x544], 0
call fcn.00405af6
lea ecx, [esp + 0x18]
mov dword [esp + 0x544], 0xffffffff
call fcn.00405af6
mov ecx, dword [esp + 0x53c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x538
ret