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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484830
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4b7b70]
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.00417290
test eax, eax
jne 0x41afa7
push str.CDocumentMgr::RevertIssueFile_GetProcAddrees_EncryptLockFile_Err.
call fcn.00424900
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 0x41afa0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41b140
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.004164f0
test ebx, ebx
jne 0x41afef
push str.CDocumentMgr::RevertIssueFile_Call_EncryptLockFile.
call fcn.00424900
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 0x41af94
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.00411060
add eax, 0x10
add esp, 4
mov dword [ebp - 0x14], eax
push 0x49bc48
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00411f30
lea ecx, [esi + 0x56c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00411f30
add esi, 0x66e
push esi
lea ecx, [ebp - 0x14]
call fcn.00411f30
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 0x41b0f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CDocumentMgr::RevertIssueFile_CopyFile_Error___d_.
call fcn.00424900
add esp, 8
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41b081
push str.CDocumentMgr::RevertIssueFile_PathFileExists_Error.
call fcn.00424900
add esp, 4
test edi, edi
jne 0x41b089
xor eax, eax
jmp 0x41b0b2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x41b09c
xor eax, eax
jmp 0x41b0b2
lea esi, [eax + eax]
mov eax, esi
call fcn.00460c90
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0040f420
push eax
call fcn.00424900
add esp, 4
test ebx, ebx
jne 0x41b0c3
xor eax, eax
jmp 0x41b0ec
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x41b0d6
xor eax, eax
jmp 0x41b0ec
lea esi, [eax + eax]
mov eax, esi
call fcn.00460c90
mov eax, esp
push 3
push esi
push ebx
push eax
call fcn.0040f420
push eax
call fcn.00424900
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 0x41b118
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 0x41b13e
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.00460c80
mov esp, ebp
pop ebp
ret 4