Function at 0x406a50
Capabilities:
Create process on windows
Delete directory
Delete file
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40bb3a
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
jne 0x406a8a
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push 0x20
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x2c], 0
je 0x406aaf
mov ecx, eax
call fcn.00404a90
mov ebp, eax
jmp 0x406ab1
xor ebp, ebp
push str.tempFile
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
add eax, 0x1b0
mov dword [esp + 0x2c], 1
push eax
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x14]
push 1
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 2
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push 0x410058
push eax
mov byte [esp + 0x34], 3
call edi
add esp, 8
test eax, eax
je 0x406b45
lea edx, [esp + 0x1c]
push 0
push edx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0x410058
push eax
call edi
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x406b45
mov bl, 1
jmp 0x406b47
xor bl, bl
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x406b67
push 0x410058
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x406be5
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
call fcn.004055e0
mov eax, dword [esp + 0x10]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test ebp, ebp
je 0x406bb1
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx + 4]
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov eax, dword [esi + 4]
push ecx
add eax, 0x1b0
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call sub.MFC42.DLL_CString::CString_1
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x38], 4
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
mov byte [esp + 0x34], 2
call fcn.004053b0
mov ecx, dword [esi + 4]
push 0
mov ebx, eax
call fcn.00409ab0
test ebx, ebx
jne 0x406d57
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, ebp
call fcn.004055e0
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x14]
add edx, 0x1b0
push edx
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x20]
push 1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 5
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x410058
push eax
call edi
add esp, 8
lea ecx, [esp + 0x20]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x406ca8
push 0x410058
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_1
push str.tempFile
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 6
call sub.MFC42.DLL_CString::operator_1
lea edx, [esp + 0x20]
push 1
push edx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x410058
push eax
call edi
add esp, 8
lea ecx, [esp + 0x20]
test eax, eax
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x406d06
push 0x410058
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 5
push eax
push 0
push str.newProductInfo.txt
push 0
push 0
call esi
cmp eax, 2
jne 0x406d39
mov ecx, dword [esp + 0x1c]
push 5
push ecx
push 0
push str.newProductInfo.txt
push 0
push 0
call esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 2
call sub.MFC42.DLL_CString::CString
jmp 0x406d7c
cmp ebx, 1
jne 0x406d7c
mov ecx, dword [esi + 8]
lea edx, [esp + 0x10]
add ecx, 0x84
push edx
mov eax, dword [ecx + 8]
push eax
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov eax, dword [esi + 4]
mov dword [eax + 0x204], ebx
test ebp, ebp
je 0x406d8a
mov edx, dword [ebp]
push 1
mov ecx, ebp
call dword [edx + 4]
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret