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

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
sub rsp, 0xc0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r13, rcx
cmp qword [rcx + 0x1b8], 0
je 0x100049056
add rcx, 0x1b0
or r8d, 0xffffffff
mov edx, 1
call fcn.100048c10
mov rax, qword [0x1000a1180]
mov qword [rsp + 0x40], rax
mov edx, 0xf7d7
lea rcx, [rsp + 0x40]
call fcn.1000167ac
test eax, eax
setne al
test al, al
jne 0x1000490ab
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
lea rbp, [0x1000a1170]
cmp rcx, rbp
je 0x1000490a4
or rbx, 0xffffffffffffffff
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x1000490a4
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
xor eax, eax
jmp 0x100049477
mov rax, qword [r13 + 0x588]
mov rdi, qword [rsp + 0x40]
sub rdi, rax
movzx ecx, word [rax]
movzx edx, word [rax + rdi]
sub ecx, edx
jne 0x1000490cd
add rax, 2
test edx, edx
jne 0x1000490ba
lea rdi, [0x100002dec]
test ecx, ecx
jne 0x1000490f2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rdi
mov edx, eax
lea rcx, [r13 + 0x588]
call fcn.100016504
mov rsi, qword [r13 + 0x588]
mov ecx, 1
lea rbp, [0x1000a1170]
or rbx, 0xffffffffffffffff
repe cmpsw word [rsi], word [rdi]
je 0x100049437
mov rcx, qword [r13 + 0x588]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100049345
test al, 0x10
je 0x100049345
lea rdi, [0x100003978]
mov rsi, qword [r13 + 0x588]
lea ecx, [rbx + 3]
repe cmpsw word [rsi], word [rdi]
je 0x100049345
lea rdx, [0x100004790]
lea rcx, [rsp + 0x60]
call fcn.10001ea80
nop
lea r8, [rsp + 0x60]
lea rdx, [r13 + 0x588]
lea rcx, [rsp + 0x48]
call fcn.10003aa58
nop
mov rcx, qword [rsp + 0x60]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x100049192
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x100049192
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 7]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, rbx
jne 0x1000492fb
lea rcx, [rsp + 0x78]
call fcn.100042078
nop
lea rdx, [0x100002dec]
lea rcx, [rsp + 0x50]
call fcn.100017e84
nop
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0xf732
mov r9d, 0xf740
mov r8d, 0xf692
mov rdx, qword [r13 + 8]
lea rcx, [rsp + 0x78]
call fcn.1000420cc
movsxd rdi, eax
mov rcx, qword [rsp + 0x50]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x100049242
mov edx, ebx
lock xadd dword [rcx], edx
add edx, ebx
test edx, edx
jg 0x100049242
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
test edi, edi
jns 0x1000492a1
lea rcx, [rsp + 0x78]
call fcn.1000420a4
nop
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x10004927a
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x10004927a
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff4
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x100049299
mov edx, ebx
lock xadd dword [rcx], edx
add edx, ebx
test edx, edx
jg 0x100049299
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rax, rdi
jmp 0x100049477
lea rcx, [rsp + 0x78]
call fcn.1000420a4
nop
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x1000492d5
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x1000492d5
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff4
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x1000492f4
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x1000492f4
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
xor eax, eax
jmp 0x100049477
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x100049437
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x100049437
mov rcx, qword [rsp + 0x48]
add rcx, 0xfffffffffffffff4
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
jmp 0x100049437
lea rcx, [rsp + 0x98]
call fcn.100042078
nop
lea rdx, [0x100002dec]
lea rcx, [rsp + 0x58]
call fcn.100017e84
nop
lea rax, [rsp + 0x58]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0xf732
mov r9d, 0xf740
mov r8d, 0xf692
mov rdx, qword [r13 + 8]
lea rcx, [rsp + 0x98]
call fcn.1000420cc
movsxd rdi, eax
mov rcx, qword [rsp + 0x58]
add rcx, 0xfffffffffffffff4
lea rbp, [0x1000a1170]
or rbx, 0xffffffffffffffff
cmp rcx, rbp
je 0x1000493d0
mov edx, ebx
lock xadd dword [rcx], edx
add edx, ebx
test edx, edx
jg 0x1000493d0
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
test edi, edi
jns 0x100049406
lea rcx, [rsp + 0x98]
call fcn.1000420a4
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x100049401
mov edx, ebx
lock xadd dword [rcx], edx
add edx, ebx
test edx, edx
jg 0x100049401
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
mov rax, rdi
jmp 0x100049477
lea rcx, [rsp + 0x98]
call fcn.1000420a4
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x100049433
mov eax, ebx
lock xadd dword [rcx], eax
add eax, ebx
test eax, eax
jg 0x100049433
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
xor eax, eax
jmp 0x100049477
lea rcx, [r13 + 0x540]
call fcn.1000656dc
mov rdx, qword [rsp + 0x100]
and dword [rdx], 0
mov rcx, qword [rsp + 0x40]
add rcx, 0xfffffffffffffff4
cmp rcx, rbp
je 0x10004946d
mov edx, ebx
lock xadd dword [rcx], edx
add edx, ebx
test edx, edx
jg 0x10004946d
call sub.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_
movabs rax, 1
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret