Function at 0x40d070
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46bfa8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x48d814]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, 0xf
mov esi, ecx
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x84]
call fcn.004087c0
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x84]
call fcn.004087c0
cmp dword [ebp - 0x18], ebx
je 0x40d1d7
cmp dword [ebp - 0x34], ebx
je 0x40d1d7
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x64]
push eax
call fcn.00407cd0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x80]
push edx
call fcn.00407cd0
add esp, 0x10
mov byte [ebp - 4], 3
cmp dword [ebp - 0x4c], 8
mov eax, dword [ebp - 0x60]
jae 0x40d127
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x60]
mov eax, 8
cmp dword [ebp - 0x4c], eax
jae 0x40d13e
lea ecx, [ebp - 0x60]
cmp dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x7c]
jae 0x40d149
lea eax, [ebp - 0x7c]
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, esi
test eax, eax
jne 0x40d182
call fcn.0040a190
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x80]
call fcn.00402020
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00402020
mov byte [ebp - 4], bl
mov esi, 0x10
jmp 0x40d225
call fcn.0040a240
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x80]
call fcn.00402020
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00402020
mov byte [ebp - 4], bl
mov esi, 0x10
cmp dword [ebp - 0x30], esi
jb 0x40d1b8
mov edx, dword [ebp - 0x44]
push edx
call fcn.00450138
add esp, 4
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], esi
jb 0x40d257
mov eax, dword [ebp - 0x28]
push eax
jmp 0x40d24f
push 0x12
push str.invalid_file_name.
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x60], bl
call fcn.00402920
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x64]
push ecx
push ebx
mov ecx, esi
call fcn.0040a0e0
mov byte [ebp - 4], 1
mov esi, 0x10
cmp dword [ebp - 0x4c], esi
jb 0x40d219
mov edx, dword [ebp - 0x60]
push edx
call fcn.00450138
add esp, 4
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x60], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0x30], esi
jb 0x40d236
mov eax, dword [ebp - 0x44]
push eax
call fcn.00450138
add esp, 4
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
mov byte [ebp - 0x44], bl
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], esi
jb 0x40d257
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.00450138
add esp, 4
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045075f
mov esp, ebp
pop ebp
ret 4