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

Disassembly:
push 0xffffffffffffffff
push 0x408f73
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_1
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x10]
mov dword [esp + 0x544], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x544], 1
call sub.MFC42.DLL_CString::CString
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.004082c4
lea edx, [esp + 0x34]
push edx
push 7
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov edi, eax
test edi, edi
jl 0x403a9f
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x38]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov edi, eax
jmp 0x403ac8
mov edx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x3c]
push edx
push eax
push str.Crt_lnk_sfl_:_s_s__X_
push 0x40cc40
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, esi
push 0x40cc40
call fcn.00405380
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
mov bl, 3
test edi, edi
mov byte [esp + 0x544], bl
jl 0x403ba1
lea edx, [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push 0x40c5f4
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.004082ac
lea ecx, [esp + 0x20]
mov byte [esp + 0x544], 7
call fcn.004082ac
mov eax, dword [esi + 0x90]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
push eax
push ebp
push ecx
push edx
mov ecx, esi
call fcn.00405f60
mov ecx, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push eax
push ecx
push str.clnk:_s_s__X_
push 0x40cc40
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, esi
push 0x40cc40
call fcn.00405380
lea ecx, [esp + 0x28]
mov byte [esp + 0x544], bl
call fcn.004082ac
jmp 0x403bca
mov edx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x3c]
push edx
push eax
push str.clnk_pfi_:_s_s__X_
push 0x40cc40
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, esi
push 0x40cc40
call fcn.00405380
lea ebp, [esi + 0x90]
lea ecx, [esp + 0x20]
push ebp
push 0x40c5bc
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.004082ac
mov edx, dword [esi + 0x8c]
lea edi, [esi + 0xd0]
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 + 0xac]
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 0x403cef
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 0x403db0
lea eax, [esp + 0x43c]
lea ecx, [esp + 0x14]
push eax
call fcn.004082c4
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x403d51
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xb0]
push eax
push ecx
push str.uid:_s_svi:_s
push 0x40cc40
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, esi
push 0x40cc40
call fcn.00405380
lea ecx, [esp + 0x1c]
mov byte [esp + 0x544], 2
call fcn.004082ac
lea ecx, [esp + 0x14]
mov byte [esp + 0x544], 1
call fcn.004082ac
lea ecx, [esp + 0x10]
mov byte [esp + 0x544], 0
call fcn.004082ac
lea ecx, [esp + 0x18]
mov dword [esp + 0x544], 0xffffffff
call fcn.004082ac
xor al, al
mov ecx, dword [esp + 0x53c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x538
ret
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.004083c0
lea ecx, [esp + 0x20]
mov byte [esp + 0x544], bl
call fcn.004082ac
mov eax, dword [ebp]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0xb0]
push eax
push ecx
push edx
push str.uid:_s_oapf:_s_ref:__s_
push 0x40cc40
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp 0x403dca
push eax
mov eax, dword [esi + 0xb0]
push eax
push str.uid:_s_frre:__d_
push 0x40cc40
call sub.MFC42.DLL_CString::Format
add esp, 0x10
push 0x40cc40
mov ecx, esi
call fcn.00405380
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0xb0]
push ecx
push edx
push str.uid:_s_nap:_s
push 0x40cc40
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov ecx, esi
push 0x40cc40
call fcn.00405380
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.004082ac
lea ecx, [esp + 0x14]
mov byte [esp + 0x544], 1
call fcn.004082ac
lea ecx, [esp + 0x10]
mov byte [esp + 0x544], 0
call fcn.004082ac
lea ecx, [esp + 0x18]
mov dword [esp + 0x544], 0xffffffff
call fcn.004082ac
mov al, 1
jmp 0x403d38