Function at 0x40ccbe
Capabilities:
Copy file
Set file attributes

Disassembly:
mov eax, 0x44c370
call fcn.0042c4cc
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
push str.CopyFile2InfrastructureDestinationDirectory_n
mov ebx, 0x46abb8
push 2
push ebx
mov dword [ebp - 4], 1
call fcn.0040121a
push 0
call fcn.0041f37e
mov eax, dword [ebp + 0xc]
add esp, 0x10
test eax, eax
mov edi, 0x44f48c
jne 0x40cd04
mov eax, edi
push eax
call fcn.0041df7c
test eax, eax
pop ecx
jne 0x40cd27
push dword [0x44f390]
lea ecx, [ebp + 8]
push eax
lea eax, [esi + 0x1a0]
push eax
push 0
call fcn.00413ae2
push dword [0x44f390]
lea eax, [esi + 0x48c]
lea ecx, [ebp + 0x18]
push 0
push eax
push 0
call fcn.00413ae2
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x40cd49
mov eax, edi
push eax
push str.Adding__s_to__infrastructureFileList_n
push ebx
call fcn.00414b92
mov eax, dword [esi + 0x4b0]
lea ecx, [esi + 0x4ac]
add esp, 0xc
lea edx, [ebp + 0x18]
push edx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404cc4
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x40cd7b
mov eax, edi
push eax
call fcn.00402af4
test eax, eax
pop ecx
je 0x40cda2
push str.rerun
lea ecx, [esi + 0x1c8]
call fcn.00402867
test eax, eax
je 0x40cda2
push 1
pop esi
jmp 0x40cf32
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x40cdab
mov eax, edi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x40ce7b
mov al, byte [ebp + 0x18]
push 0
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
call fcn.004151e3
push dword [0x44f390]
lea eax, [ebp + 0x18]
lea ecx, [ebp - 0x24]
push 0
push eax
call fcn.004015d2
mov esi, str..temp
mov byte [ebp - 4], 2
push esi
call fcn.0042cc10
pop ecx
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.00404b64
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x40ce06
mov ecx, edi
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x40ce0f
mov eax, edi
push ecx
push eax
push str.destinationFileName_s___tempFileName_s_n
push ebx
call fcn.00414b92
mov ecx, dword [ebp - 0x20]
add esp, 0x10
test ecx, ecx
jne 0x40ce28
mov ecx, edi
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x40ce31
mov eax, edi
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40ce44
mov eax, edi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x24]
push edx
lea ecx, [eax + 0x4b8]
mov eax, dword [eax + 0x4bc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00404cc4
push 1
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004151e3
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
jne 0x40ce84
mov ecx, edi
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40ce8d
mov eax, edi
push ecx
push eax
push str.sourceFilePath_s___destinationFilePath_s_n
push ebx
call fcn.00414b92
mov ecx, dword [ebp + 0x1c]
add esp, 0x10
test ecx, ecx
jne 0x40cea6
mov ecx, edi
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40ceaf
mov eax, edi
push ecx
push eax
push str.Copying_file___s__to___s__n
push 1
push ebx
call fcn.0040121a
mov ecx, dword [ebp + 0x1c]
add esp, 0x14
test ecx, ecx
jne 0x40ceca
mov ecx, edi
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40ced3
mov eax, edi
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x40cee8
mov eax, edi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test esi, esi
jne 0x40cf1f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 5
jne 0x40cf61
cmp dword [ebp + 0x1c], 0
je 0x40cf0e
mov edi, dword [ebp + 0x1c]
push edi
push str.The_file_is_on_the_system_is_read_only_s_n
push 8
push ebx
call fcn.0040121a
add esp, 0x10
push 1
pop esi
push str.CopyFile2InfrastructureDestinationDirectory_n
push 4
push ebx
call fcn.0040121a
add esp, 0xc
and byte [ebp - 4], 0
push 1
lea ecx, [ebp + 8]
call fcn.004151e3
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp + 0x18]
call fcn.004151e3
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x20
call esi
mov ecx, dword [ebp - 0x10]
xor esi, esi
mov dword [ecx + 0xc0], eax
mov eax, dword [ebp + 0x1c]
cmp eax, esi
jne 0x40cf77
mov eax, edi
cmp dword [ebp + 0xc], esi
je 0x40cf7f
mov edi, dword [ebp + 0xc]
push eax
push edi
push str.Could_not_copy__s_to__s_n
push 8
push ebx
call fcn.0040121a
add esp, 0x14
jmp 0x40cf22