Function at 0x1401ba860
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, 0x58
mov rax, qword [rdx + 0x128]
xor r12d, r12d
mov qword [rcx + 0xb0], rax
mov rdi, rcx
mov r14d, dword [rdx + 0x38]
mov rbx, rdx
mov qword [rdx + 0x128], r12
mov rax, qword [rcx]
mov ecx, dword [rdx + 0x34]
add r14d, ecx
mov qword [rsp + 0x28], rax
movsx eax, word [rdx + 0x110]
mov word [rsp + 0xa0], ax
mov r13d, eax
mov dword [rsp + 0x20], eax
mov eax, dword [rdx + 0x80]
mov dword [rsp + 0xb0], eax
mov dword [rsp + 0xa8], ecx
test ecx, ecx
jne 0x1401ba8d7
test r14d, r14d
jle 0x1401ba8d7
inc r14d
mov eax, dword [rdi + 0x90]
lea ecx, [rax + rax*2]
mov eax, dword [rdx + 0x3c]
shl ecx, 3
lea rdx, [rsp + 0xb0]
sub eax, ecx
movsxd r15, ecx
add r15, qword [rdi + 0x88]
mov rcx, rdi
movsxd rsi, eax
and rsi, 0xfffffffffffffff8
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x48], rsi
call fcn.14016d210
cmp byte [rbx + 0x20], r12b
je 0x1401ba924
mov eax, 0x40
cmp byte [rbx + 0x21], r12b
jne 0x1401ba927
mov eax, r12d
mov ecx, dword [rdi + 0xc8]
and ecx, 0xffffffbf
or ecx, eax
mov dword [rdi + 0xc8], ecx
movzx eax, byte [rbx + 0x113]
test al, al
je 0x1401baacf
mov edx, 0xa
mov ebp, 8
cmp r14d, edx
cmovl r14d, edx
shl eax, 2
xor eax, ecx
mov dword [rsp + 0xb8], r14d
and eax, 0xc
mov edx, 4
xor eax, ecx
mov rcx, rdi
mov dword [rdi + 0xc8], eax
movzx ebx, byte [rbx + 0x113]
cmp bl, 2
cmovne edx, ebp
call fcn.1401bd640
cmp bl, 2
mov eax, ebp
mov ecx, recv
cmovne ecx, ebp
cmovne rax, r12
mov qword [rsp + 0x30], rcx
cmp rax, rcx
jae 0x1401baacf
mov r13, rax
lea r14d, [rbp - 7]
mov r15, rax
mov edx, 0x2400
lea rax, str.xm__
mov r8d, 0xa02
mov rbp, qword [rax + r15*8]
mov rax, qword [rdi]
cmp byte [rax + 0x63], 0
jne 0x1401baaa0
mov rax, r15
sub rax, r13
imul rbx, rax, 0x38
add rbx, qword [rdi + 0x98]
test rbp, rbp
jne 0x1401baa14
test word [rbx + 8], dx
je 0x1401baa0a
mov rcx, rbx
call fcn.1401d0600
mov rcx, qword [rsp + 0x30]
mov r8d, 0xa02
jmp 0x1401baaa0
mov word [rbx + 8], r14w
jmp 0x1401baaa0
mov rax, qword [rbx + 0x28]
test rax, rax
je 0x1401baa26
mov r12d, dword [rax + 0x80]
jmp 0x1401baa2c
mov r12d, 0x3b9aca00
mov rsi, 0xffffffffffffffff
inc rsi
cmp byte [rsi + rbp], 0
jne 0x1401baa33
test word [rbx + 8], dx
jne 0x1401baa48
cmp dword [rbx + 0x20], 0
je 0x1401baa5b
mov rcx, rbx
call fcn.1401d0530
mov rcx, qword [rsp + 0x30]
mov r8d, 0xa02
mov eax, esi
mov qword [rbx + 0x10], rbp
btr eax, 0x1f
mov qword [rbx + 0x30], 0
mov dword [rbx + 0xc], eax
movsxd rax, r12d
mov word [rbx + 8], r8w
mov byte [rbx + 0xa], r14b
cmp rsi, rax
jle 0x1401baaa0
mov rax, qword [rbx + 0x28]
test rax, rax
je 0x1401baaa0
mov rax, qword [rax + 0x140]
test rax, rax
je 0x1401baaa0
inc dword [rax + 0x30]
mov dword [rax + 0x18], reloc.WS2_32.dll_select
inc r15
lea rax, str.xm__
mov edx, 0x2400
cmp r15, rcx
jl 0x1401ba9c5
mov r14d, dword [rsp + 0xb8]
mov r13d, dword [rsp + 0x20]
mov rsi, qword [rsp + 0x48]
mov r15, qword [rsp + 0x38]
and dword [rdi + 0xc8], 0xfffffffc
xor r9d, r9d
movsxd rax, r14d
mov edx, r9d
imul rbp, rax, 0x38
cmp rbp, rsi
jg 0x1401baaf1
mov rdx, rsi
sub rdx, rbp
add rdx, r15
mov rcx, rsi
movsxd rax, r13d
sub rcx, rbp
mov qword [rdi + 0x68], rdx
cmp rbp, rsi
mov rbx, r9
mov rdx, r9
cmovg rcx, rsi
cmovg rbx, rbp
imul r12, rax, 0x38
cmp r12, rcx
jg 0x1401bab21
sub rcx, r12
lea rdx, [r15 + rcx]
jmp 0x1401bab24
add rbx, r12
movsxd rsi, dword [rsp + 0xb0]
mov rax, r9
shl rsi, 3
mov qword [rdi + 0x80], rdx
cmp rsi, rcx
jg 0x1401bab4a
mov rax, rcx
sub rax, rsi
add rax, r15
jmp 0x1401bab4d
add rbx, rsi
movsxd r8, dword [rsp + 0xa8]
mov rdx, rcx
sub rdx, rsi
mov qword [rdi + 0x70], rax
cmp rsi, rcx
mov r15, r8
mov rax, r9
cmovg rdx, rcx
shl r15, 3
cmp r15, rdx
jg 0x1401bab82
mov rax, rdx
sub rax, r15
add rax, qword [rsp + 0x38]
jmp 0x1401bab85
add rbx, r15
mov qword [rdi + 0x78], rax
test rbx, rbx
je 0x1401bac2b
mov rcx, qword [rsp + 0x28]
mov rdx, rbx
call fcn.14017f9f0
mov qword [rdi + 0xf8], rax
mov rcx, rax
mov rax, qword [rsp + 0x28]
cmp byte [rax + 0x63], 0
jne 0x1401bac20
mov rax, qword [rdi + 0x68]
test rax, rax
jne 0x1401babc9
cmp rbp, rbx
jg 0x1401babc9
sub rbx, rbp
lea rax, [rcx + rbx]
mov qword [rdi + 0x68], rax
mov rax, qword [rdi + 0x80]
test rax, rax
jne 0x1401babe5
cmp r12, rbx
jg 0x1401babe5
sub rbx, r12
lea rax, [rcx + rbx]
mov qword [rdi + 0x80], rax
mov rax, qword [rdi + 0x70]
test rax, rax
jne 0x1401bac01
cmp rsi, rbx
jg 0x1401bac01
sub rbx, rsi
lea rax, [rcx + rbx]
mov qword [rdi + 0x70], rax
mov rax, qword [rdi + 0x78]
test rax, rax
jne 0x1401bac1c
cmp r15, rbx
jg 0x1401bac1c
mov rax, rcx
sub rax, r15
add rax, rbx
mov qword [rdi + 0x78], rax
mov r8d, dword [rsp + 0xa8]
xor r9d, r9d
mov rcx, qword [rsp + 0x28]
cmp byte [rcx + 0x63], 0
je 0x1401bac48
mov word [rdi + 0x20], r9w
mov qword [rdi + 0x28], 0
jmp 0x1401bacc8
movzx eax, word [rsp + 0xa0]
mov word [rdi + 0x20], ax
mov rax, qword [rdi + 0x80]
mov dword [rdi + 0x2c], r8d
test r13d, r13d
jle 0x1401bac87
add rax, 8
mov edx, 1
nop dword [rax]
dec r13d
mov qword [rax + 0x20], rcx
mov word [rax], dx
mov dword [rax + 0x18], r9d
lea rax, [rax + 0x38]
test r13d, r13d
jg 0x1401bac70
mov rax, qword [rdi + 0x68]
mov dword [rdi + 0x28], r14d
test r14d, r14d
jle 0x1401bacb7
add rax, 8
mov edx, 0x80
nop dword [rax]
dec r14d
mov qword [rax + 0x20], rcx
mov word [rax], dx
mov dword [rax + 0x18], r9d
lea rax, [rax + 0x38]
test r14d, r14d
jg 0x1401baca0
mov rcx, qword [rdi + 0x78]
mov r8, r15
xor edx, edx
call fcn.14026c200
xor r9d, r9d
mov eax, 1
mov dword [rdi + 0x24], 0x2df20da3
mov dword [rdi + 0x30], eax
mov dword [rdi + 0x34], 0xffffffff
mov qword [rdi + 0x38], 0
mov word [rdi + 0xc2], 0xff02
mov dword [rdi + 0x40], r9d
mov qword [rdi + 0x50], r9
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret