Function at 0x4511f0
Capabilities:
Check if file exists
Delete directory
Delete file
Encode data using xor
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x49d008]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.0044c9d0
mov dword [esp + 0xc], 0x60
mov eax, dword [esp + 0xc]
xor al, 0x57
mov byte [esp + 0x10], al
mov eax, dword [esp + 0xc]
inc al
xor al, 0x48
mov byte [esp + 0x11], al
mov eax, dword [esp + 0xc]
add al, 2
xor al, 0x49
mov byte [esp + 0x12], al
mov eax, dword [esp + 0xc]
add al, 3
xor al, 0x54
mov byte [esp + 0x13], al
mov eax, dword [esp + 0xc]
add al, 4
xor al, 0x45
mov byte [esp + 0x14], al
mov eax, dword [esp + 0xc]
add al, 5
xor al, 0x20
mov byte [esp + 0x15], al
mov eax, dword [esp + 0xc]
add al, 6
xor al, 0x48
mov byte [esp + 0x16], al
mov eax, dword [esp + 0xc]
add al, 7
xor al, 0x57
mov byte [esp + 0x17], al
mov eax, dword [esp + 0xc]
add al, 8
xor al, 0x49
mov byte [esp + 0x18], al
mov eax, dword [esp + 0xc]
add al, 9
xor al, 0x44
mov byte [esp + 0x19], al
mov eax, dword [esp + 0xc]
add al, 0xa
xor al, 0x20
mov byte [esp + 0x1a], al
mov eax, dword [esp + 0xc]
add al, 0xb
xor al, 0x4c
mov byte [esp + 0x1b], al
mov eax, dword [esp + 0xc]
add al, 0xc
xor al, 0x4f
mov byte [esp + 0x1c], al
mov eax, dword [esp + 0xc]
add al, 0xd
xor al, 0x43
mov byte [esp + 0x1d], al
mov eax, dword [esp + 0xc]
add al, 0xe
xor al, 0x41
mov byte [esp + 0x1e], al
mov eax, dword [esp + 0xc]
add al, 0xf
xor al, 0x54
mov byte [esp + 0x1f], al
mov eax, dword [esp + 0xc]
add al, 0x10
xor al, 0x45
mov byte [esp + 0x20], al
mov eax, dword [esp + 0xc]
add al, 0x11
xor al, 0x44
mov byte [esp + 0x21], al
mov eax, dword [esp + 0xc]
add al, 0x12
xor al, 0x2e
mov byte [esp + 0x22], al
mov al, byte [esp + 0x10]
mov byte [esp + 0x23], 0
xor eax, eax
mov cl, byte [esp + eax + 0x10]
mov edx, dword [esp + 0xc]
add dl, al
xor dl, cl
mov byte [esp + eax + 0x10], dl
inc eax
cmp eax, 0x13
jb 0x451305
lea edx, [esp + 0x10]
mov byte [esp + 0x23], 0
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x451327
mov esi, dword [esp + 0x24]
lea eax, [esp + 0x10]
sub edx, ecx
cmp dword [esp + 0x38], 0x10
push edx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x28]
cmovae ecx, esi
push eax
call fcn.00476770
add esp, 8
test al, al
je 0x4513f2
mov ecx, dword [0x49ffc8]
mov eax, 0x2aaaaaab
mov edi, dword [0x49ffc4]
xor ebx, ebx
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4513f2
xor esi, esi
nop
cmp dword [esi + edi + 0x14], 0x10
lea eax, [esi + edi]
jb 0x45138c
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4513c7
mov eax, dword [0x4a1728]
add eax, esi
cmp dword [eax + 0x14], 0x10
jb 0x4513a7
mov eax, dword [eax]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
mov eax, dword [0x49ffc4]
add esp, 4
add eax, esi
cmp dword [eax + 0x14], 0x10
jb 0x4513c0
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [0x49ffc8]
mov eax, 0x2aaaaaab
mov edi, dword [0x49ffc4]
inc ebx
sub ecx, edi
add esi, 0x18
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jb 0x451380
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
cmp eax, 0x10
jb 0x451428
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x45141e
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x45141e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
call fcn.00476ef0
add esp, 8
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00476b4c
mov esp, ebp
pop ebp
ret