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

Disassembly:
push rbp
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x10], rcx
movzx eax, byte [0x008353e8]
movzx eax, al
and eax, 4
test eax, eax
jne 0x5ae19c
cmp qword [rbp - 0x10], 0
jne 0x5add48
lea r9, str._go_pkg_mod_github.com_eycorsican_go_tun2socks_v1.16.11_core_c_core_tcp_in.c
mov r8d, 0x287
lea rdx, str.tcp_listen_input:_invalid_pcb
lea rcx, [0x007c9080]
call sub.msvcrt.dll_printf
mov ecx, 0
call sub.msvcrt.dll_fflush
call sub.msvcrt.dll_abort
movzx eax, byte [0x008353e8]
movzx eax, al
and eax, 0x10
test eax, eax
je 0x5addc1
mov rax, qword [0x008353c0]
movzx eax, word [rax]
movzx ecx, ax
mov rax, qword [0x008353c0]
movzx eax, word [rax + 2]
movzx edx, ax
movzx eax, word [0x008353e6]
movzx r8d, ax
mov eax, dword [0x008353dc]
add r8d, eax
mov eax, dword [0x008353e0]
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], edx
lea rdx, [0x00835f20]
lea rdx, [rdx + 0x24]
mov qword [rsp + 0x20], rdx
lea rdx, [0x00835f20]
lea r9, [rdx + 0x3c]
mov edx, eax
mov rcx, qword [rbp - 0x10]
call fcn.005b40dd
jmp 0x5ae19f
movzx eax, byte [0x008353e8]
movzx eax, al
and eax, 2
test eax, eax
je 0x5ae19f
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax + 0x4c]
movzx eax, al
mov ecx, eax
call fcn.005abc26
mov qword [rbp - 0x38], rax
cmp qword [rbp - 0x38], 0
jne 0x5ade32
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x50]
test rax, rax
je 0x5ade29
mov rax, qword [rbp - 0x10]
mov r9, qword [rax + 0x50]
mov rax, qword [rbp - 0x10]
mov rax, qword [rax + 0x40]
mov r8d, 0xffffffff
mov edx, 0
mov rcx, rax
call r9
mov byte [rbp - 0x3e], al
jmp 0x5ae1a0
mov byte [rbp - 0x3e], 0xf0
jmp 0x5ae1a0
lea rax, [0x00835f20]
movzx edx, byte [rax + 0x50]
mov rax, qword [rbp - 0x38]
mov byte [rax + 0x14], dl
lea rax, [0x00835f20]
movzx eax, byte [rax + 0x50]
cmp al, 6
jne 0x5adeaa
lea rax, [0x00835f20]
mov edx, dword [rax + 0x3c]
mov rax, qword [rbp - 0x38]
mov dword [rax], edx
lea rax, [0x00835f20]
mov edx, dword [rax + 0x40]
mov rax, qword [rbp - 0x38]
mov dword [rax + 4], edx
lea rax, [0x00835f20]
mov edx, dword [rax + 0x44]
mov rax, qword [rbp - 0x38]
mov dword [rax + 8], edx
lea rax, [0x00835f20]
mov edx, dword [rax + 0x48]
mov rax, qword [rbp - 0x38]
mov dword [rax + 0xc], edx
lea rax, [0x00835f20]
movzx edx, byte [rax + 0x4c]
mov rax, qword [rbp - 0x38]
mov byte [rax + 0x10], dl
jmp 0x5adee9
lea rax, [0x00835f20]
mov edx, dword [rax + 0x3c]
mov rax, qword [rbp - 0x38]
mov dword [rax], edx
mov rax, qword [rbp - 0x38]
mov dword [rax + 0xc], 0
mov rax, qword [rbp - 0x38]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 0x38]
mov dword [rax + 8], edx
mov rax, qword [rbp - 0x38]
mov edx, dword [rax + 8]
mov rax, qword [rbp - 0x38]
mov dword [rax + 4], edx
mov rax, qword [rbp - 0x38]
mov byte [rax + 0x10], 0
lea rax, [0x00835f20]
movzx edx, byte [rax + 0x38]
mov rax, qword [rbp - 0x38]
mov byte [rax + 0x2c], dl
lea rax, [0x00835f20]
movzx eax, byte [rax + 0x38]
cmp al, 6
jne 0x5adf62
lea rax, [0x00835f20]
mov edx, dword [rax + 0x24]
mov rax, qword [rbp - 0x38]
mov dword [rax + 0x18], edx
lea rax, [0x00835f20]
mov edx, dword [rax + 0x28]
mov rax, qword [rbp - 0x38]
mov dword [rax + 0x1c], edx
lea rax, [0x00835f20]
mov edx, dword [rax + 0x2c]
mov rax, qword [rbp - 0x38]
mov dword [rax + 0x20], edx
lea rax, [0x00835f20]
mov edx, dword [rax + 0x30]
mov rax, qword [rbp - 0x38]
mov dword [rax + 0x24], edx
lea rax, [0x00835f20]
movzx edx, byte [rax + 0x34]
mov rax, qword [rbp - 0x38]
mov byte [rax + 0x28], dl
jmp 0x5adfa2
lea rax, [0x00835f20]
mov edx, dword [rax + 0x24]
mov rax, qword [rbp - 0x38]
mov dword [rax + 0x18], edx
mov rax, qword [rbp - 0x38]
mov dword [rax + 0x24], 0
mov rax, qword [rbp - 0x38]
mov edx, dword [rax + 0x24]
mov rax, qword [rbp - 0x38]
mov dword [rax + 0x20], edx
mov rax, qword [rbp - 0x38]
mov edx, dword [rax + 0x20]
mov rax, qword [rbp - 0x38]
mov dword [rax + 0x1c], edx
mov rax, qword [rbp - 0x38]
mov byte [rax + 0x28], 0
mov rax, qword [rbp - 0x10]
movzx edx, word [rax + 0x4e]
mov rax, qword [rbp - 0x38]
mov word [rax + 0x4e], dx
mov rax, qword [0x008353c0]
movzx edx, word [rax + 2]
mov rax, qword [rbp - 0x38]
mov word [rax + 0x4e], dx
mov rax, qword [0x008353c0]
movzx edx, word [rax]
mov rax, qword [rbp - 0x38]
mov word [rax + 0x50], dx
mov rax, qword [rbp - 0x38]
mov dword [rax + 0x48], 3
mov eax, dword [0x008353dc]
lea edx, [rax + 1]
mov rax, qword [rbp - 0x38]
mov dword [rax + 0x5c], edx
mov rax, qword [rbp - 0x38]
mov edx, dword [rax + 0x5c]
mov rax, qword [rbp - 0x38]
mov dword [rax + 0x64], edx
mov rax, qword [rbp - 0x38]
mov rcx, rax
call fcn.005ac3c0
mov dword [rbp - 0x3c], eax
mov rax, qword [rbp - 0x38]
mov edx, dword [rbp - 0x3c]
mov dword [rax + 0x90], edx
mov rax, qword [rbp - 0x38]
mov edx, dword [rbp - 0x3c]
mov dword [rax + 0x88], edx
mov rax, qword [rbp - 0x38]
mov edx, dword [rbp - 0x3c]
mov dword [rax + 0x7c], edx
mov rax, qword [rbp - 0x38]
mov edx, dword [rbp - 0x3c]
mov dword [rax + 0x94], edx
mov eax, dword [0x008353dc]
lea edx, [rax - 1]
mov rax, qword [rbp - 0x38]
mov dword [rax + 0x8c], edx
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 0x40]
mov rax, qword [rbp - 0x38]
mov qword [rax + 0x40], rdx
mov rax, qword [rbp - 0x38]
mov rdx, qword [rbp - 0x10]
mov qword [rax + 0xc8], rdx
mov rax, qword [rbp - 0x10]
movzx eax, byte [rax + 0x31]
and eax, 0xc
mov edx, eax
mov rax, qword [rbp - 0x38]
mov byte [rax + 0x31], dl
mov rax, qword [rbp - 0x10]
movzx edx, byte [rax + 0x30]
mov rax, qword [rbp - 0x38]
mov byte [rax + 0x30], dl
lea rax, [0x00835f08]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x38]
mov qword [rax + 0x38], rdx
lea rax, [0x00835f08]
mov rdx, qword [rbp - 0x38]
mov qword [rax], rdx
call fcn.005b4688
lea rax, [0x00835f18]
mov byte [rax], 1
mov rax, qword [rbp - 0x38]
mov rcx, rax
call fcn.005b0a70
mov rax, qword [0x008353c0]
movzx edx, word [rax + 0xe]
mov rax, qword [rbp - 0x38]
mov word [rax + 0x98], dx
mov rax, qword [rbp - 0x38]
movzx edx, word [rax + 0x98]
mov rax, qword [rbp - 0x38]
mov word [rax + 0x9a], dx
mov rax, qword [rbp - 0x38]
lea rbx, [rax + 0x18]
mov rax, qword [rbp - 0x38]
add rax, 0x18
test rax, rax
je 0x5ae133
mov rax, qword [rbp - 0x38]
movzx eax, byte [rax + 0x2c]
cmp al, 6
jne 0x5ae133
mov rax, qword [rbp - 0x38]
lea rdx, [rax + 0x18]
mov rax, qword [rbp - 0x38]
mov rcx, rax
call fcn.005b9b07
jmp 0x5ae143
mov rax, qword [rbp - 0x38]
add rax, 0x18
mov rcx, rax
call fcn.005b8588
mov rdx, qword [rbp - 0x38]
movzx edx, word [rdx + 0x6a]
movzx ecx, dx
mov r8, rbx
mov rdx, rax
call fcn.005ac425
mov rdx, qword [rbp - 0x38]
mov word [rdx + 0x6a], ax
mov rax, qword [rbp - 0x38]
mov edx, 0x12
mov rcx, rax
call fcn.005b2792
mov byte [rbp - 0x3d], al
cmp byte [rbp - 0x3d], 0
je 0x5ae18e
mov rax, qword [rbp - 0x38]
mov edx, 0
mov rcx, rax
call fcn.005a941d
jmp 0x5ae1a0
mov rax, qword [rbp - 0x38]
mov rcx, rax
call fcn.005b2a88
jmp 0x5ae19f
nop
jmp 0x5ae1a0
nop
add rsp, 0x58
pop rbx
pop rbp
ret