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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rsi, qword [rcx + 0x10]
mov r13, r9
mov r12, r8
mov eax, dword [rsi + 0xb8]
mov rdi, qword [rsi + 0x18]
mov rbp, rcx
movsxd rbx, dword [rdi + 0x48]
mov dword [rsp + 0x30], eax
lea eax, [rbx + 1]
mov dword [rdi + 0x48], eax
lea eax, [rbx - 1]
test ebx, eax
jne 0x1400d92c0
mov rdx, qword [rdi + 0x50]
mov rcx, qword [rdi]
lea eax, [rbx + rbx + 1]
movsxd r8, eax
shl r8, 2
call fcn.1400635f0
mov qword [rdi + 0x50], rax
mov rcx, qword [rdi + 0x50]
or r15d, 0xffffffff
test rcx, rcx
je 0x1400d92d1
mov dword [rcx + rbx*4], r15d
mov r14d, dword [rsp + 0xa8]
sub r15d, ebx
xor ebx, ebx
mov dword [rsp + 0x80], r15d
test r14d, r14d
je 0x1400d94ab
mov rax, qword [rsi + 0x18]
movsxd rdi, dword [rsi + 0xb8]
cmp dword [rax + 0x3c], edi
jg 0x1400d9318
lea edx, [rbx + 0x14]
xor r9d, r9d
mov r8d, r14d
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call fcn.140087c10
mov edi, eax
jmp 0x1400d9348
lea rcx, [rdi + rdi*2]
lea eax, [rdi + 1]
mov dword [rsi + 0xb8], eax
mov rax, qword [rsi + 0x68]
mov byte [rax + rcx*8], socket
mov word [rax + rcx*8 + 2], bx
mov dword [rax + rcx*8 + 4], r14d
mov dword [rax + rcx*8 + 8], ebx
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], rbx
mov byte [rax + rcx*8 + 1], bl
mov rbx, qword [rsp + 0xb0]
test rbx, rbx
je 0x1400d9357
inc dword [rbx]
mov eax, dword [r12 + 0xc]
mov r8d, dword [r12 + 8]
lea r9d, [r14 + 1]
mov edx, 0x57
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.140087c80
mov rcx, qword [rsi]
cmp byte [rcx + 0x61], 0
mov r15d, eax
mov edx, eax
je 0x1400d9393
mov r8, rbx
mov edx, 0xfffffff7
call fcn.1400889a0
jmp 0x1400d93d5
test eax, eax
jns 0x1400d939f
mov edx, dword [rsi + 0xb8]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x68]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x1400d93c8
mov r9d, 0xfffffff7
mov r8, rbx
mov rcx, rsi
call fcn.140088ba0
jmp 0x1400d93d5
test rbx, rbx
je 0x1400d93d5
mov qword [rdx + 0x10], rbx
mov byte [rdx + 1], 0xf7
lea r8d, [r15 + 2]
mov r15d, dword [rsp + 0x80]
mov edx, reloc.WS2_32.dll_recv
mov r9d, r15d
mov rcx, rsi
mov dword [rsp + 0x20], r8d
call fcn.140087c80
mov r11d, dword [rsi + 0xb8]
test edi, edi
jns 0x1400d9405
lea edi, [r11 - 1]
mov rax, qword [rsi]
cmp byte [rax + 0x61], 0
je 0x1400d9417
lea rax, [0x14018a908]
jmp 0x1400d9426
movsxd rax, edi
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x68]
lea rax, [rax + rcx*8]
mov r8d, dword [r12 + 8]
mov dword [rax + 8], r11d
mov eax, dword [r12 + 0xc]
dec eax
lea r9d, [r14 + 1]
mov edx, 0x4e
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.140087c80
mov rax, qword [rsi + 0x18]
movsxd r11, dword [rsi + 0xb8]
xor ebx, ebx
cmp dword [rax + 0x3c], r11d
jg 0x1400d9476
lea edx, [rbx + 0x46]
lea r8d, [rbx + 1]
mov r9d, r14d
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call fcn.140087c10
jmp 0x1400d94ab
lea rcx, [r11 + r11*2]
lea eax, [r11 + 1]
mov dword [rsi + 0xb8], eax
mov rax, qword [rsi + 0x68]
mov byte [rax + rcx*8], 0x46
mov word [rax + rcx*8 + 2], bx
mov dword [rax + rcx*8 + 4], 1
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], ebx
mov qword [rax + rcx*8 + 0x10], rbx
mov byte [rax + rcx*8 + 1], bl
mov rax, qword [rbp]
cmp byte [rax + 0x61], 0
je 0x1400d94bc
xor eax, eax
jmp 0x1400d990f
mov rax, qword [rsp + 0x88]
mov r8d, dword [rax + 0x14]
test r8d, r8d
jle 0x1400d94e5
mov r9d, r15d
mov edx, 0x2f
mov rcx, rsi
mov dword [rsp + 0x20], 1
call fcn.140087c80
movzx ecx, byte [r13]
sub ecx, 0xa
je 0x1400d9796
sub ecx, 1
je 0x1400d96e3
sub ecx, 1
je 0x1400d95b2
cmp ecx, 1
je 0x1400d955b
mov rax, qword [rsi + 0x18]
movsxd rcx, dword [rsi + 0xb8]
mov edx, dword [r12 + 0xc]
cmp dword [rax + 0x3c], ecx
mov r8d, dword [r12 + 8]
jg 0x1400d953d
mov r9d, edx
mov rcx, rsi
mov edx, 0x51
mov dword [rsp + 0x20], ebx
call fcn.140087c10
jmp 0x1400d9803
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0xb8], eax
mov rax, qword [rsi + 0x68]
mov byte [rax + rcx*8], 0x51
mov dword [rax + rcx*8 + 0xc], ebx
jmp 0x1400d97eb
cmp dword [r13 + 8], 0
jne 0x1400d957c
mov edx, dword [r12 + 0xc]
mov rcx, rbp
call fcn.1400aab80
mov dword [r13 + 8], eax
mov eax, dword [r12 + 0xc]
mov dword [r13 + 0xc], eax
mov eax, dword [r12 + 0xc]
mov r9d, dword [r13 + 8]
mov r8d, dword [r12 + 8]
mov rcx, qword [rbp + 0x10]
mov edx, 0x4d
mov dword [rsp + 0x20], eax
call fcn.140087c80
mov r8d, dword [r13 + 4]
mov edx, recv
mov rcx, rsi
call fcn.140087d80
jmp 0x1400d9803
movzx eax, byte [rbp + 0x1f]
test al, al
jne 0x1400d95c2
inc dword [rbp + 0x38]
mov edi, dword [rbp + 0x38]
jmp 0x1400d95d1
dec al
movzx eax, al
mov byte [rbp + 0x1f], al
mov edi, dword [rbp + rax*4 + 0xc4]
movzx eax, byte [rbp + 0x1f]
test al, al
jne 0x1400d95e1
inc dword [rbp + 0x38]
mov ebx, dword [rbp + 0x38]
jmp 0x1400d95f0
dec al
movzx eax, al
mov byte [rbp + 0x1f], al
mov ebx, dword [rbp + rax*4 + 0xc4]
mov r9d, dword [r12 + 0xc]
mov r8d, dword [r12 + 8]
mov edx, 0x66
mov rcx, rsi
mov dword [rsp + 0x20], edi
call fcn.140087c80
mov rax, qword [rsi + 0x18]
movsxd rcx, dword [rsi + 0xb8]
mov edx, dword [r13 + 4]
xor r12d, r12d
cmp dword [rax + 0x3c], ecx
jg 0x1400d963c
mov r8d, edx
lea edx, [r12 + 0x79]
mov r9d, ebx
mov rcx, rsi
mov dword [rsp + 0x20], r12d
call fcn.140087c10
jmp 0x1400d966e
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [rsi + 0xb8], eax
mov rax, qword [rsi + 0x68]
mov byte [rax + rcx*8], 0x79
mov word [rax + rcx*8 + 2], r12w
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], ebx
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
mov byte [rax + rcx*8 + 1], r12b
mov r8d, dword [r13 + 4]
mov r9d, edi
mov edx, 0x7a
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call fcn.140087c80
movsxd r11, dword [rsi + 0xb8]
test r11d, r11d
jle 0x1400d96a4
mov rax, qword [rsi + 0x68]
lea rcx, [r11 + r11*2]
mov edx, 8
mov word [rax + rcx*8 - 0x16], dx
test ebx, ebx
je 0x1400d96bd
movzx eax, byte [rbp + 0x1f]
cmp al, 8
jae 0x1400d96bd
movzx eax, al
mov dword [rbp + rax*4 + 0xc4], ebx
inc byte [rbp + 0x1f]
test edi, edi
je 0x1400d9806
movzx eax, byte [rbp + 0x1f]
cmp al, 8
jae 0x1400d9806
movzx eax, al
mov dword [rbp + rax*4 + 0xc4], edi
inc byte [rbp + 0x1f]
jmp 0x1400d9806
movzx eax, byte [rbp + 0x1f]
test al, al
jne 0x1400d96f4
inc dword [rbp + 0x38]
mov r14d, dword [rbp + 0x38]
jmp 0x1400d9704
dec al
movzx eax, al
mov byte [rbp + 0x1f], al
mov r14d, dword [rbp + rax*4 + 0xc4]
mov edi, dword [r12 + 0xc]
mov r8d, dword [r12 + 8]
mov rbx, qword [r13 + 0x10]
mov r9d, edi
mov edx, 0x66
mov rcx, rsi
mov dword [rsp + 0x20], r14d
call fcn.140087c80
mov r9d, edi
mov r8, rbx
mov rcx, rsi
mov edx, eax
call fcn.140088c90
mov eax, dword [r12 + 8]
mov r8d, dword [r13 + 4]
mov ebx, dword [r12 + 0xc]
mov r9d, r14d
mov edx, 0x85
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.140087c80
mov rcx, qword [rsi]
cmp byte [rcx + 0x61], 0
jne 0x1400d9775
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x68]
mov byte [rax + rcx*8 + 1], 0xfd
mov dword [rax + rcx*8 + 0x10], ebx
test r14d, r14d
je 0x1400d9803
movzx eax, byte [rbp + 0x1f]
cmp al, 8
jae 0x1400d9803
movzx eax, al
mov dword [rbp + rax*4 + 0xc4], r14d
inc byte [rbp + 0x1f]
jmp 0x1400d9803
mov r10, qword [rbp + 0x10]
mov edx, dword [r13 + 4]
mov r8d, dword [r12 + 8]
mov rax, qword [r10 + 0x18]
movsxd rcx, dword [r10 + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x1400d97cd
mov r9d, edx
mov rcx, r10
mov edx, 0x4d
mov dword [rsp + 0x20], 1
call fcn.140087c10
jmp 0x1400d9803
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
mov dword [r10 + 0xb8], eax
mov rax, qword [r10 + 0x68]
mov byte [rax + rcx*8], 0x4d
mov dword [rax + rcx*8 + 0xc], 1
mov byte [rax + rcx*8 + 1], 0
mov qword [rax + rcx*8 + 0x10], rbx
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 4], r8d
mov word [rax + rcx*8 + 2], bx
xor r12d, r12d
mov rax, qword [rsp + 0x88]
mov r8d, dword [rax + 0x10]
test r8d, r8d
je 0x1400d987d
mov rax, qword [rsi + 0x18]
movsxd rcx, dword [rsi + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x1400d9843
mov r9d, dword [rsp + 0xb8]
mov edx, 0x31
mov rcx, rsi
mov dword [rsp + 0x20], r12d
call fcn.140087c10
jmp 0x1400d987d
lea rdx, [rcx + rcx*2]
lea eax, [rcx + 1]
mov rcx, qword [rsi + 0x68]
mov dword [rsi + 0xb8], eax
mov eax, dword [rsp + 0xb8]
mov byte [rcx + rdx*8], 0x31
mov word [rcx + rdx*8 + 2], r12w
mov dword [rcx + rdx*8 + 4], r8d
mov dword [rcx + rdx*8 + 0xc], r12d
mov dword [rcx + rdx*8 + 8], eax
mov qword [rcx + rdx*8 + 0x10], r12
mov byte [rcx + rdx*8 + 1], 0
mov rax, qword [rsi + 0x18]
mov rcx, qword [rax + 0x50]
test rcx, rcx
je 0x1400d98a0
movsxd rax, r15d
lea rax, [rax*4 + 4]
sub rcx, rax
mov eax, dword [rsi + 0xb8]
mov dword [rcx], eax
mov rax, qword [rsi + 0x18]
movsxd rcx, dword [rsi + 0xb8]
cmp dword [rax + 0x3c], ecx
jg 0x1400d98ce
mov r8d, dword [rsp + 0xa0]
xor r9d, r9d
mov rcx, rsi
lea edx, [r9 + 0x42]
mov dword [rsp + 0x20], r12d
call fcn.140087c10
jmp 0x1400d990b
mov rdx, qword [rsi + 0x68]
lea r8, [rcx + rcx*2]
lea eax, [rcx + 1]
mov ecx, dword [rsp + 0xa0]
mov dword [rsi + 0xb8], eax
mov byte [rdx + r8*8], 0x42
mov word [rdx + r8*8 + 2], r12w
mov dword [rdx + r8*8 + 8], r12d
mov dword [rdx + r8*8 + 0xc], r12d
mov dword [rdx + r8*8 + 4], ecx
mov qword [rdx + r8*8 + 0x10], r12
mov byte [rdx + r8*8 + 1], 0
mov eax, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret