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

Disassembly:
mov dword [rbx + 0x50], 1
mov rcx, qword [rbx + 0xa0]
test rcx, rcx
je 0x123b421
mov rax, qword [rcx]
call qword [rax]
mov rcx, qword [rbx + 0x48]
test rcx, rcx
jne 0x156dde7
mov rax, qword [rbx + 0xa0]
mov qword [rbx + 0x48], rax
jmp 0x13a6d13
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x20], 0
mov rbx, rcx
je 0x156dd19
mov rdx, qword [rcx + 0x70]
mov qword [rsp + 0x30], rsi
xor esi, esi
mov eax, dword [rdx + 0x14]
mov qword [rsp + 0x38], rdi
test eax, eax
jne 0x156dd39
mov rdi, rsi
jmp 0x13a6cb4
test rdi, rdi
jne 0x156dd5c
mov rcx, qword [rbx + 0x48]
test rcx, rcx
jne 0x156dd6a
test rdi, rdi
mov qword [rbx + 0x48], rdi
jne 0x156dd7b
cmp dword [rbx + 0x50], esi
jne 0x156ddac
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
test rax, rax
mov rdi, rax
je 0x13a6cf9
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx]
mov rcx, qword [rbx + 0x48]
test rcx, rcx
jne 0x156ddd6
cmp rdi, rsi
mov qword [rbx + 0x48], rdi
je 0x123b409
mov rax, qword [rbx + 0x48]
mov r8d, dword [rax + 0x3c]
test r8d, r8d
jne 0x13a6d24
mov r8d, dword [rax + 0x24]
mov edx, dword [rbx + 0x34]
mov rcx, rbx
call fcn.013a6300
cmp dword [rbx + 0x30], esi
jne 0x156ddc1
mov eax, dword [rbx + 0x88]
test eax, eax
je 0x13a77e7
sub eax, 1
je 0x156de0e
sub eax, 1
jne 0x13a77b2
mov rcx, rbx
call fcn.013a6d80
test eax, eax
jne 0x156ddc1
jmp 0x13a6d6a
cmp dword [rbx + 0x30], esi
je 0x13a6d38
jmp 0x156de31
sub eax, 1
jne 0x156ddf8
lea rdx, [rbx + 0xa8]
lea rcx, [rbx + 0xb8]
call fcn.013a61a0
mov r11, qword [rbx]
mov rcx, rbx
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
jmp qword [r11 + reloc.WS2_32.dll_htonl]
mov rcx, rbx
call fcn.013a7630
test eax, eax
je 0x13a6d6a
jmp 0x156ddc1
lea r8, [0x0156de80]
add rcx, 8
mov edx, socket
call fcn.030fda20
mov eax, 1
add rsp, 0x20
pop rbx
ret
add eax, 0xffffffff
mov dword [rdx + 0x14], eax
mov eax, dword [rdx + 0x10]
mov rcx, rax
shl rcx, 4
add rcx, qword [rdx + 0x18]
add eax, 1
mov dword [rdx + 0x10], eax
mov rdi, qword [rcx + 8]
jmp 0x13a6cb4
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
nop
jmp 0x13a6cbd
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x13a6cca
mov rax, qword [rbx]
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x28]
test eax, eax
jne 0x156ddc1
mov rax, qword [rbx + 0x48]
mov r8d, dword [rax + 0x3c]
test r8d, r8d
jne 0x156dd9c
mov r8d, dword [rax + 0x24]
mov edx, dword [rbx + 0x34]
mov rcx, rbx
call fcn.013a6300
jmp 0x13a6d2f
lea rcx, [rbx + 8]
lea r8, [0x015bb4a0]
mov edx, reloc.WS2_32.dll_ntohl
call fcn.030fda20
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x13a6d06
mov rax, qword [rcx]
mov edx, 1
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
nop
jmp 0x123b42e
cmp eax, 1
jne 0x156de33
mov rcx, rbx
call fcn.03100800
test eax, eax
jne 0x156ddc1
jmp 0x13a6d6a
mov rax, qword [rbx]
mov r8, qword [rbx + 0x48]
mov edx, dword [rbx + 0x34]
mov rcx, rbx
mov dword [rbx + 0x2c], 1
call qword [rax + 0x30]
test eax, eax
jne 0x156ddc1
mov dword [rbx + 0x38], esi
jmp 0x13a6d6a
jmp 0x156ddc1
lea rcx, [rbx + 8]
lea r8, [0x0156de50]
mov edx, reloc.WS2_32.dll_listen
call fcn.030fda20
jmp 0x156ddc1