Function at 0x1400aa3a8
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 7]
sub rsp, 0x88
mov rax, qword [0x1402aaed0]
xor rax, rsp
mov qword [rbp - 9], rax
mov rax, qword [rbp + 0x6f]
xor r14d, r14d
mov r15, qword [rbp + 0x7f]
mov rbx, rdx
mov rdx, qword [rbp + 0x77]
mov r13, r9
mov qword [rbp - 0x31], rdx
mov r12, r8
mov qword [rbp - 0x39], rax
mov qword [r15], r14
mov qword [rdx], r14
mov rdx, rcx
mov qword [rax], r14
lea rcx, [rbp - 0x41]
mov qword [r9], r14
mov qword [r8], r14
call fcn.140093374
mov rdi, qword [rbp - 0x41]
mov dword [rbp - 0x51], eax
mov qword [rbp - 0x41], rdi
test rdi, rdi
jne 0x1400aa580
movdqa xmm0, xmmword [0x14028a3e0]
lea rsi, [0x1402af820]
mov dword [rsp + 0x28], 0x1000
or r9d, 0xffffffff
mov r8, rbx
mov qword [rsp + 0x20], rsi
xor edx, edx
mov qword [rbp - 0x49], r14
mov ecx, 0xfde9
movdqu xmmword [rbp - 0x19], xmm0
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r8, [0x140244b2c]
mov rdx, rsi
lea rcx, [rbp - 0x49]
call fcn.1401bc86c
mov rcx, qword [rbp - 0x49]
test rcx, rcx
jne 0x1400aa47a
xor eax, eax
jmp 0x1400aa6de
mov edx, 0xfffffff0
lea r8d, [rdx + 0x12]
call fcn.1401bcd10
mov r9, qword [rbp - 0x49]
lea rcx, [rbp - 0x29]
mov edx, 1
lea r8d, [rdx + 0xf]
call fcn.1401c279c
mov rax, qword [rbp - 0x29]
cmp rax, qword [rbp - 0x19]
jne 0x1400aa52e
mov rax, qword [rbp - 0x21]
cmp rax, qword [rbp - 0x11]
jne 0x1400aa52e
mov rcx, qword [rbp - 0x49]
mov edx, 0xffffffec
lea r8d, [rdx + 0x15]
call fcn.1401bcd10
mov r9, qword [rbp - 0x49]
lea rcx, [rbp - 0x51]
mov edx, 1
lea r8d, [rdx + 3]
call fcn.1401c279c
cmp rax, 4
jne 0x1400aa574
mov ecx, dword [rbp - 0x51]
call qword [sym.imp.WS2_32.dll_ntohl]
mov dword [rbp - 0x51], eax
lea ecx, [rax - 1]
cmp ecx, 0x4e1e
mov rcx, qword [rbp - 0x49]
ja 0x1400aa532
mov edx, 0xfffffffc
mov r8d, 1
sub edx, eax
call fcn.1401bcd10
mov eax, dword [rbp - 0x51]
inc eax
movsxd rcx, eax
call fcn.1401c2864
mov qword [rbp - 0x41], rax
mov rdi, rax
test rax, rax
jne 0x1400aa53c
mov rcx, qword [rbp - 0x49]
call fcn.1401bc954
jmp 0x1400aa473
movsxd r8, dword [rbp - 0x51]
mov edx, 1
mov r9, qword [rbp - 0x49]
mov rcx, rdi
movsxd rbx, dword [rbp - 0x51]
call fcn.1401c279c
cmp rax, rbx
je 0x1400aa570
mov rcx, qword [rbp - 0x49]
call fcn.1401bc954
mov rcx, rdi
call fcn.1401c141c
jmp 0x1400aa473
mov byte [rbx + rdi], r14b
mov rcx, qword [rbp - 0x49]
call fcn.1401bc954
mov eax, dword [rbp - 0x51]
lea r9, [0x140245aa0]
mov dword [rsp + 0x20], 1
mov r8d, eax
xor edx, edx
mov rcx, rdi
call fcn.14008f890
mov r14, rax
mov qword [rbp - 0x29], rax
mov rbx, qword [rax]
test rbx, rbx
je 0x1400aa6d3
mov r14, qword [rbp - 0x39]
mov rdi, qword [rbp - 0x31]
mov edx, dword [rbx + 8]
mov rcx, rbx
call fcn.14008f834
mov rcx, qword [rbx]
mov dword [rbx + 8], eax
cmp byte [rcx], 0x23
je 0x1400aa6be
mov r9d, 1
lea r8, [0x140245aa4]
mov edx, eax
call fcn.140092fa8
movsxd rsi, eax
test eax, eax
jle 0x1400aa6be
mov r11, qword [rbx]
lea r9, [rsi + 1]
add r9, r11
mov qword [rbp - 0x49], r9
mov byte [rsi + r11], 0
mov r8d, dword [rbx + 8]
sub r8d, esi
dec r8d
lea edx, [r8 - 1]
movsxd rcx, edx
cmp byte [rcx + r9], 0xd
lea rcx, [rbp - 0x49]
cmovne edx, r8d
call fcn.14008f834
mov rdx, qword [rbp - 0x49]
movsxd rcx, eax
mov byte [rcx + rdx], 0
cmp esi, 8
jne 0x1400aa646
mov rax, qword [str.MeshName]
cmp rax, qword [r11]
jne 0x1400aa66d
mov qword [r12], rdx
cmp esi, 6
jne 0x1400aa668
mov eax, dword [str.MeshID]
cmp eax, dword [r11]
jne 0x1400aa6be
movzx eax, word [0x1402444fc]
cmp ax, word [r11 + 4]
jne 0x1400aa6be
mov qword [r13], rdx
cmp esi, 8
jne 0x1400aa67c
mov rax, qword [str.ServerID]
cmp rax, qword [r11]
jne 0x1400aa6be
mov qword [r14], rdx
cmp esi, 0xa
jne 0x1400aa69e
mov rax, qword [str.MeshServer]
cmp rax, qword [r11]
jne 0x1400aa6be
movzx eax, word [0x140244488]
cmp ax, word [r11 + 8]
jne 0x1400aa6be
mov qword [rdi], rdx
cmp esi, 0xc
jne 0x1400aa6be
mov rax, qword [str.InstallFlags]
cmp rax, qword [r11]
jne 0x1400aa6be
mov eax, dword [0x14028a1a0]
cmp eax, dword [r11 + 8]
jne 0x1400aa6be
mov qword [r15], rdx
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400aa5b7
mov rdi, qword [rbp - 0x41]
mov r14, qword [rbp - 0x29]
mov rcx, r14
call fcn.14008fad8
mov rax, rdi
mov rcx, qword [rbp - 9]
xor rcx, rsp
call fcn.1401b98c0
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret