Function at 0x1402c8840
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 rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0xd8
mov rsi, qword [rcx + 0x10]
mov rbp, rcx
mov r13, qword [rcx]
xorps xmm0, xmm0
xor ecx, ecx
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x48], r13
mov r15, r9
mov rdi, r8
mov r12, rdx
movdqu xmmword [rax - 0x78], xmm0
test r9, r9
je 0x1402c8897
cmp dword [r9], 0x40
cmovge r15, rcx
mov qword [rax + 0x20], r15
mov eax, dword [rdx]
cmp eax, 0x40
jle 0x1402c88c6
mov r8d, 0x40
lea rdx, str.at_most__d_tables_in_a_join
mov rcx, rbp
call fcn.140283150
xor eax, eax
add rsp, 0xd8
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movzx ecx, word [rsp + 0x140]
test cl, 0x20
mov word [rsp + 0x30], cx
mov ecx, 1
mov qword [rsp + 0x120], rbx
cmovne eax, ecx
mov qword [rsp + 0xd0], r14
mov dword [rsp + 0x40], eax
mov rcx, r13
imul eax, eax, 0x70
add eax, 0x370
movsxd rbx, eax
lea rdx, [rbx + 0x70]
call fcn.140280630
cmp byte [r13 + 0x67], 0
mov r14, rax
mov qword [rsp + 0x58], rax
je 0x1402c8931
test rax, rax
je 0x1402c9ba6
mov rdx, rax
mov rcx, r13
call fcn.1402804a0
jmp 0x1402c9ba6
movsxd rdx, dword [rsp + 0x40]
lea rcx, [r14 + 0x370]
mov r13, qword [rsp + 0x138]
xorps xmm0, xmm0
mov qword [rax + 8], r12
mov r12, qword [rsp + 0x130]
mov qword [rax + 0x18], r12
mov qword [rax], rbp
mov qword [rax + 0x10], r15
mov qword [rax + 0x20], rdi
mov rax, 0xffffffffffffffff
mov qword [r14 + 0x30], rax
mov byte [r14 + 0x48], dl
mov qword [rsp + 0x68], rax
mov eax, dword [rbp + 0x44]
dec eax
mov qword [rsp + 0x38], rcx
mov dword [rbp + 0x44], eax
mov dword [r14 + 0x38], eax
mov dword [r14 + 0x3c], eax
movzx eax, word [rsp + 0x30]
mov word [r14 + 0x44], ax
mov eax, dword [rsp + 0x148]
mov word [r14 + 0x46], ax
mov dword [rsp + 0x60], eax
mov eax, dword [rbp + 0xc8]
mov dword [r14 + 0x40], eax
xor eax, eax
mov qword [r14 + 0x28], r13
movups xmmword [r14 + 0x49], xmm0
movups xmmword [r14 + 0x59], xmm0
movups xmmword [r14 + 0x69], xmm0
mov dword [r14 + 0x79], eax
mov word [r14 + 0x7d], ax
mov byte [r14 + 0x7f], al
lea rax, [rdx + 1]
imul r8, rax, 0x70
xor edx, edx
call fcn.1402f5120
lea r10, [r14 + 0x80]
xor ebp, ebp
mov dword [r14 + 0x26c], ebp
lea rcx, [rbx + r14]
mov dword [r14 + 0x270], 0xffffff9d
lea rax, [rcx + 0x58]
mov qword [rsp + 0x78], r14
mov rbx, rdi
mov qword [rsp + 0x80], r10
mov qword [rsp + 0x88], rcx
mov qword [rcx + 0x48], rax
mov eax, 3
mov word [rcx + 0x40], ax
lea rax, [r10 + 0x28]
mov word [rcx + 0x3c], bp
mov dword [rcx + 0x38], ebp
mov qword [r10 + 0x20], rax
mov qword [rsp + 0x50], r10
mov qword [r10], r14
mov byte [r10 + 0x11], bpl
mov qword [r10 + 8], rbp
mov dword [r10 + 0x14], ebp
mov qword [r10 + 0x18], 8
test rdi, rdi
je 0x1402c8a83
nop dword [rax]
mov eax, dword [rbx + 4]
test eax, 0x82000
je 0x1402c8a83
bt eax, 0x13
jae 0x1402c8a7a
mov rax, qword [rbx + 0x20]
mov rbx, qword [rax + 8]
jmp 0x1402c8a7e
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1402c8a60
mov byte [r10 + 0x10], 0x2c
mov r8d, 0x80
test rbx, rbx
je 0x1402c8c84
cmp byte [rbx], 0x2c
je 0x1402c8c64
movsxd rax, dword [r10 + 0x18]
cmp ebp, eax
jl 0x1402c8bd0
mov rbp, qword [r10 + 0x20]
mov rbx, r14
imul r14, rax, 0x70
mov rax, qword [rbx]
mov rcx, qword [rax]
lea rdx, [r14 + 0x10]
movzx eax, word [rcx + 0x1a4]
cmp rdx, rax
jbe 0x1402c8af0
cmp dword [rcx + 0x1a0], 0
jne 0x1402c8ae1
inc dword [rcx + 0x1b4]
jmp 0x1402c8b73
cmp byte [rcx + 0x67], 0
jne 0x1402c8ba1
jmp 0x1402c8b73
cmp rdx, r8
ja 0x1402c8b31
mov r9, qword [rcx + 0x1d8]
test r9, r9
je 0x1402c8b13
mov rax, qword [r9]
mov qword [rcx + 0x1d8], rax
inc dword [rcx + 0x1b0]
jmp 0x1402c8b85
mov r9, qword [rcx + 0x1d0]
test r9, r9
je 0x1402c8b31
mov rax, qword [r9]
mov qword [rcx + 0x1d0], rax
inc dword [rcx + 0x1b0]
jmp 0x1402c8b85
mov r9, qword [rcx + 0x1c8]
test r9, r9
je 0x1402c8b4f
mov rax, qword [r9]
mov qword [rcx + 0x1c8], rax
inc dword [rcx + 0x1b0]
jmp 0x1402c8b85
mov r9, qword [rcx + 0x1c0]
test r9, r9
je 0x1402c8b6d
mov rax, qword [r9]
inc dword [rcx + 0x1b0]
mov qword [rcx + 0x1c0], rax
jmp 0x1402c8b85
inc dword [rcx + 0x1b8]
call fcn.140214340
mov r10, qword [rsp + 0x50]
mov r9, rax
test rax, rax
je 0x1402c8b98
mov rax, qword [rbx + 0x70]
mov qword [r9], rax
mov qword [r9 + 8], r14
mov qword [rbx + 0x70], r9
add r9, 0x10
mov qword [r10 + 0x20], r9
test r9, r9
jne 0x1402c8bac
mov qword [r10 + 0x20], rbp
xor ebp, ebp
jmp 0x1402c8c84
movsxd rax, dword [r10 + 0x14]
mov rdx, rbp
imul r8, rax, 0x38
mov rcx, r9
call fcn.1402f4a50
mov r10, qword [rsp + 0x50]
mov eax, dword [r10 + 0x18]
add eax, eax
mov dword [r10 + 0x18], eax
xor ebp, ebp
movsxd rdx, dword [r10 + 0x14]
imul r8, rdx, 0x38
lea eax, [rdx + 1]
add r8, qword [r10 + 0x20]
mov dword [r10 + 0x14], eax
mov dword [r10 + 0x1c], eax
test rdi, rdi
je 0x1402c8c0d
test dword [rdi + 4], 0x80000
je 0x1402c8c0d
movsxd rcx, dword [rdi + 0x2c]
call fcn.14029d440
mov ecx, 0x10e
sub ax, cx
mov word [r8 + 0x10], ax
jmp 0x1402c8c20
mov eax, 1
mov word [r8 + 0x10], ax
test rdi, rdi
je 0x1402c8c43
nop dword [rax]
mov eax, dword [rdi + 4]
test eax, 0x82000
je 0x1402c8c43
bt eax, 0x13
jae 0x1402c8c3a
mov rax, qword [rdi + 0x20]
mov rdi, qword [rax + 8]
jmp 0x1402c8c3e
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x1402c8c20
mov qword [r8], rdi
xorps xmm0, xmm0
mov word [r8 + 0x12], bp
xor eax, eax
mov qword [r8 + 8], r10
movups xmmword [r8 + 0x14], xmm0
movups xmmword [r8 + 0x24], xmm0
mov dword [r8 + 0x34], eax
jmp 0x1402c8c84
mov rdx, qword [rbx + 0x10]
mov r8b, 0x2c
mov rcx, r10
call fcn.1402ceec0
mov rdx, qword [rbx + 0x18]
mov r8b, 0x2c
mov rcx, qword [rsp + 0x50]
call fcn.1402ceec0
cmp dword [rsp + 0x40], 0
mov ecx, 0x100
mov r14, qword [rsp + 0x58]
jne 0x1402c8cd1
test r15, r15
je 0x1402c8ca2
movzx eax, byte [r15]
mov byte [r14 + 0x49], al
test word [rsp + 0x30], cx
je 0x1402c8cb9
mov rax, qword [rsp + 0x48]
test byte [rax + 0x60], 0x10
jne 0x1402c8cb9
mov byte [r14 + 0x4b], 1
mov rcx, qword [rsp + 0x110]
lea r8, str.SCAN_CONSTANT_ROW
xor edx, edx
call fcn.1402c17c0
jmp 0x1402c8d3b
mov r12, qword [rsp + 0x118]
mov ebx, ebp
mov rbp, qword [rsp + 0x110]
mov rsi, qword [rsp + 0x50]
lea rdi, [r12 + 0x4c]
nop dword [rax]
movsxd rcx, dword [r14 + 0x26c]
lea rdx, [r12 + 8]
mov eax, dword [rdi]
mov r8, rsi
mov dword [r14 + rcx*4 + 0x270], eax
inc dword [r14 + 0x26c]
movsxd rax, ebx
imul rcx, rax, 0x68
add rdx, rcx
mov rcx, rbp
call fcn.1402cef40
inc ebx
lea rdi, [rdi + 0x68]
cmp ebx, dword [r12]
jl 0x1402c8cf0
mov rsi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x130]
lea rdi, [r14 + 0x80]
mov ebx, dword [rdi + 0x14]
sub ebx, 1
js 0x1402c8d65
mov rbp, qword [rsp + 0x118]
mov r8d, ebx
mov rdx, rdi
mov rcx, rbp
call fcn.1402165e0
sub ebx, 1
jns 0x1402c8d52
test r13, r13
je 0x1402c8e4d
mov r10, qword [r13 + 0x60]
test r10, r10
je 0x1402c8e4d
test byte [r13 + 4], 9
jne 0x1402c8e4d
mov rcx, qword [r13 + 0x28]
cmp dword [rcx], 1
jne 0x1402c8e4d
mov rax, qword [rcx + 0x28]
cmp byte [rax + 0x3f], 1
jne 0x1402c8e4d
mov ebx, dword [rcx + 0x4c]
xor r11d, r11d
movsxd rcx, dword [rdi + 0x14]
mov r8, qword [r13 + 0x48]
test ecx, ecx
jle 0x1402c8ddb
mov rax, qword [rdi + 0x20]
mov rdx, rcx
add rax, 0x1c
mov ecx, r11d
test byte [rax - 0xa], 4
jne 0x1402c8dcf
cmp dword [rax], ebx
jne 0x1402c8e50
inc rcx
add rax, 0x38
cmp rcx, rdx
jl 0x1402c8dc1
test r8, r8
je 0x1402c8e0f
movsxd r9, dword [r8]
test r9, r9
jle 0x1402c8e0f
mov rdx, r11
lea rax, [r8 + 0x18]
nop
mov rcx, qword [rax - 0x10]
cmp byte [rcx], 0xa7
jne 0x1402c8e50
cmp dword [rcx + 0x2c], ebx
jne 0x1402c8e50
test byte [rax], 2
jne 0x1402c8e50
inc rdx
add rax, 0x20
cmp rdx, r9
jl 0x1402c8df0
mov r8, qword [r10 + 0x10]
mov r9d, ebx
mov edx, dword [r13 + 8]
mov rcx, rdi
mov dword [rsp + 0x20], 0x49
call fcn.1402e00e0
mov edx, dword [r13 + 0xc]
test edx, edx
jle 0x1402c8e4d
mov r8, qword [r13 + 0x60]
mov r9d, ebx
mov rcx, rdi
mov dword [rsp + 0x20], 0x4a
mov r8, qword [r8 + 0x18]
call fcn.1402e00e0
xor r11d, r11d
mov rbx, qword [rsp + 0x110]
cmp dword [rbx + 0x30], 0
jne 0x1402c9b87
mov rcx, qword [rsp + 0x80]
mov ebp, r11d
cmp dword [rcx + 0x1c], 0
jle 0x1402c8f82
mov r12d, dword [rsp + 0x40]
lea r13, [0x14021a460]
mov rdi, r11
lea r8, [0x1402afe40]
mov rsi, rbx
mov r15d, 1
nop word [rax + rax]
mov rbx, qword [rcx + 0x20]
add rbx, rdi
test byte [rbx + 0x12], 2
jne 0x1402c8f4f
cmp qword [rbx + 0x30], 0
jne 0x1402c8f4f
test r12d, r12d
je 0x1402c8f23
mov rdx, qword [rbx]
mov qword [rsp + 0xa0], r11
mov qword [rsp + 0xb8], r11
mov dword [rsp + 0xc0], r11d
mov qword [rsp + 0xc6], r11
mov word [rsp + 0xce], r11w
mov word [rsp + 0xc4], r15w
mov qword [rsp + 0xa8], r13
mov qword [rsp + 0xb0], r8
test rdx, rdx
je 0x1402c8f23
lea rcx, [rsp + 0xa0]
call fcn.1402dff00
cmp word [rsp + 0xc4], 0
je 0x1402c8f3d
mov r8d, dword [r14 + 0x3c]
mov r9d, reloc.WS2_32.dll_recv
mov rdx, qword [rbx]
mov rcx, rsi
call fcn.140287e70
or word [rbx + 0x12], 4
mov rcx, qword [rsp + 0x80]
lea r8, [0x1402afe40]
xor r11d, r11d
inc ebp
add rdi, 0x38
cmp ebp, dword [rcx + 0x1c]
jl 0x1402c8ea0
mov rsi, qword [rsp + 0x70]
lea rdi, [r14 + 0x80]
mov r15, qword [rsp + 0x128]
mov r12, qword [rsp + 0x130]
mov rbx, qword [rsp + 0x110]
movzx eax, word [rsp + 0x30]
bt ax, 8
mov r13, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x118]
jae 0x1402c8fe5
test byte [r13 + 0x60], 0x10
je 0x1402c8fb6
mov ecx, 0xfeff
and ax, cx
and word [r14 + 0x44], cx
mov word [rsp + 0x30], ax
jmp 0x1402c8fe5
mov r9, r12
mov r8, rdi
mov rdx, rbp
mov rcx, rbx
call fcn.140248cf0
test eax, eax
je 0x1402c8fd2
mov byte [r14 + 0x4b], 1
jmp 0x1402c8fe5
test r15, r15
jne 0x1402c8fe5
mov eax, 0x80
mov qword [r14 + 0x10], r12
or word [r14 + 0x44], ax
mov r15d, dword [rsp + 0x40]
cmp r15d, 1
jne 0x1402c8ffe
lea rcx, [rsp + 0x78]
call fcn.1402e5e10
test eax, eax
jne 0x1402c9047
lea rcx, [rsp + 0x78]
call fcn.1402e0f70
test eax, eax
jne 0x1402c9b87
xor edx, edx
mov rcx, r14
call fcn.1402e4800
cmp byte [r13 + 0x67], 0
jne 0x1402c9b87
cmp qword [r14 + 0x10], 0
je 0x1402c904e
movzx edx, word [r14 + 0x50]
mov rcx, r14
inc dx
call fcn.1402e4800
cmp byte [r13 + 0x67], 0
jne 0x1402c9b87
cmp qword [r14 + 0x10], 0
jne 0x1402c9061
mov eax, dword [r13 + 0x30]
bt rax, 0xc
jae 0x1402c9061
mov qword [r14 + 0x78], 0xffffffffffffffff
cmp dword [rbx + 0x30], 0
jne 0x1402c9b87
movzx eax, byte [r14 + 0x48]
mov ecx, 0x400
cmp al, 2
jb 0x1402c90d2
test r12, r12
je 0x1402c90bb
movzx eax, word [rsp + 0x30]
and ax, cx
xor ecx, ecx
cmp cx, ax
jne 0x1402c90bb
mov eax, 0x100
test dword [r13 + 0x60], eax
jne 0x1402c90bb
lea rdx, [rcx - 1]
mov rcx, r14
call fcn.1402e3ab0
movzx r15d, byte [r14 + 0x48]
mov qword [rsp + 0x68], rax
movzx eax, r15b
mov dword [rsp + 0x40], r15d
cmp al, 2
jb 0x1402c90d2
mov r8, qword [rsp + 0x48]
test dword [r8 + 0x60], 0x80000
jne 0x1402c90d7
mov rcx, r14
call fcn.1402e05b0
mov r8, qword [rsp + 0x48]
mov rcx, qword [r14]
xor r10d, r10d
movsx eax, word [r14 + 0x50]
movzx edi, r10w
movzx r9d, word [rsp + 0x30]
mov dword [rsp + 0x128], edi
add dword [rcx + 0xc8], eax
test r9b, 4
je 0x1402c9194
mov rdx, qword [r14 + 0x3d0]
mov ecx, dword [rdx + 0x38]
test ecx, 0x1000
jne 0x1402c9155
mov dword [rsp + 0x128], r10d
mov edi, r10d
test r9b, 8
je 0x1402c9194
mov rax, qword [rbp + 0x28]
mov dword [rsp + 0x128], r10d
cmp byte [rax + 0x3f], 1
je 0x1402c9194
bt ecx, 0xd
jae 0x1402c914f
movzx edi, r10w
mov dword [rsp + 0x128], edi
test r9b, 0x10
je 0x1402c9194
test ecx, 0x1000
sete al
movzx edi, r10w
inc al
mov dword [rsp + 0x128], edi
mov byte [r14 + 0x4a], al
mov rax, qword [rbp + 0x28]
test byte [rax + 0x30], 0x80
jne 0x1402c9194
mov dword [rsp + 0x128], edi
test cl, 0x40
je 0x1402c9194
and ecx, 0xffffffbf
movzx edi, r9w
and di, 8
mov dword [rdx + 0x38], ecx
mov dword [rsp + 0x128], edi
mov dword [rsp + 0x50], r10d
test r15d, r15d
jle 0x1402c98ee
jmp 0x1402c91aa
movzx r9d, word [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov rdx, 0xffffffffffff8000
movzx eax, byte [rcx + 0x40]
imul r13, rax, 0x68
add r13, rbp
mov ebp, 0xffff8000
mov r15, qword [r13 + 0x28]
mov rcx, qword [r15 + 0x60]
test rcx, rcx
je 0x1402c91fe
mov rax, qword [r8 + 0x20]
mov ebp, r10d
add rax, 0x18
mov rdx, r10
cmp qword [rax], rcx
je 0x1402c91fe
nop word [rax + rax]
inc ebp
lea rax, [rax + 0x20]
inc rdx
cmp qword [rax], rcx
jne 0x1402c91f0
test dword [r15 + 0x30], 0x4000
mov rcx, qword [rsp + 0x38]
mov r12, qword [rcx + 0x60]
jne 0x1402c9433
movzx eax, byte [r15 + 0x3f]
cmp al, 2
je 0x1402c9433
mov ecx, dword [r12 + 0x38]
bt ecx, 0xa
jae 0x1402c9316
mov rbx, qword [r15 + 0x50]
test rbx, rbx
je 0x1402c924e
nop word [rax + rax]
cmp qword [rbx], r8
je 0x1402c924e
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1402c9240
movsxd rdx, dword [rsi + 0x90]
mov r8d, dword [r13 + 0x4c]
cmp dword [rsi + 0x94], edx
jg 0x1402c927a
xor r9d, r9d
mov dword [rsp + 0x20], r10d
mov edx, 0xad
mov rcx, rsi
call fcn.1402471f0
mov edx, eax
jmp 0x1402c92a8
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rsi + 0x90], eax
mov rax, qword [rsi + 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], r10
mov rax, qword [rsi]
cmp byte [rax + 0x67], 0
jne 0x1402c92e7
test edx, edx
jns 0x1402c92bd
mov edx, dword [rsi + 0x90]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x1402c92f4
mov r9d, 0xfffffff5
mov r8, rbx
mov rcx, rsi
call fcn.1402d94a0
mov rbx, qword [rsp + 0x110]
jmp 0x1402c942e
mov rcx, qword [rsp + 0x38]
test rbx, rbx
je 0x1402c9309
mov qword [rdx + 0x10], rbx
mov byte [rdx + 1], 0xf5
inc dword [rbx + 0x18]
mov rbx, qword [rsp + 0x110]
jmp 0x1402c9433
cmp al, 1
je 0x1402c942e
test cl, 0x40
jne 0x1402c9329
test r9b, 0x20
je 0x1402c9334
test byte [r13 + 0x44], 0x50
je 0x1402c93fa
cmp byte [r14 + 0x4a], 0
mov ecx, reloc.WS2_32.dll_WSASetLastError
je 0x1402c934d
mov eax, dword [r13 + 0x4c]
mov ecx, WSACleanup
mov dword [r14 + 0x30], eax
mov edx, dword [r13 + 0x4c]
mov r9, r15
mov dword [rsp + 0x20], ecx
mov r8d, ebp
mov rcx, rbx
call fcn.14029e3e0
cmp byte [r14 + 0x4a], 0
jne 0x1402c93dd
cmp word [r15 + 0x36], 0x40
jge 0x1402c93dd
test byte [r15 + 0x30], 0xe0
jne 0x1402c93dd
test dword [r12 + 0x38], 0x404000
jne 0x1402c93dd
mov rax, qword [r13 + 0x58]
xor ecx, ecx
mov r9d, ecx
test rax, rax
je 0x1402c939a
inc r9d
shr rax, 1
jne 0x1402c9392
mov rax, qword [rsi]
movsxd r8, r9d
cmp byte [rax + 0x67], cl
jne 0x1402c93dd
movsxd rax, dword [rsi + 0x90]
lea rdx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
lea rdx, [rdx - 3]
cmp byte [rax + rdx*8 + 1], cl
lea rdx, [rax + rdx*8]
je 0x1402c93d5
mov r9d, 0xfffffffd
mov rcx, rsi
call fcn.1402d94a0
jmp 0x1402c93dd
mov dword [rdx + 0x10], r9d
mov byte [rdx + 1], 0xfd
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x1402c942e
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov word [rax + rcx*8 - 0x16], di
jmp 0x1402c942e
cmp ebp, 1
je 0x1402c942e
mov rax, qword [rbx]
shl rdx, 5
mov rcx, qword [rax + 0x20]
mov rax, qword [rdx + rcx + 8]
cmp byte [rax + 0x11], 0
je 0x1402c942e
mov rax, qword [r15]
xor r9d, r9d
mov r8d, dword [r15 + 0x28]
mov edx, ebp
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.14024cda0
mov rcx, qword [rsp + 0x38]
test dword [r12 + 0x38], 0x200
je 0x1402c95d6
test byte [r15 + 0x30], 0x80
mov r10d, reloc.WS2_32.dll_WSASetLastError
mov rdi, qword [r12 + 0x20]
je 0x1402c9471
mov eax, dword [rdi + 0x64]
and al, 3
cmp al, 2
movzx eax, word [rsp + 0x30]
jne 0x1402c9476
test al, 0x20
je 0x1402c9476
mov eax, dword [rcx + 4]
mov dword [rcx + 8], eax
jmp 0x1402c95d6
movzx eax, word [rsp + 0x30]
cmp byte [r14 + 0x4a], 0
je 0x1402c94ac
mov rax, qword [r13 + 0x28]
mov edx, dword [rsp + 0x60]
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x1402c94a0
nop
cmp rcx, rdi
je 0x1402c94a0
mov rcx, qword [rcx + 0x28]
inc edx
test rcx, rcx
jne 0x1402c9490
mov r10d, WSACleanup
mov dword [r14 + 0x34], edx
jmp 0x1402c94cd
mov ecx, dword [rsp + 0x60]
test ecx, ecx
je 0x1402c94c4
test al, 0x20
je 0x1402c94c4
mov edx, ecx
mov r10d, 0x65
mov eax, ecx
jmp 0x1402c94cf
mov edx, dword [rbx + 0x34]
lea eax, [rdx + 1]
mov dword [rbx + 0x34], eax
mov eax, edx
mov rcx, qword [rsp + 0x38]
mov dword [rcx + 8], eax
movsxd rcx, dword [rsi + 0x90]
mov r8d, dword [rdi + 0x58]
cmp dword [rsi + 0x94], ecx
jg 0x1402c9501
mov r9d, r8d
mov dword [rsp + 0x20], ebp
mov r8d, edx
mov rcx, rsi
mov edx, r10d
call fcn.1402471f0
jmp 0x1402c9539
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov byte [rax + rcx*8], r10b
mov word [rax + rcx*8 + 2], r9w
mov dword [rax + rcx*8 + 4], edx
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], r9
mov byte [rax + rcx*8 + 1], r9b
mov rcx, qword [rsp + 0x110]
mov rdx, rdi
mov rbx, qword [rbx + 0x10]
call fcn.14029bf90
mov r8, rax
test rax, rax
je 0x1402c9598
mov rax, qword [rbx]
cmp byte [rax + 0x67], 0
je 0x1402c957c
cmp qword [rax + 0x300], 0
jne 0x1402c9598
add dword [r8], 0xffffffff
jne 0x1402c9598
mov rcx, qword [r8 + 0x10]
mov rdx, r8
call fcn.1402804a0
jmp 0x1402c9598
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 eax, dword [r12 + 0x38]
test al, 0xf
je 0x1402c95d6
test eax, 0x188002
jne 0x1402c95d6
test byte [r14 + 0x44], 1
jne 0x1402c95d6
cmp byte [r14 + 0x4b], 2
je 0x1402c95d6
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x1402c95d6
lea rcx, [rax + rax*2]
mov edx, 2
mov rax, qword [rsi + 0x88]
mov word [rax + rcx*8 - 0x16], dx
mov rbx, qword [rsp + 0x110]
test ebp, ebp
js 0x1402c960b
mov rax, qword [rbx + 0xa0]
mov rcx, rbx
test rax, rax
cmovne rcx, rax
mov eax, dword [rcx + 0x74]
bt eax, ebp
jb 0x1402c960b
bts eax, ebp
mov dword [rcx + 0x74], eax
cmp ebp, 1
jne 0x1402c960b
call fcn.14029e7b0
test byte [r13 + 0x44], 0x10
je 0x1402c98b3
mov rcx, qword [r14]
mov edx, 0x24
mov rcx, qword [rcx]
call fcn.140280630
mov rdi, rax
test rax, rax
je 0x1402c9645
mov rcx, qword [r14 + 0x70]
add rdi, 0x10
mov qword [rax], rcx
mov qword [rax + 8], shutdown
mov qword [r14 + 0x70], rax
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x38], rdi
test rdi, rdi
je 0x1402c98b3
mov eax, dword [rbx + 0x34]
xor ebp, ebp
mov dword [rdi], eax
inc dword [rbx + 0x38]
inc dword [rbx + 0x34]
mov edx, dword [rbx + 0x38]
mov dword [rdi + 4], edx
movsxd rcx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], ecx
jg 0x1402c9693
mov r9d, edx
mov dword [rsp + 0x20], ebp
lea edx, [rbp + 0x4d]
mov r8d, 0x10000
mov rcx, rsi
call fcn.1402471f0
jmp 0x1402c96c3
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 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], ebp
mov qword [rax + rcx*8 + 0x10], rbp
inc dword [rbx + 0x38]
mov edx, dword [rbx + 0x38]
mov dword [rdi + 8], edx
movsxd rcx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], ecx
jg 0x1402c96f3
xor r8d, r8d
mov dword [rsp + 0x20], ebp
mov r9d, edx
mov rcx, rsi
lea edx, [r8 + 0x4b]
call fcn.1402471f0
jmp 0x1402c971c
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov qword [rax + rcx*8], 0x4b
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], rbp
test byte [r15 + 0x30], 0x80
jne 0x1402c97ca
movsxd rcx, dword [rsi + 0x90]
mov edx, dword [rdi]
cmp dword [rsi + 0x94], ecx
jg 0x1402c9753
mov r9d, 1
mov dword [rsp + 0x20], ebp
mov r8d, edx
mov rcx, rsi
lea edx, [r9 + 0x75]
call fcn.1402471f0
jmp 0x1402c9780
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 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], rbp
mov rcx, qword [rbx]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.14029be20
mov r8, rax
test rax, rax
je 0x1402c98a3
mov rcx, qword [rax + 0x18]
mov qword [rax + 0x20], rbp
mov byte [rcx], 0
mov rax, qword [rsi]
cmp byte [rax + 0x67], 0
jne 0x1402c9869
movsxd rax, dword [rsi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
jmp 0x1402c9899
mov rbx, qword [r15 + 0x10]
test rbx, rbx
je 0x1402c97e5
mov eax, dword [rbx + 0x64]
and al, 3
cmp al, 2
je 0x1402c97e5
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1402c97d3
movsxd rcx, dword [rsi + 0x90]
movzx edx, word [rbx + 0x5e]
mov r8d, dword [rdi]
cmp dword [rsi + 0x94], ecx
jg 0x1402c9811
mov r9d, edx
mov dword [rsp + 0x20], ebp
mov edx, 0x76
mov rcx, rsi
call fcn.1402471f0
jmp 0x1402c983e
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 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], ebp
mov qword [rax + rcx*8 + 0x10], rbp
mov rax, qword [rsp + 0x110]
mov rdx, rbx
mov rcx, rax
mov rbx, rax
mov rdi, qword [rax + 0x10]
call fcn.14029bf90
mov r8, rax
test rax, rax
je 0x1402c98a3
mov rax, qword [rdi]
cmp byte [rax + 0x67], 0
je 0x1402c9887
cmp qword [rax + 0x300], 0
jne 0x1402c98a3
add dword [r8], 0xffffffff
jne 0x1402c98a3
mov rcx, qword [r8 + 0x10]
mov rdx, r8
call fcn.1402804a0
jmp 0x1402c98a3
movsxd rax, dword [rdi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov qword [rax + rcx*8 - 8], r8
mov byte [rax + rcx*8 - 0x17], 0xf8
and dword [r12 + 0x38], 0xffffffbf
mov byte [r14 + 0x49], 0
mov byte [r14 + 0x4b], 3
mov r8d, dword [rsp + 0x50]
mov r10d, 0
add qword [rsp + 0x38], 0x70
inc r8d
mov r15d, dword [rsp + 0x40]
cmp r8d, r15d
mov edi, dword [rsp + 0x128]
mov rbp, qword [rsp + 0x118]
mov dword [rsp + 0x50], r8d
mov r8, qword [rsp + 0x48]
jl 0x1402c91a4
mov eax, dword [rsi + 0x90]
mov dword [r14 + 0x54], eax
mov rax, qword [rsp + 0x48]
cmp byte [rax + 0x67], 0
jne 0x1402c9b87
mov r12, qword [rsp + 0x58]
mov r14d, r10d
test r15d, r15d
jle 0x1402c9b74
mov r13, qword [rsp + 0x118]
lea rdi, [r12 + 0x3b0]
nop dword [rax + rax]
cmp dword [rbx + 0x30], 0
jne 0x1402c9b84
mov rax, qword [rdi + 0x20]
mov r15d, dword [rax + 0x38]
movzx eax, byte [rdi]
imul rbp, rax, 0x68
add rbp, r13
mov eax, dword [rbp + 0x48]
test al, 0x10
je 0x1402c9aac
test al, 8
je 0x1402c99be
movsxd rcx, dword [rsi + 0x90]
mov edx, dword [rbp + 0x38]
mov r8d, dword [rbp + 0x3c]
cmp dword [rsi + 0x94], ecx
jg 0x1402c998b
mov r9d, edx
mov dword [rsp + 0x20], r10d
mov edx, 9
mov rcx, rsi
call fcn.1402471f0
jmp 0x1402c9aac
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 9
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r10d
mov qword [rax + rcx*8 + 0x10], r10
jmp 0x1402c9aac
movsxd rbx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], ebx
jg 0x1402c99eb
xor r9d, r9d
mov dword [rsp + 0x20], r10d
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 0xe]
call fcn.1402471f0
mov ebx, eax
xor r10d, r10d
jmp 0x1402c9a15
lea rcx, [rbx + rbx*2]
lea eax, [rbx + 1]
mov dword [rsi + 0x90], eax
mov rax, qword [rsi + 0x88]
mov qword [rax + rcx*8], send
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r10
movsxd rcx, dword [rsi + 0x90]
mov edx, dword [rbp + 0x38]
mov r8d, dword [rbp + 0x3c]
cmp dword [rsi + 0x94], ecx
jg 0x1402c9a42
mov r9d, edx
mov dword [rsp + 0x20], r10d
mov edx, 9
mov rcx, rsi
call fcn.1402471f0
jmp 0x1402c9a70
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 9
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r10d
mov qword [rax + rcx*8 + 0x10], r10
mov rax, qword [rsi]
mov edx, dword [rsi + 0x90]
cmp byte [rax + 0x67], 0
je 0x1402c9a88
lea rax, [0x140433b88]
jmp 0x1402c9aa1
lea eax, [rdx - 1]
test ebx, ebx
cmovns eax, ebx
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
lea rax, [rax + rcx*8]
mov rbx, qword [rsp + 0x110]
mov dword [rax + 8], edx
mov rbp, qword [rsp + 0x68]
test r15d, 0x404000
je 0x1402c9b06
lea rdx, [rdi - 0x40]
mov r9, rbp
bt r15d, 0xe
jae 0x1402c9aed
movzx eax, byte [rdi]
lea r8, [r13 + 8]
imul rcx, rax, 0x68
mov qword [rsp + 0x20], rdx
lea rdx, [r12 + 0x80]
add r8, rcx
mov rcx, rbx
call fcn.140212000
jmp 0x1402c9afb
mov r8, rdx
mov rcx, r12
mov edx, r14d
call fcn.14027dd50
mov rax, qword [rsp + 0x48]
cmp byte [rax + 0x67], 0
jne 0x1402c9b84
movzx r9d, word [rsp + 0x30]
lea rbx, [rdi - 0x40]
mov rcx, qword [rsp + 0x110]
mov r8, rbx
mov rdx, r13
call fcn.1402cdfa0
mov eax, dword [rsi + 0x90]
mov r9d, r14d
mov qword [rsp + 0x28], rbp
mov r8, r12
mov qword [rsp + 0x20], rbx
mov rdx, rsi
mov rbx, qword [rsp + 0x110]
mov rcx, rbx
mov dword [rdi - 0x20], eax
call fcn.1402c9c70
mov qword [rsp + 0x68], rax
inc r14d
mov eax, dword [rdi - 0x28]
mov r10d, 0
add rdi, 0x70
mov dword [r12 + 0x38], eax
cmp r14d, dword [rsp + 0x40]
jl 0x1402c9930
mov eax, dword [rsi + 0x90]
mov dword [r12 + 0x58], eax
mov rax, r12
jmp 0x1402c9ba8
mov r14, r12
mov rcx, r14
call fcn.1402e6070
mov eax, dword [r14 + 0x40]
mov rdx, r14
mov rcx, qword [rsp + 0x48]
mov dword [rbx + 0xc8], eax
call fcn.1402e0ba0
xor eax, eax
mov rbx, qword [rsp + 0x120]
mov r14, qword [rsp + 0xd0]
add rsp, 0xd8
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret