Function at 0x407ee0
Capabilities:
Copy file
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42402d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x290
mov eax, dword [0x434014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x407f2f
mov eax, dword [edi]
lea ecx, [ebp - 0x280]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x407f52
test byte [ebp - 0x280], 0x10
push eax
je 0x407f72
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040e3a6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x407f82
mov eax, dword [esi]
lea ecx, [ebp - 0x280]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x407faa
test byte [ebp - 0x280], 0x10
push eax
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
je 0x40803f
call eax
xor eax, eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
sub esp, 8
mov dword [ebp - 4], eax
mov ecx, esi
call fcn.00409760
cmp eax, 0xffffffff
je 0x40802b
cmp dword [esi + 0x10], eax
mov ecx, esi
mov dword [ebp - 0x29c], 0
cmovb eax, dword [esi + 0x10]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x28c], 0
mov dword [ebp - 0x288], 7
jb 0x408006
mov ecx, dword [esi]
push eax
push ecx
lea ecx, [ebp - 0x29c]
call fcn.00404100
movups xmm0, xmmword [ebp - 0x29c]
movups xmmword [ebp - 0x2c], xmm0
movq xmm0, qword [ebp - 0x28c]
movq qword [ebp - 0x1c], xmm0
lea ecx, [ebp - 0x2c]
call fcn.004081d0
test al, al
jne 0x408046
mov byte [ebp - 0x281], al
jmp 0x40806f
call eax
jmp 0x4080f5
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x408050
mov ecx, dword [esi]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x40805a
mov eax, dword [edi]
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4080b4
mov byte [ebp - 0x281], 1
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4080a9
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40809f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4081bc
push edx
push ecx
call fcn.0040e74a
add esp, 8
mov al, byte [ebp - 0x281]
jmp 0x407f54
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4080f5
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4080eb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4081bc
push edx
push ecx
call fcn.0040e74a
add esp, 8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4080ff
mov eax, dword [esi]
lea ecx, [ebp - 0x280]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x408198
test byte [ebp - 0x280], 0x10
push eax
je 0x408128
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x408198
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x408138
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x408198
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x408191
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x408158
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x408191
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x40816d
mov ecx, dword [esi]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x408191
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x408186
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x408198
mov ecx, esi
call fcn.00408850
cmp dword [esi + 0x14], 8
jb 0x4081a0
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x4081a8
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne al
jmp 0x407f54
call fcn.0041260f
int3