Function at 0x40c691
Capabilities:
Copy file
Delete file
Move file

Disassembly:
mov eax, 0x4536b0
call fcn.004324bc
sub esp, 0x38
push ebx
push esi
push edi
push 1
mov esi, 0x4747d0
pop ebx
lea ecx, [ebp - 0x18]
push esi
mov dword [ebp - 4], ebx
xor edi, edi
call fcn.004482f5
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004482f5
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.004482f5
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.00445734
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
mov byte [ebp - 4], 5
call fcn.00447ffc
lea eax, [ebp - 0x1c]
push eax
call fcn.0040b60c
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00448374
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.00448287
push ecx
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.00447ffc
call fcn.0040b31f
lea eax, [ebp - 0x18]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.00447ffc
lea eax, [ebp - 0x1c]
push eax
call fcn.0040b47f
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00448374
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.00448287
push ebx
push dword [ebp - 0x14]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x40c972
mov ecx, 0x474988
call fcn.00421cc6
cmp eax, ebx
jne 0x40c94f
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
push str.WININIT.INI
call fcn.004482f5
push ecx
mov ecx, 0x474930
mov eax, esp
mov dword [ebp - 0x24], esp
push edi
push eax
mov byte [ebp - 4], 8
call fcn.004033f9
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 5
push eax
call fcn.0040bffd
add esp, 0x10
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 9
call fcn.00448374
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call fcn.00448287
lea eax, [ebp - 0x44]
push edi
push eax
push ecx
mov esi, str.rename
mov ecx, esp
mov dword [ebp - 0x28], esp
push esi
call fcn.004482f5
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
mov byte [ebp - 4], 0xa
call fcn.00447ffc
mov byte [ebp - 4], 5
call fcn.0040d5db
add esp, 0xc
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.00447ffc
lea eax, [ebp - 0x20]
push eax
call fcn.0040c23a
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x1c]
push str.NUL
push eax
mov byte [ebp - 4], 0xb
call fcn.00448544
push eax
lea ecx, [ebp - 0x44]
push dword [ebp - 0x3c]
mov byte [ebp - 4], 0xc
call fcn.00445a09
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xb
call fcn.00448287
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call fcn.00448287
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
call fcn.00447ffc
lea eax, [ebp - 0x28]
push eax
call fcn.0040c23a
pop ecx
pop ecx
push eax
push 0x46f274
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
mov byte [ebp - 4], 0xd
call fcn.00447ffc
lea eax, [ebp - 0x24]
push eax
call fcn.0040c23a
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 0xe
call fcn.004484d0
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 0xf
call fcn.0044846a
push eax
lea ecx, [ebp - 0x44]
push dword [ebp - 0x3c]
mov byte [ebp - 4], 0x10
call fcn.00445a09
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xf
call fcn.00448287
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xe
call fcn.00448287
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xd
call fcn.00448287
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.00448287
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push esi
call fcn.004482f5
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
mov byte [ebp - 4], 0x11
call fcn.00447ffc
mov byte [ebp - 4], 5
call fcn.0040d459
pop ecx
lea eax, [ebp - 0x44]
pop ecx
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push esi
call fcn.004482f5
push ecx
mov byte [ebp - 4], 0x12
mov ecx, esp
mov dword [ebp - 0x2c], esp
lea eax, [ebp - 0x10]
push eax
call fcn.00447ffc
mov byte [ebp - 4], 5
call fcn.0040d4d8
add esp, 0xc
jmp 0x40c970
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 4
push 0
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x40c972
push 4
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call esi
test eax, eax
je 0x40c972
mov edi, ebx
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.00445767
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.00448287
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00448287
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call fcn.00448287
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00448287
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00448287
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret