Function at 0x45c4e0
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516990
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x56c3c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
call fcn.00457f80
test eax, eax
jne 0x45c557
push str.CDocumentMgr::RevertIssueFile_GetProcAddrees_EncryptLockFile_Err.
call fcn.00468970
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45c550
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x45c6f0
push 2
lea ecx, [esi + 0xab1]
push ecx
lea edi, [esi + 4]
push edi
call eax
add esp, 0xc
mov ecx, esi
mov ebx, eax
call fcn.00456b40
test ebx, ebx
jne 0x45c59f
push str.CDocumentMgr::RevertIssueFile_Call_EncryptLockFile.
call fcn.00468970
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x45c544
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.0044c460
add eax, 0x10
add esp, 4
mov dword [ebp - 0x14], eax
push 0x53ef10
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0044d430
lea ecx, [esi + 0x56c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.0044d430
add esi, 0x66e
push esi
lea ecx, [ebp - 0x14]
call fcn.0044d430
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [ebp - 0x14]
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
jne 0x45c6a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CDocumentMgr::RevertIssueFile_CopyFile_Error___d_.
call fcn.00468970
add esp, 8
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45c631
push str.CDocumentMgr::RevertIssueFile_PathFileExists_Error.
call fcn.00468970
add esp, 4
test edi, edi
jne 0x45c639
xor eax, eax
jmp 0x45c662
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x45c64c
xor eax, eax
jmp 0x45c662
lea esi, [eax + eax]
mov eax, esi
call fcn.004d6570
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0044a300
push eax
call fcn.00468970
add esp, 4
test ebx, ebx
jne 0x45c673
xor eax, eax
jmp 0x45c69c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x45c686
xor eax, eax
jmp 0x45c69c
lea esi, [eax + eax]
mov eax, esi
call fcn.004d6570
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.0044a300
push eax
call fcn.00468970
mov esi, dword [ebp - 0x18]
add esp, 4
add ebx, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x45c6c8
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45c6ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
lea esp, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d6555
mov esp, ebp
pop ebp
ret 4