Function at 0x40f4d0
Capabilities:
Copy file
Set file attributes

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, eax
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov eax, edx
push edi
xor edi, edi
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
mov ebx, edi
je 0x40f85c
xor ebp, ebp
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40f520
call fcn.00420164
mov edi, dword [esi + 0xc]
cmp byte [edi + ebp + 0x39], 0
je 0x40f61b
mov ecx, dword [esi + 0x10]
sub ecx, edi
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x40f54d
call fcn.00420164
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov dword [esp + 0x14], eax
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40f573
call fcn.00420164
mov edx, dword [esp + 0x14]
mov edx, dword [edx + ebp + 0xc8]
mov edi, dword [esi + 0xc]
mov ecx, dword [edi + ebp + 0xc4]
mov eax, dword [edi + ebp + 0xc0]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x14]
mov edx, dword [edx + ebp + 0xcc]
mov dword [esp + 0x20], edx
movzx edx, byte [0x449dbe]
push edx
mov edx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push edx
push ecx
push eax
call fcn.004112f0
add esp, 0x14
test al, al
jne 0x40f61b
mov ecx, dword [esi + 0x10]
sub ecx, edi
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40f5e1
call fcn.00420164
mov ecx, dword [esi + 0xc]
cmp dword [ecx + ebp + 0x34], 0x10
lea eax, [ecx + ebp + 0x1c]
jb 0x40f605
mov eax, dword [eax + 4]
push eax
push str._s_is_already_current__copy_skipped
call fcn.0040d8e0
add esp, 8
jmp 0x40f7b6
add eax, 4
push eax
push str._s_is_already_current__copy_skipped
call fcn.0040d8e0
add esp, 8
jmp 0x40f7b6
mov ecx, dword [esi + 0x10]
sub ecx, edi
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40f63a
call fcn.00420164
mov eax, dword [esi + 0xc]
cmp byte [eax + ebp + 0x39], 0
je 0x40f685
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x40f663
call fcn.00420164
mov edx, dword [esi + 0xc]
cmp dword [edx + ebp + 0x34], 0x10
lea eax, [edx + ebp + 0x1c]
jb 0x40f676
mov eax, dword [eax + 4]
jmp 0x40f679
add eax, 4
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40f6a5
call fcn.00420164
mov eax, dword [esi + 0xc]
cmp dword [eax + ebp + 0x34], 0x10
jb 0x40f6b5
mov edi, dword [eax + ebp + 0x20]
jmp 0x40f6b9
lea edi, [eax + ebp + 0x20]
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x40f6d8
call fcn.00420164
mov eax, dword [esi + 0xc]
add eax, ebp
cmp dword [eax + 0x18], 0x10
jb 0x40f6e8
mov eax, dword [eax + 4]
jmp 0x40f6eb
add eax, 4
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40f7d1
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40f71d
call fcn.00420164
mov ecx, dword [esi + 0xc]
lea eax, [ecx + ebp + 0x1c]
mov edi, 0x10
cmp dword [eax + 0x18], edi
jb 0x40f733
mov eax, dword [eax + 4]
jmp 0x40f736
add eax, 4
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40f762
call fcn.00420164
mov eax, dword [esi + 0xc]
cmp dword [eax + ebp + 0x34], edi
jb 0x40f771
mov edi, dword [eax + ebp + 0x20]
jmp 0x40f775
lea edi, [eax + ebp + 0x20]
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x40f794
call fcn.00420164
mov eax, dword [esi + 0xc]
add eax, ebp
cmp dword [eax + 0x18], 0x10
jb 0x40f7a4
mov eax, dword [eax + 4]
jmp 0x40f7a7
add eax, 4
push edi
push eax
push str.Copied__s_to__s_successfully
call fcn.0040d8e0
add esp, 0xc
inc ebx
add ebp, 0xd8
cmp ebx, dword [esp + 0x18]
jb 0x40f500
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov dword [esp + 0x18], eax
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x40f7fb
call fcn.00420164
mov eax, dword [esi + 0xc]
mov ebp, ebx
imul ebp, ebp, 0xd8
cmp dword [eax + ebp + 0x34], 0x10
jb 0x40f813
mov edi, dword [eax + ebp + 0x20]
jmp 0x40f817
lea edi, [eax + ebp + 0x20]
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, 0x4bda12f7
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jb 0x40f836
call fcn.00420164
mov esi, dword [esi + 0xc]
add esi, ebp
cmp dword [esi + 0x18], 0x10
jb 0x40f846
mov esi, dword [esi + 4]
jmp 0x40f849
add esi, 4
push edi
mov edi, dword [esp + 0x1c]
push esi
push str.Could_not_copy__s_to__s
call fcn.0040d7c0
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret