Function at 0x4041f0
Capabilities:
Delete file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4089fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push ebp
mov ebp, ecx
push esi
push 0x40cac0
lea ecx, [esp + 0x18]
call fcn.004077dc
push 0x40cac0
lea ecx, [esp + 0x10]
mov dword [esp + 0xa8], 0
call fcn.004077dc
push 0x40c674
lea ecx, [esp + 0x24]
mov byte [esp + 0xa8], 1
call fcn.004077dc
push 0x40cac0
lea ecx, [esp + 0x20]
mov byte [esp + 0xa8], 2
call fcn.004077dc
push 0x40cac0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa8], 3
call fcn.004077dc
push 0x40cac0
lea ecx, [esp + 0x30]
mov byte [esp + 0xa8], 4
call fcn.004077dc
push 0x40cac0
lea ecx, [esp + 0x38]
mov byte [esp + 0xa8], 5
call fcn.004077dc
push 0x40cac0
lea ecx, [esp + 0x60]
mov byte [esp + 0xa8], 6
call fcn.004077dc
push 0x40cac0
lea ecx, [esp + 0x58]
mov byte [esp + 0xa8], 7
call fcn.004077dc
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa4], 8
call sub.MFC42.DLL_CStringArray::CStringArray
lea ecx, [esp + 0x7c]
mov byte [esp + 0xa4], 9
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x60]
mov byte [esp + 0xa4], 0xa
call sub.MFC42.DLL_CException::CException
lea ecx, [esp + 0x70]
mov byte [esp + 0xa4], 0xb
call sub.MFC42.DLL_CString::CString_2
or esi, 0xffffffff
push 0
lea ecx, [esp + 0x74]
mov byte [esp + 0xa8], 0xc
mov dword [esp + 0x64], 0x409acc
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], esi
call fcn.0040782a
lea eax, [esp + 0x14]
mov bl, 0xd
push str.SOFTWAREAutodeskAutoCADR15.0
push eax
mov byte [esp + 0xac], bl
call sub.MFC42.DLL_CString::Format
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.CurVer
call fcn.004077dc
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov byte [esp + 0xb4], 0xe
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0xb0], bl
call fcn.00402aa0
add esp, 0xc
test eax, eax
jne 0x4043f3
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.CurVer
call fcn.004077dc
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov byte [esp + 0xb4], 0xf
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0xb0], bl
call fcn.00402d20
add esp, 0xc
test eax, eax
jne 0x4043f3
mov dword [esp + 0x60], 0x409acc
mov byte [esp + 0xa4], 0x10
jmp 0x4049f7
push 0x40cac0
lea ecx, [esp + 0x10]
call fcn.0040782a
lea eax, [esp + 0x34]
push eax
call fcn.004022b0
add esp, 4
lea ecx, [esp + 0x34]
lea edx, [esp + 0x24]
push str.acad.rx
push ecx
push edx
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0xa8], 0x11
call fcn.0040787e
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x60]
push eax
push 0
push ecx
lea ecx, [esp + 0x88]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x4044ab
lea ecx, [esp + 0x7c]
call sub.MFC42.DLL_CFile::GetLength
push eax
lea ecx, [esp + 0x80]
call sub.MFC42.DLL_CFile::GetLength
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::GetBuffer
push eax
lea ecx, [esp + 0x84]
call sub.MFC42.DLL_CFile::Read
push esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x7c]
call sub.MFC42.DLL_CFile::Close
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
push 0
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CStringArray::SetSize
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
push str.SoftwareAutodeskAutoCADR15.0_sProfiles
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x3c]
lea eax, [esp + 0x14]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
call sub.MFC42.DLL_CString::CString_3
mov ecx, ebp
call fcn.00406990
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x4045b9
lea ecx, [esp + 0xc]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x40cac0
call fcn.004077dc
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
mov byte [esp + 0xb4], 0x12
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0xb0], bl
call fcn.00402d20
add esp, 0xc
test eax, eax
jne 0x404547
push 0x40c674
lea ecx, [esp + 0x24]
call fcn.0040782a
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x20]
push eax
push ecx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CStringArray::SetAtGrow_1
mov edx, dword [esp + 0x44]
push 0x40c674
push edx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov eax, dword [esp + 0x44]
push str.__Unnamed_Profile__
push eax
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov ecx, dword [esp + 0x44]
push str.__AutoCAD_2000
push ecx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov edx, dword [esp + 0x44]
push str.__AutoCAD_2000_
push edx
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov eax, dword [esp + 0x44]
push str.__HCAD_V4__
push eax
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CStringArray::SetAtGrow
mov eax, dword [esp + 0x44]
mov dword [esp + 0x24], 0
test eax, eax
jle 0x4049e7
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x90]
push ecx
push edx
lea ecx, [esp + 0x44]
call fcn.00402260
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xa8], 0x13
call fcn.0040787e
lea ecx, [esp + 0x90]
mov byte [esp + 0xa4], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x1c]
push str.SoftwareAutodeskAutoCADR15.0_sProfiles_sGeneral
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x58], esp
push str.ACAD
call fcn.004077dc
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
mov byte [esp + 0xb4], 0x14
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0xb0], bl
call fcn.00402d20
add esp, 0xc
test eax, eax
je 0x4049cf
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push str.ObjectARXSupportPath
call fcn.004077dc
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
mov byte [esp + 0xb4], 0x15
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0xb0], bl
call fcn.00402d20
add esp, 0xc
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x40473c
lea ecx, [esp + 0x74]
push 1
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x40c58c
push eax
call esi
add esp, 8
lea ecx, [esp + 0x74]
test eax, eax
setne byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x40473c
lea edx, [esp + 0xc]
push 0x40c58c
lea eax, [esp + 0x9c]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0xa8], 0x16
call fcn.0040787e
lea ecx, [esp + 0x98]
mov byte [esp + 0xa4], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp + 0x78]
lea edx, [esp + 0x18]
push ecx
push str._sSupport2002Arx_
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x4047a1
lea ecx, [esp + 0x18]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x98]
push edx
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0xa8], 0x17
call fcn.0040787e
lea ecx, [esp + 0x94]
mov byte [esp + 0xa4], bl
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x3c], esp
push edx
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0xac], 0x18
mov ecx, esp
mov dword [esp + 0x58], esp
push str.ObjectARXSupportPath
call fcn.004077dc
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x64], esp
push eax
mov byte [esp + 0xb4], 0x19
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0xb0], bl
call fcn.00402e50
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x60], esp
push str.ACAD
call fcn.004077dc
push ecx
lea edx, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
mov byte [esp + 0xb4], 0x1a
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0xb0], bl
call fcn.00402d20
add esp, 0xc
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x4048bf
lea ecx, [esp + 0x8c]
push 1
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x40c58c
push eax
call esi
add esp, 8
lea ecx, [esp + 0x8c]
test eax, eax
setne byte [esp + 0x13]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x4048bf
lea edx, [esp + 0xc]
push 0x40c58c
lea eax, [esp + 0x7c]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0xa8], 0x1b
call fcn.0040787e
lea ecx, [esp + 0x78]
mov byte [esp + 0xa4], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp + 0x78]
lea edx, [esp + 0x18]
push ecx
push str._sSupport2002Arx_
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x40491e
lea ecx, [esp + 0x18]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0xa8], 0x1c
call fcn.0040787e
lea ecx, [esp + 0x30]
mov byte [esp + 0xa4], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp + 0x78]
lea edx, [esp + 0x18]
push ecx
push 0x40c56c
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x24]
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x40497d
lea ecx, [esp + 0x18]
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0xa8], 0x1d
call fcn.0040787e
lea ecx, [esp + 0x28]
mov byte [esp + 0xa4], bl
call sub.MFC42.DLL_CString::CString
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x5c], esp
push edx
call sub.MFC42.DLL_CString::CString_3
push ecx
mov byte [esp + 0xac], 0x1e
mov ecx, esp
mov dword [esp + 0x40], esp
push str.ACAD
call fcn.004077dc
push ecx
lea eax, [esp + 0x20]
mov ecx, esp
mov dword [esp + 0x5c], esp
push eax
mov byte [esp + 0xb4], 0x1f
call sub.MFC42.DLL_CString::CString_3
mov byte [esp + 0xb0], bl
call fcn.00402e50
add esp, 0xc
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x4045d3
or esi, 0xffffffff
mov dword [esp + 0x60], 0x409acc
mov byte [esp + 0xa4], 0x20
lea ecx, [esp + 0x70]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x7c]
mov dword [esp + 0x60], 0x4096b4
mov byte [esp + 0xa4], 9
call fcn.00407968
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa4], 8
call fcn.004078ae
lea ecx, [esp + 0x54]
mov byte [esp + 0xa4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x5c]
mov byte [esp + 0xa4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0xa4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0xa4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0xa4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0xa4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0xa4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0xa4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0xa4], esi
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x9c]
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x9c
ret