Function at 0x40cfd0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd5a0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x510008]
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 0x40d00c
mov ecx, dword [edi]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40d016
mov eax, dword [esi]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40d0dc
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.004a4750
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.004a4750
test al, al
jne 0x40d099
cmp byte [ebp - 0x48], al
je 0x40d1be
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 0x40d1be
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 [0x510044], 0
je 0x40d1a0
push 0
mov ecx, 0x510040
call fcn.004118f0
mov eax, dword [0x510044]
cmp byte [eax + 0x54], 0
je 0x40d1a0
cmp dword [eax + 0x58], 4
jb 0x40d1a0
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 0x40d148
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x40d150
mov esi, dword [esi]
push edi
push esi
lea eax, [ebp - 0x28]
push 0x4e7bdc
push eax
call fcn.00484170
add esp, 0x10
lea eax, [ebp - 0x28]
mov ecx, 0x510040
push 0x32
push 0x4e7bf4
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhino_safe_src_safecommon_filerepairlibutils_rcfileutils.cpp
push eax
push 4
call fcn.004128f0
test bl, bl
je 0x40d191
lea eax, [ebp - 0x28]
mov ecx, 0x510040
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.004c9d53
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 [0x510044], 0
je 0x40d29f
push 0
mov ecx, 0x510040
call fcn.004118f0
mov eax, dword [0x510044]
cmp byte [eax + 0x54], 0
je 0x40d29f
cmp dword [eax + 0x58], 4
jb 0x40d29f
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 0x40d247
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x40d24f
mov esi, dword [esi]
push edi
push esi
lea eax, [ebp - 0x28]
push 0x4e7c28
push eax
call fcn.00484170
add esp, 0x10
lea eax, [ebp - 0x28]
mov ecx, 0x510040
push 0x3b
push 0x4e7bf4
push str.d:jenkinsworkspacepc_2345mpcsafe_build_rhino_safe_src_safecommon_filerepairlibutils_rcfileutils.cpp
push eax
push 4
call fcn.004128f0
test bl, bl
je 0x40d290
lea eax, [ebp - 0x28]
mov ecx, 0x510040
push eax
call fcn.00412c90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403cf0
xor al, al
jmp 0x40d1a2