Function at 0x413840
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fa649
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x15a0
call fcn.004c8da0
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [ebp - 0x8c]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ebx
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x88]
mov dword [ebp - 4], 0
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_3
lea edi, [ebx + 0xdc]
mov dword [ebp - 4], 5
mov ecx, edi
call fcn.004f4b50
test eax, eax
je 0x414991
lea ecx, [ebx + 0x118]
call fcn.004f4b50
test eax, eax
je 0x414991
lea ecx, [ebx + 0x154]
call fcn.004f4b50
test eax, eax
je 0x414991
lea ecx, [ebx + 0x190]
call fcn.004f4b50
test eax, eax
je 0x414991
mov esi, dword [ebp + 8]
test esi, esi
je 0x41493d
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x41493d
lea esi, [ebx + 0x74]
push eax
mov ecx, esi
call fcn.00479060
mov ecx, esi
call fcn.00478bc0
test eax, eax
je 0x4148d6
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4148d6
mov ecx, dword [eax + 4]
mov edx, dword [eax + 0x14]
mov eax, dword [ebx + 0x6c]
mov esi, dword [ebp + 8]
mov ecx, dword [ecx]
mov dword [ebp - 0x48], edx
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x1c], ecx
mov dword [edx + 4], eax
mov eax, dword [esi + 0x68]
mov dword [ebp - 0x54], eax
mov eax, dword [ecx + 0x28]
push eax
lea ecx, [ebp - 0x109c]
push edx
push ecx
call fcn.004e1ac0
add esp, 0xc
lea ecx, [ebp - 0x6c]
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov ecx, edi
mov byte [ebp - 4], 0x16
call fcn.004f4ba0
mov ecx, edi
call fcn.004f4b80
test eax, eax
jne 0x413a4d
test byte [esi + 0x64], 0x40
je 0x4139f2
mov byte [ebp - 4], 5
call sub.MFC42.DLL_AfxTryCleanup
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0x1b
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x1a
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x19
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x18
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0x17
jmp 0x41481a
lea edx, [ebp - 0xb18]
mov ecx, edi
push edx
call fcn.004f3060
lea esi, [ebp - 0xf70]
lea eax, [ebp - 0x9ec]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x413a30
test cl, cl
je 0x413a2c
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x413a30
add eax, 2
add esi, 2
test cl, cl
jne 0x413a0c
xor eax, eax
jmp 0x413a35
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x413a4a
push 1
mov ecx, edi
call fcn.004f4bc0
mov esi, dword [ebp + 8]
jmp 0x413995
mov esi, dword [ebp + 8]
mov ecx, edi
call fcn.004f4b80
xor ecx, ecx
cmp eax, ecx
je 0x413c2b
lea eax, [ebp - 0x109c]
mov dword [ebp - 0xc88], ecx
mov dword [ebp - 0xc80], ecx
mov dword [ebp - 0xc84], ecx
mov dword [ebp - 0xc7c], ecx
push 1
push eax
mov ecx, edi
call fcn.004f41c0
test eax, eax
jne 0x413af7
push 0x104
mov ecx, esi
call fcn.00456190
push 0x1000
mov ecx, esi
call fcn.00456180
mov ecx, dword [ebp + 0xc]
push str._Patient_Table_
call fcn.00455dc0
mov byte [ebp - 4], 5
call sub.MFC42.DLL_AfxTryCleanup
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0x20
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x1f
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x1e
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x1d
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0x1c
jmp 0x4149e6
mov ecx, dword [ebx + 0x6c]
mov eax, dword [ecx + 0xb8]
test eax, eax
je 0x413b8c
mov eax, dword [ebx + 0x70]
add eax, 0x9a
push eax
call fcn.004a4430
mov ecx, 0x54b128
mov esi, eax
call fcn.00495610
test esi, esi
mov edi, eax
je 0x413b8c
test edi, edi
je 0x413b8c
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov bl, 0x22
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x23
mov eax, dword [ecx + 0x28]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x14]
push edx
lea edx, [ebp - 0x20]
mov ecx, dword [eax + 0x1cc]
push ecx
push str.update_T_STUDY_set_F_CD_NO___s_where_F_STU_ID___ld_and___F_CD_NO_is_NULL_or_F_CD_NO__
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [ebp - 0x20]
add esp, 0x10
mov ecx, edi
push eax
call sub.MFC42.DLL_CDatabase::ExecuteSQL
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0x16
call sub.MFC42.DLL_AfxTryCleanup
mov ecx, dword [ebp - 0x14]
push 0xa
mov ecx, dword [ecx + 0x6c]
call fcn.0040af10
test eax, eax
je 0x413c8f
mov edx, dword [ebp - 0x14]
mov edi, dword [edx + 0x1cc]
mov eax, dword [edi - 8]
test eax, eax
je 0x413bda
mov eax, dword [ebp - 0x1c]
or ecx, 0xffffffff
mov eax, dword [eax + 0x28]
lea ebx, [eax + 0xe8]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ecx + 0x28]
mov ecx, dword [edx + 0x6c]
mov edi, dword [ecx + 0x94]
call fcn.004a4200
mov edx, dword [ebp - 0x48]
push 0
push 0
push 0xa
push 0
push esi
push edx
push edi
mov ecx, eax
call fcn.00487780
jmp 0x413c8f
lea eax, [ebp - 0xb18]
mov ecx, edi
push eax
call fcn.004f3060
mov ecx, dword [ebp - 0xb18]
mov edx, dword [ebp - 0x9f0]
mov eax, dword [ebp - 0x704]
mov dword [ebp - 0x109c], ecx
mov ecx, dword [ebp - 0x6fc]
mov dword [ebp - 0xf74], edx
mov edx, dword [ebp - 0x700]
mov dword [ebp - 0xc80], ecx
lea ecx, [ebp - 0x109c]
mov dword [ebp - 0xc88], eax
mov eax, dword [ebp - 0x6f8]
push ecx
mov ecx, edi
mov dword [ebp - 0xc84], edx
mov dword [ebp - 0xc7c], eax
call fcn.004f41f0
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0xb18]
push edx
lea ecx, [eax + 0xdc]
call fcn.004f3060
lea ecx, [ebp - 0x13b8]
lea edx, [ebp - 0x15b0]
push ecx
lea eax, [ebp - 0xb18]
push edx
push eax
call fcn.004e1470
mov ecx, dword [ebp - 0x9f0]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
add esp, 0xc
xor edi, edi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x24], edi
cmp edi, dword [ebx + 0x1c]
jge 0x41407a
lea ecx, [esi + 0x118]
mov dword [ebp - 0x18], ecx
call fcn.004f4ba0
mov ecx, dword [ebp - 0x18]
call fcn.004f4b80
test eax, eax
jne 0x413d5f
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x29c]
push edx
call fcn.004f3410
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x298]
cmp ecx, eax
jne 0x413d53
mov ecx, dword [ebx + 0x18]
lea esi, [ebp - 0x28c]
mov eax, dword [ecx + edi*4]
add eax, 0x10
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x413d47
test cl, cl
je 0x413d43
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x413d47
add esi, 2
add eax, 2
test cl, cl
jne 0x413d23
xor eax, eax
jmp 0x413d4c
sbb eax, eax
sbb eax, 0xffffffff
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x413d5f
mov ecx, dword [ebp - 0x18]
push 1
call fcn.004f4bc0
jmp 0x413cec
mov ecx, dword [ebp - 0x18]
call fcn.004f4b80
test eax, eax
je 0x413efd
mov eax, dword [ebx + 0x18]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [eax + edi*4]
mov dword [ecx + 4], edx
mov eax, dword [esi + 0x70]
add eax, 0x11f
lea ecx, [ebp - 0x34]
push eax
call sub.MFC42.DLL_CString::CString_1
push 0x54aebc
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x25
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebx + 0x18]
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x38]
mov eax, dword [eax + edi*4]
mov byte [ebp - 4], 0x26
lea edx, [eax + 0x224]
mov eax, dword [eax]
push edx
lea edx, [ebp - 0x991]
push ecx
mov ecx, dword [ebp - 0x3c]
push edx
mov edx, dword [esi + 0x6c]
push eax
push ecx
mov eax, dword [edx + 0x28]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov ecx, esi
call fcn.00413390
test eax, eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x25
sete bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x16
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x413e3f
mov byte [ebp - 4], 5
call sub.MFC42.DLL_AfxTryCleanup
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0x2b
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x2a
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x29
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x28
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0x27
jmp 0x4149e6
mov edx, dword [ebp - 0x1c]
push 1
mov eax, dword [edx + 0x18]
mov ecx, dword [eax + edi*4]
push ecx
mov ecx, dword [ebp - 0x18]
call fcn.004f3780
test eax, eax
jne 0x413ec7
mov esi, dword [ebp + 8]
push 0x104
mov ecx, esi
call fcn.00456190
push 0x1000
mov ecx, esi
call fcn.00456180
mov ecx, dword [ebp + 0xc]
push str._Report_
call fcn.00455dc0
mov byte [ebp - 4], 5
call sub.MFC42.DLL_AfxTryCleanup
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0x30
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x2f
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x2e
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x2d
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0x2c
jmp 0x4149e6
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x14]
mov eax, dword [edx + 0x18]
mov edx, dword [eax + ecx*4]
lea eax, [ebp - 0xb18]
push eax
lea ecx, [esi + 0xdc]
mov ebx, dword [edx + 0xc]
mov edx, dword [ebp - 0x6fc]
inc edx
mov dword [ebp - 0x6fc], edx
call fcn.004f41f0
jmp 0x413fec
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebp - 0x29c]
mov edx, dword [ecx + edi*4]
mov dword [edx], eax
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebp - 0x298]
mov edx, dword [ecx + edi*4]
lea ecx, [ebp - 0x20]
mov dword [edx + 4], eax
mov eax, dword [esi + 0x70]
add eax, 0x11f
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [ebx + 0x18]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x78]
mov eax, dword [ecx + edi*4]
mov byte [ebp - 4], 0x31
lea ecx, [eax + 0x224]
push ecx
lea ecx, [ebp - 0x991]
push edx
mov edx, dword [eax]
mov eax, dword [ebp - 0x3c]
push ecx
mov ecx, dword [esi + 0x6c]
push edx
push eax
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 0x28]
mov ecx, esi
push edx
push eax
call fcn.00413390
test eax, eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0x16
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x413fc1
mov byte [ebp - 4], 5
call sub.MFC42.DLL_AfxTryCleanup
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0x36
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x35
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x34
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x33
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0x32
jmp 0x4149e6
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x290]
mov edx, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx + edi*4]
push eax
call fcn.004f3ac0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + edi*4]
mov ebx, dword [eax + 0xc]
cmp ebx, esi
je 0x414066
mov esi, dword [ebp - 0x14]
test ebx, ebx
jl 0x414066
mov ecx, dword [esi + 0x6c]
push ebx
call fcn.0040af10
test eax, eax
je 0x414066
mov edi, dword [esi + 0x1cc]
mov eax, dword [edi - 8]
test eax, eax
je 0x414030
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x12d0]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + 0x6c]
mov esi, dword [ecx + 0x94]
call fcn.004a4200
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push ebx
mov edx, dword [ecx + 0x18]
mov ecx, dword [ebp - 0x24]
mov edx, dword [edx + ecx*4]
lea ecx, [ebp - 0x13b8]
push edx
lea edx, [ebp - 0x15b0]
push ecx
push edx
push esi
mov ecx, eax
call fcn.00487780
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x24], eax
mov edi, eax
jmp 0x413cd5
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebx + 8]
cmp eax, ecx
jge 0x4147d7
mov ecx, dword [ebx + 4]
mov edx, eax
lea edi, [ebp - 0x398]
mov eax, dword [ecx + edx*4]
mov ecx, 0x36
mov dword [ebp - 0x40], eax
mov esi, dword [eax + 0x14]
mov eax, dword [ebp - 0x14]
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + 0x154]
mov ecx, edi
call fcn.004f4ba0
mov ebx, dword [ebp + 8]
mov ecx, edi
call fcn.004f4b80
test eax, eax
jne 0x414131
test byte [ebx + 0x64], 0x40
jne 0x4147d7
lea ecx, [ebp - 0x594]
push ecx
mov ecx, edi
call fcn.004f3060
mov edx, dword [ebp - 0x590]
mov eax, dword [ebp - 0x3c]
cmp edx, eax
jne 0x414126
lea esi, [ebp - 0x390]
lea eax, [ebp - 0x58c]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x41411d
test cl, cl
je 0x414119
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x41411d
add eax, 2
add esi, 2
test cl, cl
jne 0x4140f9
xor eax, eax
jmp 0x414122
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x414131
push 1
mov ecx, edi
call fcn.004f4bc0
jmp 0x4140bd
test byte [ebx + 0x64], 0x40
jne 0x4147d7
mov ecx, edi
call fcn.004f4b80
test eax, eax
je 0x414311
mov eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x398]
push 1
push ecx
mov ecx, edi
mov dword [ebp - 0x394], eax
call fcn.004f3130
test eax, eax
jne 0x4141d7
mov esi, dword [ebp + 8]
push 0x104
mov ecx, esi
call fcn.00456190
push 0x1000
mov ecx, esi
call fcn.00456180
mov ecx, dword [ebp + 0xc]
push str._Series_
call fcn.00455dc0
mov byte [ebp - 4], 5
call sub.MFC42.DLL_AfxTryCleanup
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0x3b
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x3a
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x39
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x38
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0x37
jmp 0x4149e6
mov ecx, dword [ebp - 0x704]
mov esi, dword [ebp - 0x14]
inc ecx
lea edx, [ebp - 0xb18]
mov dword [ebp - 0x704], ecx
push edx
lea ecx, [esi + 0xdc]
call fcn.004f41f0
lea eax, [ebp - 0x324]
lea ecx, [ebp - 0x30]
push eax
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 0x6c]
mov byte [ebp - 4], 0x3c
mov eax, dword [ecx + 0xb8]
test eax, eax
je 0x414305
push 0x541884
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_CString::Find_2
test eax, eax
jge 0x414305
mov ecx, esi
mov eax, dword [ecx + 0x70]
mov ecx, dword [ecx + 0x6c]
add eax, 0x9a
push eax
call fcn.004a4430
mov ecx, 0x54b128
mov esi, eax
call fcn.00495610
test esi, esi
mov edi, eax
je 0x414305
test edi, edi
je 0x414305
lea ecx, [ebp - 0x74]
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x324]
push edx
lea edx, [ebp - 0x30]
mov ecx, dword [eax + 0x1cc]
mov byte [ebp - 4], 0x3e
push ecx
push str._CD_s___s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea eax, [ebp - 0x58]
lea ecx, [ebp - 0x30]
push 0x40
push eax
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x3f
call fcn.004c830a
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0x3e
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CString::CString_3
mov ecx, dword [ebp - 0x40]
mov byte [ebp - 4], 0x40
mov eax, dword [ecx + 0x14]
lea ecx, [ebp - 0x34]
mov edx, dword [eax]
mov eax, dword [ebp - 0x30]
push edx
push eax
push str.update_T_SERIES_set_F_SER_CONTEXT___s_where_F_SER_ID___ld
push ecx
call sub.MFC42.DLL_CString::Format
mov edx, dword [ebp - 0x34]
add esp, 0x10
mov ecx, edi
push edx
call sub.MFC42.DLL_CDatabase::ExecuteSQL
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0x3e
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0x3c
call sub.MFC42.DLL_AfxTryCleanup
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x16
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x594]
push eax
add ecx, 0x154
call fcn.004f3060
mov edx, dword [ebp - 0x594]
mov edi, dword [ebp - 0x40]
xor esi, esi
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x20], esi
cmp esi, dword [edi + 8]
jge 0x4147bf
mov eax, dword [ebp - 0x14]
lea ebx, [eax + 0x190]
mov ecx, ebx
call fcn.004f4ba0
mov ecx, ebx
call fcn.004f4b80
test eax, eax
jne 0x4143fa
mov ecx, dword [ebp + 8]
test byte [ecx + 0x64], 0x40
jne 0x4143fa
lea edx, [ebp - 0x4bc]
mov ecx, ebx
push edx
call fcn.004f2b10
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4b8]
cmp ecx, eax
jne 0x4143ec
mov ecx, dword [edi + 4]
mov eax, dword [ecx + esi*4]
lea esi, [ebp - 0x4b4]
add eax, 8
mov dl, byte [esi]
mov cl, dl
cmp dl, byte [eax]
jne 0x4143dd
test cl, cl
je 0x4143b6
mov dl, byte [esi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x4143dd
add esi, 2
add eax, 2
test cl, cl
jne 0x414396
xor eax, eax
jmp 0x4143e2
sbb eax, eax
sbb eax, 0xffffffff
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x40]
test eax, eax
je 0x4143fa
push 1
mov ecx, ebx
call fcn.004f4bc0
jmp 0x414350
mov eax, dword [ebp + 8]
test byte [eax + 0x64], 0x40
jne 0x4147bf
mov ecx, ebx
call fcn.004f4b80
test eax, eax
je 0x4147ad
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 0x70]
lea ecx, [ebp - 0x28]
add eax, 0x11f
push eax
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [edi + 4]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x42
mov eax, dword [edx + esi*4]
add eax, 0x5e
push eax
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x6c]
cmp dword [edx + 0x90], 0xffffffff
je 0x414488
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x2c0]
push eax
push ecx
call dword [sym.imp.MSVCRT.dll__stat]
add esp, 8
test eax, eax
jl 0x414488
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [edx + 0x6c]
cdq
add dword [ecx + 0x88], eax
mov eax, dword [ecx + 0x8c]
adc eax, edx
mov dword [ecx + 0x8c], eax
mov eax, dword [edi + 4]
mov edx, dword [ebp - 0x48]
push 1
mov ecx, dword [eax + esi*4]
mov dword [ecx + 4], edx
mov eax, dword [edi + 4]
mov ecx, dword [eax + esi*4]
push ecx
mov ecx, ebx
call fcn.004f2cc0
test eax, eax
jne 0x414524
mov esi, dword [ebp + 8]
push 0x104
mov ecx, esi
call fcn.00456190
push 0x1000
mov ecx, esi
call fcn.00456180
mov ecx, dword [ebp + 0xc]
push str._Image_Table_
call fcn.00455dc0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x16
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
call sub.MFC42.DLL_AfxTryCleanup
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0x47
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x46
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x45
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x44
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0x43
jmp 0x4149e6
lea edx, [ebp - 0x4bc]
mov ecx, ebx
push edx
call fcn.004f2b10
lea ecx, [ebp - 0x2c]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x48
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x49
call sub.MFC42.DLL_CString::CString_3
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x44]
push eax
lea edx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x991]
push edx
mov edx, dword [ebp - 0x9f0]
push eax
push ecx
mov ecx, dword [ebp - 0x14]
push edx
mov byte [ebp - 4], 0x4a
mov eax, dword [ecx + 0x6c]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.00412fe0
test eax, eax
jne 0x414603
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x49
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x48
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x42
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x16
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
call sub.MFC42.DLL_AfxTryCleanup
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0x4f
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x4e
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x4d
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x4c
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0x4b
jmp 0x4149e6
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x414625
mov edx, dword [ebp - 0x4bc]
lea eax, [ebp - 0x18]
push edx
push str._08lX.img
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x44]
push ecx
lea eax, [ebp - 0x50]
push edx
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x50
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0x4a
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x2c]
push 0
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
jne 0x41466d
mov edx, dword [ebp - 0x2c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4146cc
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x38]
mov eax, dword [edx + 0x224]
push eax
call sub.MFC42.DLL_CString::CString_1
lea ecx, [ebp - 0x423]
mov byte [ebp - 4], 0x51
push ecx
lea ecx, [ebp - 0x38]
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp + 0xc]
push edx
call fcn.00455dc0
push 0
mov ecx, ebx
call fcn.004f4d50
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x4a
call sub.MFC42.DLL_CString::CString
jmp 0x41475e
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x44]
push eax
lea edx, [ebp - 0x4c]
push ecx
push edx
call sub.MFC42.DLL_operator_3
mov edi, dword [eax]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x45e]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x4bc]
push ecx
mov ecx, ebx
call fcn.004f2e40
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 0x6c]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x414739
mov edx, dword [ebp - 0x2c]
push 0
push edx
lea ecx, [eax + 0xbc]
call fcn.00472f10
mov edx, dword [ebp - 0x700]
lea eax, [ebp - 0xb18]
inc edx
push eax
lea ecx, [esi + 0xdc]
mov dword [ebp - 0x700], edx
call fcn.004f41f0
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x40]
cmp dword [ebp - 0x54], 0xbe99d
jne 0x41477d
mov ecx, dword [ebp - 0x28]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x49
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0x48
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0x42
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x16
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
test byte [eax + 0x64], 0x40
jne 0x4147bf
inc esi
mov dword [ebp - 0x20], esi
jmp 0x414337
mov ecx, dword [ebp + 8]
test byte [ecx + 0x64], 0x40
jne 0x4147d7
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x24], eax
jmp 0x414081
mov byte [ebp - 4], 5
call sub.MFC42.DLL_AfxTryCleanup
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0x56
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x55
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x54
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x53
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0x52
lea ecx, [ebp - 0x88]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x8c]
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 8
mov esi, dword [ebp + 8]
push 0x82
mov ecx, esi
call fcn.00456190
push 0x1000
mov ecx, esi
call fcn.00456180
mov ecx, dword [ebp + 0xc]
push str._Patient_
call fcn.00455dc0
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x12
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x11
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0x10
jmp 0x4149e6
push 0x82
mov ecx, esi
call fcn.00456190
push 0x1000
mov ecx, esi
call fcn.00456180
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0xb
jmp 0x4149e6
mov esi, dword [ebp + 8]
push 0x103
mov ecx, esi
call fcn.00456190
push 0x1000
mov ecx, esi
call fcn.00456180
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x88]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x8c]
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 8