Function at 0x100063e0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10009588
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x318
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ebx
lea eax, [ebp + 8]
lea ecx, [ebx + 0x64]
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x224]
push str.keyword.mdb
push ecx
mov ecx, ebx
call fcn.10001b60
lea edx, [ebp - 0x324]
push str.keyword.mdb
push edx
call fcn.10001b00
mov eax, dword [ebx + 0x38]
lea esi, [ebx + 0x38]
add esp, 8
mov byte [ebp - 4], 1
test eax, eax
je 0x100064df
test eax, eax
jne 0x1000646a
push 0x80004003
call fcn.10008a06
mov edi, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push edi
mov eax, dword [edi]
call dword [eax + 0xdc]
test eax, eax
jge 0x10006489
push 0x1000c050
push edi
push eax
call fcn.10008a14
cmp dword [ebp - 0x14], 2
jne 0x100064c2
cmp dword [esi], 0
jne 0x1000649e
push 0x80004003
call fcn.10008a06
mov edi, dword [esi]
push edi
mov edx, dword [edi]
call dword [edx + 0x80]
test eax, eax
jge 0x100064b9
push 0x1000c050
push edi
push eax
call fcn.10008a14
push 0
mov ecx, esi
call fcn.10007510
cmp dword [esi], 0
jne 0x100064d1
push 0x80004003
call fcn.10008a06
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [esi], 0
mov eax, dword [ebx + 0x34]
lea esi, [ebx + 0x34]
test eax, eax
je 0x10006570
test eax, eax
jne 0x100064fb
push 0x80004003
call fcn.10008a06
mov edi, dword [esi]
lea eax, [ebp - 0x14]
push eax
push edi
mov edx, dword [edi]
call dword [edx + 0xdc]
test eax, eax
jge 0x1000651a
push 0x1000c050
push edi
push eax
call fcn.10008a14
cmp dword [ebp - 0x14], 2
jne 0x10006553
cmp dword [esi], 0
jne 0x1000652f
push 0x80004003
call fcn.10008a06
mov edi, dword [esi]
push edi
mov ecx, dword [edi]
call dword [ecx + 0x80]
test eax, eax
jge 0x1000654a
push 0x1000c050
push edi
push eax
call fcn.10008a14
push 0
mov ecx, esi
call fcn.10007510
cmp dword [esi], 0
jne 0x10006562
push 0x80004003
call fcn.10008a06
mov eax, dword [esi]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov dword [esi], 0
mov eax, dword [ebx + 0x3c]
lea esi, [ebx + 0x3c]
test eax, eax
je 0x100066d9
test eax, eax
jne 0x1000658c
push 0x80004003
call fcn.10008a06
mov edi, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push edi
mov eax, dword [edi]
call dword [eax + 0x88]
test eax, eax
jge 0x100065ab
push 0x1000c040
push edi
push eax
call fcn.10008a14
cmp dword [ebp - 0x14], 2
jne 0x100065e1
cmp dword [esi], 0
jne 0x100065c0
push 0x80004003
call fcn.10008a06
mov edi, dword [esi]
push edi
mov edx, dword [edi]
call dword [edx + 0x3c]
test eax, eax
jge 0x100065d8
push 0x1000c040
push edi
push eax
call fcn.10008a14
push 0
mov ecx, esi
call fcn.10007510
cmp dword [esi], 0
jne 0x100065f0
push 0x80004003
call fcn.10008a06
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [esi], 0
jmp 0x100066d9
push ecx
lea eax, [ebp - 0x224]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov dword [ebp - 4], 0
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebx
call fcn.100044b0
test al, al
je 0x10006707
cmp dword [ebp + 0xc], 1
jne 0x100067b0
lea ecx, [ebp - 0x224]
push 0
lea edx, [ebp - 0x324]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x100067b0
lea ecx, [ebp - 0x24]
mov byte [ebx + 0xb8], 0
call sub.MFC42.DLL_AFX_EXCEPTION_LINK::AFX_EXCEPTION_LINK
lea eax, [ebp - 0x124]
push str.keyword.ldb
push eax
mov ecx, ebx
mov byte [ebp - 4], 5
call fcn.10001b60
push ecx
lea edx, [ebp - 0x124]
mov ecx, esp
mov dword [ebp + 0xc], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebx
call fcn.100044b0
test al, al
je 0x1000677b
lea eax, [ebp - 0x124]
push eax
call sub.MFC42.DLL_CFile::Remove
push ecx
lea edx, [ebp - 0x124]
mov ecx, esp
mov dword [ebp + 0xc], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, ebx
call fcn.100044b0
test al, al
je 0x100067a4
lea eax, [ebp - 0x124]
push eax
call sub.MFC42.DLL_CFile::Remove
mov dword [ebp - 4], 0
call sub.MFC42.DLL_AfxTryCleanup
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8