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

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov dword [rsp + 0x40], 0
mov rcx, qword [rsp + 0xa0]
call fcn.140038a40
movzx eax, al
test eax, eax
jne 0x140037ea2
mov rcx, qword [rsp + 0xa0]
call fcn.140003390
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0x10
je 0x140037e98
mov dl, 0x5c
mov rcx, qword [rsp + 0xa0]
call fcn.140004650
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xffffffff
jne 0x140037cbd
mov dl, 0x2f
mov rcx, qword [rsp + 0xa0]
call fcn.140004650
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xffffffff
jne 0x140037cbd
mov dword [rsp + 0x58], 0xf
mov rcx, qword [rsp + 0xa0]
call fcn.1400031c0
mov eax, dword [rsp + 0x58]
jmp 0x140037ec3
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0xa0]
call fcn.1400040b0
lea rcx, [rsp + 0x60]
call fcn.140003390
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x4c], eax
cmp dword [rsp + 0x4c], 0xffffffff
jne 0x140037cff
mov dword [rsp + 0x40], 0xf
jmp 0x140037e8c
mov eax, dword [rsp + 0x4c]
and eax, 0x400
test eax, eax
je 0x140037d3f
lea rax, [rsp + 0x78]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
call fcn.140002f90
mov rcx, rax
call fcn.1400382c0
cmp eax, 0x17
jne 0x140037d3f
mov dword [rsp + 0x40], 0x13
jmp 0x140037e8c
cmp dword [rsp + 0x48], 0xffffffff
jne 0x140037dac
mov rcx, qword [rsp + 0xa0]
call fcn.140003390
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
mov r9, qword [rsp + 0xa8]
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x140037d9c
mov dword [rsp + 0x40], 0xd
jmp 0x140037da7
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140037e8c
mov eax, dword [rsp + 0x48]
and eax, 0x400
test eax, eax
je 0x140037e8c
lea rax, [rsp + 0x80]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x70]
call fcn.140002f90
mov rcx, rax
call fcn.1400382c0
cmp eax, 0x14
jne 0x140037e84
movzx eax, byte [rsp + 0xb0]
test eax, eax
je 0x140037e84
mov rcx, qword [rsp + 0xa0]
call fcn.140003390
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x140037e7a
mov rcx, qword [rsp + 0xa0]
call fcn.140003390
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
mov r9, qword [rsp + 0xa8]
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0xffffffffffffffff
jne 0x140037e6d
mov dword [rsp + 0x40], 0xd
jmp 0x140037e78
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140037e82
mov dword [rsp + 0x40], 0xe
jmp 0x140037e8c
mov dword [rsp + 0x40], 0x12
lea rcx, [rsp + 0x60]
call fcn.1400031c0
jmp 0x140037ea0
mov dword [rsp + 0x40], 0xf
jmp 0x140037eaa
mov dword [rsp + 0x40], 0xf
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x5c], eax
mov rcx, qword [rsp + 0xa0]
call fcn.1400031c0
mov eax, dword [rsp + 0x5c]
add rsp, 0x98
ret