Function at 0x100037eb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
push rbp
push rsi
push rdi
mov rax, rsp
sub rsp, 0x1d8
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rbp, rdx
mov rbx, rcx
lea rcx, [rax + 0x38]
call fcn.10001fee0
nop
lea rcx, [rsp + 0x70]
call fcn.10003cea0
nop
lea rcx, [rsp + 0x28]
call fcn.100044f88
nop
lea rcx, [rsp + 0x200]
call fcn.10001fee0
nop
test rbx, rbx
jne 0x100037f3d
lea rdx, [0x10000c050]
lea ecx, [rbx + 3]
call fcn.10003c3c0
nop
lea rcx, [rsp + 0x200]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x28]
call fcn.10004504c
nop
lea rcx, [rsp + 0x70]
call fcn.10003d21c
nop
lea edi, [rbx + 0x57]
jmp 0x1000381c5
mov eax, 0x7fff
mov rcx, rbx
cmp word [rcx], 0
je 0x100037f55
add rcx, 2
sub rax, 1
jne 0x100037f45
test rax, rax
jne 0x100037f98
lea rdx, [0x10000c0b0]
lea ecx, [rax + 3]
call fcn.10003c3c0
nop
lea rcx, [rsp + 0x200]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x28]
call fcn.10004504c
nop
lea rcx, [rsp + 0x70]
call fcn.10003d21c
nop
mov edi, 0xce
jmp 0x1000381c5
lea rax, [rsp + 0x218]
mov qword [rsp + 0x20], rax
mov rdx, rbx
lea rcx, [rsp + 0x218]
call fcn.10001ff98
nop
xor r8d, r8d
lea rdx, [rsp + 0x210]
mov rcx, rax
call fcn.1000349f8
mov edi, eax
test eax, eax
je 0x10003800f
mov r9, rbx
lea r8, [0x10000c100]
mov edx, eax
mov ecx, 3
call fcn.10003c494
nop
lea rcx, [rsp + 0x200]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x28]
call fcn.10004504c
nop
lea rcx, [rsp + 0x70]
call fcn.10003d21c
nop
jmp 0x1000381c5
mov rbx, qword [rsp + 0x210]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp eax, 0xffffffff
jne 0x100038031
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x100038037
shr edi, 3
and edi, 2
test edi, edi
je 0x10003807b
mov r9, rbx
lea r8, [0x10000c148]
mov edx, edi
mov ecx, 3
call fcn.10003c494
nop
lea rcx, [rsp + 0x200]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x28]
call fcn.10004504c
nop
lea rcx, [rsp + 0x70]
call fcn.10003d21c
nop
jmp 0x1000381c5
call fcn.100033614
test eax, eax
jne 0x1000380c2
lea rdx, [0x10000c520]
lea ecx, [rax + 3]
call fcn.10003c3c0
nop
lea rcx, [rsp + 0x200]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x28]
call fcn.10004504c
nop
lea rcx, [rsp + 0x70]
call fcn.10003d21c
nop
mov edi, 5
jmp 0x1000381c5
lea rax, [rsp + 0x218]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x218]
call fcn.10001ff10
nop
lea rdx, [rsp + 0x200]
mov rcx, rax
call fcn.10003ba88
test eax, eax
je 0x100038172
cmp eax, 0x34
jne 0x100038137
mov r9, qword [rsp + 0x200]
mov r8, rbx
lea rdx, [0x10000c280]
lea ecx, [rax - 0x33]
call fcn.10003c3c0
lea rdx, [rsp + 0x200]
lea rcx, [rsp + 0x210]
call fcn.10001ecdc
mov rbx, qword [rsp + 0x210]
jmp 0x100038172
lea rcx, [rsp + 0x200]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x28]
call fcn.10004504c
nop
lea rcx, [rsp + 0x70]
call fcn.10003d21c
nop
lea rcx, [rsp + 0x210]
call fcn.10001fba0
mov eax, 0xe0000302
jmp 0x1000382b5
lea rdx, [rsp + 0x210]
lea rcx, [rsp + 0x70]
call fcn.10003d47c
mov edi, eax
test eax, eax
je 0x1000381d9
mov r9, rbx
lea r8, [0x10000be40]
mov edx, eax
mov ecx, 3
call fcn.10003c494
nop
lea rcx, [rsp + 0x200]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x28]
call fcn.10004504c
nop
lea rcx, [rsp + 0x70]
call fcn.10003d21c
nop
lea rcx, [rsp + 0x210]
call fcn.10001fba0
mov eax, edi
jmp 0x1000382b5
lea r9, [rsp + 0x28]
xor r8d, r8d
lea edx, [r8 + 3]
lea rcx, [rsp + 0x70]
call fcn.1000484c0
mov esi, eax
cmp eax, 0xb7
jne 0x100038237
test rbp, rbp
jne 0x100038208
lea ecx, [rax - 0x60]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x100038230
mov r8, rbp
mov edx, 2
lea rcx, [rsp + 0x28]
call fcn.1000454bc
test eax, eax
je 0x100038230
xor edi, edi
lea rdx, [0x10000c588]
xor ecx, ecx
call fcn.10003c3c0
jmp 0x100038270
mov edi, 0x6e
jmp 0x100038270
mov edi, 0xe0000302
cmp eax, edi
jne 0x100038258
mov r9, rbx
lea r8, [0x10000c5c0]
mov edx, edi
mov ecx, 1
call fcn.10003c494
jmp 0x100038270
mov r9, rbx
lea r8, [0x10000be70]
mov edx, eax
mov ecx, 3
call fcn.10003c494
mov edi, esi
cmp dword [rsp + 0x50], 0
je 0x100038282
lea rcx, [rsp + 0x28]
call fcn.100045390
nop
lea rcx, [rsp + 0x200]
call fcn.10001fba0
nop
lea rcx, [rsp + 0x28]
call fcn.10004504c
nop
lea rcx, [rsp + 0x70]
call fcn.10003d21c
nop
lea rcx, [rsp + 0x210]
call fcn.10001fba0
mov eax, edi
add rsp, 0x1d8
pop rdi
pop rsi
pop rbp
pop rbx
ret