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

Disassembly:
push 0xffffffffffffffff
push 0x4fcce6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x17c
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [ebp + 0x6c]
lea edi, [ebp + 0xf5]
xor ebx, ebx
push edi
mov eax, dword [eax + 0x78]
mov dword [esp + 0x198], ebx
lea ecx, [eax + 0xac]
call fcn.00482420
mov esi, eax
cmp esi, ebx
jne 0x4226da
push edi
lea ecx, [esp + 0x14]
push str.__Error___GetMPPSInfo____s__
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x14]
push 0x541d80
call sub.MFC42.DLL_CString::CString_1
add ebp, 0x920
push eax
lea edx, [esp + 0x20]
push ebp
push edx
mov byte [esp + 0x1a0], 1
call sub.MFC42.DLL_operator_3
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x1a0], 2
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
mov ecx, 0x54b128
push eax
mov byte [esp + 0x198], 3
call fcn.004965f0
lea ecx, [esp + 0x18]
mov byte [esp + 0x194], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x194], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x194], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x194], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x422ba6
mov eax, dword [esi + 0x38]
mov edi, dword [sym.imp.MSVCRT.dll__access]
push ebx
push eax
call edi
add esp, 8
test eax, eax
je 0x422709
mov eax, dword [esi + 0x38]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x422709
mov eax, dword [esi + 0x38]
push eax
call fcn.004d7320
add esp, 4
mov eax, dword [esi + 0x38]
push ebx
push eax
call edi
add esp, 8
test eax, eax
je 0x4227d3
mov eax, dword [esi + 0x38]
lea ecx, [esp + 0x10]
push eax
push str.__Error___MPPS_CreateDirectory____s__
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
push 0x541d80
call sub.MFC42.DLL_CString::CString_1
add ebp, 0x920
push eax
lea edx, [esp + 0x20]
push ebp
push edx
mov byte [esp + 0x1a0], 4
call sub.MFC42.DLL_operator_3
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x1a0], 5
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
mov ecx, 0x54b128
push eax
mov byte [esp + 0x198], 6
call fcn.004965f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x194], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x194], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x194], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x194], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x422ba6
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
lea edx, [esp + 0x88]
push edx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4228ae
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x38]
push eax
push ecx
lea edx, [esp + 0x18]
push str.__Error___GetTempFileName____s___s__
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x18]
push 0x541d80
call sub.MFC42.DLL_CString::CString_1
push eax
add ebp, 0x920
lea eax, [esp + 0x20]
push ebp
push eax
mov byte [esp + 0x1a0], 7
call sub.MFC42.DLL_operator_3
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x1a0], 8
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
mov ecx, 0x54b128
push eax
mov byte [esp + 0x198], 9
call fcn.004965f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x194], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x194], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x194], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x194], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x422ba6
mov eax, dword [esp + 0x19c]
lea ecx, [esp + 0x88]
push eax
push ecx
lea ecx, [ebp + 0x74]
call fcn.004ac4d0
cmp eax, ebx
jne 0x422998
lea edx, [esp + 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x88]
lea ecx, [esp + 0x10]
push eax
push str.__Error___SaveDICOMObject____s__
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x18]
push 0x541d80
call sub.MFC42.DLL_CString::CString_1
add ebp, 0x920
push eax
lea edx, [esp + 0x20]
push ebp
push edx
mov byte [esp + 0x1a0], 0xa
call sub.MFC42.DLL_operator_3
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
push eax
push edx
mov byte [esp + 0x1a0], 0xb
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
mov ecx, 0x54b128
push eax
mov byte [esp + 0x198], 0xc
call fcn.004965f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x194], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x194], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x194], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x194], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x422ba6
lea eax, [esp + 0x88]
lea ecx, [esp + 0x24]
push eax
call sub.MFC42.DLL_CString::CString_1
push str..DCM
lea ecx, [esp + 0x28]
mov byte [esp + 0x198], 0xd
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x88]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov eax, dword [esi + 0x40]
cmp dword [eax - 8], ebx
je 0x422b7d
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [esi]
lea ecx, [esi + 4]
push ecx
mov ecx, dword [esi + 0x40]
push edx
lea eax, [esp + 0x90]
push 1
push eax
push ecx
lea edx, [esp + 0x34]
push str._s__s__d__d__s
push edx
mov byte [esp + 0x1b0], 0xe
call sub.MFC42.DLL_CString::Format
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x60]
add esp, 0x1c
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x34]
lea edx, [esp + 0x44]
push ecx
push edx
push ebx
mov dword [esp + 0x40], eax
push ebx
push ebx
mov dword [esp + 0x4c], eax
push ebx
push ebx
mov dword [esp + 0x58], eax
push ebx
push 1
lea ecx, [esp + 0x44]
mov dword [esp + 0x68], 0x44
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x64], eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x422b4d
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
push str.__Error___RunExe____s__
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x30]
push 0x541d80
call sub.MFC42.DLL_CString::CString_1
add ebp, 0x920
push eax
lea edx, [esp + 0x30]
push ebp
push edx
mov byte [esp + 0x1a0], 0xf
call sub.MFC42.DLL_operator_3
lea ecx, [esp + 0x10]
lea edx, [esp + 0x28]
push ecx
push eax
push edx
mov byte [esp + 0x1a0], 0x10
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
mov ecx, 0x54b128
push eax
mov byte [esp + 0x198], 0x11
call fcn.004965f0
lea ecx, [esp + 0x28]
mov byte [esp + 0x194], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x194], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x194], 0xe
call sub.MFC42.DLL_CString::CString
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 0x20]
mov byte [esp + 0x194], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x194], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x194], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x422ba6
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x38]
push ecx
call esi
lea ecx, [esp + 0x20]
mov byte [esp + 0x194], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x194], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x194], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x188
ret 4