Function at 0x4c8ca0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x670160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x224]
mov ecx, 0x86
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
call fcn.00405024
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0040163b
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.00405326
mov byte [ebp - 4], 2
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x80]
call fcn.00405326
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.00402b94
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c]
call fcn.00405024
mov byte [ebp - 4], 5
push 0x685068
lea ecx, [ebp - 0x90]
call fcn.006198df
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x94]
call fcn.00405024
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x98]
call fcn.00405024
mov byte [ebp - 4], 8
lea eax, [ebp - 0xd4]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x7c
call fcn.0040674e
mov dword [ebp - 0x138], eax
mov ecx, dword [ebp - 0x138]
mov dword [ebp - 0x13c], ecx
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x13c]
push edx
lea ecx, [ebp - 0x88]
call fcn.004039e5
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xd4]
call fcn.00405fe2
lea ecx, [ebp - 0x88]
call fcn.00405d9e
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
jg 0x4c8e54
push 0
push 0
push str.Please_select_a_procedure_from_the_list.
call fcn.0062dd90
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x98]
call fcn.00619871
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x94]
call fcn.00619871
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x90]
call fcn.00619871
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c]
call fcn.00619871
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.00405fe2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x80]
call fcn.0040236f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.0040236f
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0040249b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00619871
jmp 0x4c973b
mov eax, dword [0x6f25cc]
push eax
push str._sCatalog
lea ecx, [ebp - 0x14]
push ecx
call fcn.0060da8c
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0xd8], esp
lea edx, [ebp - 0x14]
push edx
call fcn.006195e6
mov dword [ebp - 0x140], eax
lea ecx, [ebp - 0x58]
call fcn.00403689
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0
jne 0x4c8f2f
push 0
push 0
push str.Failed_to_read_catalog
call fcn.0062dd90
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x98]
call fcn.00619871
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x94]
call fcn.00619871
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x90]
call fcn.00619871
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c]
call fcn.00619871
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.00405fe2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x80]
call fcn.0040236f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.0040236f
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0040249b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00619871
jmp 0x4c973b
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x7c
call fcn.00403d9b
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xa0]
call fcn.004069d8
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0xa4], 1
jmp 0x4c8f6e
mov ecx, dword [ebp - 0xa4]
add ecx, 1
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0xa4]
cmp edx, dword [ebp - 0x6c]
jg 0x4c9675
mov eax, dword [ebp - 0xa4]
push eax
lea ecx, [ebp - 0x80]
call fcn.004035a3
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0xe0]
push edx
lea ecx, [ebp - 0xa0]
call fcn.00401eab
mov dword [ebp - 0x148], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x14c], eax
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x14c]
push ecx
lea ecx, [ebp - 0x88]
call fcn.004039e5
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xe0]
call fcn.00405fe2
lea ecx, [ebp - 0x88]
call fcn.0040678f
test eax, eax
je 0x4c9670
lea edx, [ebp - 0xe4]
push edx
lea ecx, [ebp - 0x88]
call fcn.00406433
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x154]
push ecx
lea ecx, [ebp - 0x98]
call fcn.006199aa
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xe4]
call fcn.00619871
push 1
lea edx, [ebp - 0xa8]
push edx
lea ecx, [ebp - 0x88]
call fcn.0040490d
mov byte [ebp - 4], 0xd
push 2
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x88]
call fcn.0040490d
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x158]
mov dword [ebp - 0x15c], ecx
mov byte [ebp - 4], 0xe
mov edx, dword [ebp - 0x15c]
push edx
lea ecx, [ebp - 0x94]
call fcn.006199aa
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xe8]
call fcn.00619871
push 4
lea eax, [ebp - 0xac]
push eax
lea ecx, [ebp - 0x88]
call fcn.0040490d
mov byte [ebp - 4], 0xf
push 0x6f25cc
lea ecx, [ebp - 0x8c]
call fcn.006199aa
mov ecx, dword [ebp - 0xa4]
sub ecx, 1
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004035fd
add eax, 0x14
push eax
lea ecx, [ebp - 0x8c]
call fcn.00619c89
push 0x685478
lea ecx, [ebp - 0x8c]
call fcn.00619c4d
lea ecx, [ebp - 0xc4]
call fcn.00406465
mov byte [ebp - 4], 0x10
push ecx
mov ecx, esp
mov dword [ebp - 0xec], esp
lea edx, [ebp - 0x8c]
push edx
call fcn.006195e6
mov dword [ebp - 0x160], eax
lea ecx, [ebp - 0xc4]
call fcn.004064fb
lea eax, [ebp - 0xb4]
push eax
lea ecx, [ebp - 0x8c]
call fcn.006199aa
push str.dicomdir
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0xf4]
push edx
call fcn.00619b06
mov dword [ebp - 0x164], eax
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x168], eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp - 0x168]
call fcn.004073ce
mov esi, esp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp esi, esp
call fcn.005e0cbc
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
mov byte [ebp - 0xf0], cl
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xf4]
call fcn.00619871
mov edx, dword [ebp - 0xf0]
and edx, 0xff
test edx, edx
je 0x4c95fb
lea ecx, [ebp - 0xc8]
call fcn.00405024
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0xac]
push eax
push str.Patient_Name_t:
lea ecx, [ebp - 0xc8]
push ecx
lea edx, [ebp - 0xf8]
push edx
call fcn.00619b06
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x170], eax
mov byte [ebp - 4], 0x13
mov ecx, dword [ebp - 0x170]
push ecx
lea edx, [ebp - 0xfc]
push edx
call fcn.00619aa0
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x174]
mov dword [ebp - 0x178], eax
mov byte [ebp - 4], 0x14
mov ecx, dword [ebp - 0x178]
push ecx
lea ecx, [ebp - 0xc8]
call fcn.006199aa
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0xfc]
call fcn.00619871
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xf8]
call fcn.00619871
lea edx, [ebp - 0xa8]
push edx
push str._nIP_NO_t_t:
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x100]
push ecx
call fcn.00619b06
mov dword [ebp - 0x17c], eax
mov edx, dword [ebp - 0x17c]
mov dword [ebp - 0x180], edx
mov byte [ebp - 4], 0x15
mov eax, dword [ebp - 0x180]
push eax
lea ecx, [ebp - 0x104]
push ecx
call fcn.00619aa0
mov dword [ebp - 0x184], eax
mov edx, dword [ebp - 0x184]
mov dword [ebp - 0x188], edx
mov byte [ebp - 4], 0x16
mov eax, dword [ebp - 0x188]
push eax
lea ecx, [ebp - 0xc8]
call fcn.006199aa
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0x104]
call fcn.00619871
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x100]
call fcn.00619871
lea ecx, [ebp - 0x98]
push ecx
push str._nProcedure_Type_t:
lea edx, [ebp - 0xc8]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.00619b06
mov dword [ebp - 0x18c], eax
mov ecx, dword [ebp - 0x18c]
mov dword [ebp - 0x190], ecx
mov byte [ebp - 4], 0x17
mov edx, dword [ebp - 0x190]
push edx
lea eax, [ebp - 0x10c]
push eax
call fcn.00619aa0
mov dword [ebp - 0x194], eax
mov ecx, dword [ebp - 0x194]
mov dword [ebp - 0x198], ecx
mov byte [ebp - 4], 0x18
mov edx, dword [ebp - 0x198]
push edx
lea ecx, [ebp - 0xc8]
call fcn.006199aa
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x10c]
call fcn.00619871
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x108]
call fcn.00619871
lea eax, [ebp - 0x94]
push eax
push str._nProcedure_Number_t:
lea ecx, [ebp - 0xc8]
push ecx
lea edx, [ebp - 0x110]
push edx
call fcn.00619b06
mov dword [ebp - 0x19c], eax
mov eax, dword [ebp - 0x19c]
mov dword [ebp - 0x1a0], eax
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp - 0x1a0]
push ecx
lea edx, [ebp - 0x114]
push edx
call fcn.00619aa0
mov dword [ebp - 0x1a4], eax
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x1a8], eax
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp - 0x1a8]
push ecx
lea ecx, [ebp - 0xc8]
call fcn.006199aa
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x114]
call fcn.00619871
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x110]
call fcn.00619871
push str.Cannot_Load_Patient_Data.
push str._n_nError_t_t:
lea edx, [ebp - 0xc8]
push edx
lea eax, [ebp - 0x118]
push eax
call fcn.00619b06
mov dword [ebp - 0x1ac], eax
mov ecx, dword [ebp - 0x1ac]
mov dword [ebp - 0x1b0], ecx
mov byte [ebp - 4], 0x1b
mov edx, dword [ebp - 0x1b0]
push edx
lea eax, [ebp - 0x11c]
push eax
call fcn.00619b06
mov dword [ebp - 0x1b4], eax
mov ecx, dword [ebp - 0x1b4]
mov dword [ebp - 0x1b8], ecx
mov byte [ebp - 4], 0x1c
mov edx, dword [ebp - 0x1b8]
push edx
lea ecx, [ebp - 0xc8]
call fcn.006199aa
mov byte [ebp - 4], 0x1b
lea ecx, [ebp - 0x11c]
call fcn.00619871
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x118]
call fcn.00619871
push str.No_Patient_Data_Found_in_Path
push str._nReason_t_t:
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x120]
push ecx
call fcn.00619b06
mov dword [ebp - 0x1bc], eax
mov edx, dword [ebp - 0x1bc]
mov dword [ebp - 0x1c0], edx
mov byte [ebp - 4], 0x1d
mov eax, dword [ebp - 0x1c0]
push eax
lea ecx, [ebp - 0x124]
push ecx
call fcn.00619b06
mov dword [ebp - 0x1c4], eax
mov edx, dword [ebp - 0x1c4]
mov dword [ebp - 0x1c8], edx
mov byte [ebp - 4], 0x1e
mov eax, dword [ebp - 0x1c8]
push eax
lea ecx, [ebp - 0xc8]
call fcn.006199aa
mov byte [ebp - 4], 0x1d
lea ecx, [ebp - 0x124]
call fcn.00619871
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x120]
call fcn.00619871
lea ecx, [ebp - 0x8c]
push ecx
push 0x69498c
lea edx, [ebp - 0xc8]
push edx
lea eax, [ebp - 0x128]
push eax
call fcn.00619b06
mov dword [ebp - 0x1cc], eax
mov ecx, dword [ebp - 0x1cc]
mov dword [ebp - 0x1d0], ecx
mov byte [ebp - 4], 0x1f
mov edx, dword [ebp - 0x1d0]
push edx
lea eax, [ebp - 0x12c]
push eax
call fcn.00619aa0
mov dword [ebp - 0x1d4], eax
mov ecx, dword [ebp - 0x1d4]
mov dword [ebp - 0x1d8], ecx
mov byte [ebp - 4], 0x20
mov edx, dword [ebp - 0x1d8]
push edx
lea ecx, [ebp - 0xc8]
call fcn.006199aa
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x12c]
call fcn.00619871
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x128]
call fcn.00619871
push 0x10
push str.CDViewer_Error_._._.
lea ecx, [ebp - 0xc8]
call fcn.004073ce
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0061c38c
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xc8]
call fcn.00619871
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xc4]
call fcn.004063ed
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xac]
call fcn.00619871
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xa8]
call fcn.00619871
jmp 0x4c8f5f
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x130], esp
lea eax, [ebp - 0x8c]
push eax
call fcn.006195e6
mov dword [ebp - 0x1dc], eax
mov ecx, 0x6f2720
call fcn.004069bf
mov dword [ebp - 0x1e0], eax
cmp dword [ebp - 0x1e0], 0
je 0x4c9643
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x90]
call fcn.006199aa
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xc4]
call fcn.004063ed
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xac]
call fcn.00619871
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xa8]
call fcn.00619871
jmp 0x4c8f5f
lea ecx, [ebp - 0x58]
call fcn.004021e9
call fcn.0040721b
mov dword [ebp - 0xcc], eax
push ecx
mov ecx, esp
mov dword [ebp - 0x134], esp
lea edx, [ebp - 0x90]
push edx
call fcn.006195e6
mov dword [ebp - 0x1e4], eax
mov ecx, dword [ebp - 0xcc]
call fcn.0040623f
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xa0]
call fcn.004033ff
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x98]
call fcn.00619871
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x94]
call fcn.00619871
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x90]
call fcn.00619871
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c]
call fcn.00619871
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
call fcn.00405fe2
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x80]
call fcn.0040236f
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.0040236f
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x58]
call fcn.0040249b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00619871
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x224
cmp ebp, esp
call fcn.005e0cbc
mov esp, ebp
pop ebp
ret