Function at 0x471bc0
Capabilities:
Copy file
Delete file
Get common file path
Get file attributes
Parse pe header
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2bf8
push 0x4a7764
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffdc0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x120], 0
cmp dword [ebp + 0xc], 0
je 0x471c19
push 0x104
call fcn.0047203e
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041eee0
add esp, 0xc
jmp 0x471c21
call fcn.0047203e
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], 0
je 0x471cd7
push 1
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0042c137
add esp, 0xc
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x471cd5
mov eax, dword [ebp + 0xc]
push eax
push str._s._bak
push 0x104
lea ecx, [ebp - 0x120]
push ecx
call fcn.0040a150
add esp, 0x10
push 0
lea edx, [ebp - 0x120]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x471c8b
xor eax, eax
jmp 0x47202d
push 0x80
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x120]
push eax
call fcn.0042c137
add esp, 0xc
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x471cd5
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
jmp 0x47202d
jmp 0x471cef
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0042c137
add esp, 0xc
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x471cff
xor eax, eax
jmp 0x47202d
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp - 0x12c]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x5a4d
jne 0x471fb9
mov ecx, dword [ebp - 0x12c]
mov edx, dword [ebp - 0x12c]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x130], edx
mov eax, dword [ebp - 0x130]
cmp dword [eax], 0x4550
jne 0x471fb9
mov ecx, dword [ebp - 0x130]
xor edx, edx
mov dx, word [ecx + 6]
cmp edx, 2
jl 0x471fb9
mov eax, dword [ebp - 0x130]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ebp - 0x130]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 0x134], eax
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x134]
mov eax, dword [ecx + 0x28]
cmp eax, dword [edx + 0xc]
jb 0x471fb9
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x134]
mov eax, dword [ecx + 0x28]
cmp eax, dword [edx + 0x34]
jae 0x471fb9
mov ecx, dword [ebp - 0x130]
mov edx, dword [ebp - 0x134]
mov eax, dword [ecx + 0x28]
sub eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x134]
add eax, dword [ecx + 0x14]
mov edx, dword [ebp - 0x124]
add edx, eax
mov dword [ebp - 0x13c], edx
mov eax, dword [ebp - 0x13c]
add eax, 0x24
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
mov dword [ebp - 0x138], ecx
push 5
push 0x51dd80
mov edx, dword [ebp - 0x138]
push edx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x471fb9
mov eax, dword [ebp - 0x138]
add eax, 0x6f5d
mov dword [ebp - 0x138], eax
push 0x12
push str.sens.pdb
mov ecx, dword [ebp - 0x138]
push ecx
call sub.ntdll.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x471fb9
mov edx, dword [ebp - 0x138]
add edx, 0x11
mov dword [ebp - 0x138], edx
mov eax, dword [ebp - 0x138]
xor ecx, ecx
mov cl, byte [eax + 5]
cmp ecx, 0x68
jne 0x471fb9
mov edx, dword [ebp - 0x138]
xor eax, eax
mov al, byte [edx + 0xa]
cmp eax, 0x31
jne 0x471fb9
mov ecx, dword [ebp - 0x138]
xor edx, edx
mov dl, byte [ecx + 0xd]
cmp edx, 0x68
jne 0x471fb9
mov eax, dword [ebp - 0x138]
xor ecx, ecx
mov cl, byte [eax + 0x12]
cmp ecx, 0x31
jne 0x471fb9
push 0x104
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp + eax - 0x250]
mov dword [ebp - 0x148], eax
mov ecx, dword [ebp - 0x148]
mov byte [ecx], 0x5c
mov edx, dword [ebp - 0x148]
add edx, 1
mov dword [ebp - 0x148], edx
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 1]
mov dword [ebp - 0x144], ecx
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 0xe]
xor eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x148]
mov dword [ecx], eax
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 6]
xor eax, dword [ebp - 0x144]
mov ecx, dword [ebp - 0x148]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x148]
mov byte [edx + 8], 0
push 0x51dd9c
push 0x104
mov eax, dword [ebp - 0x148]
push eax
call fcn.00407f00
mov dword [ebp - 0x128], 1
lea ecx, [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and eax, 0x10
test eax, eax
jne 0x471f9d
lea edx, [ebp - 0x14c]
push edx
lea eax, [ebp - 0x250]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
jne 0x471f9d
cmp dword [ebp + 0x10], 0
je 0x471f88
push 0x104
lea ecx, [ebp - 0x250]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.0041eee0
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x471f9d
lea eax, [ebp - 0x250]
push eax
call fcn.0042ab25
add esp, 4
cmp dword [ebp + 8], 0
je 0x471fb9
push 6
push 0x51dda4
mov ecx, dword [ebp - 0x140]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
jmp 0x471fd2
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x128], 1
jne 0x472012
movsx eax, byte [ebp - 0x120]
test eax, eax
je 0x472010
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0042aa4b
add esp, 8
mov dword [ebp - 0x128], 2
jmp 0x472027
cmp dword [ebp - 0x128], 0
jne 0x472027
cmp dword [ebp + 0x10], 0
je 0x472027
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret