Function at 0x401710
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4aff06
push eax
mov eax, 0x1018
mov dword fs:[0], esp
call fcn.00421f40
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea eax, [esp + 0x28]
mov dword [esp + 0x1030], 3
push eax
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x28]
push str.adcon_
lea esi, [edi + 0x40]
push ecx
push 0x50e180
push esi
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0x10
push 0
push eax
call ebp
lea edx, [esp + 0x1044]
push 0x50e17c
lea eax, [esp + 0x18]
push edx
push eax
call sub.MFC42.DLL_operator_2
push eax
mov ecx, esi
mov byte [esp + 0x1034], 4
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x1030], 3
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi]
push 0
push eax
call ebp
lea ecx, [esp + 0x18]
xor ebx, ebx
call sub.MFC42.DLL_CFile::CFile_1
lea ecx, [esp + 0x14]
push 0x50e164
push ecx
mov byte [esp + 0x1038], 5
call fcn.0042f2c0
add esp, 8
push eax
lea edx, [esp + 0x14]
push esi
push edx
mov byte [esp + 0x103c], 6
call sub.MFC42.DLL_operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x1030], 8
call sub.MFC42.DLL_CString::CString
push ebx
lea ecx, [esp + 0x1044]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ebx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ebx
lea ecx, [esp + 0x1048]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call fcn.0042ef30
add esp, 0xc
test eax, eax
jne 0x401839
or ebx, 0xffffffff
jmp 0x4018b2
mov eax, dword [esp + 0x10]
push 0
push 0
push eax
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x401856
mov ebx, 0xfffffffe
jmp 0x4018b2
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFile::GetLength
mov esi, eax
inc esi
push esi
call sub.MFC42.DLL_operatornew
add esp, 4
mov ebp, eax
lea ecx, [esp + 0x18]
push esi
push ebp
mov byte [ebp], 0
call sub.MFC42.DLL_CFile::Read
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CFile::Close
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x52e920
push ebp
lea ecx, [edi + 0x44]
call fcn.0042de00
test eax, eax
jne 0x4018a5
or ebx, 0xffffffff
test ebp, ebp
je 0x4018b2
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
mov al, byte [0x52e3e0]
test al, 1
jne 0x4018f7
mov dl, al
mov ecx, 0x52e3d0
or dl, 1
mov byte [0x52e3e0], dl
call sub.MFC42.DLL_CString::CString_4
mov ecx, 0x52e3d4
mov byte [esp + 0x1030], 9
call sub.MFC42.DLL_CString::CString_4
push 0x4019d0
mov byte [esp + 0x1034], 8
call fcn.00421f2c
add esp, 4
lea edx, [esp + 0x1038]
xor esi, esi
push edx
mov ecx, 0x52e3d0
mov dword [0x52e3dc], esi
mov dword [0x52e3d8], esi
call sub.MFC42.DLL_CString::operator_3
lea eax, [esp + 0x103c]
mov ecx, 0x52e3d4
push eax
call sub.MFC42.DLL_CString::operator_3
push esi
push esi
push esi
push esi
push 0x52e3d0
push 0x4015f0
call sub.MFC42.DLL_AfxBeginThread
lea ecx, [esp + 0x10]
mov byte [esp + 0x1030], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x1030], 3
call sub.MFC42.DLL_CFile::CFile
lea ecx, [esp + 0x1038]
mov byte [esp + 0x1030], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x103c]
mov byte [esp + 0x1030], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1040]
mov byte [esp + 0x1030], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1044]
mov dword [esp + 0x1030], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1028]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1024
ret 0x10