Function at 0x402e30
Capabilities:
Create process on windows
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x40406f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x184
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x1a4]
mov eax, dword [edi + 0x78]
mov edx, dword [edi + 0x74]
lea ebp, [edi + 0x74]
mov ecx, dword [esi + 0x10]
push eax
push ecx
push edx
lea eax, [esp + 0x24]
push str._s_sys_d_s
push eax
mov dword [esp + 0x1b0], 0
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x2c]
add esp, 0x14
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, edi
call fcn.00402450
mov eax, dword [esp + 0x10]
mov byte [esp + 0x19c], 1
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x40303b
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
push ecx
push eax
mov ecx, edi
mov byte [esp + 0x1a4], 2
call fcn.00402380
test eax, eax
je 0x402f15
mov edx, dword [edi + 0x1a4]
push 0
push 0
push pe_nt_image_headers32
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x402f15
push 0x407258
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::operator
jmp 0x403192
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp]
push ecx
push edx
lea eax, [esp + 0x2c]
push str._s_s.arg
push eax
mov byte [esp + 0x1ac], 3
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp]
push ecx
push edx
lea eax, [esp + 0x24]
push str._s_s.reg
push eax
mov byte [esp + 0x1ac], 4
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esi + 0xc]
push ecx
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_1
mov bl, 5
push 0x40723c
push 0x407238
lea ecx, [esp + 0x38]
mov byte [esp + 0x1a4], bl
call sub.MFC42.DLL_CString::Replace_1
push ebp
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_1
push 0x40723c
push 0x407238
lea ecx, [esp + 0x34]
mov byte [esp + 0x1a4], 6
call sub.MFC42.DLL_CString::Replace_1
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
push eax
mov ecx, edi
call fcn.00402640
test eax, eax
jne 0x403067
lea ecx, [esp + 0x2c]
mov byte [esp + 0x19c], bl
call fcn.00403646
lea ecx, [esp + 0x30]
mov byte [esp + 0x19c], 4
call fcn.00403646
lea ecx, [esp + 0x1c]
mov byte [esp + 0x19c], 3
call fcn.00403646
lea ecx, [esp + 0x24]
mov byte [esp + 0x19c], 2
call fcn.00403646
lea ecx, [esp + 0x14]
mov byte [esp + 0x19c], 1
call fcn.00403646
lea ecx, [esp + 0x10]
mov byte [esp + 0x19c], 0
call fcn.00403646
lea ecx, [esp + 0x18]
mov dword [esp + 0x19c], 0xffffffff
call fcn.00403646
xor eax, eax
jmp 0x403306
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 4]
push ecx
push edx
push str.software_autodesk_autocad
lea eax, [esp + 0x44]
push str._s_sProfiles_s
push eax
mov byte [esp + 0x1b0], 7
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x4c]
add esp, 0x14
push ecx
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x28]
push edx
push 0x407234
push eax
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push 0
push 0
push eax
push str.regedit.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x28]
call fcn.00403646
lea ecx, [esp + 0x24]
lea edx, [esp + 0x34]
push ecx
push str._p__
push edx
call sub.MFC42.DLL_operator_2
push 0x407214
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x1a4], 8
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a0], 9
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x28]
mov byte [esp + 0x19c], 8
call fcn.00403646
lea ecx, [esp + 0x34]
mov byte [esp + 0x19c], 7
call fcn.00403646
lea ecx, [esp + 0x38]
mov byte [esp + 0x19c], 6
call fcn.00403646
lea ecx, [esp + 0x2c]
mov byte [esp + 0x19c], bl
call fcn.00403646
lea ecx, [esp + 0x30]
mov byte [esp + 0x19c], 4
call fcn.00403646
lea ecx, [esp + 0x1c]
mov byte [esp + 0x19c], 3
call fcn.00403646
lea ecx, [esp + 0x24]
mov byte [esp + 0x19c], 2
call fcn.00403646
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp]
push str.acad.dwt
push ecx
push edx
lea eax, [esp + 0x2c]
push str._s_sys_d_s
push eax
mov byte [esp + 0x1b0], 0xa
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x34]
add esp, 0x14
lea ecx, [esp + 0x7c]
push ecx
push edx
call sub.MFC42.DLL_CFile::GetStatus
test eax, eax
jne 0x4031f0
mov eax, dword [ebp]
push str.acad.dwt
push eax
lea ecx, [esp + 0x28]
push str._s_sys_s
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea edx, [esp + 0x20]
lea eax, [esp + 0x28]
push edx
push str.__t__
push eax
call sub.MFC42.DLL_operator_2
push 0x407214
lea ecx, [esp + 0x38]
mov bl, 0xb
push eax
push ecx
mov byte [esp + 0x1a8], bl
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a0], 0xc
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x34]
mov byte [esp + 0x19c], bl
call fcn.00403646
lea ecx, [esp + 0x28]
mov byte [esp + 0x19c], 0xa
call fcn.00403646
add esi, 0xc
push str._acad.exe
lea edx, [esp + 0x40]
push esi
push edx
call sub.MFC42.DLL_operator_1
mov ebp, dword [ebp]
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x48]
mov dword [esp + 0x40], 0x3c
mov dword [esp + 0x44], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x40]
mov dword [esp + 0x4c], str.open
push edx
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
lea ecx, [esp + 0x3c]
mov esi, eax
call fcn.00403646
lea ecx, [esp + 0x20]
mov byte [esp + 0x19c], 2
call fcn.00403646
lea ecx, [esp + 0x14]
mov byte [esp + 0x19c], 1
call fcn.00403646
lea ecx, [esp + 0x10]
mov byte [esp + 0x19c], 0
call fcn.00403646
lea ecx, [esp + 0x18]
mov dword [esp + 0x19c], 0xffffffff
call fcn.00403646
mov eax, esi
mov ecx, dword [esp + 0x194]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x190
ret 4