Function at 0x421bb0
Capabilities:
Create directory
Create process on windows
Delete file
Get common file path
Move file

Disassembly:
push 0xffffffffffffffff
push 0x4fcb2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x184
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov edi, dword [esp + 0x1a8]
mov ebp, dword [sym.imp.MSVCRT.dll__access]
xor ebx, ebx
push ebx
push edi
mov dword [esp + 0x1a4], ebx
call ebp
add esp, 8
test eax, eax
je 0x421c10
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x421c10
push edi
call fcn.004d7320
add esp, 4
push ebx
push edi
call ebp
add esp, 8
test eax, eax
je 0x421cd4
push edi
lea eax, [esp + 0x14]
push str.__Error___SC_CreateDirectory____s__
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x24]
push 0x541d80
call sub.MFC42.DLL_CString::CString_1
add esi, 0x920
push eax
lea ecx, [esp + 0x24]
push esi
push ecx
mov byte [esp + 0x1a8], 1
call sub.MFC42.DLL_operator_3
lea edx, [esp + 0x10]
mov byte [esp + 0x19c], 2
push edx
push eax
lea eax, [esp + 0x30]
push eax
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
mov ecx, 0x54b128
push eax
mov byte [esp + 0x1a0], 3
call fcn.004965f0
lea ecx, [esp + 0x28]
mov byte [esp + 0x19c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x19c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x19c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x19c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x422111
mov ebp, dword [esp + 0x1ac]
lea ecx, [esp + 0x90]
push ecx
push ebx
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x421daa
push ebp
push edi
lea edx, [esp + 0x18]
push str.__Error___SC_GetTempFileName____s___s__
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x28]
push 0x541d80
call sub.MFC42.DLL_CString::CString_1
push eax
add esi, 0x920
lea eax, [esp + 0x24]
push esi
push eax
mov byte [esp + 0x1a8], 4
call sub.MFC42.DLL_operator_3
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push eax
push edx
mov byte [esp + 0x1a8], 5
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
mov ecx, 0x54b128
push eax
mov byte [esp + 0x1a0], 6
call fcn.004965f0
lea ecx, [esp + 0x24]
mov byte [esp + 0x19c], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x19c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x19c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x19c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x422111
lea eax, [esi + 0xf5]
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x19c], 7
call sub.MFC42.DLL_CString::TrimRight
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x1a4]
push ecx
push 0x261
push 0x501
push edi
call fcn.004d6d80
add esp, 0x10
lea edx, [esi + 0xe4]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x19c], 8
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esp + 0x18]
push eax
push 0x260
push 0x501
push edi
call fcn.004d6d80
add esp, 0x10
lea ecx, [esp + 0x90]
push edi
push ecx
lea ecx, [esi + 0x74]
call fcn.004ac4d0
cmp eax, ebx
jne 0x421eec
lea edx, [esp + 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x90]
lea ecx, [esp + 0x10]
push eax
push str.__Error___SC_SaveDICOMObject____s__
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x28]
push 0x541d80
call sub.MFC42.DLL_CString::CString_1
add esi, 0x920
push eax
lea edx, [esp + 0x24]
push esi
push edx
mov byte [esp + 0x1a8], 9
call sub.MFC42.DLL_operator_3
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push ecx
push eax
push edx
mov byte [esp + 0x1a8], 0xa
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
mov ecx, 0x54b128
push eax
mov byte [esp + 0x1a0], 0xb
call fcn.004965f0
lea ecx, [esp + 0x24]
mov byte [esp + 0x19c], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x19c], 9
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x19c], 8
lea ecx, [esp + 0x28]
jmp 0x4220d2
lea eax, [esp + 0x90]
lea ecx, [esp + 0x2c]
push eax
call sub.MFC42.DLL_CString::CString_1
push str..DCM
lea ecx, [esp + 0x30]
mov byte [esp + 0x1a0], 0xc
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x90]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ebp, dword [esp + 0x1b0]
or ecx, 0xffffffff
mov edi, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4220c6
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
push ebp
lea ecx, [esp + 0x18]
mov byte [esp + 0x1a0], 0xd
call fcn.004c8322
lea eax, [esp + 0x90]
lea ecx, [esp + 0x14]
push eax
push str._DICOM_FILE_NAME_
call sub.MFC42.DLL_CString::Replace
mov ecx, dword [esp + 0x1c]
push ecx
push str._CALLING_AETITLE_
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Replace
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push edx
push str._CALLED_AETITLE_
call sub.MFC42.DLL_CString::Replace
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x4c]
lea edx, [esp + 0x4c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], eax
push ecx
push edx
push ebx
push ebx
push ebx
mov dword [esp + 0x54], eax
push ebx
push ebx
mov dword [esp + 0x60], eax
push ebx
push 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x70], 0x44
mov dword [esp + 0x74], ebx
mov dword [esp + 0x6c], eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x422096
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push str.__Error___SC_RunExe____s__
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x38]
push 0x541d80
call sub.MFC42.DLL_CString::CString_1
add esi, 0x920
push eax
lea edx, [esp + 0x34]
push esi
push edx
mov byte [esp + 0x1a8], 0xe
call sub.MFC42.DLL_operator_3
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
push ecx
push eax
push edx
mov byte [esp + 0x1a8], 0xf
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
mov ecx, 0x54b128
push eax
mov byte [esp + 0x1a0], 0x10
call fcn.004965f0
lea ecx, [esp + 0x34]
mov byte [esp + 0x19c], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x19c], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x19c], 0xd
call sub.MFC42.DLL_CString::CString
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
jmp 0x4220b5
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x40]
push ecx
call esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x19c], 0xc
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x19c], 8
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x19c], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x19c], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x19c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x194]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x190
ret 0x10