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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov rax, qword [0x140056040]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov r14, r8
mov rsi, rdx
mov qword [rsp + 0x60], rdx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r15
mov ecx, 0x208
call fcn.1400169f0
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
lea rcx, [rax + 0x208]
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x28]
lea rbx, [rcx + 0x208]
xor edx, edx
mov r8d, 0x208
call fcn.14003ed80
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x40], r15
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
sub r8, rdx
sar r8, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x14003bce7
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14003bce7
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r15
mov rdx, qword [rsp + 0x28]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp word [rdx + r8*2], 0
jne 0x14003b982
mov rcx, rsi
call fcn.140002ae0
mov dword [rsp + 0x20], 1
mov rcx, qword [rsi + 0x10]
mov r10, rsi
cmp qword [rsi + 0x18], 7
jbe 0x14003b9ae
mov r10, qword [rsi]
cmp rcx, 1
jb 0x14003ba0c
dec rcx
mov rax, rbx
cmp rcx, rbx
cmovb rax, rcx
lea r9, [r10 + rax*2]
lea r11, [0x14004dad8]
mov r8, r9
sub r8, r11
cmp word [r9], 0x5c
jne 0x14003b9fd
mov edx, 1
mov rax, r11
movzx ecx, word [rax + r8]
cmp cx, word [rax]
jne 0x14003b9fd
add rax, 2
sub rdx, 1
jne 0x14003b9e1
sub r9, r10
sar r9, 1
jmp 0x14003ba0f
cmp r9, r10
je 0x14003ba0c
sub r9, 2
sub r8, 2
jmp 0x14003b9d2
mov r9, rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
lea r8, [r9 + 1]
cmp qword [rsi + 0x10], r8
cmovb r8, qword [rsi + 0x10]
mov rdx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x14003ba3a
mov rdx, qword [rsi]
lea rcx, [rsp + 0x68]
call fcn.140002ae0
mov edi, 3
mov dword [rsp + 0x20], edi
lea rax, [rsp + 0x68]
cmp rsi, rax
je 0x14003bac3
mov rdx, qword [rsi + 0x18]
cmp rdx, 7
jbe 0x14003ba96
mov rcx, qword [rsi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14003ba91
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003bd2d
mov rcx, r8
call fcn.140016a34
mov qword [rsi + 0x18], 7
movups xmm0, xmmword [rsp + 0x68]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rsp + 0x78]
movups xmmword [rsi + 0x10], xmm1
movdqa xmm0, xmmword [0x14004e320]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r15w
and edi, 0xfffffffd
mov dword [rsp + 0x20], edi
mov rdx, qword [rbp - 0x80]
cmp rdx, 7
jbe 0x14003bb0b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003bb06
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003bd33
call fcn.140016a34
movdqa xmm0, xmmword [0x14004e320]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r15w
mov r8, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 7
jbe 0x14003bb2d
mov r14, qword [r14]
mov rdx, r14
mov rcx, rsi
call fcn.1400024b0
mov rcx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x14003bb45
mov rcx, qword [rsi]
xor r9d, r9d
lea r8, [rbp + 0x10]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
je 0x14003bd0a
xorps xmm0, xmm0
movups xmmword [rbp - 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x68], xmm1
lea rax, [rbp + 0x10]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14003bb72
mov r8, rbx
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x78]
call fcn.140002ae0
nop
lea rax, [rbp - 0x78]
cmp rsi, rax
je 0x14003bbfe
mov rdx, qword [rsi + 0x18]
cmp rdx, 7
jbe 0x14003bbd5
mov rcx, qword [rsi]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14003bbd0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003bd39
mov rcx, r8
call fcn.140016a34
mov qword [rsi + 0x18], 7
movups xmm0, xmmword [rbp - 0x78]
movups xmmword [rsi], xmm0
movups xmm1, xmmword [rbp - 0x68]
movups xmmword [rsi + 0x10], xmm1
movdqa xmm0, xmmword [0x14004e320]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], r15w
mov rdx, qword [rbp - 0x60]
cmp rdx, 7
jbe 0x14003bc3e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003bc39
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003bd33
call fcn.140016a34
movdqa xmm0, xmmword [0x14004e320]
movdqu xmmword [rbp - 0x68], xmm0
mov word [rbp - 0x78], r15w
mov rcx, rsi
cmp qword [rsi + 0x18], 7
jbe 0x14003bc5d
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003bd3f
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x14003bcb8
mov rdx, qword [rsp + 0x38]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003bca5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003bce1
call fcn.140016a34
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r15
mov rax, rsi
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.1400169d0
mov rbx, qword [rsp + 0x360]
add rsp, 0x330
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14001d90c
nop
lea rdx, str.Could_not_get_path_to_loader.
lea rcx, [rsp + 0x48]
call fcn.1400016a0
lea rdx, [0x140054fd0]
lea rcx, [rsp + 0x48]
call fcn.140018638
int3
lea rdx, str.Could_not_get_full_path_to_module.
lea rcx, [rsp + 0x48]
call fcn.1400016a0
lea rdx, [0x140054fd0]
lea rcx, [rsp + 0x48]
call fcn.140018638
nop
call fcn.14001d90c
nop
call fcn.14001d90c
nop
call fcn.14001d90c
nop
mov rdx, rsi
lea rcx, [rbp - 0x58]
call fcn.14003cb60
nop
lea r8, [rbp - 0x58]
lea rcx, [rbp - 0x38]
call fcn.140002710
nop
mov rdx, rax
lea rcx, [rbp - 0x18]
call fcn.140002880
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140001640
lea rdx, [0x140054fd0]
lea rcx, [rsp + 0x48]
call fcn.140018638
int3