Function at 0x4053c0
Capabilities:
Create process on windows
Query or enumerate registry value
Set current directory
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x407c28
push eax
mov eax, dword [0x40ab30]
mov dword fs:[0], esp
sub esp, 0x2bc
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x4054a4
push 4
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x3c], eax
test eax, eax
mov dword [esp + 0x2d4], 0
je 0x405412
mov ecx, eax
call fcn.00401050
jmp 0x405414
xor eax, eax
mov dword [0x40ab30], eax
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x14c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14c]
push 0x80
or ebx, 0xffffffff
push eax
push 0
mov dword [esp + 0x2e0], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x14c]
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_2
push 0x5c
lea ecx, [esp + 0x34]
mov dword [esp + 0x2d8], 1
call sub.MFC42.DLL_CString::ReverseFind
mov edx, dword [esp + 0x30]
mov ecx, dword [edx - 8]
sub ecx, eax
push ecx
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::Delete
lea eax, [esp + 0x30]
mov ecx, 0x40ab2c
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x30]
mov dword [esp + 0x2d4], ebx
call sub.MFC42.DLL_CString::CString
jmp 0x4054a7
or ebx, 0xffffffff
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [0x40ab30]
call fcn.00402bc0
lea edx, [esp + 0x14]
push str._sys
lea eax, [esp + 0x4c]
push edx
push eax
mov dword [esp + 0x2e0], 2
call sub.MFC42.DLL_operator_1
mov esi, dword [esp + 0x2e8]
lea ecx, [esp + 0x20]
push esi
push eax
push ecx
mov byte [esp + 0x2e0], 3
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0x48]
mov byte [esp + 0x2d4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
push eax
push eax
push edx
lea eax, [esp + 0x30]
push str._s__smenu__s_fonts_
push eax
mov byte [esp + 0x2e8], 6
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
mov edi, dword [esp + 0x2e4]
mov ebp, dword [esp + 0x2e0]
lea eax, [esp + 0x1c]
mov byte [esp + 0x2d4], 7
mov ecx, dword [edi]
mov edx, dword [ebp]
push ecx
push edx
push str.SoftwareAutodeskAutoCAD_s_sProfiles
push eax
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x2ec]
lea ecx, [esp + 0x34]
push ecx
push esi
push edi
push ebp
push edx
call fcn.00405b70
add esp, 0x24
test al, al
je 0x405647
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x40]
push eax
push 0xf003f
push 0
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0x28]
mov ebp, eax
mov dword [esp + 0x44], 1
mov dword [esp + 0x38], 0xff
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x38]
xor eax, eax
mov edx, ecx
lea edi, [esp + 0x4c]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov byte [esp + 0x2d4], 8
and ecx, 3
test ebp, ebp
rep stosb byte es:[edi], al
jne 0x405600
lea eax, [esp + 0x38]
lea ecx, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push ebp
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x40]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esi]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x40a070
push eax
call edi
add esp, 8
test eax, eax
jne 0x405691
call fcn.00406960
test eax, eax
jne 0x405691
lea ecx, [esp + 0x28]
mov byte [esp + 0x2d4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2d4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x2d4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x2d4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x2d4], ebx
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x4059fc
push 0x40ab34
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_2
mov esi, dword [esi]
push 0x40a070
push esi
mov byte [esp + 0x2dc], 9
call edi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
push ecx
push str.__p_pinming__b__nologo__
jne 0x405715
lea edx, [esp + 0x18]
push edx
call sub.MFC42.DLL_operator
push str._startUp2010_
push eax
lea eax, [esp + 0x20]
mov bl, 0xa
push eax
mov byte [esp + 0x2e0], bl
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x2d8], 0xb
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x2d4], bl
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x2d4], 9
lea ecx, [esp + 0x10]
jmp 0x405766
lea edx, [esp + 0x18]
push edx
call sub.MFC42.DLL_operator
push str._startUp_
push eax
lea eax, [esp + 0x20]
mov bl, 0xc
push eax
mov byte [esp + 0x2e0], bl
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x2d8], 0xd
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x2d4], bl
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x2d4], 9
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2ec]
mov edx, dword [esp + 0x2c]
push 3
push 0
mov eax, dword [ecx]
push edx
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x2a
je 0x4057fd
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2d4], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x2d4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2d4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x2d4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x2d4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x2d4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor al, al
jmp 0x4059fc
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x18]
push eax
push 0xf003f
push 0
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405991
mov ebx, 0xff
lea ecx, [esp + 0x3c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], ebx
call sub.MFC42.DLL_CString::CString_1
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, dword [sym.imp.MSVCRT.dll__mbsicmp]
mov byte [esp + 0x2d4], 0xe
push 0x1f4
call esi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x1cc]
lea edx, [esp + 0x34]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x1cc]
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x48]
push eax
mov eax, dword [esp + 0x20]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x4c], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x1cc]
push ecx
push edx
call ebp
add esp, 8
test eax, eax
jne 0x4058b8
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 0xc8
mov dword [esp + 0x10], eax
jl 0x40584b
jmp 0x405975
mov ecx, dword [esp + 0x34]
xor eax, eax
mov edx, ecx
lea edi, [esp + 0x1cc]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], ecx
jne 0x40594f
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esp + 0x2e4]
mov ecx, dword [esp + 0x2e0]
push eax
lea edx, [esp + 0x14]
push ecx
push edx
mov byte [esp + 0x2e0], 0xf
call fcn.00405a20
add esp, 0xc
test al, al
je 0x40593e
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
mov byte [esp + 0x2d4], 0xe
call sub.MFC42.DLL_CString::CString
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x50]
push ecx
push 1
push eax
mov eax, dword [esp + 0x28]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x2d4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2d4], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x2d4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2d4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x2d4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x2d4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x2d4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, 1
mov ecx, dword [esp + 0x2cc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c8
ret