Function at 0x40d79c
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 5], cl
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40daf3
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 0
xor eax, eax
mov dword [ebp - 0x18], eax
mov dl, 1
mov eax, dword [0x409ac8]
call fcn.00402570
mov dword [ebp - 0xc], eax
mov dl, 1
mov eax, dword [0x409ac8]
call fcn.00402570
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40dac3
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0040a1ec
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.0040a1ec
mov eax, dword [ebp - 0xc]
call fcn.00409d60
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x40d780]
call fcn.00403cd0
add esp, 4
mov eax, dword [ebp - 0xc]
call fcn.00409d60
mov ecx, eax
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
call dword [esi + 8]
mov eax, dword [ebp - 0xc]
call fcn.00409d60
mov esi, eax
mov eax, dword [ebx + 7]
call fcn.00403b14
test eax, eax
jle 0x40d8ba
mov eax, dword [ebx + 7]
call fcn.00403b1c
mov edx, dword [ebx + 7]
mov eax, dword [edx + eax*8]
mov dword [ebp - 0x1c], eax
cmp esi, dword [ebp - 0x1c]
jge 0x40d8ba
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
mov ecx, 1
mov edx, dword [0x40d780]
call fcn.00403cd0
add esp, 4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx]
xor ecx, ecx
mov edx, esi
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [ebp - 0x14]
lea edx, [eax + esi]
mov ecx, dword [ebp - 0x1c]
sub ecx, esi
mov eax, dword [ebp - 0xc]
call fcn.00409ee0
mov byte [ebp - 0x1d], 0
cmp byte [ebx + 2], 0
je 0x40d966
mov eax, dword [ebx + 7]
call fcn.00403b1c
test eax, eax
jl 0x40d9a4
inc eax
mov dword [ebp - 0x24], eax
xor esi, esi
cmp byte [ebp - 0x1d], 0
jne 0x40d8f8
mov eax, dword [ebx + 7]
mov eax, dword [eax + esi*8]
mov edx, dword [ebp - 0x14]
mov al, byte [edx + eax]
mov edx, dword [ebx + 0xb]
cmp al, byte [edx + esi]
jne 0x40d920
inc dword [ebp - 0x18]
mov eax, dword [ebx + 7]
mov edx, dword [eax + esi*8]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [ebx + 0xf]
lea edx, [eax + esi]
mov ecx, 1
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
jmp 0x40d95a
push 0x34
mov ecx, 0x40db08
mov edx, 0x40db10
mov eax, dword [0x415198]
mov eax, dword [eax]
call fcn.0040cce4
cmp eax, 6
jne 0x40d943
mov byte [ebp - 0x1d], 1
jmp 0x40d8f8
mov edx, dword [0x41518c]
mov dl, byte [edx]
mov eax, 0x40db78
call fcn.0040cca4
jmp 0x40daa5
inc esi
dec dword [ebp - 0x24]
jne 0x40d8de
jmp 0x40d9a4
mov eax, dword [ebx + 7]
call fcn.00403b1c
test eax, eax
jl 0x40d9a4
inc eax
mov dword [ebp - 0x24], eax
xor esi, esi
inc dword [ebp - 0x18]
mov eax, dword [ebx + 7]
mov edx, dword [eax + esi*8]
xor ecx, ecx
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0x10]
mov eax, dword [ebx + 0xf]
lea edx, [eax + esi]
mov ecx, 1
mov eax, dword [ebp - 0xc]
mov edi, dword [eax]
call dword [edi + 0xc]
inc esi
dec dword [ebp - 0x24]
jne 0x40d978
cmp dword [ebp - 0x18], 0
je 0x40d9b9
mov eax, dword [ebx + 7]
call fcn.00403b14
cmp eax, dword [ebp - 0x18]
sete byte [ebp - 6]
cmp byte [ebp + 8], 0
je 0x40da2f
cmp byte [ebp - 5], 0
je 0x40da22
lea eax, [ebp - 0x28]
mov ecx, 0x40dbb8
mov edx, dword [ebp - 4]
call fcn.00402e70
mov eax, dword [ebp - 0x28]
call fcn.0040301c
push eax
call sub.kernel32.dll_DeleteFileA
push 0
lea eax, [ebp - 0x2c]
mov ecx, 0x40dbb8
mov edx, dword [ebp - 4]
call fcn.00402e70
mov eax, dword [ebp - 0x2c]
call fcn.0040301c
push eax
mov eax, dword [ebp - 4]
call fcn.0040301c
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x40da22
mov edx, dword [0x41518c]
mov dl, byte [edx]
mov eax, 0x40dbc8
call fcn.0040cca4
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0040a118
jmp 0x40daa5
mov al, byte [ebp - 5]
and al, byte [ebp - 6]
je 0x40da94
lea eax, [ebp - 0x30]
mov ecx, 0x40dbb8
mov edx, dword [ebp - 4]
call fcn.00402e70
mov eax, dword [ebp - 0x30]
call fcn.0040301c
push eax
call sub.kernel32.dll_DeleteFileA
push 0
lea eax, [ebp - 0x34]
mov ecx, 0x40dbb8
mov edx, dword [ebp - 4]
call fcn.00402e70
mov eax, dword [ebp - 0x34]
call fcn.0040301c
push eax
mov eax, dword [ebp - 4]
call fcn.0040301c
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x40da94
mov edx, dword [0x41518c]
mov dl, byte [edx]
mov eax, 0x40dbc8
call fcn.0040cca4
cmp byte [ebp - 6], 0
je 0x40daa5
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.0040a118
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40daca
mov eax, dword [ebp - 0xc]
call fcn.004025a0
mov eax, dword [ebp - 0x10]
call fcn.004025a0
ret