Function at 0x41a130
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443cc9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xdf0
push ebx
push esi
push edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x10], esp
xor edi, edi
push 0x34
mov dword [ebp - 4], 1
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], edi
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x2c], eax
cmp eax, edi
mov byte [ebp - 4], 2
je 0x41a18f
mov ecx, eax
call sub.DCMMFExtend.dll_public:_void___thiscall_CDCMExtend::constructor_void_
mov esi, eax
jmp 0x41a191
xor esi, esi
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
push ecx
lea eax, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x6c]
push eax
lea edx, [ebp - 0x28c]
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push edx
push eax
mov ebx, esi
push esi
push ecx
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.annetdcm.dll_enum_LOADRESULT___cdecl_ANNETDCM_LOAD_DICOMINFO_char___class_CDCMExtend___struct_DCObj____struct_DCDirMetaInfo____int___int___unsigned_long_int____unsigned_long_int____int__]
mov ecx, dword [ebp - 0x34]
add esp, 0x24
cmp ecx, 1
je 0x41a248
mov edx, dword [ebp - 0x1c]
push edx
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp - 0x18]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 8
mov ecx, esi
call sub.DCMMFExtend.dll_public:_void___thiscall_CDCMExtend::CloseF_void_
cmp esi, edi
je 0x41a1fa
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.annetdcm.dll_int___cdecl_ANNETDCM_Free_struct_DCObj___]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add esp, 4
push edi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp + 8]
mov esi, eax
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
sub eax, edi
je 0x41aaf9
sub eax, 2
je 0x41aabd
dec eax
je 0x41aa81
mov edi, dword [sym.imp.MSVCRT.dll_strcoll]
lea eax, [ebp - 0x188]
push str.1.2.840.10008.1.2
push eax
call edi
add esp, 8
test eax, eax
je 0x41a300
lea ecx, [ebp - 0x188]
push str.1.2.840.10008.1.2.1
push ecx
call edi
add esp, 8
test eax, eax
je 0x41a300
lea edx, [ebp - 0x188]
push str.1.2.840.10008.1.2.2
push edx
call edi
add esp, 8
test eax, eax
je 0x41a300
mov eax, dword [ebp - 0x1c]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [ebp - 0x18]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 8
mov ecx, esi
call sub.DCMMFExtend.dll_public:_void___thiscall_CDCMExtend::CloseF_void_
test esi, esi
je 0x41a2d1
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.annetdcm.dll_int___cdecl_ANNETDCM_Free_struct_DCObj___]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
add esp, 4
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x41a8c3
push 0x45a6d4
jmp 0x41ab33
lea eax, [ebp - 0x8c0]
push 0
lea ecx, [ebp - 0x24]
push eax
push ecx
mov byte [ebp - 4], 3
call dword [sym.imp.annetdcm.dll_int___cdecl_ANNETDCM_GetInfo_struct_DCObj____struct__ANNETDCM_STD___int_]
add esp, 0xc
test eax, eax
jne 0x41a368
mov ecx, dword [ebp + 0x14]
push 0x45a6b8
call sub.MFC42.DLL_CString::operator
mov edx, dword [ebp - 0x1c]
push edx
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp - 0x18]
add esp, 4
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, esi
call sub.DCMMFExtend.dll_public:_void___thiscall_CDCMExtend::CloseF_void_
test esi, esi
je 0x41a356
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.annetdcm.dll_int___cdecl_ANNETDCM_Free_struct_DCObj___]
add esp, 4
jmp 0x41ab3b
lea ecx, [ebp - 0x9e8]
mov edi, 1
push 0
lea edx, [ebp - 0x24]
push ecx
mov dword [ebp - 4], edi
push edx
mov byte [ebp - 4], 5
call dword [sym.imp.annetdcm.dll_int___cdecl_GetModuleInfo_struct_DCObj____struct__modModalityLUT___int_]
add esp, 0xc
test eax, eax
jne 0x41a3d7
mov ecx, dword [ebp + 0x14]
push 0x45a6a0
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebp - 0x1c]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [ebp - 0x18]
add esp, 4
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, esi
call sub.DCMMFExtend.dll_public:_void___thiscall_CDCMExtend::CloseF_void_
test esi, esi
je 0x41a3c5
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.annetdcm.dll_int___cdecl_ANNETDCM_Free_struct_DCObj___]
add esp, 4
jmp 0x41ab3b
lea ecx, [ebp - 0xdfc]
push 0
lea edx, [ebp - 0x24]
push ecx
mov dword [ebp - 4], edi
push edx
mov byte [ebp - 4], 7
call dword [sym.imp.annetdcm.dll_int___cdecl_GetModuleInfo_struct_DCObj____struct__modCTImage___int_]
add esp, 0xc
test eax, eax
jne 0x41a441
mov ecx, dword [ebp + 0x14]
push 0x45a6a0
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebp - 0x1c]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [ebp - 0x18]
add esp, 4
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, esi
call sub.DCMMFExtend.dll_public:_void___thiscall_CDCMExtend::CloseF_void_
test esi, esi
je 0x41a42f
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.annetdcm.dll_int___cdecl_ANNETDCM_Free_struct_DCObj___]
add esp, 4
jmp 0x41ab3b
lea ecx, [ebp - 0xc18]
push 0
lea edx, [ebp - 0x24]
push ecx
mov dword [ebp - 4], edi
push edx
mov byte [ebp - 4], 9
call dword [sym.imp.annetdcm.dll_int___cdecl_GetModuleInfo_struct_DCObj____struct__modImagePixel___int_]
add esp, 0xc
test eax, eax
jne 0x41a4ab
mov ecx, dword [ebp + 0x14]
push 0x45a6a0
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebp - 0x1c]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [ebp - 0x18]
add esp, 4
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, esi
call sub.DCMMFExtend.dll_public:_void___thiscall_CDCMExtend::CloseF_void_
test esi, esi
je 0x41a499
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.annetdcm.dll_int___cdecl_ANNETDCM_Free_struct_DCObj___]
add esp, 4
jmp 0x41ab3b
mov ecx, esi
mov dword [ebp - 4], 1
xor edi, edi
call sub.DCMMFExtend.dll_public:_unsigned_long_int____thiscall_CDCMExtend::getAllLen_void_
mov edx, dword [ebp - 0x34]
xor ecx, ecx
test edx, edx
jle 0x41a4d0
mov esi, dword [eax]
add eax, 4
add edi, esi
inc ecx
cmp ecx, edx
jl 0x41a4c4
push edi
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
push ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [ebp - 0x18]
push edx
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp - 0x14]
xor esi, esi
push esi
push ebx
push eax
call dword [sym.imp.annetdcm.dll_int___cdecl_ANNETBUF_GetImgBuf_unsigned_char___class_CDCMExtend___int_]
add esp, 0x18
test eax, eax
jne 0x41a536
mov ecx, dword [ebp - 0x14]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, ebx
call sub.DCMMFExtend.dll_public:_void___thiscall_CDCMExtend::CloseF_void_
cmp ebx, esi
je 0x41a51f
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.annetdcm.dll_int___cdecl_ANNETDCM_Free_struct_DCObj___]
add esp, 4
push 0x45a68c
jmp 0x41ab33
mov eax, dword [ebp + 0x10]
cmp eax, 1
jne 0x41a7c7
lea ecx, [ebp - 0x68]
call fcn.0043f5d4
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0xb
call fcn.0043f5d4
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
lea ecx, [ebp - 0x9e8]
push ecx
mov byte [ebp - 4], 0xc
call esi
lea edx, [ebp - 0xd45]
mov dword [ebp - 0x3c], eax
push edx
call esi
mov ecx, dword [ebp - 0x3d4]
mov dword [ebp - 0x38], eax
mov eax, ecx
mov dword [ebp - 0x4c], ecx
imul eax, dword [ebp - 0x3f0]
imul eax, dword [ebp - 0x3ec]
cdq
and edx, 7
lea ecx, [ebp - 0x2c9]
add eax, edx
push ecx
sar eax, 3
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x3d0]
mov dword [ebp - 0x48], eax
call esi
mov edx, dword [ebp - 0x3f0]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0xb41]
mov dword [ebp - 0x5c], edx
push eax
call esi
mov ecx, dword [ebp - 0x3ec]
lea edx, [ebp - 0x3a2]
push edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x60], ecx
call esi
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x391]
push eax
call esi
mov ecx, dword [ebp - 0x3cc]
add esp, 0x18
lea edx, [ebp - 0xbf7]
mov dword [ebp - 0x58], ecx
push edx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x50], eax
call sub.MFC42.DLL_CString::operator
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x80], ecx
test edx, edx
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x7c], 3
jne 0x41a635
mov edx, dword [ebp - 0x54]
test edx, edx
jne 0x41a635
mov dword [ebp - 0x54], 0x800
mov dword [ebp - 0x50], 0x1000
mov edx, dword [ebp - 0x38]
test edx, edx
jne 0x41a643
mov dword [ebp - 0x38], 1
imul eax, ecx
lea eax, [eax + eax*2]
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
add esp, 4
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 0xd
push 1
push ecx
push edx
push eax
sub esp, 0x34
lea eax, [ebp - 0x68]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.0041ab90
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x30]
call fcn.0041abf0
test eax, eax
jne 0x41a6f8
mov edx, dword [ebp + 0x10]
push edx
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp - 0x14]
add esp, 4
xor esi, esi
push eax
mov dword [ebp + 0x10], esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], esi
push ecx
call dword [sym.imp.annetdcm.dll_int___cdecl_ANNETDCM_Free_struct_DCObj___]
add esp, 4
mov ecx, ebx
call sub.DCMMFExtend.dll_public:_void___thiscall_CDCMExtend::CloseF_void_
cmp ebx, esi
je 0x41a6c5
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
push 0x45a678
mov ecx, dword [ebp + 0x14]
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
jmp 0x41ab3b
mov ecx, dword [ebp + 0xc]
xor esi, esi
push esi
lea eax, [ebp - 0x30]
push esi
push eax
lea edx, [ebp + 0x10]
push ecx
lea eax, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x28c]
push eax
lea edx, [ebp - 0x24]
push ecx
push edx
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x30], 0x4b
call dword [sym.imp.annetdcm.dll_int___cdecl_ANNETDCM_JpgEncode_struct_DCObj____struct_DCDirMetaInfo____struct__tagImageHeader___unsigned_char_const____char___int_const___int__struct__ANNETDCM_STD__]
add esp, 0x20
test eax, eax
jne 0x41a777
mov eax, dword [ebp + 0x10]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 0x10], esi
push ecx
call sub.MFC42.DLL_operatordelete
lea edx, [ebp - 0x24]
mov dword [ebp - 0x14], esi
push edx
call dword [sym.imp.annetdcm.dll_int___cdecl_ANNETDCM_Free_struct_DCObj___]
add esp, 0xc
mov ecx, ebx
call sub.DCMMFExtend.dll_public:_void___thiscall_CDCMExtend::CloseF_void_
cmp ebx, esi
je 0x41a76d
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax]
push str.JPG
jmp 0x41a6ca
mov ecx, dword [ebp + 0x10]
push ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [ebp - 0x14]
mov dword [ebp + 0x10], esi
push edx
call sub.MFC42.DLL_operatordelete
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], esi
push eax
call dword [sym.imp.annetdcm.dll_int___cdecl_ANNETDCM_Free_struct_DCObj___]
add esp, 0xc
mov ecx, ebx
call sub.DCMMFExtend.dll_public:_void___thiscall_CDCMExtend::CloseF_void_
cmp ebx, esi
je 0x41a7af
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0xb
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
jmp 0x41a8be
cmp eax, 2
jne 0x41ab3b
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xf
call fcn.0043f5d4
mov eax, dword [ebp - 0x3f0]
mov ecx, dword [ebp - 0x3ec]
mov edx, dword [ebp - 0x3d4]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x90], edx
push esi
lea ecx, [ebp - 0x14]
push eax
lea edx, [ebp - 0x98]
push ecx
lea eax, [ebp - 0x28c]
push edx
lea ecx, [ebp - 0x24]
push eax
push ecx
mov byte [ebp - 4], 0x10
call dword [sym.imp.annetdcm.dll__ANNETDCM_RleEncode__YAHPAUDCObj___PAUDCDirMetaInfo___AAU_tagImageHeader__AAPB_DPADH_Z]
add esp, 0x18
cmp eax, esi
jne 0x41a882
mov edx, dword [ebp - 0x14]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x14], esi
push eax
call dword [sym.imp.annetdcm.dll_int___cdecl_ANNETDCM_Free_struct_DCObj___]
add esp, 4
mov ecx, ebx
call sub.DCMMFExtend.dll_public:_void___thiscall_CDCMExtend::CloseF_void_
cmp ebx, esi
je 0x41a85e
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
mov ecx, dword [ebp + 0x14]
push 0x45a654
mov dword [ebp - 0x2c], esi
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString
jmp 0x41ab3b
mov eax, dword [ebp - 0x14]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], esi
push ecx
call dword [sym.imp.annetdcm.dll_int___cdecl_ANNETDCM_Free_struct_DCObj___]
add esp, 4
mov ecx, ebx
call sub.DCMMFExtend.dll_public:_void___thiscall_CDCMExtend::CloseF_void_
cmp ebx, esi
je 0x41a8b1
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x88]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [ebp - 0x1c]
push edx
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp - 0x18]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 8
mov ecx, esi
call sub.DCMMFExtend.dll_public:_void___thiscall_CDCMExtend::CloseF_void_
cmp esi, edi
je 0x41aaa9
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.annetdcm.dll_int___cdecl_ANNETDCM_Free_struct_DCObj___]
add esp, 4
push 0x45a600
jmp 0x41ab33
mov ecx, dword [ebp - 0x1c]
push ecx
call sub.MFC42.DLL_operatordelete
mov edx, dword [ebp - 0x18]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 8
mov ecx, esi
call sub.DCMMFExtend.dll_public:_void___thiscall_CDCMExtend::CloseF_void_
cmp esi, edi
je 0x41aae5
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.annetdcm.dll_int___cdecl_ANNETDCM_Free_struct_DCObj___]
add esp, 4
push 0x45a5f0
jmp 0x41ab33
mov edx, dword [ebp - 0x1c]
push edx
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp - 0x18]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 8
mov ecx, esi
call sub.DCMMFExtend.dll_public:_void___thiscall_CDCMExtend::CloseF_void_
cmp esi, edi
je 0x41ab21
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.annetdcm.dll_int___cdecl_ANNETDCM_Free_struct_DCObj___]
add esp, 4
push 0x45a5e4
mov ecx, dword [ebp + 0x14]
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10