Function at 0x49b3b0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e8fd7
mov eax, dword fs:[0]
push eax
sub esp, 0x700
mov eax, dword [0x7ce4e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x6ec], ebx
jne 0x49b3f8
mov eax, dword [esi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebp + 0x10], 0
jne 0x49b4ec
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x49b420
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x49b827
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp + 0xc], 0
mov edi, eax
jne 0x49b46f
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x49b44f
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49b827
shr eax, 4
not al
test al, 1
je 0x49b827
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x49b47e
mov eax, dword [esi + 8]
push 0
push 0
push 0
push 0
push 0
add eax, 4
lea ecx, [ebp - 0x134]
push eax
call fcn.0049a8e0
push edi
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.0049c7f0
mov ecx, eax
call fcn.0049c950
mov ecx, ebx
call fcn.0049c7f0
lea ecx, [ebp - 0x134]
push ecx
push 0x791f34
mov ecx, eax
call fcn.0049ca90
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x49b823
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
jmp 0x49b816
cmp byte [ebp + 0xc], 0
jne 0x49b521
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x49b501
mov eax, dword [esi + 8]
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49b827
shr eax, 4
not al
test al, 1
je 0x49b827
mov edi, dword [esi + 4]
add edi, 2
lea eax, [edi + edi]
push eax
call fcn.005cff37
mov ebx, eax
add esp, 4
lea eax, [esi + 0xc]
test ebx, ebx
jne 0x49b5ad
cmp byte [esi + 0x11c], bl
jne 0x49b547
mov eax, dword [esi + 8]
push 0
push 0
push 0
push 0
push 0
add eax, 4
lea ecx, [ebp - 0x258]
push eax
call fcn.0049a8e0
mov ecx, dword [ebp - 0x6ec]
lea eax, [ebp - 0x258]
push eax
push 0x791f44
mov dword [ebp - 4], 1
call fcn.0049c7f0
mov ecx, eax
call fcn.0049ca90
cmp byte [ebp - 0x13c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x49b823
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
jmp 0x49b816
cmp byte [esi + 0x11c], 0
jne 0x49b5b9
mov eax, dword [esi + 8]
add eax, 4
push eax
push edi
push ebx
call fcn.005d0460
xor eax, eax
mov dword [ebp - 0x704], ebx
mov word [ebx + edi*2 - 2], ax
add esp, 0xc
mov dword [ebp - 0x6f2], eax
xorps xmm0, xmm0
mov dword [ebp - 0x70c], eax
mov dword [ebp - 0x700], eax
mov eax, 0x454
mov word [ebp - 0x6fc], ax
lea eax, [ebp - 0x70c]
push eax
movlpd qword [ebp - 0x6fa], xmm0
mov dword [ebp - 0x708], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push ebx
mov edi, eax
call fcn.005cff1c
add esp, 4
test edi, edi
je 0x49b827
lea eax, [esi + 0xc]
cmp edi, 0x402
jne 0x49b73e
cmp byte [esi + 0x11c], 0
jne 0x49b642
mov eax, dword [esi + 8]
push 0
push 0
push 0
push 0
push 0
add eax, 4
lea ecx, [ebp - 0x37c]
push eax
call fcn.0049a8e0
push 0x791f5c
lea ecx, [ebp - 0x5c4]
mov dword [ebp - 4], 2
call fcn.00499bd0
mov esi, eax
push 0x402
push 0x791e60
push esi
mov byte [ebp - 4], 3
call fcn.0049a160
push 0x791f78
push 0x791e68
push esi
call fcn.0049a160
add esp, 0x18
cmp byte [esi + 0x11c], 0
je 0x49b6a9
add esi, 0xc
jmp 0x49b6ac
mov esi, dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x6ec]
push eax
call fcn.0049c7f0
mov ecx, eax
call fcn.0049c950
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x6ec]
call fcn.0049c7f0
lea ecx, [ebp - 0x37c]
push ecx
lea ecx, [esi + 4]
push ecx
mov ecx, eax
call fcn.0049ca90
cmp byte [ebp - 0x4a8], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x49b716
mov eax, dword [ebp - 0x5bc]
lea ecx, [ebp - 0x5b8]
cmp eax, ecx
je 0x49b716
push eax
call fcn.005cff1c
add esp, 4
cmp byte [ebp - 0x260], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x49b823
mov eax, dword [ebp - 0x374]
lea ecx, [ebp - 0x370]
jmp 0x49b816
cmp byte [esi + 0x11c], 0
jne 0x49b74a
mov eax, dword [esi + 8]
push 0
push 0
push 0
push 0
push 0
add eax, 4
lea ecx, [ebp - 0x4a0]
push eax
call fcn.0049a8e0
push 0x791f5c
lea ecx, [ebp - 0x6e8]
mov dword [ebp - 4], 4
call fcn.00499bd0
mov esi, eax
push edi
push 0x791e60
push esi
mov byte [ebp - 4], 5
call fcn.0049a160
push 0x791f78
push 0x791e68
push esi
call fcn.0049a160
add esp, 0x18
lea eax, [esi + 0xc]
cmp byte [esi + 0x11c], 0
jne 0x49b7ae
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x4a0]
add eax, 4
push ecx
mov ecx, dword [ebp - 0x6ec]
push eax
call fcn.0049c7f0
mov ecx, eax
call fcn.0049ca90
cmp byte [ebp - 0x5cc], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x49b7f7
mov eax, dword [ebp - 0x6e0]
lea ecx, [ebp - 0x6dc]
cmp eax, ecx
je 0x49b7f7
push eax
call fcn.005cff1c
add esp, 4
cmp byte [ebp - 0x384], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x49b823
mov eax, dword [ebp - 0x498]
lea ecx, [ebp - 0x494]
cmp eax, ecx
je 0x49b823
push eax
call fcn.005cff1c
add esp, 4
xor al, al
jmp 0x49b829
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005be209
mov esp, ebp
pop ebp
ret 0xc