Function at 0x180015570
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xf0
mov rax, qword [0x1800b43d8]
xor rax, rsp
mov qword [rbp + 0x1f], rax
mov rbx, r8
mov qword [rbp - 0x69], rcx
lea r12d, [rdx - 0xc]
mov qword [rbp - 0x49], rbx
xor esi, esi
mov rax, r9
mov qword [rbp - 0x61], rax
mov r15d, edx
mov r8, rcx
cmp edx, r12d
jbe 0x18001576d
mov r14, qword [rbp - 0x61]
lea r13d, [rdx - 0x8a]
mov edi, dword [rbp - 0x59]
lea rdx, [0x180000000]
movabs r9, 0x6c0064002e0032
cmp r13d, 0x26
ja case.0x1800155fd.11
movzx eax, byte [rdx + r13 + 0x15a5c]
mov ecx, dword [rdx + rax*4 + 0x15a2c]
add rcx, rdx
jmp rcx
mov ecx, dword [rbp - 0x59]
mov rax, qword [rbx]
mov r14, qword [rax + rcx*8]
jmp case.0x1800155fd.11
mov qword [rbp - 7], r9
jmp case.0x1800155fd.11
mov r8d, 1
lea rdx, str.wAITING_HANDSHAKE_2
lea rcx, [rbp - 0x11]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
movabs rax, 0x33005f00320073
mov word [rbp - 7], si
mov qword [rbp - 0xf], rax
jmp 0x180015741
mov r8d, 1
mov word [rbp + 1], si
lea rdx, [0x1800aa024]
lea rcx, [rbp + 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov word [rbp + 3], si
mov dword [rbp - 0x19], 0x6e6f7468
jmp 0x180015741
lea rdx, [rbp - 0x41]
mov ecx, 0x76
call fcn.18003ac40
test eax, eax
jne 0x1800157f2
xor edx, edx
lea r8d, [rax + 5]
mov rcx, rbx
call fcn.1800388c0
mov rdi, rax
jmp 0x180015741
mov byte [rbp - 0x15], sil
jmp case.0x1800155fd.11
mov r8d, 0xa5
lea rdx, [rbp - 0x41]
xor ecx, ecx
call fcn.180059240
mov dword [rbp - 0x71], esi
jmp 0x180015741
xor r9d, r9d
mov dword [rbp - 0x51], edi
lea r8, [rbp - 0x51]
mov ecx, 0xf6
lea rdx, [rbp - 0x41]
call fcn.1800472b0
xor ecx, ecx
mov rbx, rax
test eax, eax
jne 0x180015813
mov rax, qword [rbp - 0x49]
lea r8, [rbp - 0x41]
mov qword [rsp + 0x40], rsi
xor r9d, r9d
mov dword [rsp + 0x38], 0x81
xor edx, edx
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x41]
mov qword [rsp + 0x20], rax
call fcn.180043890
mov rbx, rax
test eax, eax
jne 0x1800157fa
mov rax, qword [rbp - 0x31]
mov r8, qword [rbp - 0x69]
mov rbx, qword [rbp - 0x49]
mov ecx, dword [rax]
mov dword [r8], ecx
jmp 0x180015745
mov rcx, qword [r8]
call qword [rbx + 0x10]
xor edx, edx
div dword [rbx + 8]
mov dword [rbp - 0x59], edx
mov r8, qword [rbp - 0x69]
movabs r9, 0x6c0064002e0032
lea rdx, [0x180000000]
dec r13d
lea eax, [r13 + 0x8a]
cmp eax, r12d
ja 0x1800155e0
mov rax, qword [rbp - 0x61]
lea edi, [r15 + 0x69c]
cmp r15d, edi
jae case.0x1800155fd.7
mov r14, qword [rbp - 0x61]
mov r13, qword [rbp - 0x61]
mov r12, qword [rbp - 0x61]
nop dword [rax]
cmp r15d, 0x2cc
ja 0x18001591d
je 0x1800158ff
cmp r15d, 0x131
ja 0x1800158bd
je 0x1800159fe
mov eax, r15d
sub eax, 0x98
je 0x180015882
sub eax, 0xc
je 0x18001585b
cmp eax, 0x81
jne 0x1800159e5
lea r8d, [rax - 0x7d]
lea rdx, [0x1800aa0c4]
lea rcx, [rbp + 9]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
jmp 0x1800159e5
mov dword [rbp - 0x71], eax
jmp case.0x1800155fd.7
mov r8d, 0xa5
lea rdx, [rbp - 0x41]
xor ecx, ecx
call fcn.180059240
mov dword [rbp - 0x71], ebx
jmp case.0x1800155fd.7
mov r8d, 0xa5
lea rdx, [rbp - 0x41]
call fcn.180059240
mov dword [rbp - 0x71], ebx
jmp case.0x1800155fd.7
test r14, r14
je 0x18001584a
nop
mov rdx, qword [r14]
mov rcx, qword [r8]
call qword [rbx + 0x18]
test eax, eax
jne 0x180015852
mov r14, qword [r14 + 0x10]
mov r8, qword [rbp - 0x69]
test r14, r14
jne 0x180015830
mov rax, rsi
jmp 0x180015983
mov rax, qword [r14 + 8]
jmp 0x180015983
mov edx, 4
mov dword [rbx], esi
mov r9, qword [0x1800c9d18]
lea rcx, [rbp - 0x79]
mov dword [rbp - 0x79], esi
lea r8d, [rdx - 3]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r12, rax
jmp 0x1800159e5
mov r8d, 1
lea rdx, [0x1800aa077]
lea rcx, [rbp - 0x15]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov r8d, 1
mov byte [rbp - 0x14], sil
lea rdx, [0x1800aa096]
mov word [rbp + 7], si
lea rcx, [rbp + 7]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat]
jmp 0x1800159e5
cmp r15d, 0x1b2
je 0x1800158f3
cmp r15d, 0x23f
jne 0x1800159e5
mov r8d, 3
mov word [rbp + 0x15], si
lea rdx, [0x1800aa110]
lea rcx, [rbp + 0x15]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
jmp 0x1800159e5
mov dword [rbp + 0x11], 0x2e0032
jmp 0x1800159e5
mov edx, 4
mov word [rbp + 0x1b], si
lea rcx, [rbp - 0x11]
lea r8d, [rdx + 0x28]
call fcn.180006fa0
mov r14, rax
jmp 0x1800159e5
cmp r15d, 0x359
je 0x1800159b2
cmp r15d, 0x3e6
je 0x1800159aa
cmp r15d, 0x473
je 0x18001595c
cmp r15d, 0x500
je 0x180015953
cmp r15d, 0x58d
je case.0x1800155fd.7
jmp 0x1800159e5
mov byte [rbp - 0x71], 1
jmp 0x1800159e5
movzx ecx, word [rax]
call r13
mov rcx, qword [rbx]
lea rdx, [rbp - 0x29]
mov r8d, 0x10
mov word [rbp - 0x27], ax
call r14
cmp eax, 0xffffffff
jne 0x1800159e5
mov byte [rbp - 0x71], sil
mov rax, qword [rbp - 0x71]
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.1800602e0
mov rbx, qword [rsp + 0x138]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, dword [r8]
mov dword [rbp - 0x25], eax
jmp 0x1800159e5
mov r8d, 0x2c
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call fcn.180006fa0
mov r8d, 0x76
mov rdx, rbx
xor ecx, ecx
mov r13, rax
call fcn.180059240
test al, al
je 0x18001597b
mov ecx, 2
mov word [rbp - 0x29], cx
add r15d, 0x8d
cmp r15d, edi
jae case.0x1800155fd.7
mov r8, qword [rbp - 0x69]
mov rax, qword [rbp - 0x61]
jmp 0x180015790
movzx eax, byte [rbp - 0x78]
movzx ecx, byte [rbp - 0x79]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbp - 0x77]
shl ecx, 8
or ecx, eax
movzx eax, byte [rbp - 0x76]
shl ecx, 8
or ecx, eax
lea rax, [r12*4]
mov dword [rbx], ecx
jmp 0x180015983