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

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0xd8
mov rdi, qword [rcx + 0x10]
mov r12, r9
mov rbp, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x68], rdi
xorps xmm0, xmm0
mov qword [rsp + 0x38], rbp
mov rbx, r8
mov r13, rdx
mov r14, rcx
movdqu xmmword [rax - 0x80], xmm0
test r12, r12
je 0x140164c59
cmp dword [r12], 0x40
cmovge r12, r9
mov qword [rax + 0x20], r12
mov eax, dword [rdx]
cmp eax, 0x40
jle 0x140164c85
mov r8d, 0x40
lea rdx, str.at_most__d_tables_in_a_join
call fcn.140127e00
xor eax, eax
add rsp, 0xd8
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
test byte [rsp + 0x140], 0x20
mov ecx, 1
mov qword [rsp + 0x120], rsi
cmovne eax, ecx
mov qword [rsp + 0xd0], r15
mov dword [rsp + 0x30], eax
mov rcx, rbp
imul eax, eax, 0x70
add eax, 0x360
movsxd rsi, eax
lea rdx, [rsi + 0x70]
call fcn.1401252f0
cmp byte [rbp + 0x67], 0
mov r15, rax
mov qword [rsp + 0x50], rax
je 0x140164ce7
test rax, rax
je 0x140165e55
mov rdx, rax
mov rcx, rbp
call fcn.140125160
jmp 0x140165e55
movsxd rcx, dword [rsp + 0x30]
xorps xmm0, xmm0
mov qword [rax + 8], r13
xor edx, edx
mov r13, qword [rsp + 0x138]
mov qword [rax], r14
mov qword [rax + 0x10], r12
mov rax, qword [rsp + 0x130]
mov qword [r15 + 0x18], rax
mov rax, 0xffffffffffffffff
mov qword [r15 + 0x28], rax
mov byte [r15 + 0x40], cl
mov qword [rsp + 0x60], rax
mov eax, dword [r14 + 0x44]
dec eax
mov dword [r14 + 0x44], eax
mov dword [r15 + 0x30], eax
mov dword [r15 + 0x34], eax
movzx eax, word [rsp + 0x140]
mov word [r15 + 0x3c], ax
mov eax, dword [rsp + 0x148]
mov word [r15 + 0x3e], ax
movsx eax, word [r14 + 0xd8]
mov dword [r15 + 0x38], eax
xor eax, eax
mov qword [r15 + 0x20], r13
movups xmmword [r15 + 0x41], xmm0
movups xmmword [r15 + 0x51], xmm0
mov qword [r15 + 0x61], rax
mov dword [r15 + 0x69], eax
mov word [r15 + 0x6d], ax
mov byte [r15 + 0x6f], al
lea rax, [rcx + 1]
imul r8, rax, 0x70
lea rcx, [r15 + 0x360]
call fcn.1401b9ec0
lea r14, [r15 + 0x70]
xor ebp, ebp
mov dword [r15 + 0x25c], ebp
lea rcx, [rsi + r15]
mov dword [r15 + 0x260], 0xffffff9d
lea rax, [rcx + 0x58]
mov qword [rsp + 0x70], r15
mov rsi, rbx
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], rcx
mov qword [rcx + 0x48], rax
lea rax, [r14 + 0x28]
mov word [rcx + 0x3c], bp
mov word [rcx + 0x40], 3
mov dword [rcx + 0x38], ebp
mov qword [r14 + 0x20], rax
mov qword [r14], r15
mov byte [r14 + 0x11], bpl
mov qword [r14 + 8], rbp
mov dword [r14 + 0x14], ebp
mov qword [r14 + 0x18], 8
test rbx, rbx
je 0x140164e23
nop word [rax + rax]
mov eax, dword [rsi + 4]
test eax, 0x82000
je 0x140164e23
bt eax, 0x13
jae 0x140164e1a
mov rax, qword [rsi + 0x20]
mov rsi, qword [rax + 8]
jmp 0x140164e1e
mov rsi, qword [rsi + 0x10]
test rsi, rsi
jne 0x140164e00
mov byte [r14 + 0x10], 0x2c
test rsi, rsi
je 0x140165012
cmp byte [rsi], 0x2c
je 0x140164ff4
movsxd rax, dword [r14 + 0x18]
cmp ebp, eax
jl 0x140164f64
mov rbp, qword [r14 + 0x20]
mov rsi, r15
imul r15, rax, 0x70
mov rax, qword [rsi]
mov rcx, qword [rax]
lea rdx, [r15 + 0x10]
movzx eax, word [rcx + 0x1a4]
cmp rdx, rax
jbe 0x140164e8a
cmp dword [rcx + 0x1a0], 0
jne 0x140164e7b
inc dword [rcx + 0x1b4]
jmp 0x140164f11
cmp byte [rcx + 0x67], 0
jne 0x140164f3a
jmp 0x140164f11
cmp rdx, 0x80
ja 0x140164ecf
mov r9, qword [rcx + 0x1d8]
test r9, r9
je 0x140164eb1
mov rax, qword [r9]
mov qword [rcx + 0x1d8], rax
inc dword [rcx + 0x1b0]
jmp 0x140164f1e
mov r9, qword [rcx + 0x1d0]
test r9, r9
je 0x140164ecf
mov rax, qword [r9]
mov qword [rcx + 0x1d0], rax
inc dword [rcx + 0x1b0]
jmp 0x140164f1e
mov r9, qword [rcx + 0x1c8]
test r9, r9
je 0x140164eed
mov rax, qword [r9]
mov qword [rcx + 0x1c8], rax
inc dword [rcx + 0x1b0]
jmp 0x140164f1e
mov r9, qword [rcx + 0x1c0]
test r9, r9
je 0x140164f0b
mov rax, qword [r9]
inc dword [rcx + 0x1b0]
mov qword [rcx + 0x1c0], rax
jmp 0x140164f1e
inc dword [rcx + 0x1b8]
call fcn.1400ec0e0
mov r9, rax
test rax, rax
je 0x140164f31
mov rax, qword [rsi + 0x60]
mov qword [r9], rax
mov qword [r9 + 8], r15
mov qword [rsi + 0x60], r9
add r9, 0x10
mov qword [r14 + 0x20], r9
test r9, r9
jne 0x140164f45
mov qword [r14 + 0x20], rbp
xor ebp, ebp
jmp 0x140165012
movsxd rax, dword [r14 + 0x14]
mov rdx, rbp
imul r8, rax, 0x38
mov rcx, r9
call fcn.1401b9820
mov eax, dword [r14 + 0x18]
add eax, eax
mov dword [r14 + 0x18], eax
xor ebp, ebp
movsxd rdx, dword [r14 + 0x14]
imul r8, rdx, 0x38
lea eax, [rdx + 1]
add r8, qword [r14 + 0x20]
mov dword [r14 + 0x14], eax
mov dword [r14 + 0x1c], eax
test rbx, rbx
je 0x140164fa1
test dword [rbx + 4], 0x80000
je 0x140164fa1
movsxd rcx, dword [rbx + 0x2c]
call fcn.14013b5f0
mov ecx, 0x10e
sub ax, cx
mov word [r8 + 0x10], ax
jmp 0x140164fb0
mov word [r8 + 0x10], 1
test rbx, rbx
je 0x140164fd3
nop dword [rax]
mov eax, dword [rbx + 4]
test eax, 0x82000
je 0x140164fd3
bt eax, 0x13
jae 0x140164fca
mov rax, qword [rbx + 0x20]
mov rbx, qword [rax + 8]
jmp 0x140164fce
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140164fb0
mov qword [r8], rbx
xorps xmm0, xmm0
mov word [r8 + 0x12], bp
xor eax, eax
mov qword [r8 + 8], r14
movups xmmword [r8 + 0x14], xmm0
movups xmmword [r8 + 0x24], xmm0
mov dword [r8 + 0x34], eax
jmp 0x140165012
mov rdx, qword [rsi + 0x10]
mov r8b, 0x2c
mov rcx, r14
call fcn.14016ac40
mov rdx, qword [rsi + 0x18]
mov r8b, 0x2c
mov rcx, r14
call fcn.14016ac40
cmp dword [rsp + 0x30], 0
mov ecx, 0x100
mov r15, qword [rsp + 0x50]
jne 0x140165066
test r12, r12
je 0x140165031
movzx eax, byte [r12]
mov byte [r15 + 0x41], al
test word [rsp + 0x140], cx
je 0x14016504b
mov rax, qword [rsp + 0x38]
test byte [rax + 0x60], 0x10
jne 0x14016504b
mov byte [r15 + 0x43], 1
mov rbp, qword [rsp + 0x110]
lea r8, str.SCAN_CONSTANT_ROW
mov rcx, rbp
xor edx, edx
call fcn.14015e7b0
jmp 0x1401650c5
mov r13, qword [rsp + 0x118]
mov ebx, ebp
mov rbp, qword [rsp + 0x110]
lea rsi, [r13 + 0x4c]
nop dword [rax]
movsxd rcx, dword [r15 + 0x25c]
mov r8, r14
mov eax, dword [rsi]
mov dword [r15 + rcx*4 + 0x260], eax
mov rcx, rbp
inc dword [r15 + 0x25c]
movsxd rax, ebx
imul rdx, rax, 0x68
add rdx, 8
add rdx, r13
call fcn.14016acc0
inc ebx
lea rsi, [rsi + 0x68]
cmp ebx, dword [r13]
jl 0x140165080
mov r13, qword [rsp + 0x138]
mov ebx, dword [r14 + 0x14]
sub ebx, 1
js 0x1401650f3
mov rsi, qword [rsp + 0x118]
nop word [rax + rax]
mov r8d, ebx
mov rdx, r14
mov rcx, rsi
call fcn.1400edba0
sub ebx, 1
jns 0x1401650e0
test r13, r13
je 0x14016510a
cmp qword [r13 + 0x60], 0
je 0x14016510a
mov rdx, r13
mov rcx, r14
call fcn.140164b00
cmp dword [rbp + 0x30], 0
jne 0x140165e3c
mov rax, qword [rsp + 0x78]
xor edx, edx
mov ebp, edx
cmp dword [rax + 0x1c], edx
jle 0x140165237
mov r13, qword [rsp + 0x110]
lea r8, [0x1400f1b70]
mov rdi, qword [rsp + 0x118]
lea r9, [0x14014d770]
mov r12d, dword [rsp + 0x30]
mov r14d, edx
nop dword [rax]
mov rax, qword [rsp + 0x78]
mov rbx, qword [rax + 0x20]
add rbx, r14
test byte [rbx + 0x12], 2
jne 0x140165203
cmp qword [rbx + 0x30], 0
mov rsi, qword [rbx]
jne 0x140165203
test r12d, r12d
je 0x1401651dd
mov qword [rsp + 0x98], rdx
mov eax, 1
mov word [rsp + 0xbc], ax
mov qword [rsp + 0xb0], rdx
mov dword [rsp + 0xb8], edx
mov qword [rsp + 0xbe], rdx
mov word [rsp + 0xc6], dx
mov qword [rsp + 0xa0], r8
mov qword [rsp + 0xa8], r9
test rsi, rsi
je 0x1401651dd
mov rdx, rsi
lea rcx, [rsp + 0x98]
call fcn.1401647d0
cmp word [rsp + 0xbc], 0
je 0x140165203
test byte [rsi + 4], 2
je 0x1401651e9
test byte [rdi + 0x44], 0x40
jne 0x140165203
mov r8d, dword [r15 + 0x34]
mov r9d, reloc.WS2_32.dll_recv
mov rdx, rsi
mov rcx, r13
call fcn.14012d170
or word [rbx + 0x12], 4
mov rax, qword [rsp + 0x78]
lea r8, [0x1400f1b70]
inc ebp
lea r9, [0x14014d770]
add r14, 0x38
mov edx, 0
cmp ebp, dword [rax + 0x1c]
jl 0x140165150
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x128]
movzx r13d, word [rsp + 0x140]
bt r13w, 8
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x130]
mov rbp, qword [rsp + 0x110]
mov r14, qword [rsp + 0x118]
jae 0x1401652b4
test byte [rsi + 0x60], 0x10
je 0x140165284
mov ecx, 0xfeff
and r13w, cx
and word [r15 + 0x3c], cx
mov word [rsp + 0x140], r13w
jmp 0x1401652b4
lea r8, [r15 + 0x70]
mov r9, rbx
mov rdx, r14
mov rcx, rbp
call fcn.1400fbe10
test eax, eax
je 0x1401652a1
mov byte [r15 + 0x43], 1
jmp 0x1401652b4
test r12, r12
jne 0x1401652b4
mov eax, 0x80
mov qword [r15 + 0x10], rbx
or word [r15 + 0x3c], ax
mov r12d, dword [rsp + 0x30]
cmp r12d, 1
jne 0x1401652cd
lea rcx, [rsp + 0x70]
call fcn.140181510
test eax, eax
jne 0x140165314
lea rcx, [rsp + 0x70]
call fcn.14017c8e0
test eax, eax
jne 0x140165e3c
xor edx, edx
mov rcx, r15
call fcn.14017feb0
cmp byte [rsi + 0x67], 0
jne 0x140165e3c
cmp qword [r15 + 0x10], 0
je 0x14016531b
movzx edx, word [r15 + 0x48]
mov rcx, r15
inc dx
call fcn.14017feb0
cmp byte [rsi + 0x67], 0
jne 0x140165e3c
cmp qword [r15 + 0x10], 0
jne 0x14016532d
mov eax, dword [rsi + 0x30]
bt rax, 0xc
jae 0x14016532d
mov rcx, r15
call fcn.140180c60
cmp dword [rbp + 0x30], 0
jne 0x140165e3c
movzx eax, byte [r15 + 0x40]
mov ecx, 0x400
cmp al, 2
jb 0x14016539e
test rbx, rbx
je 0x140165387
movzx eax, r13w
xor r9d, r9d
and ax, cx
cmp r9w, ax
jne 0x140165387
mov eax, 0x100
test dword [rsi + 0x60], eax
jne 0x140165387
lea rdx, [r9 - 1]
mov rcx, r15
call fcn.14017f210
movzx r12d, byte [r15 + 0x40]
mov qword [rsp + 0x60], rax
movzx eax, r12b
mov dword [rsp + 0x30], r12d
cmp al, 2
jb 0x14016539e
mov r11, qword [rsp + 0x38]
test dword [r11 + 0x60], 0x80000
jne 0x1401653a3
mov rcx, r15
call fcn.14017c310
mov r11, qword [rsp + 0x38]
mov rcx, qword [r15]
xor r9d, r9d
movzx eax, word [r15 + 0x48]
movzx r8d, word [rsp + 0x140]
mov word [rsp + 0x128], r9w
add word [rcx + 0xd8], ax
test r8b, 4
je 0x140165476
mov rdx, qword [r15 + 0x3c0]
mov ecx, dword [rdx + 0x38]
test ecx, 0x1000
jne 0x140165436
mov dword [rsp + 0x128], r9d
test r8b, 8
je 0x140165476
mov rax, qword [r14 + 0x28]
mov word [rsp + 0x128], r9w
cmp byte [rax + 0x3f], 1
je 0x140165476
bt ecx, 0xd
jae 0x14016541d
mov word [rsp + 0x128], r9w
test r8b, 0x10
je 0x140165476
test dword [r11 + 0x60], 0x8000000
mov word [rsp + 0x128], r9w
jne 0x140165476
test ecx, 0x1000
sete al
mov word [rsp + 0x128], r9w
inc al
mov byte [r15 + 0x42], al
mov rax, qword [r14 + 0x28]
test byte [rax + 0x30], 0x80
jne 0x140165476
mov word [rsp + 0x128], r9w
test cl, 0x40
je 0x140165476
and ecx, 0xffffffbf
movzx eax, r8w
and ax, 8
mov dword [rdx + 0x38], ecx
mov word [rsp + 0x128], ax
mov dword [rsp + 0x58], r9d
lea rbx, [r15 + 0x360]
mov qword [rsp + 0x40], rbx
test r12d, r12d
jle 0x140165c3a
jmp 0x1401654a5
mov r11, qword [rsp + 0x38]
movzx eax, byte [rbx + 0x40]
mov rdx, 0xffffffffffff8000
imul r13, rax, 0x68
mov r12d, edx
add r13, r14
mov r14, qword [r13 + 0x28]
mov qword [rsp + 0x48], r14
mov rcx, qword [r14 + 0x60]
test rcx, rcx
je 0x1401654ef
mov rax, qword [r11 + 0x20]
mov r12d, r9d
add rax, 0x18
mov rdx, r9
cmp qword [rax], rcx
je 0x1401654ef
nop
inc r12d
lea rax, [rax + 0x20]
inc rdx
cmp qword [rax], rcx
jne 0x1401654e0
test dword [r14 + 0x30], 0x4000
mov rsi, qword [rbx + 0x60]
mov qword [rsp + 0x68], rsi
jne 0x140165731
movzx eax, byte [r14 + 0x3f]
cmp al, 2
je 0x140165731
mov ecx, dword [rsi + 0x38]
bt ecx, 0xa
jae 0x140165604
mov rbx, qword [r14 + 0x50]
test rbx, rbx
je 0x14016553e
nop dword [rax]
cmp qword [rbx], r11
je 0x14016553e
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140165530
movsxd rdx, dword [rdi + 0x90]
mov r8d, dword [r13 + 0x4c]
cmp dword [rdi + 0x94], edx
jg 0x14016556a
mov dword [rsp + 0x20], r9d
mov edx, 0xad
xor r9d, r9d
mov rcx, rdi
call fcn.1400fa130
mov edx, eax
jmp 0x140165598
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rdi + 0x90], eax
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0xad
mov dword [rax + rcx*8 + 4], r8d
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rdi]
cmp byte [rax + 0x67], 0
jne 0x1401655d7
test edx, edx
jns 0x1401655ad
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 0x1401655e1
mov r9d, 0xfffffff5
mov r8, rbx
mov rcx, rdi
call fcn.1401738e0
mov rbx, qword [rsp + 0x40]
jmp 0x140165728
movzx r8d, word [rsp + 0x140]
test rbx, rbx
je 0x1401655fa
mov qword [rdx + 0x10], rbx
mov byte [rdx + 1], 0xf5
inc dword [rbx + 0x18]
mov rbx, qword [rsp + 0x40]
jmp 0x140165731
cmp al, 1
je 0x140165731
test cl, 0x40
jne 0x140165617
test r8b, 0x20
je 0x140165622
test byte [r13 + 0x44], 0x50
je 0x1401656f1
cmp byte [r15 + 0x42], 0
mov ecx, WSAStartup
je 0x14016563b
mov eax, dword [r13 + 0x4c]
mov ecx, WSAStartup
mov dword [r15 + 0x28], eax
mov edx, dword [r13 + 0x4c]
mov r9, r14
mov dword [rsp + 0x20], ecx
mov r8d, r12d
mov rcx, rbp
call fcn.14013c5e0
cmp byte [r15 + 0x42], 0
jne 0x1401656cd
cmp word [r14 + 0x36], 0x40
jge 0x1401656cd
test byte [r14 + 0x30], 0xe0
jne 0x1401656cd
test dword [rsi + 0x38], 0x404000
jne 0x1401656cd
mov rax, qword [r13 + 0x58]
xor r9d, r9d
test rax, rax
je 0x140165688
nop dword [rax]
inc r9d
shr rax, 1
jne 0x140165680
mov rax, qword [rdi]
movsxd r8, r9d
cmp byte [rax + 0x67], 0
jne 0x1401656cd
movsxd rax, dword [rdi + 0x90]
lea rdx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
lea rdx, [rdx - 3]
cmp byte [rax + rdx*8 + 1], 0
lea rdx, [rax + rdx*8]
je 0x1401656c5
mov r9d, 0xfffffffd
mov rcx, rdi
call fcn.1401738e0
jmp 0x1401656cd
mov dword [rdx + 0x10], r9d
mov byte [rdx + 1], 0xfd
movsxd rax, dword [rdi + 0x90]
test eax, eax
jle 0x140165728
mov edx, dword [rsp + 0x128]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov word [rax + rcx*8 - 0x16], dx
jmp 0x140165728
cmp r12d, 1
je 0x140165731
mov rax, qword [rbp]
shl rdx, 5
mov rcx, qword [rax + 0x20]
mov rax, qword [rdx + rcx + 8]
cmp byte [rax + 0x11], 0
je 0x140165731
mov rax, qword [r14]
xor r9d, r9d
mov r8d, dword [r14 + 0x28]
mov edx, r12d
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.140101ec0
movzx r8d, word [rsp + 0x140]
test dword [rsi + 0x38], 0x200
je 0x140165915
mov rax, qword [rsp + 0x48]
mov r14d, WSAStartup
mov rbp, qword [rsi + 0x20]
test byte [rax + 0x30], 0x80
je 0x140165775
mov eax, dword [rbp + 0x64]
and al, 3
cmp al, 2
jne 0x140165775
test r8b, 0x20
je 0x140165775
mov eax, dword [rbx + 4]
mov rbp, qword [rsp + 0x110]
mov dword [rbx + 8], eax
jmp 0x140165910
cmp byte [r15 + 0x42], 0
je 0x1401657ae
mov rax, qword [r13 + 0x28]
mov ebx, dword [rsp + 0x148]
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x1401657a0
cmp rcx, rbp
je 0x1401657a0
mov rcx, qword [rcx + 0x28]
inc ebx
test rcx, rcx
jne 0x140165790
mov r14d, WSAStartup
mov dword [r15 + 0x2c], ebx
mov esi, ebx
jmp 0x140165804
mov eax, dword [rsp + 0x148]
test eax, eax
je 0x1401657cb
test r8b, 0x20
je 0x1401657cb
mov ebx, eax
mov r14d, 0x65
mov esi, eax
jmp 0x140165804
mov rcx, qword [rsp + 0x110]
mov ebx, dword [rcx + 0x34]
mov esi, ebx
lea eax, [rbx + 1]
mov dword [rcx + 0x34], eax
test dword [rbp + 0x64], 0x800
je 0x140165804
mov rax, qword [rsp + 0x38]
test dword [rax + 0x60], 0x1000000
jne 0x140165804
lea r9, [r13 + 8]
mov r8d, ebx
mov rdx, rbp
call fcn.14017ba70
mov rax, qword [rsp + 0x40]
mov dword [rax + 8], esi
movsxd rcx, dword [rdi + 0x90]
mov r8d, dword [rbp + 0x58]
cmp dword [rdi + 0x94], ecx
jg 0x140165837
mov r9d, r8d
mov dword [rsp + 0x20], r12d
mov r8d, ebx
mov edx, r14d
mov rcx, rdi
call fcn.1400fa130
jmp 0x14016586d
lea eax, [rcx + 1]
xor edx, edx
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov byte [rax + rcx*8], r14b
mov word [rax + rcx*8 + 2], dx
mov dword [rax + rcx*8 + 4], ebx
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], rdx
mov byte [rax + rcx*8 + 1], dl
mov rax, qword [rsp + 0x110]
mov rdx, rbp
mov rcx, rax
mov rbp, rax
mov rbx, qword [rax + 0x10]
call fcn.14013a480
mov r8, rax
test rax, rax
je 0x1401658d2
mov rax, qword [rbx]
cmp byte [rax + 0x67], 0
je 0x1401658b6
cmp qword [rax + 0x308], 0
jne 0x1401658d2
add dword [r8], 0xffffffff
jne 0x1401658d2
mov rcx, qword [r8 + 0x10]
mov rdx, r8
call fcn.1401253b0
jmp 0x1401658d2
movsxd rax, dword [rbx + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov byte [rax + rcx*8 - 0x17], 0xf8
mov qword [rax + rcx*8 - 8], r8
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x38]
test al, 0xf
je 0x140165910
test eax, 0x188002
jne 0x140165910
test byte [r15 + 0x3c], 1
jne 0x140165910
cmp byte [r15 + 0x43], 2
je 0x140165910
movsxd rax, dword [rdi + 0x90]
test eax, eax
jle 0x140165910
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov word [rax + rcx*8 - 0x16], 2
mov r14, qword [rsp + 0x48]
test r12d, r12d
js 0x140165946
mov rax, qword [rbp + 0xa8]
mov rcx, rbp
test rax, rax
cmovne rcx, rax
mov eax, dword [rcx + 0x7c]
bt eax, r12d
jb 0x140165946
bts eax, r12d
mov dword [rcx + 0x7c], eax
cmp r12d, 1
jne 0x140165946
call fcn.14013c9a0
test byte [r13 + 0x44], 0x10
je 0x140165bfa
mov rcx, qword [r15]
mov edx, 0x24
mov rcx, qword [rcx]
call fcn.1401252f0
mov rsi, rax
test rax, rax
je 0x140165980
mov rcx, qword [r15 + 0x60]
add rsi, 0x10
mov qword [rax], rcx
mov qword [rax + 8], socket
mov qword [r15 + 0x60], rax
mov rax, qword [rsp + 0x40]
mov qword [rax + 0x38], rsi
test rsi, rsi
je 0x140165bfa
mov eax, dword [rbp + 0x34]
xor r12d, r12d
mov dword [rsi], eax
mov edx, dword [rbp + 0x38]
inc dword [rbp + 0x34]
inc edx
mov dword [rbp + 0x38], edx
mov dword [rsi + 4], edx
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x1401659d4
mov r9d, edx
mov dword [rsp + 0x20], r12d
lea edx, [r12 + 0x4d]
mov r8d, 0x10000
mov rcx, rdi
call fcn.1400fa130
jmp 0x140165a05
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x4d
mov dword [rax + rcx*8 + 4], 0x10000
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
inc dword [rbp + 0x38]
mov edx, dword [rbp + 0x38]
mov dword [rsi + 8], edx
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x140165a36
xor r8d, r8d
mov dword [rsp + 0x20], r12d
mov r9d, edx
mov rcx, rdi
lea edx, [r8 + 0x4b]
call fcn.1400fa130
jmp 0x140165a60
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov qword [rax + rcx*8], 0x4b
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
test byte [r14 + 0x30], 0x80
jne 0x140165b10
movsxd rcx, dword [rdi + 0x90]
mov edx, dword [rsi]
cmp dword [rdi + 0x94], ecx
jg 0x140165a98
mov r9d, 1
mov dword [rsp + 0x20], r12d
mov r8d, edx
mov rcx, rdi
lea edx, [r9 + 0x75]
call fcn.1400fa130
jmp 0x140165ac5
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x76
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 1
mov qword [rax + rcx*8 + 0x10], r12
mov rcx, qword [rbp]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.14013a310
mov r8, rax
test rax, rax
je 0x140165be7
mov rcx, qword [rax + 0x18]
mov qword [rax + 0x20], r12
mov byte [rcx], 0
mov rax, qword [rdi]
cmp byte [rax + 0x67], 0
jne 0x140165bad
movsxd rax, dword [rdi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
jmp 0x140165bdd
mov rbx, qword [r14 + 0x10]
test rbx, rbx
je 0x140165b32
nop dword [rax]
mov eax, dword [rbx + 0x64]
and al, 3
cmp al, 2
je 0x140165b32
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140165b20
movsxd rcx, dword [rdi + 0x90]
movzx edx, word [rbx + 0x5e]
mov r8d, dword [rsi]
cmp dword [rdi + 0x94], ecx
jg 0x140165b5f
mov r9d, edx
mov dword [rsp + 0x20], r12d
mov edx, 0x76
mov rcx, rdi
call fcn.1400fa130
jmp 0x140165b8d
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0x76
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
mov rsi, qword [rbp + 0x10]
mov rdx, rbx
mov rcx, rbp
call fcn.14013a480
mov r8, rax
test rax, rax
je 0x140165be7
mov rax, qword [rsi]
cmp byte [rax + 0x67], 0
je 0x140165bcb
cmp qword [rax + 0x308], 0
jne 0x140165be7
add dword [r8], 0xffffffff
jne 0x140165be7
mov rcx, qword [r8 + 0x10]
mov rdx, r8
call fcn.1401253b0
jmp 0x140165be7
movsxd rax, dword [rsi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov qword [rax + rcx*8 - 8], r8
mov byte [rax + rcx*8 - 0x17], 0xf8
mov rcx, qword [rsp + 0x68]
and dword [rcx + 0x38], 0xffffffbf
mov byte [r15 + 0x41], 0
mov byte [r15 + 0x43], 3
mov r8d, dword [rsp + 0x58]
mov r9d, 0
mov rbx, qword [rsp + 0x40]
inc r8d
mov r12d, dword [rsp + 0x30]
add rbx, 0x70
mov r14, qword [rsp + 0x118]
cmp r8d, r12d
mov dword [rsp + 0x58], r8d
movzx r8d, word [rsp + 0x140]
mov qword [rsp + 0x40], rbx
jl 0x1401654a0
mov r13, qword [rsp + 0x38]
mov eax, dword [rdi + 0x90]
mov dword [r15 + 0x4c], eax
cmp byte [r13 + 0x67], 0
jne 0x140165e3c
mov r14d, r9d
test r12d, r12d
jle 0x140165ee1
lea r12, [r15 + 0x70]
lea rbx, [r15 + 0x360]
nop dword [rax + rax]
cmp dword [rbp + 0x30], 0
jne 0x140165e3c
mov rax, qword [rbx + 0x60]
mov r15d, dword [rax + 0x38]
movzx eax, byte [rbx + 0x40]
imul rsi, rax, 0x68
add rsi, qword [rsp + 0x118]
mov eax, dword [rsi + 0x48]
test al, 0x10
je 0x140165df2
test al, 8
je 0x140165d04
movsxd rcx, dword [rdi + 0x90]
mov edx, dword [rsi + 0x38]
mov r8d, dword [rsi + 0x3c]
cmp dword [rdi + 0x94], ecx
jg 0x140165cd1
mov dword [rsp + 0x20], r9d
mov rcx, rdi
mov r9d, edx
mov edx, 0xa
call fcn.1400fa130
jmp 0x140165df2
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0xa
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
jmp 0x140165df2
movsxd rbp, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ebp
jg 0x140165d31
mov dword [rsp + 0x20], r9d
xor r8d, r8d
xor r9d, r9d
mov rcx, rdi
lea edx, [r9 + 0xf]
call fcn.1400fa130
mov ebp, eax
xor r9d, r9d
jmp 0x140165d62
lea eax, [rbp + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rbp*2]
mov rax, qword [rdi + 0x88]
add rcx, rbp
mov qword [rax + rcx*8], send
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r9
movsxd rcx, dword [rdi + 0x90]
mov edx, dword [rsi + 0x38]
mov r8d, dword [rsi + 0x3c]
cmp dword [rdi + 0x94], ecx
jg 0x140165d8f
mov dword [rsp + 0x20], r9d
mov rcx, rdi
mov r9d, edx
mov edx, 0xa
call fcn.1400fa130
jmp 0x140165dbd
lea eax, [rcx + 1]
mov dword [rdi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8], 0xa
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
mov rax, qword [rdi]
mov edx, dword [rdi + 0x90]
cmp byte [rax + 0x67], 0
je 0x140165dd5
lea rax, [0x140243b38]
jmp 0x140165de7
movsxd rax, ebp
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
lea rax, [rax + rcx*8]
mov rbp, qword [rsp + 0x110]
mov dword [rax + 8], edx
mov rsi, qword [rsp + 0x60]
test r15d, 0x404000
je 0x140165e78
bt r15d, 0xe
jae 0x140165e1f
mov r9, rbx
mov r8, rsi
mov rdx, r12
mov rcx, rbp
call fcn.1400e9b20
mov r15, qword [rsp + 0x50]
jmp 0x140165e35
mov r15, qword [rsp + 0x50]
mov r9, rsi
mov rcx, r15
mov r8, rbx
mov edx, r14d
call fcn.140122be0
cmp byte [r13 + 0x67], 0
je 0x140165e7d
movzx eax, word [r15 + 0x38]
mov rdx, r15
mov rcx, qword [rsp + 0x38]
mov word [rbp + 0xd8], ax
call fcn.14017c650
xor eax, eax
mov rsi, qword [rsp + 0x120]
mov r15, qword [rsp + 0xd0]
add rsp, 0xd8
pop r14
pop r13
pop r12
pop rdi
pop rbp
pop rbx
ret
mov r15, qword [rsp + 0x50]
movzx r9d, word [rsp + 0x140]
mov r8, rbx
mov rdx, qword [rsp + 0x118]
mov rcx, rbp
call fcn.140169cf0
mov eax, dword [rdi + 0x90]
mov r9d, r14d
mov r8, r15
mov qword [rsp + 0x28], rsi
mov rdx, rdi
mov dword [rbx + 0x20], eax
mov rcx, rbp
mov qword [rsp + 0x20], rbx
call fcn.140165f90
mov qword [rsp + 0x60], rax
inc r14d
mov eax, dword [rbx + 0x18]
mov r9d, 0
add rbx, 0x70
mov dword [r15 + 0x30], eax
cmp r14d, dword [rsp + 0x30]
jl 0x140165c70
mov eax, dword [rdi + 0x90]
mov dword [r15 + 0x50], eax
mov rax, r15
jmp 0x140165e57