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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [rcx]
mov r15, rcx
xor ecx, ecx
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x40], ecx
mov r13d, r9d
mov dword [rsp + 0x3c], ecx
mov rbx, r8
mov r14, rdx
mov r12d, ecx
test r8, r8
je 0x140161709
cmp qword [r15 + 0x190], rcx
jne 0x140161709
cmp qword [r8 + 0x68], rcx
jne 0x140161709
mov rcx, r15
call fcn.14012c450
test rax, rax
jne 0x140161709
cmp dword [r14 + 0x54], r12d
jne 0x140161709
cmp r13d, 0xb
jne 0x1401614b3
cmp word [r14 + 0x44], r12w
jl 0x1401614ad
movzx r13d, byte [r14 + 0x4e]
cmp r13d, 0xb
jne 0x1401614b3
mov r13d, 2
mov r8, qword [rbx + 0x28]
cmp dword [r8], 1
jne 0x140161709
cmp qword [r8 + 0x30], r12
jne 0x140161709
cmp qword [rbx + 0x30], r12
jne 0x140161709
cmp qword [rbx + 0x48], r12
jne 0x140161709
cmp qword [rbx + 0x38], r12
jne 0x140161709
cmp qword [rbx + 0x60], r12
jne 0x140161709
cmp qword [rbx + 0x50], r12
jne 0x140161709
test byte [rbx + 4], 1
jne 0x140161709
mov rax, qword [rbx + 0x20]
cmp dword [rax], 1
jne 0x140161709
mov rax, qword [rax + 8]
cmp byte [rax], 0xb1
jne 0x140161709
add r8, 8
xor edx, edx
mov rcx, r15
call fcn.1401185a0
mov qword [rsp + 0x48], rax
mov rdx, rax
test rax, rax
je 0x140161709
mov ecx, dword [r14 + 0x38]
cmp dword [rax + 0x38], ecx
jne 0x140161557
mov rcx, qword [r14 + 0x70]
cmp qword [rax + 0x70], rcx
je 0x140161709
mov eax, dword [rax + 0x40]
mov ecx, dword [r14 + 0x40]
shr ecx, 7
shr eax, 7
not ecx
not eax
xor ecx, eax
test cl, 1
jne 0x140161709
cmp dword [rdx + 0x54], r12d
jne 0x140161709
cmp qword [rdx + 0x18], r12
jne 0x140161709
movzx ecx, word [r14 + 0x46]
cmp cx, word [rdx + 0x46]
jne 0x140161709
movzx eax, word [rdx + 0x44]
cmp word [r14 + 0x44], ax
jne 0x140161709
xor r10d, r10d
lea r11, [0x1401b9c20]
mov r15d, r10d
cmp r10w, cx
jge 0x1401616c4
mov ebp, r10d
mov esi, r10d
mov rbx, qword [r14 + 8]
mov rdi, qword [rdx + 8]
add rbx, rsi
add rdi, rsi
movzx ecx, word [rbx + 0x1c]
movzx eax, word [rdi + 0x1c]
and cx, 0x60
and ax, 0x60
cmp cx, ax
jne 0x140161709
test cx, cx
je 0x140161615
mov r8, qword [rbx + 8]
mov r9d, 0xffffffff
mov rdx, qword [rdi + 8]
xor ecx, ecx
call fcn.140109f60
test eax, eax
jne 0x140161709
xor r10d, r10d
lea r11, [0x1401b9c20]
movzx eax, byte [rdi + 0x19]
cmp byte [rbx + 0x19], al
jne 0x140161709
mov r8, qword [rbx + 0x10]
mov r9, qword [rdi + 0x10]
test r8, r8
jne 0x140161723
neg r9
sbb edx, edx
test edx, edx
jne 0x140161709
cmp byte [rbx + 0x18], r12b
je 0x140161650
cmp byte [rdi + 0x18], r12b
je 0x140161709
test byte [rbx + 0x1c], 0x60
jne 0x1401616a7
test rbp, rbp
jle 0x1401616a7
mov r8, qword [rdi + 8]
mov ecx, r10d
mov rdx, qword [rbx + 8]
test r8, r8
mov eax, r10d
sete cl
test rdx, rdx
sete al
cmp eax, ecx
jne 0x140161709
test rdx, rdx
je 0x1401616a7
mov rax, qword [rdx + 8]
mov r8, qword [r8 + 8]
sub r8, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x1401616a3
inc rax
test ecx, ecx
jne 0x140161690
test edx, edx
jne 0x140161709
movsx eax, word [r14 + 0x46]
inc r15d
mov rdx, qword [rsp + 0x48]
inc rbp
add rsi, 0x20
cmp r15d, eax
jl 0x1401615c2
mov rdi, qword [r14 + 0x10]
mov eax, 1
test rdi, rdi
je 0x1401617aa
nop word [rax + rax]
cmp byte [rdi + 0x62], 0
mov rbx, qword [rdx + 0x10]
cmovne r12d, eax
test rbx, rbx
je 0x140161709
mov rdx, rbx
mov rcx, rdi
call fcn.1401612c0
test eax, eax
jne 0x140161761
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1401616f1
xor eax, eax
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test r9, r9
je 0x140161709
sub r9, r8
nop dword [rax + rax]
movzx edx, byte [r8]
movzx eax, byte [r9 + r8]
cmp edx, eax
jne 0x14016174a
test edx, edx
je 0x140161640
inc r8
jmp 0x140161730
movzx ecx, byte [rax + r11]
movzx edx, byte [rdx + r11]
sub edx, ecx
jne 0x140161638
inc r8
jmp 0x140161730
mov eax, dword [rdi + 0x58]
mov rdx, qword [rsp + 0x48]
cmp dword [rbx + 0x58], eax
jne 0x140161798
mov rax, qword [r14 + 0x70]
cmp qword [rdx + 0x70], rax
jne 0x140161798
mov rax, qword [0x140202868]
test rax, rax
je 0x140161709
mov ecx, 0x19b
call rax
test eax, eax
je 0x140161709
mov rdx, qword [rsp + 0x48]
mov rdi, qword [rdi + 0x28]
mov eax, 1
test rdi, rdi
jne 0x1401616e0
mov rax, qword [r14 + 0x30]
test rax, rax
je 0x140161814
mov rsi, qword [rdx + 0x30]
test rsi, rsi
je 0x140161709
mov ecx, dword [rsi]
cmp ecx, dword [rax]
jne 0x140161709
xor r8d, r8d
mov edi, r8d
test ecx, ecx
jle 0x140161817
mov rbp, rsi
lea rbx, [rax + 0x18]
sub rbp, rax
nop
movzx eax, byte [rbx]
cmp byte [rbx + rbp], al
jne 0x140161709
mov r8, qword [rbx - 0x10]
mov r9d, 0xffffffff
mov rdx, qword [rbx + rbp - 0x10]
xor ecx, ecx
call fcn.140109f60
test eax, eax
jne 0x140161709
inc edi
add rbx, 0x20
cmp edi, dword [rsi]
jl 0x1401617e0
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rax, qword [rdx + 0x30]
bt rax, 0xe
jae 0x140161832
cmp qword [r14 + 0x20], 0
jne 0x140161709
bt rax, 0x20
jb 0x140161709
mov rax, qword [rsp + 0x48]
mov ebx, 0xffff8000
mov dword [rsp + 0x30], ebx
mov rcx, qword [rax + 0x70]
test rcx, rcx
je 0x14016187f
mov rax, qword [rdx + 0x20]
mov ebx, r8d
add rax, 0x18
mov dword [rsp + 0x30], ebx
cmp qword [rax], rcx
je 0x14016187f
nop dword [rax + rax]
inc ebx
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x140161870
mov dword [rsp + 0x30], ebx
mov rsi, qword [rsp + 0xa0]
mov rdi, qword [rsi + 0x10]
test rdi, rdi
jne 0x1401618b1
cmp qword [rsi + 0xa0], rdi
jne 0x1401618a6
mov rax, qword [rsi]
test byte [rax + 0x5c], 8
jne 0x1401618a6
mov byte [rsi + 0x23], 1
mov rcx, rsi
call fcn.1401314b0
mov rdi, rax
mov rcx, qword [rsi + 0xa0]
mov rax, rsi
test rcx, rcx
cmovne rax, rcx
mov ecx, dword [rax + 0x74]
bt ecx, ebx
jb 0x1401618dd
bts ecx, ebx
mov dword [rax + 0x74], ecx
cmp ebx, 1
jne 0x1401618dd
mov rcx, rax
call fcn.1401198a0
mov eax, dword [rsi + 0x34]
mov r8, r14
mov edx, dword [rsp + 0xc0]
mov rcx, rsi
mov dword [rsp + 0x38], eax
lea r15d, [rax + 1]
lea eax, [r15 + 1]
mov dword [rsp + 0x44], r15d
mov dword [rsi + 0x34], eax
call fcn.1400c75c0
movzx ecx, byte [rsi + 0x1f]
mov ebp, eax
test cl, cl
jne 0x140161922
inc dword [rsi + 0x38]
mov ecx, dword [rsi + 0x38]
inc dword [rsi + 0x38]
mov eax, dword [rsi + 0x38]
mov dword [rsp + 0x34], ecx
jmp 0x140161950
dec cl
movzx eax, cl
mov byte [rsi + 0x1f], al
mov ecx, dword [rsi + rax*4 + 0xd4]
mov dword [rsp + 0x34], ecx
test al, al
jne 0x140161941
inc dword [rsi + 0x38]
mov eax, dword [rsi + 0x38]
jmp 0x140161950
dec al
movzx eax, al
mov byte [rsi + 0x1f], al
mov eax, dword [rsi + rax*4 + 0xd4]
mov r8d, dword [rsp + 0xc0]
mov r9, r14
mov edx, r15d
mov dword [rsp + 0xb0], eax
mov rcx, rsi
mov dword [rsp + 0x20], 0x61
call fcn.140119530
mov rax, qword [rsp + 0x50]
test byte [rax + 0x2c], 4
jne 0x1401619d0
cmp word [r14 + 0x44], 0
jge 0x14016198f
cmp qword [r14 + 0x10], 0
jne 0x14016199d
test r12d, r12d
jne 0x14016199d
lea eax, [r13 - 1]
cmp eax, 1
jbe 0x1401619d0
xor r9d, r9d
mov r8d, r15d
mov rcx, rdi
lea edx, [r9 + 0x25]
call fcn.140130a10
mov edx, reloc.WS2_32.dll_inet_addr
mov rcx, rdi
mov ebx, eax
call fcn.140130930
mov edx, ebx
mov dword [rsp + 0x40], eax
mov rcx, rdi
call fcn.14013b900
mov ebx, dword [rsp + 0x30]
mov rax, qword [rsp + 0x48]
mov rcx, rsi
test byte [rax + 0x40], 0x80
jne 0x140161c2c
mov r12d, dword [rsp + 0x38]
mov r9, rax
mov edx, r12d
mov dword [rsp + 0x20], 0x60
mov r8d, ebx
call fcn.140119530
xor r9d, r9d
mov r8d, r12d
mov rcx, rdi
lea edx, [r9 + 0x25]
call fcn.140130a10
cmp word [r14 + 0x44], 0
mov dword [rsp + 0x3c], eax
jl 0x140161a88
mov ebx, dword [rsp + 0xb0]
mov r8d, r12d
mov r9d, ebx
mov edx, 0x80
mov rcx, rdi
call fcn.140130a10
xor r9d, r9d
mov dword [rsp + 0x20], ebx
mov r8d, r15d
mov rcx, rdi
mov esi, eax
lea edx, [r9 + 0x20]
call fcn.140130a80
mov rcx, qword [rsp + 0xa0]
mov r8, r14
mov edx, r13d
mov ebx, eax
call fcn.140124250
mov edx, ebx
mov rcx, rdi
call fcn.14013b900
mov r13d, dword [rsp + 0xb0]
mov edx, ebp
mov rcx, qword [rsp + 0xa0]
mov r8d, r13d
call fcn.1400c76c0
jmp 0x140161adb
cmp qword [r14 + 0x10], 0
jne 0x140161abe
mov rax, qword [rsp + 0x50]
test byte [rax + 0x2c], 8
jne 0x140161abe
mov r13d, dword [rsp + 0xb0]
lea ebp, [r12 + 1]
mov r8d, ebp
mov r9d, r13d
mov edx, 0x79
mov rcx, rdi
call fcn.140130a10
mov esi, eax
jmp 0x140161ae0
mov r13d, dword [rsp + 0xb0]
mov r8d, r12d
mov r9d, r13d
mov edx, 0x80
mov rcx, rdi
call fcn.140130a10
mov esi, eax
lea ebp, [r12 + 1]
mov rax, qword [rsp + 0x50]
test byte [rax + 0x2c], 4
je 0x140161b02
mov r8d, ebp
mov edx, 0x82
mov rcx, rdi
call fcn.1401309a0
mov ebx, 0x18
jmp 0x140161b07
mov ebx, 0x29
mov r15d, dword [rsp + 0x34]
mov eax, 1
mov r9d, r15d
mov dword [rsp + 0x20], eax
mov r8d, r12d
mov rcx, rdi
lea edx, [rax + 0x7e]
call fcn.140130a80
movsxd rdx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], edx
jg 0x140161b51
mov r9d, r15d
mov dword [rsp + 0x20], r13d
mov r8d, ebp
mov edx, 0x7a
mov rcx, rdi
call fcn.1400dfcb0
mov edx, eax
jmp 0x140161b82
lea rcx, [rdx + rdx*2]
xor r8d, r8d
lea eax, [rdx + 1]
mov dword [rdi + 0x90], eax
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x7a
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], r13d
mov qword [rax + rcx*8 + 0x10], r8
mov rax, qword [rdi]
cmp byte [rax + 0x61], 0
jne 0x140161bcb
test edx, edx
jns 0x140161b97
mov edx, dword [rdi + 0x90]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x140161bc3
mov r9d, 0xfffffffa
mov r8, r14
mov rcx, rdi
call fcn.14014f240
jmp 0x140161bcb
mov qword [rdx + 0x10], r14
mov byte [rdx + 1], 0xfa
movsxd rax, dword [rdi + 0x90]
test eax, eax
jle 0x140161be6
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov word [rax + rcx*8 - 0x16], bx
mov r9d, esi
mov r8d, r12d
mov edx, 5
mov rcx, rdi
call fcn.140130a10
xor r9d, r9d
mov r8d, r12d
mov rcx, rdi
lea edx, [r9 + 0x74]
call fcn.140130a10
xor r9d, r9d
mov r8d, ebp
mov rcx, rdi
lea edx, [r9 + 0x74]
call fcn.140130a10
mov rsi, qword [rsp + 0xa0]
mov r15, qword [rsp + 0x48]
jmp 0x140161c6e
mov rax, qword [r14]
mov r9b, 1
mov r8d, dword [r14 + 0x38]
mov edx, dword [rsp + 0xc0]
mov qword [rsp + 0x20], rax
call fcn.14012b6c0
mov r15, qword [rsp + 0x48]
xor r9d, r9d
mov edx, ebx
mov rcx, rsi
mov rax, qword [r15]
mov r8d, dword [r15 + 0x38]
mov qword [rsp + 0x20], rax
call fcn.14012b6c0
mov r12d, dword [rsp + 0x38]
mov ebp, dword [rsp + 0x44]
mov r13, qword [r14 + 0x10]
test r13, r13
je 0x1401621ff
xor r14d, r14d
jmp 0x140161c88
mov rsi, qword [rsp + 0xa0]
mov rbx, qword [r15 + 0x10]
test rbx, rbx
je 0x140161ca9
mov rdx, rbx
mov rcx, r13
call fcn.1401612c0
test eax, eax
jne 0x140161ca9
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140161c91
movsxd rcx, dword [rdi + 0x90]
mov edx, dword [rbx + 0x58]
cmp dword [rdi + 0x94], ecx
jg 0x140161cd8
mov eax, dword [rsp + 0x30]
mov r9d, edx
mov edx, 0x60
mov dword [rsp + 0x20], eax
mov r8d, r12d
mov rcx, rdi
call fcn.1400dfcb0
jmp 0x140161d09
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rsp + 0x30]
mov dword [rax + rcx*8 + 0xc], edx
mov dword [rax + rcx*8], 0x60
mov dword [rax + rcx*8 + 4], r12d
mov qword [rax + rcx*8 + 0x10], r14
mov r15, qword [rsp + 0xa0]
mov rdx, rbx
mov rsi, qword [rsi + 0x10]
mov rcx, r15
call fcn.140117310
mov r8, rax
test rax, rax
je 0x140161d6b
mov rax, qword [rsi]
cmp byte [rax + 0x61], 0
je 0x140161d4f
cmp qword [rax + 0x2d8], 0
jne 0x140161d6b
add dword [r8], 0xffffffff
jne 0x140161d6b
mov rcx, qword [r8 + 0x10]
mov rdx, r8
call fcn.140103330
jmp 0x140161d6b
movsxd rax, dword [rsi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov byte [rax + rcx*8 - 0x17], 0xf7
mov qword [rax + rcx*8 - 8], r8
movsxd rcx, dword [rdi + 0x90]
mov edx, dword [r13 + 0x58]
cmp dword [rdi + 0x94], ecx
jg 0x140161d9e
mov eax, dword [rsp + 0xc0]
mov r9d, edx
mov edx, 0x61
mov dword [rsp + 0x20], eax
mov r8d, ebp
mov rcx, rdi
call fcn.1400dfcb0
jmp 0x140161dd1
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rsp + 0xc0]
mov dword [rax + rcx*8 + 0xc], edx
mov dword [rax + rcx*8], 0x61
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 0x10], r14
mov rsi, qword [r15 + 0x10]
mov rdx, r13
mov rcx, r15
call fcn.140117310
mov r8, rax
test rax, rax
je 0x140161e2b
mov rax, qword [rsi]
cmp byte [rax + 0x61], 0
je 0x140161e0f
cmp qword [rax + 0x2d8], 0
jne 0x140161e2b
add dword [r8], 0xffffffff
jne 0x140161e2b
mov rcx, qword [r8 + 0x10]
mov rdx, r8
call fcn.140103330
jmp 0x140161e2b
movsxd rax, dword [rsi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov byte [rax + rcx*8 - 0x17], 0xf7
mov qword [rax + rcx*8 - 8], r8
movsxd r15, dword [rdi + 0x90]
test r15d, r15d
jle 0x140161e53
mov rax, qword [rdi + 0x88]
lea rcx, [r15 + r15*2]
mov edx, 1
mov word [rax + rcx*8 - 0x16], dx
mov r15d, dword [rdi + 0x90]
cmp dword [rdi + 0x94], r15d
jg 0x140161e78
xor r9d, r9d
mov dword [rsp + 0x20], r14d
mov r8d, r12d
mov rcx, rdi
lea edx, [r9 + 0x25]
call fcn.1400dfcb0
mov r15d, eax
jmp 0x140161eaa
lea eax, [r15 + 1]
mov dword [rdi + 0x90], eax
movsxd rax, r15d
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x25
mov dword [rax + rcx*8 + 4], r12d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r14
mov rax, qword [rsp + 0x50]
test byte [rax + 0x2c], 4
je 0x140161fdd
mov esi, r14d
mov r11, r14
movzx r14d, word [rbx + 0x60]
test r14d, r14d
je 0x140161f13
mov r10, qword [rbx + 0x40]
lea r12, [0x1401b8264]
mov r9, qword [r10]
test r9, r9
je 0x140161f09
mov r8, r12
sub r9, r12
movzx ecx, byte [r8]
movzx eax, byte [r9 + r8]
cmp ecx, eax
jne 0x140161f88
test ecx, ecx
jne 0x140161f9f
inc esi
inc r11
add r10, 8
cmp r11, r14
jl 0x140161ed4
mov r12d, dword [rsp + 0x38]
lea ebp, [r12 + 1]
xor eax, eax
movzx ebx, ax
cmp esi, r14d
jne 0x140161fd5
movsxd rcx, dword [rdi + 0x90]
xor r14d, r14d
cmp dword [rdi + 0x94], ecx
jg 0x140161fa7
xor r9d, r9d
mov dword [rsp + 0x20], r14d
mov r8d, ebp
mov edx, 0x82
mov rcx, rdi
call fcn.1400dfcb0
mov ebx, reloc.WS2_32.dll_recv
mov edx, 1
movsxd rcx, dword [rdi + 0x90]
mov esi, dword [rsp + 0x34]
cmp dword [rdi + 0x94], ecx
jg 0x14016200b
mov dword [rsp + 0x20], edx
mov r9d, esi
mov edx, 0x7f
mov r8d, r12d
mov rcx, rdi
call fcn.1400dfcb0
jmp 0x140162038
lea rbx, [0x1401b9c20]
movzx edx, byte [rax + rbx]
movzx ecx, byte [rcx + rbx]
cmp ecx, edx
jne 0x140161f09
inc r8
jmp 0x140161ee2
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x82
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], r14
mov qword [rax + rcx*8 + 0x10], r14
jmp 0x140161f4b
xor r14d, r14d
jmp 0x140161f50
mov rax, qword [rsp + 0x48]
movzx ebx, r14w
test byte [rax + 0x40], 0x80
je 0x140161f50
mov eax, dword [r13 + 0x64]
mov edx, 1
and al, 3
cmp al, 2
jne 0x140161f55
movzx ebx, dx
jmp 0x140161f55
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x7f
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], r14
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x140162061
mov r9d, esi
mov dword [rsp + 0x20], r14d
mov r8d, ebp
mov edx, 0x83
mov rcx, rdi
call fcn.1400dfcb0
jmp 0x14016208e
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x83
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], esi
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r14
movsxd rcx, dword [rdi + 0x90]
test ecx, ecx
jle 0x1401620b3
mov rax, qword [rdi + 0x88]
lea rcx, [rcx + rcx*2]
or bx, 8
mov word [rax + rcx*8 - 0x16], bx
mov ecx, dword [rdi + 0x90]
lea edx, [r15 + 1]
cmp dword [rdi + 0x94], ecx
jg 0x1401620d9
mov r9d, edx
mov dword [rsp + 0x20], r14d
mov edx, 5
mov r8d, r12d
mov rcx, rdi
call fcn.1400dfcb0
jmp 0x14016210a
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 5
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r14d
mov qword [rax + rcx*8 + 0x10], r14
mov rax, qword [rdi]
mov edx, dword [rdi + 0x90]
cmp byte [rax + 0x61], 0
je 0x140162122
lea rax, [0x1402100a0]
jmp 0x14016213d
lea eax, [rdx - 1]
test r15d, r15d
cmovns eax, r15d
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x140162168
xor r9d, r9d
mov dword [rsp + 0x20], r14d
mov r8d, r12d
mov rcx, rdi
lea edx, [r9 + 0x74]
call fcn.1400dfcb0
jmp 0x140162196
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], reloc.WS2_32.dll_WSACleanup
mov dword [rax + rcx*8 + 4], r12d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r14
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x1401621be
xor r9d, r9d
mov dword [rsp + 0x20], r14d
mov r8d, ebp
mov rcx, rdi
lea edx, [r9 + 0x74]
call fcn.1400dfcb0
jmp 0x1401621eb
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], reloc.WS2_32.dll_WSACleanup
mov dword [rax + rcx*8 + 4], ebp
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r14
mov r13, qword [r13 + 0x28]
mov r15, qword [rsp + 0x48]
test r13, r13
jne 0x140161c80
jmp 0x140162203
mov esi, dword [rsp + 0x34]
mov eax, dword [rsp + 0x3c]
test eax, eax
je 0x140162215
mov edx, eax
mov rcx, rdi
call fcn.14013b900
mov ebx, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0xa0]
test ebx, ebx
je 0x14016223a
movzx eax, byte [rcx + 0x1f]
cmp al, 8
jae 0x14016223a
mov dword [rcx + rax*4 + 0xd4], ebx
inc byte [rcx + 0x1f]
test esi, esi
je 0x140162250
movzx eax, byte [rcx + 0x1f]
cmp al, 8
jae 0x140162250
mov dword [rcx + rax*4 + 0xd4], esi
inc byte [rcx + 0x1f]
mov ebx, dword [rsp + 0x40]
test ebx, ebx
je 0x14016229a
cmp qword [rcx + 0x98], 0
je 0x140162267
call fcn.1400c7730
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x44]
call fcn.140130a10
mov edx, ebx
mov rcx, rdi
call fcn.14013b900
xor r9d, r9d
mov r8d, ebp
mov rcx, rdi
lea edx, [r9 + 0x74]
call fcn.140130a10
jmp 0x140161709
mov eax, 1
jmp 0x14016170b