Function at 0x14001c780
Capabilities:
Get common file path
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov r12, rcx
xor r13b, r13b
mov edx, 0x104
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor r15d, r15d
mov rbx, qword [0x1400771e0]
mov rdx, rbx
mov rdi, qword [0x1400771d8]
sub rdx, rdi
sar rdx, 6
test rdx, rdx
je 0x14001cd49
xor esi, esi
xor r14d, r14d
cmp rdx, rsi
jbe 0x14001d0bc
lea rcx, [r14 + rdi]
cmp qword [rcx + 0x18], 0x10
jb 0x14001c7f9
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, qword [0x1400771d8]
test rax, rax
mov rax, qword [0x1400771e0]
jne 0x14001cc58
sub rax, rcx
sar rax, 6
cmp rax, rsi
jbe 0x14001d0bc
lea rbx, [r14 + rcx]
lea rcx, [0x140060e18]
call fcn.1403db833
nop
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], 0
jne 0x14001c840
mov rdx, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x14001c858
mov rbx, qword [rbx]
mov qword [rsp + 0x20], r8
mov r9, rax
mov rcx, rbx
call fcn.1400188a0
mov rcx, qword [0x1400771d8]
cmp rax, 0xffffffffffffffff
mov rax, qword [0x1400771e0]
je 0x14001ca64
sub rax, rcx
sar rax, 6
cmp rax, rsi
jbe 0x14001d09e
lea rdi, [r14 + rcx]
lea rcx, [0x140060e20]
call fcn.1403db833
nop
mov rbx, rax
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], al
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14001c8c4
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.140010610
nop
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], 0
jne 0x14001c8e3
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140010770
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], bl
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x14001c937
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140010770
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14001c9be
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001c9b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001d092
call fcn.140021138
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14001ca0e
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001ca09
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001d098
call fcn.140021138
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x14001cc49
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001cc44
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001d086
jmp 0x14001cc44
sub rax, rcx
sar rax, 6
cmp rax, rsi
jbe 0x14001d0b6
lea rdi, [r14 + rcx]
lea rcx, [0x140060e2c]
call fcn.1403db833
nop
mov rbx, rax
xor eax, eax
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], 0xf
mov byte [rbp - 0x80], al
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x14001cab0
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.140010610
nop
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rbx + r8], 0
jne 0x14001cad0
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140010770
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x50], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], bl
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0x10
jb 0x14001cb24
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.140010770
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
lea rcx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0x10
cmovae rcx, qword [rsp + 0x60]
xor edx, edx
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14001cbab
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001cba6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001d0a4
call fcn.140021138
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], 0xf
mov byte [rsp + 0x60], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x14001cbfb
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001cbf6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001d0aa
call fcn.140021138
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], 0xf
mov byte [rsp + 0x40], 0
mov rdx, qword [rbp - 0x68]
cmp rdx, 0x10
jb 0x14001cc49
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001cc44
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001d0b0
call fcn.140021138
dec r15d
dec rsi
sub r14, 0x40
jmp 0x14001cd1b
sub rax, rcx
sar rax, 6
cmp rax, rsi
jbe 0x14001d0bc
add rcx, r14
cmp qword [rcx + 0x18], 0x10
jb 0x14001cc75
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
mov rcx, qword [0x1400771e0]
mov rdx, qword [0x1400771d8]
sub rcx, rdx
sar rcx, 6
cmp rcx, rsi
jbe 0x14001d0bc
add rdx, 0x20
add rdx, r14
cmp qword [rdx + 0x18], 0x10
jb 0x14001ccad
mov rdx, qword [rdx]
mov rcx, rbx
call qword [0x14004f1d8]
sub rax, rbx
mov qword [rbp + 0x208], rax
jne 0x14001cceb
lea rcx, [0x140060e30]
call fcn.1403db833
nop
mov rdx, rax
lea rcx, [0x1400759e0]
call fcn.140010d70
mov rcx, rax
call fcn.140010fe0
mov r13b, 1
jmp 0x14001cd1b
mov rdx, qword [0x140077250]
cmp rdx, qword [0x140077258]
je 0x14001cd08
mov qword [rdx], rax
add qword [0x140077250], 8
jmp 0x14001cd1b
lea r8, [rbp + 0x208]
lea rcx, [0x140077248]
call fcn.140018700
inc r15d
inc rsi
add r14, 0x40
mov rbx, qword [0x1400771e0]
mov rdx, rbx
mov rdi, qword [0x1400771d8]
sub rdx, rdi
sar rdx, 6
movsxd rax, r15d
cmp rax, rdx
jb 0x14001c7e2
xor r14d, r14d
sub rbx, rdi
sar rbx, 6
test rbx, rbx
je 0x14001ce2b
xor esi, esi
xor r15d, r15d
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp + 0xb0]
call fcn.140023b70
cmp rbx, rsi
jbe 0x14001d0c8
lea rcx, [r15 + rdi]
cmp qword [rcx + 0x18], 0x10
jb 0x14001cd8c
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
mov r8d, 0x104
lea rdx, [rbp + 0xb0]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
movsxd rcx, r14d
mov rax, qword [0x1400771e0]
mov rdx, qword [0x1400771d8]
sub rax, rdx
sar rax, 6
cmp rax, rcx
jbe 0x14001d0c8
shl rcx, 6
add rcx, rdx
call fcn.14001fc40
test rax, rax
je 0x14001cfb8
mov rcx, qword [0x140077250]
mov rdx, qword [0x140077248]
sub rcx, rdx
sar rcx, 3
cmp rcx, rsi
jbe 0x14001d0c2
add qword [rdx + rsi*8], rax
inc r14d
inc rsi
add r15, 0x40
mov rbx, qword [0x1400771e0]
mov rdi, qword [0x1400771d8]
sub rbx, rdi
sar rbx, 6
movsxd rax, r14d
cmp rax, rbx
jb 0x14001cd61
mov rcx, r12
cmp qword [r12 + 0x18], 0x10
jb 0x14001ce3a
mov rcx, qword [r12]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x120089
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14001cebb
mov dword [rbp + 0x208], 0
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov ecx, eax
call fcn.14002166c
mov qword [0x140077238], rax
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x208]
mov r8d, ebx
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r11, qword [0x140077238]
test r11, r11
je 0x14001cfed
mov r10, qword [0x140077240]
test r10, r10
je 0x14001cfe4
xor r9d, r9d
mov rcx, qword [0x1400771c8]
mov rdx, qword [0x1400771c0]
sub rcx, rdx
sar rcx, 3
test rcx, rcx
je 0x14001cf3d
xor r8d, r8d
movabs rbx, 0xfffffffec0000000
cmp rcx, r8
jbe 0x14001d080
mov rdx, qword [rdx + r8*8]
lea rax, [r10 + rbx]
add qword [rdx + r11], rax
inc r9d
inc r8
mov rcx, qword [0x1400771c8]
mov rdx, qword [0x1400771c0]
sub rcx, rdx
sar rcx, 3
movsxd rax, r9d
cmp rax, rcx
jb 0x14001cf05
xor r10d, r10d
mov rcx, qword [0x1400771f8]
mov r9, qword [0x1400771f0]
sub rcx, r9
sar rcx, 3
test rcx, rcx
je 0x14001d012
xor edx, edx
mov rax, qword [0x140077250]
mov r8, qword [0x140077248]
sub rax, r8
sar rax, 3
cmp rax, rdx
jbe 0x14001d080
mov r8, qword [r8 + rdx*8]
cmp rcx, rdx
jbe 0x14001d080
mov rax, qword [r9 + rdx*8]
mov qword [r11 + rax], r8
inc r10d
inc rdx
mov rcx, qword [0x1400771f8]
mov r9, qword [0x1400771f0]
sub rcx, r9
sar rcx, 3
movsxd rax, r10d
cmp rax, rcx
jb 0x14001cf60
jmp 0x14001d012
lea rcx, [0x140060e40]
call fcn.1403db833
nop
mov rdx, rax
lea rcx, [0x1400759e0]
call fcn.140010d70
mov rcx, rax
call fcn.140010fe0
mov r13b, 1
jmp 0x14001ce2b
lea rcx, [0x140060e50]
jmp 0x14001cff4
lea rcx, [0x140060e60]
call fcn.1403db833
nop
mov rdx, rax
lea rcx, [0x1400759e0]
call fcn.140010d70
mov rcx, rax
call fcn.140010fe0
nop
mov rdx, qword [r12 + 0x18]
cmp rdx, 0x10
jb 0x14001d04a
inc rdx
mov rcx, qword [r12]
cmp rdx, 0x1000
jb 0x14001d045
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14001d08c
mov rcx, r8
call fcn.140021138
mov qword [r12 + 0x10], 0
mov qword [r12 + 0x18], 0xf
mov byte [r12], 0
movzx eax, r13b
mov rbx, qword [rsp + 0x310]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400181b0
nop
call fcn.14002e15c
nop
call fcn.14002e15c
nop
call fcn.14002e15c
nop
call fcn.14002e15c
nop
call fcn.1400181b0
nop
call fcn.14002e15c
nop
call fcn.14002e15c
nop
call fcn.14002e15c
int3
call fcn.1400181b0
int3
call fcn.1400181b0
int3
call fcn.1400181b0
int3
call fcn.1400181b0
int3