Function at 0x449870
Capabilities:
Create directory
Delete file
Get common file path
Move file
Resolve function by parsing pe exports
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x503c02
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x208
push ebx
push ebp
mov dword [esp + 0x34], ecx
push esi
push edi
lea ecx, [esp + 0x80]
call fcn.00473270
test eax, eax
je 0x449ae6
mov edi, dword [esp + 0x228]
lea ecx, [esp + 0x14]
mov eax, dword [edi + 0x6c]
mov ebp, dword [edi + 0x68]
push eax
mov dword [esp + 0x88], ebp
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esp + 0x14]
xor ebx, ebx
push ebx
push ecx
mov ecx, 0x54b258
mov dword [esp + 0x228], ebx
call fcn.004ab900
mov esi, eax
cmp esi, ebx
jne 0x449a15
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x34]
push edx
push str.Load_DICOM_file_error__filename:_s
push eax
mov byte [esp + 0x22c], 1
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x40]
add esp, 0xc
push ecx
mov ecx, 0x54b128
call fcn.004965f0
cmp ebp, 0xbe99d
jne 0x449a04
push str.Error_
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x18]
push ebx
push edx
mov byte [esp + 0x228], 2
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [edi + 0x6c]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::CString_1
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x224], 3
call sub.MFC42.DLL_CString::ReverseFind
test eax, eax
jl 0x4499af
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x224], 4
call fcn.004c830a
lea ecx, [esp + 0x3c]
mov byte [esp + 0x220], 3
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x10]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [edi + 0x6c]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 0x6c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x220], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x220], 1
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x220], 0
lea ecx, [esp + 0x34]
jmp 0x449bfd
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x30]
mov byte [esp + 0x220], 5
push ecx
push esi
push 0x155
push 0x501
call fcn.004d6ba0
add esp, 0x10
test eax, eax
jne 0x449a4c
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
jmp 0x449ac1
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov edi, 0x515c40
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
push ebx
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov byte [esp + 0x22c], 6
call fcn.004496f0
test eax, eax
jne 0x449aee
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x20]
mov byte [esp + 0x220], 7
cmp eax, ebx
je 0x449ab9
mov ecx, dword [esp + 0x24]
push ecx
push eax
call sub.MFC42.DLL_DestructElements
mov edx, dword [esp + 0x20]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x1c], 0x514bb8
lea ecx, [esp + 0x30]
mov byte [esp + 0x220], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x220], 0xffffffff
call sub.MFC42.DLL_CString::CString
or eax, 0xffffffff
jmp 0x44a1df
lea ecx, [esp + 0x50]
call fcn.004c84b4
mov eax, dword [esp + 0x14]
push ebx
push 0x8000
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x22c], 8
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x449b45
lea ecx, [esp + 0x50]
mov byte [esp + 0x220], 6
call sub.MFC42.DLL_CFile::CFile
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x20]
mov byte [esp + 0x220], 9
cmp eax, ebx
je 0x449be9
jmp 0x449bd1
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CFile::GetLength
mov esi, eax
mov eax, dword [sym.imp.MSVCP60.dll_struct_std::nothrow_t_const_std::nothrow]
push eax
push esi
mov dword [esp + 0x68], esi
call fcn.004f6320
mov ebp, eax
add esp, 8
cmp ebp, ebx
mov dword [esp + 0x38], ebp
jne 0x449b94
lea ecx, [esp + 0x50]
mov byte [esp + 0x220], 6
call sub.MFC42.DLL_CFile::CFile
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x20]
mov byte [esp + 0x220], 0xa
cmp eax, ebx
je 0x449be9
jmp 0x449bd1
push esi
push ebp
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CFile::Read
cmp eax, esi
je 0x449c1d
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x50]
mov byte [esp + 0x220], 6
call sub.MFC42.DLL_CFile::CFile
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x20]
mov byte [esp + 0x220], 0xb
cmp eax, ebx
je 0x449be9
mov ecx, dword [esp + 0x24]
push ecx
push eax
call sub.MFC42.DLL_DestructElements
mov edx, dword [esp + 0x20]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x1c], 0x514bb8
mov byte [esp + 0x220], 0
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x220], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x44a1df
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CFile::Close
mov eax, dword [esp + 0x24]
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x68], ebx
mov ecx, 3
je 0x44a0e9
jmp 0x449c51
mov ebp, dword [esp + 0x38]
mov ecx, dword [esp + 0x64]
xor ebx, ebx
cmp ecx, ebx
je 0x44a0dc
dec ecx
mov dword [esp + 0x6c], 0x515c40
mov dword [esp + 0x64], ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], ebx
test eax, eax
mov byte [esp + 0x220], 0xc
jle 0x44a04e
mov eax, dword [esp + 0x20]
push 0
push 0x8000
lea ecx, [esp + 0x58]
mov eax, dword [eax + ebx*4]
push eax
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x44a03d
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CFile::GetLength
mov esi, dword [esp + 0x60]
mov ebp, eax
lea ecx, [esi + ebp]
test ecx, ecx
jbe 0x449ce4
test edi, edi
je 0x449cc9
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov edx, dword [sym.imp.MSVCP60.dll_struct_std::nothrow_t_const_std::nothrow]
lea eax, [esi + ebp + 0x108]
push edx
push eax
call fcn.004f6320
add esp, 8
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x10]
test edi, edi
je 0x44a04e
mov ecx, esi
mov esi, dword [esp + 0x38]
mov edx, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x64]
lea ecx, [esp + 0x54]
lea eax, [esi + edi]
push eax
call sub.MFC42.DLL_CFile::Read
add ebp, esi
xor ecx, ecx
add ebp, edi
mov dword [ebp], ecx
mov dword [ebp + 4], ecx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CFile::Close
lea edx, [esp + 0x114]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x449d67
lea eax, [esp + 0x114]
lea ecx, [esp + 0x114]
push eax
push 0
push 0x541384
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x449dd5
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x54af84]
lea edx, [esp + 0x34]
mov ecx, eax
inc eax
push ecx
push str.C:LD_ld
push edx
mov byte [esp + 0x22c], 0xd
mov dword [0x54af84], eax
call sub.MFC42.DLL_CString::Format
mov edi, dword [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x114]
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0x220], 0xc
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 + 0x34]
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x84]
xor ecx, ecx
cmp edi, 0xbe99d
lea edx, [esp + 0x114]
sete cl
push ecx
push edx
push esi
lea ecx, [esp + 0x8c]
call fcn.00473280
test eax, eax
jne 0x449ea7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x68]
inc eax
mov dword [esp + 0x68], eax
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
lea ecx, [esp + 0x20]
call fcn.0043cab0
push ecx
mov ecx, esp
mov dword [esp + 0x8c], esp
push eax
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x70]
call fcn.00415d90
mov eax, dword [0x54b1fc]
test eax, eax
je 0x44a03d
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x4c]
mov byte [esp + 0x220], 0xe
mov edx, dword [ecx + ebx*4]
push edx
push str.GrabViewer___s_DcmLib::DCMCreateFile002___failed
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x58]
add esp, 0xc
push ecx
mov ecx, 0x54b128
call fcn.004965f0
lea ecx, [esp + 0x4c]
mov byte [esp + 0x220], 0xc
call sub.MFC42.DLL_CString::CString
jmp 0x44a03d
mov eax, dword [0x54b1fc]
test eax, eax
je 0x449f02
cmp dword [esp + 0x64], 2
je 0x449f02
lea ecx, [esp + 0x40]
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x40]
mov byte [esp + 0x220], 0xf
mov eax, dword [edx + ebx*4]
push eax
push str.GrabViewer___s_Retry...
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x4c]
add esp, 0xc
mov ecx, 0x54b128
push edx
call fcn.004965f0
lea ecx, [esp + 0x40]
mov byte [esp + 0x220], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x8c]
call fcn.00455ef0
mov eax, dword [esp + 0x228]
lea ecx, [esp + 0x8c]
push eax
mov byte [esp + 0x224], 0x10
call fcn.00456530
lea ecx, [esp + 0x114]
mov dword [esp + 0xf4], 0xbe99d
push ecx
lea ecx, [esp + 0x90]
call fcn.004561d0
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x8c]
push edx
call fcn.00449490
test eax, eax
jne 0x449fc2
mov eax, dword [0x54b1fc]
test eax, eax
je 0x449fb2
lea ecx, [esp + 0x44]
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x114]
lea ecx, [esp + 0x44]
push eax
push str.GrabViewer___s_SaveOneFile____failed
push ecx
mov byte [esp + 0x22c], 0x11
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x50]
add esp, 0xc
mov ecx, 0x54b128
push edx
call fcn.004965f0
lea ecx, [esp + 0x44]
mov byte [esp + 0x220], 0x10
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x44a029
cmp edi, 0xbe99d
jne 0x449fda
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + ebx*4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x44a025
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x48]
lea eax, [edx + ebx*4]
push eax
call sub.MFC42.DLL_CString::CString_2
push 0x5439ec
lea ecx, [esp + 0x4c]
mov byte [esp + 0x224], 0x12
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x48]
push edx
mov eax, dword [ecx + ebx*4]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [esp + 0x48]
mov byte [esp + 0x220], 0x10
call sub.MFC42.DLL_CString::CString
inc dword [esp + 0x18]
lea ecx, [esp + 0x8c]
mov byte [esp + 0x220], 0xc
call fcn.00455f80
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jl 0x449c86
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x24]
call fcn.00416000
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x74]
mov esi, eax
add eax, ecx
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x24]
call fcn.00416000
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x70]
push edx
lea edx, [ecx + esi*4]
push eax
push edx
call sub.MFC42.DLL_CopyElements
mov dword [esp + 0x6c], 0x515c40
mov eax, dword [esp + 0x70]
mov byte [esp + 0x220], 0x13
test eax, eax
je 0x44a0ba
mov ecx, dword [esp + 0x74]
push ecx
push eax
call sub.MFC42.DLL_DestructElements
mov edx, dword [esp + 0x70]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [esp + 0x24]
mov byte [esp + 0x220], 8
test eax, eax
mov dword [esp + 0x6c], 0x514bb8
jne 0x449c47
mov ebp, dword [esp + 0x38]
xor ebx, ebx
cmp edi, ebx
je 0x44a0e9
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
push ebp
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x28]
add esp, 4
cmp eax, ebx
jg 0x44a10d
cmp dword [esp + 0x18], ebx
jle 0x44a10d
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x44a15d
cmp dword [0x54b1fc], ebx
je 0x44a15d
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x38]
push ecx
push str.GrabViewer___s_SaveSeqFile____failed
push edx
mov byte [esp + 0x22c], 0x14
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x44]
add esp, 0xc
mov ecx, 0x54b128
push eax
call fcn.004965f0
lea ecx, [esp + 0x38]
mov byte [esp + 0x220], 8
call sub.MFC42.DLL_CString::CString
mov ebp, dword [esp + 0x18]
xor ecx, ecx
cmp ebp, ebx
mov byte [esp + 0x220], 6
setle cl
dec ecx
and ecx, 2
dec ecx
mov esi, ecx
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CFile::CFile
mov dword [esp + 0x1c], 0x515c40
mov eax, dword [esp + 0x20]
mov byte [esp + 0x220], 0x15
cmp eax, ebx
je 0x44a1b0
mov edx, dword [esp + 0x24]
push edx
push eax
call sub.MFC42.DLL_DestructElements
mov eax, dword [esp + 0x20]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], 0x514bb8
mov byte [esp + 0x220], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x220], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x214
ret 4