Function at 0x40dcc0
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b37ab
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x4e0138]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x5c], edi
cmp dword [edi + 0x68], 0x10
lea esi, [edi + 0x54]
mov ecx, esi
jb 0x40dcff
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x64], ecx
lea ecx, [ebp - 0x64]
push 0x4c6d48
mov dword [ebp - 0x60], eax
call fcn.004113b0
xorps xmm0, xmm0
test al, al
je 0x40df52
mov byte [edi + 0x20], 1
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
movups xmmword [ebp - 0x94], xmm0
cmp eax, 3
jb 0x40e125
add eax, 0xfffffffd
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40dd5e
mov eax, dword [esi]
push ecx
add eax, 3
lea ecx, [ebp - 0x94]
push eax
call fcn.004127b0
mov dword [ebp - 4], 0
lea ecx, [edi + 0x24]
cmp dword [edi + 0x38], 0x10
jb 0x40dd81
mov ecx, dword [edi + 0x24]
push dword [edi + 0x34]
push ecx
push 0
lea ecx, [ebp - 0x94]
call fcn.00413580
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x18], xmm0
mov byte [ebp - 4], 2
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x80]
cmp ecx, 0x10
jb 0x40de04
mov edx, dword [ebp - 0x94]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40ddfa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e12a
push ecx
push edx
call fcn.004885c3
add esp, 8
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0xf
mov byte [ebp - 0x94], 0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40de50
push 0xa
call edi
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40de22
mov ecx, dword [ebp - 0x5c]
mov eax, dword [esi + 0x10]
add ecx, 0x24
mov dword [ebp - 0x5c], eax
mov eax, closesocket
mov edx, dword [ecx + 0x10]
sub eax, edx
cmp eax, dword [ebp - 0x5c]
jb 0x40e12f
cmp dword [ecx + 0x14], 0x10
jb 0x40de77
mov ecx, dword [ecx]
cmp dword [esi + 0x14], 0x10
jb 0x40de7f
mov esi, dword [esi]
push dword [ebp - 0x5c]
push esi
push edx
push ecx
push ecx
push dword [ebp - 0x60]
lea ecx, [ebp - 0x58]
call fcn.004133f0
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
push ecx
cmovae eax, dword [ebp - 0x58]
push eax
call esi
test eax, eax
jne 0x40debd
push 0xa
call edi
jmp 0x40de97
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.0040b0d0
test al, al
jne 0x40e134
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x40df09
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40deff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e15e
push ecx
push edx
call fcn.004885c3
add esp, 8
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
cmp ecx, 0x10
jb 0x40e10a
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e100
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e15e
jmp 0x40e100
push 3
push 0x4c6d48
lea ecx, [ebp - 0xac]
mov byte [edi + 0x20], 0
movups xmmword [ebp - 0xac], xmm0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
call fcn.004127b0
lea eax, [edi + 0x24]
mov dword [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x40df98
mov eax, dword [eax]
push ecx
push eax
push 0
lea ecx, [ebp - 0xac]
call fcn.00413580
xorps xmm0, xmm0
mov dword [ebp - 0x6c], 0
movups xmmword [ebp - 0x7c], xmm0
mov dword [ebp - 0x68], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x7c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x6c], xmm0
mov dword [eax + 0x10], 0
lea ecx, [ebp - 0x7c]
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
push esi
mov byte [ebp - 4], 4
call fcn.00410200
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x40], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x30], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x68]
cmp ecx, 0x10
jb 0x40e056
mov edx, dword [ebp - 0x7c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e04c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e163
push ecx
push edx
call fcn.004885c3
add esp, 8
mov ecx, dword [ebp - 0x98]
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0xf
mov byte [ebp - 0x7c], 0
cmp ecx, 0x10
jb 0x40e0a2
mov edx, dword [ebp - 0xac]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e098
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e163
push ecx
push edx
call fcn.004885c3
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40e0da
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call edi
push 0xa
call esi
jmp 0x40e0b0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x40e10a
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40e100
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e168
push ecx
push edx
call fcn.004885c3
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048824f
mov esp, ebp
pop ebp
ret
call fcn.004119b0
call fcn.0049a67c
call fcn.00408fb0
mov eax, dword [0x4e3420]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40e146
push eax
call esi
mov eax, dword [0x4e3424]
test eax, eax
je 0x40e152
push eax
call esi
call fcn.0040b000
push 0
call fcn.00499a40
call fcn.0049a67c
call fcn.0049a67c
call fcn.0049a67c
int3