Function at 0x1000a3c0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005d2d0
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x100de5dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000a72e
cmp dword [ebx + 0x14], 0
je 0x1000a711
cmp dword [ebx], 0
je 0x1000a711
cmp dword [ebx + 4], 0
je 0x1000a711
cmp dword [ebx + 8], 0
je 0x1000a711
cmp dword [ebx + 0xc], 0
je 0x1000a711
sub esp, 0xc
lea ecx, [ebp - 0x44]
push 0x400
call fcn.10009f60
sub esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x74]
push 0x100
call fcn.10009f60
sub esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
push 0x100
call fcn.10009f60
mov byte [ebp - 4], 2
mov edi, dword [ebp - 0x60]
nop
call fcn.10001e90
push eax
push str._s.hdr
push dword [ebp - 0x74]
push edi
call fcn.100012d0
add esp, 0x10
mov edx, 0x100d1820
mov ecx, edi
call fcn.10005110
mov esi, eax
test esi, esi
je 0x1000a4d2
push 0
call fcn.100433f2
add esp, 4
cmp esi, eax
je 0x1000a470
push 1
call fcn.100433f2
add esp, 4
cmp esi, eax
je 0x1000a470
push esi
call fcn.1004359b
add esp, 4
test eax, eax
je 0x1000a470
push eax
push str.cimg::fclose__:_Error_code__d_returned_during_file_closing.
call fcn.10001ac0
add esp, 8
jmp 0x1000a470
push ecx
push edi
mov ecx, ebx
call fcn.1000b220
test edi, edi
jne 0x1000a4f4
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0x18], edi
jmp 0x1000a51b
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a500
push 0
sub ecx, edx
sub esp, 0xc
lea eax, [ecx + 1]
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.10009e00
mov edx, dword [ebp - 0x14]
mov ecx, edx
mov byte [ebp - 4], 3
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a527
push 0
sub ecx, esi
sub esp, 0xc
lea eax, [ecx + 1]
push eax
push edx
lea ecx, [ebp - 0x8c]
call fcn.10009e00
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 4
call fcn.100093e0
lea ecx, [ebp - 0x2c]
mov esi, dword [eax + 0x14]
call fcn.100093e0
mov eax, dword [eax + 0x14]
push eax
push esi
call fcn.10006d60
mov esi, dword [ebp - 0x30]
push eax
push str.__s___w__c_dicom__o___s___f___s_
push dword [ebp - 0x44]
push esi
call fcn.100012d0
add esp, 0x18
cmp byte [ebp - 0x7c], 0
jne 0x1000a58f
push dword [ebp - 0x78]
call fcn.1003f6e4
add esp, 4
mov byte [ebp - 4], 2
cmp byte [ebp - 0x1c], 0
jne 0x1000a5a4
push dword [ebp - 0x18]
call fcn.1003f6e4
add esp, 4
push ecx
call fcn.10006d60
mov edx, eax
mov ecx, esi
call fcn.10001b60
push edi
call fcn.100437d3
add esp, 8
test edi, edi
jne 0x1000a5cc
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x1000a63d
mov byte [esi], 0
jmp 0x1000a63d
push 0x2e
push edi
call fcn.100410d0
mov esi, eax
add esp, 8
test esi, esi
je 0x1000a622
push 0x2f
push esi
call fcn.10040fa0
add esp, 8
test eax, eax
jne 0x1000a622
push 0x5c
push esi
call fcn.10040fa0
add esp, 8
test eax, eax
jne 0x1000a622
sub esi, edi
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x1000a63d
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000a61c
push eax
push edi
push esi
call fcn.10041370
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x1000a63d
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x1000a63d
mov ecx, edi
mov edx, esi
sub edx, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x1000a630
push esi
push str._s.img
push dword [ebp - 0x74]
push edi
call fcn.100012d0
push edi
call fcn.100437d3
mov ecx, dword [ebp - 0x14]
add esp, 0x14
mov edx, 0x100d1820
call fcn.10005110
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1000a697
push dword [ebp - 0x14]
push str.m000__s
push dword [ebp - 0x44]
push dword [ebp - 0x30]
call fcn.100012d0
mov ecx, dword [ebp - 0x30]
add esp, 0x10
mov edx, 0x100d1820
call fcn.10005110
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000a773
push 0
call fcn.100433f2
add esp, 4
cmp dword [ebp - 0x10], eax
je 0x1000a6d2
push 1
call fcn.100433f2
mov ecx, dword [ebp - 0x10]
add esp, 4
cmp ecx, eax
je 0x1000a6d2
push ecx
call fcn.1004359b
add esp, 4
test eax, eax
je 0x1000a6d2
push eax
push str.cimg::fclose__:_Error_code__d_returned_during_file_closing.
call fcn.10001ac0
add esp, 8
push dword [ebp - 0x14]
push dword [ebp - 0x30]
call fcn.100467c4
add esp, 8
cmp byte [ebp - 0x4c], 0
jne 0x1000a6ef
push esi
call fcn.1003f6e4
add esp, 4
cmp byte [ebp - 0x64], 0
jne 0x1000a6fe
push edi
call fcn.1003f6e4
add esp, 4
cmp byte [ebp - 0x34], 0
jne 0x1000a718
push dword [ebp - 0x30]
call fcn.1003f6e4
add esp, 4
jmp 0x1000a718
mov edx, eax
call fcn.10002290
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.10001950
cmp byte [ebx + 0x10], 0
mov ecx, str.non_
push eax
mov eax, 0x1009a4c8
cmove eax, ecx
push eax
push dword [ebx + 0x14]
lea eax, [ebp - 0x24]
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebx]
push str._instance__u__u__u__u__p__sshared___CImg__s_::save_medcon_external__:_Specified_filename_is__null_.
push eax
call fcn.10001410
add esp, 0x24
lea eax, [ebp - 0x24]
push 0x100da17c
push eax
call fcn.100418f0
mov esi, dword [ebp - 0x14]
mov edx, 0x100d1ec8
mov ecx, esi
call fcn.100020e0
mov ecx, eax
call fcn.10002230
push esi
call fcn.10001950
cmp byte [ebx + 0x10], 0
mov ecx, str.non_
push eax
mov eax, 0x1009a4c8
cmove eax, ecx
push eax
push dword [ebx + 0x14]
lea eax, [ebp - 0x24]
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
push dword [ebx]
push str._instance__u__u__u__u__p__sshared___CImg__s_::save_medcon_external__:_Failed_to_save_file__s_with_external_command_medcon.
push eax
call fcn.10001790
add esp, 0x28
lea eax, [ebp - 0x24]
push 0x100da204
push eax
call fcn.100418f0
int3