Function at 0x40cfe0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cca20
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x50e008]
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 edi, edx
mov esi, ecx
cmp dword [edi + 0x14], 8
mov ecx, edi
mov ebx, dword [ebp + 8]
jb 0x40d01c
mov ecx, dword [edi]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40d026
mov eax, dword [esi]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40d0ec
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x41], al
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0049f070
movzx ecx, byte [ebp - 0x41]
test al, al
mov edx, 1
mov dword [ebp - 0x30], 0
cmovne ecx, edx
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], dl
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.0049f070
test al, al
jne 0x40d0a9
cmp byte [ebp - 0x48], al
je 0x40d1ce
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
push 0
cmovae ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40d1ce
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00403cf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403cf0
mov dword [ebx], 0
cmp dword [0x50e044], 0
je 0x40d1b0
push 0
mov ecx, 0x50e040
call fcn.004118d0
mov eax, dword [0x50e044]
cmp byte [eax + 0x54], 0
je 0x40d1b0
cmp dword [eax + 0x58], 4
jb 0x40d1b0
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 2
cmp dword [edi + 0x14], 8
jb 0x40d158
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x40d160
mov esi, dword [esi]
push edi
push esi
lea eax, [ebp - 0x28]
push 0x4e6ccc
push eax
call fcn.0047ec40
add esp, 0x10
lea eax, [ebp - 0x28]
mov ecx, 0x50e040
push 0x32
push 0x4e6ce4
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhino_safe_src_safecommon_filerepairlibutils_rcfileutils.cpp
push eax
push 4
call fcn.004128e0
test bl, bl
je 0x40d1a1
lea eax, [ebp - 0x28]
mov ecx, 0x50e040
push eax
call fcn.00412c90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403cf0
mov al, 1
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.004c4853
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00403cf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403cf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
cmp dword [0x50e044], 0
je 0x40d2af
push 0
mov ecx, 0x50e040
call fcn.004118d0
mov eax, dword [0x50e044]
cmp byte [eax + 0x54], 0
je 0x40d2af
cmp dword [eax + 0x58], 4
jb 0x40d2af
mov bl, byte [eax + 0x5c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 3
cmp dword [edi + 0x14], 8
jb 0x40d257
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x40d25f
mov esi, dword [esi]
push edi
push esi
lea eax, [ebp - 0x28]
push 0x4e6d18
push eax
call fcn.0047ec40
add esp, 0x10
lea eax, [ebp - 0x28]
mov ecx, 0x50e040
push 0x3b
push 0x4e6ce4
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhino_safe_src_safecommon_filerepairlibutils_rcfileutils.cpp
push eax
push 4
call fcn.004128e0
test bl, bl
je 0x40d2a0
lea eax, [ebp - 0x28]
mov ecx, 0x50e040
push eax
call fcn.00412c90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403cf0
xor al, al
jmp 0x40d1b2