Function at 0x14003a504
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x140250028]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, qword [rsp + 0xd0]
lea rax, str.check_cookie:_in_len_u
mov rdi, qword [rsp + 0xd8]
lea r12, str.C:UsersMasheSourceReposPathOfExileBot.v23PathOfExileMenulibrary_ssl_msg.c
mov r15, qword [rsp + 0xe8]
mov rsi, r9
mov rbp, r8
mov qword [rsp + 0x40], r8
mov r13, rdx
mov dword [rsp + 0x28], ebx
mov r8, r12
mov qword [rsp + 0x20], rax
mov r9d, 0xcd5
mov edx, 4
mov r14, rcx
call fcn.140020e04
mov qword [rsp + 0x30], rbp
lea rax, str.cli_id
mov ebp, 4
mov qword [rsp + 0x28], r13
mov edx, ebp
mov qword [rsp + 0x20], rax
mov r9d, 0xcd6
mov r8, r12
mov rcx, r14
call fcn.140020fb0
cmp rbx, 0x3d
jae 0x14003a5cf
lea rax, str.check_cookie:_record_too_short
mov r9d, 0xcd8
mov r8, r12
mov qword [rsp + 0x20], rax
mov edx, ebp
mov rcx, r14
call fcn.140020e04
jmp 0x14003a83e
movzx eax, byte [rsi + 0x14]
movzx ebp, byte [rsi + 0x13]
movzx r12d, word [rsi + 3]
shl rbp, 8
or rbp, rax
ror r12w, 8
movzx eax, byte [rsi + 0x15]
shl rbp, 8
or rbp, rax
cmp byte [rsi], 0x16
jne 0x14003a7e0
test r12w, r12w
jne 0x14003a7e0
test rbp, rbp
jne 0x14003a7e0
movzx ebp, byte [rsi + 0x3b]
lea r8, str.C:UsersMasheSourceReposPathOfExileBot.v23PathOfExileMenulibrary_ssl_msg.c
mov edx, 4
mov rcx, r14
lea rax, [rbp + 0x3d]
cmp rax, rbx
jbe 0x14003a652
lea eax, [rbx - 0x3d]
mov r9d, 0xcec
mov dword [rsp + 0x30], eax
lea rax, str.check_cookie:_sid_len_u____u
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call fcn.140020e04
jmp 0x14003a83e
lea rax, [rsi + 0x3c]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rax
mov r9d, 0xcf0
lea rax, str.sid_received_from_network
mov qword [rsp + 0x20], rax
call fcn.140020fb0
movzx r12d, byte [rsi + rbp + 0x3c]
lea rax, [rbp + 0x3d]
add rax, r12
lea r8, str.C:UsersMasheSourceReposPathOfExileBot.v23PathOfExileMenulibrary_ssl_msg.c
mov edx, 4
mov rcx, r14
cmp rax, rbx
jbe 0x14003a6b5
sub ebx, ebp
lea rax, str.check_cookie:_cookie_len_u____u
sub ebx, 0x3d
mov r9d, 0xcf6
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], r12d
jmp 0x14003a643
mov qword [rsp + 0x30], r12
lea rax, str.cookie_received_from_network
lea rbx, [rbp + 0x3d]
mov r9d, 0xcfb
add rbx, rsi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call fcn.140020fb0
mov rax, qword [r14]
mov r9, r13
mov rbp, qword [rsp + 0x40]
mov r8, r12
mov rdx, rbx
mov qword [rsp + 0x20], rbp
mov rcx, qword [rax + 0x98]
call qword [rax + 0x90]
test eax, eax
jne 0x14003a731
lea rax, str.check_cookie:_valid
mov r9d, 0xcff
lea r8, str.C:UsersMasheSourceReposPathOfExileBot.v23PathOfExileMenulibrary_ssl_msg.c
mov qword [rsp + 0x20], rax
mov edx, 4
mov rcx, r14
call fcn.140020e04
xor eax, eax
jmp 0x14003a843
movups xmm0, xmmword [rsi]
lea r8, [rdi + 0x4000]
mov qword [rsp + 0x20], rbp
mov r9, r13
lea rdx, [rsp + 0x48]
movups xmmword [rdi], xmm0
movsd xmm1, qword [rsi + 0x10]
movsd qword [rdi + 0x10], xmm1
mov al, byte [rsi + 0x18]
mov byte [rdi + 0x18], al
lea rax, [rdi + 0x1c]
mov qword [rsp + 0x48], rax
mov byte [rdi + 0xd], 3
mov word [rdi + 0x19], 0xfffe
mov rax, qword [r14]
mov rcx, qword [rax + 0x98]
call qword [rax + 0x88]
test eax, eax
je 0x14003a78c
mov eax, 0xffff9400
jmp 0x14003a843
mov rax, qword [rsp + 0x48]
sub rax, rdi
mov qword [r15], rax
sub al, 0x1c
mov byte [rdi + 0x1b], al
mov rax, qword [r15]
sub rax, 0x19
shr rax, 0x10
mov byte [rdi + 0x16], al
mov byte [rdi + 0xe], al
mov rax, qword [r15]
sub rax, 0x19
shr rax, 8
mov byte [rdi + 0x17], al
mov byte [rdi + 0xf], al
mov al, byte [r15]
sub al, 0x19
mov byte [rdi + 0x18], al
mov byte [rdi + 0x10], al
movzx eax, word [r15]
sub ax, 0xd
ror ax, 8
mov word [rdi + 0xb], ax
mov eax, 0xffff9580
jmp 0x14003a843
lea rax, str.check_cookie:_not_a_good_ClientHello
mov ebx, 4
mov edx, ebx
mov qword [rsp + 0x20], rax
mov r9d, 0xce1
lea r8, str.C:UsersMasheSourceReposPathOfExileBot.v23PathOfExileMenulibrary_ssl_msg.c
mov rcx, r14
call fcn.140020e04
movzx ecx, byte [rsi]
lea r8, str.C:UsersMasheSourceReposPathOfExileBot.v23PathOfExileMenulibrary_ssl_msg.c
mov dword [rsp + 0x38], ebp
mov r9d, 0xce4
movzx eax, r12w
mov edx, ebx
mov dword [rsp + 0x30], eax
lea rax, str.____type_u_epoch_u_fragment_offset_u
mov dword [rsp + 0x28], ecx
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.140020e04
mov eax, 0xffff8d00
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14014b850
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret