Function at 0x140212840
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 rsi
push r12
push r13
push r15
sub rsp, 0xd8
mov rbx, qword [rcx + 0x10]
mov rbp, rcx
mov r13, qword [rcx]
xorps xmm0, xmm0
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x48], r13
mov r15, r9
mov rsi, r8
mov r12, rdx
movdqu xmmword [rax - 0x78], xmm0
test r9, r9
je 0x140212897
cmp dword [r9], 0x40
cmovge r15, rcx
mov qword [rax + 0x20], r15
mov ecx, dword [rdx]
mov dword [rsp + 0x34], ecx
cmp ecx, 0x40
jle 0x1402128ca
mov r8d, 0x40
lea rdx, str.at_most__d_tables_in_a_join
mov rcx, rbp
call fcn.1401c64c0
xor eax, eax
add rsp, 0xd8
pop r15
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
movzx eax, word [rsp + 0x140]
mov edx, 1
mov word [rsp + 0x30], ax
test al, 0x20
mov qword [rsp + 0x120], rdi
mov eax, 0x3d0
mov qword [rsp + 0xd0], r14
je 0x1402128fb
mov dword [rsp + 0x34], edx
jmp 0x14021290b
cmp ecx, edx
jle 0x14021290b
imul eax, ecx, 0x70
mov dword [rsp + 0x34], ecx
add eax, 0x360
movsxd rdi, eax
mov rcx, r13
lea rdx, [rdi + 0x70]
call fcn.1401c3340
cmp byte [r13 + 0x67], 0
mov r14, rax
mov qword [rsp + 0x50], rax
je 0x140212942
test rax, rax
je 0x140213c0b
mov rdx, rax
mov rcx, r13
call fcn.1401c3190
jmp 0x140213c0b
movsxd rdx, dword [rsp + 0x34]
lea rcx, [r14 + 0x360]
mov r13, qword [rsp + 0x130]
xorps xmm0, xmm0
mov qword [rax + 8], r12
mov r12, qword [rsp + 0x138]
mov qword [rax + 0x18], r13
mov qword [rax], rbp
mov qword [rax + 0x10], r15
mov rax, 0xffffffffffffffff
mov qword [r14 + 0x28], rax
mov byte [r14 + 0x40], dl
mov qword [rsp + 0x60], rax
mov eax, dword [rbp + 0x44]
dec eax
mov qword [rsp + 0x70], rcx
mov dword [rbp + 0x44], eax
mov dword [r14 + 0x30], eax
mov dword [r14 + 0x34], eax
movzx eax, word [rsp + 0x30]
mov word [r14 + 0x3c], ax
mov eax, dword [rsp + 0x148]
mov word [r14 + 0x3e], ax
mov dword [rsp + 0x58], eax
movsx eax, word [rbp + 0xe0]
mov dword [r14 + 0x38], eax
xor eax, eax
mov qword [r14 + 0x20], r12
movups xmmword [r14 + 0x41], xmm0
movups xmmword [r14 + 0x51], xmm0
mov qword [r14 + 0x61], rax
mov dword [r14 + 0x69], eax
mov word [r14 + 0x6d], ax
mov byte [r14 + 0x6f], al
lea rax, [rdx + 1]
imul r8, rax, 0x70
xor edx, edx
call fcn.14002a0d0
lea r9, [r14 + 0x70]
xor ebp, ebp
mov dword [r14 + 0x25c], ebp
lea rcx, [rdi + r14]
mov dword [r14 + 0x260], 0xffffff9d
lea rax, [rcx + 0x58]
mov qword [rsp + 0x78], r14
mov rdi, rsi
mov qword [rsp + 0x80], r9
mov qword [rsp + 0x88], rcx
mov qword [rcx + 0x48], rax
mov eax, 3
mov word [rcx + 0x40], ax
lea rax, [r9 + 0x28]
mov word [rcx + 0x3c], bp
mov dword [rcx + 0x38], ebp
mov qword [r9 + 0x20], rax
mov qword [rsp + 0x40], r9
mov qword [r9], r14
mov byte [r9 + 0x11], bpl
mov qword [r9 + 8], rbp
mov dword [r9 + 0x14], ebp
mov qword [r9 + 0x18], 8
test rsi, rsi
je 0x140212a86
mov eax, dword [rdi + 4]
test eax, 0x82000
je 0x140212a86
bt eax, 0x13
jae 0x140212a7d
mov rax, qword [rdi + 0x20]
mov rdi, qword [rax + 8]
jmp 0x140212a81
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x140212a63
mov byte [r14 + 0x80], 0x2c
mov r8d, pe_nt_image_headers64
test rdi, rdi
je 0x140212cb3
cmp byte [rdi], 0x2c
je 0x140212c94
movsxd rax, dword [r14 + 0x88]
cmp dword [r14 + 0x84], eax
jl 0x140212bf3
mov rbp, qword [r14 + 0x90]
mov rdi, qword [r9]
imul r14, rax, 0x70
mov rax, qword [rdi]
mov rcx, qword [rax]
lea rdx, [r14 + 0x10]
movzx eax, word [rcx + 0x1a4]
cmp rdx, rax
jbe 0x140212b0f
cmp dword [rcx + 0x1a0], 0
jne 0x140212af2
inc dword [rcx + 0x1b4]
jmp 0x140212b92
cmp byte [rcx + 0x67], 0
je 0x140212b92
mov r14, qword [rsp + 0x50]
mov qword [r14 + 0x90], rbp
xor ebp, ebp
jmp 0x140212cb3
cmp rdx, r8
ja 0x140212b50
mov r9, qword [rcx + 0x1d8]
test r9, r9
je 0x140212b32
mov rax, qword [r9]
mov qword [rcx + 0x1d8], rax
inc dword [rcx + 0x1b0]
jmp 0x140212b9f
mov r9, qword [rcx + 0x1d0]
test r9, r9
je 0x140212b50
mov rax, qword [r9]
mov qword [rcx + 0x1d0], rax
inc dword [rcx + 0x1b0]
jmp 0x140212b9f
mov r9, qword [rcx + 0x1c8]
test r9, r9
je 0x140212b6e
mov rax, qword [r9]
mov qword [rcx + 0x1c8], rax
inc dword [rcx + 0x1b0]
jmp 0x140212b9f
mov r9, qword [rcx + 0x1c0]
test r9, r9
je 0x140212b8c
mov rax, qword [r9]
inc dword [rcx + 0x1b0]
mov qword [rcx + 0x1c0], rax
jmp 0x140212b9f
inc dword [rcx + 0x1b8]
call fcn.140161510
mov r9, rax
test rax, rax
je 0x140212bb2
mov rax, qword [rdi + 0x60]
mov qword [r9], rax
mov qword [r9 + 8], r14
mov qword [rdi + 0x60], r9
add r9, 0x10
mov r14, qword [rsp + 0x50]
mov qword [r14 + 0x90], r9
test r9, r9
je 0x140212b01
movsxd rax, dword [r14 + 0x84]
mov rdx, rbp
imul r8, rax, 0x38
mov rcx, r9
call fcn.14002b6c0
mov eax, dword [r14 + 0x88]
lea r9, [r14 + 0x70]
add eax, eax
mov dword [r14 + 0x88], eax
xor ebp, ebp
movsxd rdx, dword [r14 + 0x84]
imul r8, rdx, 0x38
lea eax, [rdx + 1]
add r8, qword [r14 + 0x90]
mov dword [r14 + 0x84], eax
mov dword [r14 + 0x8c], eax
test rsi, rsi
je 0x140212c3c
test dword [rsi + 4], 0x80000
je 0x140212c3c
movsxd rcx, dword [rsi + 0x2c]
call fcn.1401e2d80
mov ecx, 0x10e
sub ax, cx
mov word [r8 + 0x10], ax
jmp 0x140212c50
mov eax, 1
mov word [r8 + 0x10], ax
test rsi, rsi
je 0x140212c73
nop dword [rax + rax]
mov eax, dword [rsi + 4]
test eax, 0x82000
je 0x140212c73
bt eax, 0x13
jae 0x140212c6a
mov rax, qword [rsi + 0x20]
mov rsi, qword [rax + 8]
jmp 0x140212c6e
mov rsi, qword [rsi + 0x10]
test rsi, rsi
jne 0x140212c50
mov qword [r8], rsi
xorps xmm0, xmm0
mov word [r8 + 0x12], bp
xor eax, eax
mov qword [r8 + 8], r9
movups xmmword [r8 + 0x14], xmm0
movups xmmword [r8 + 0x24], xmm0
mov dword [r8 + 0x34], eax
jmp 0x140212cb3
mov rdx, qword [rdi + 0x10]
mov r8b, 0x2c
mov rcx, r9
call fcn.140218c80
mov rdx, qword [rdi + 0x18]
lea rcx, [r14 + 0x70]
mov r8b, 0x2c
call fcn.140218c80
cmp dword [rsp + 0x34], 0
mov ecx, 0x100
jne 0x140212cfe
test r15, r15
je 0x140212ccc
movzx eax, byte [r15]
mov byte [r14 + 0x41], al
test word [rsp + 0x30], cx
je 0x140212ce3
mov rax, qword [rsp + 0x48]
test byte [rax + 0x60], 0x10
jne 0x140212ce3
mov byte [r14 + 0x43], 1
mov r14, qword [rsp + 0x110]
lea r8, str.SCAN_CONSTANT_ROW
mov rcx, r14
xor edx, edx
call fcn.14020a510
jmp 0x140212d69
mov rbx, qword [rsp + 0x118]
mov edi, ebp
mov rbp, qword [rsp + 0x110]
lea rsi, [rbx + 0x4c]
nop dword [rax]
nop dword [rax + rax]
movsxd rcx, dword [r14 + 0x25c]
lea r8, [r14 + 0x70]
mov eax, dword [rsi]
mov dword [r14 + rcx*4 + 0x260], eax
mov rcx, rbp
inc dword [r14 + 0x25c]
movsxd rax, edi
imul rdx, rax, 0x68
add rdx, 8
add rdx, rbx
call fcn.140218d00
inc edi
lea rsi, [rsi + 0x68]
cmp edi, dword [rbx]
jl 0x140212d20
mov rbx, qword [rsp + 0x38]
mov r14, qword [rsp + 0x110]
mov rax, qword [rsp + 0x40]
mov edi, dword [rax + 0x14]
sub edi, 1
js 0x140212da1
mov rsi, qword [rsp + 0x118]
mov r13, rax
mov r8d, edi
mov rdx, r13
mov rcx, rsi
call fcn.1401636e0
sub edi, 1
jns 0x140212d81
mov r13, qword [rsp + 0x130]
mov rax, qword [rsp + 0x40]
test r12, r12
je 0x140212db9
cmp qword [r12 + 0x60], 0
je 0x140212db9
mov rdx, r12
mov rcx, rax
call fcn.140212740
cmp dword [r14 + 0x30], 0
jne 0x140213be4
mov rax, qword [rsp + 0x80]
xor edx, edx
mov ebp, edx
cmp dword [rax + 0x1c], edx
jle 0x140212f0f
mov r12, qword [rsp + 0x50]
lea r8, [0x140167710]
mov rbx, qword [rsp + 0x110]
lea r9, [0x1401f74d0]
mov r13, qword [rsp + 0x118]
mov r14d, edx
mov r15d, dword [rsp + 0x34]
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rsp + 0x80]
mov rdi, qword [rax + 0x20]
add rdi, r14
test byte [rdi + 0x12], 2
jne 0x140212ec8
cmp qword [rdi + 0x30], 0
mov rsi, qword [rdi]
jne 0x140212ec8
test r15d, r15d
je 0x140212ea0
mov qword [rsp + 0xa0], rdx
mov eax, 1
mov word [rsp + 0xc4], ax
mov qword [rsp + 0xb8], rdx
mov dword [rsp + 0xc0], edx
mov qword [rsp + 0xc6], rdx
mov word [rsp + 0xce], dx
mov qword [rsp + 0xa8], r8
mov qword [rsp + 0xb0], r9
test rsi, rsi
je 0x140212ea0
mov rdx, rsi
lea rcx, [rsp + 0xa0]
call fcn.140212200
cmp word [rsp + 0xc4], 0
je 0x140212ec8
test byte [rsi + 4], 2
je 0x140212ead
test byte [r13 + 0x44], 0x40
jne 0x140212ec8
mov r8d, dword [r12 + 0x34]
mov r9d, reloc.WS2_32.dll_recv
mov rdx, rsi
mov rcx, rbx
call fcn.1401cbf40
or word [rdi + 0x12], 4
mov rax, qword [rsp + 0x80]
lea r8, [0x140167710]
inc ebp
lea r9, [0x1401f74d0]
add r14, 0x38
mov edx, 0
cmp ebp, dword [rax + 0x1c]
jl 0x140212e10
mov rbx, qword [rsp + 0x38]
mov r15, qword [rsp + 0x128]
mov r13, qword [rsp + 0x130]
mov r14, qword [rsp + 0x110]
movzx esi, word [rsp + 0x30]
bt si, 8
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x118]
jae 0x140212f83
test byte [rdi + 0x60], 0x10
je 0x140212f48
mov r12, qword [rsp + 0x50]
mov eax, 0xfeff
and si, ax
mov word [rsp + 0x30], si
and word [r12 + 0x3c], ax
jmp 0x140212f88
mov r8, qword [rsp + 0x40]
mov r9, r13
mov rdx, rbp
mov rcx, r14
call fcn.1401912d0
mov r12, qword [rsp + 0x50]
test eax, eax
je 0x140212f6c
mov byte [r12 + 0x43], 1
jmp 0x140212f88
test r15, r15
jne 0x140212f88
mov eax, pe_nt_image_headers64
mov qword [r12 + 0x10], r13
or word [r12 + 0x3c], ax
jmp 0x140212f88
mov r12, qword [rsp + 0x50]
mov r15d, dword [rsp + 0x34]
cmp r15d, 1
jne 0x140212fa1
lea rcx, [rsp + 0x78]
call fcn.140232b10
test eax, eax
jne 0x140213001
lea rcx, [rsp + 0x78]
call fcn.14022d8a0
test eax, eax
jne 0x140213be4
xor edx, edx
mov rcx, r12
call fcn.140231350
cmp byte [rdi + 0x67], 0
jne 0x140213be4
cmp qword [r12 + 0x10], 0
je 0x140212fea
movzx edx, word [r12 + 0x48]
mov rcx, r12
inc dx
call fcn.140231350
cmp byte [rdi + 0x67], 0
jne 0x140213be4
mov r11d, 0x100
test word [r12 + 0x3c], r11w
je 0x140213007
add word [r12 + 0x48], 0xffe2
jmp 0x140213007
mov r11d, 0x100
cmp qword [r12 + 0x10], 0
jne 0x140213021
mov eax, dword [rdi + 0x30]
bt rax, 0xc
jae 0x140213021
mov rcx, r12
call fcn.1402321f0
cmp dword [r14 + 0x30], 0
jne 0x140213be4
movzx eax, byte [r12 + 0x40]
mov ecx, 0x400
cmp al, 2
jb 0x14021308e
test r13, r13
je 0x140213077
movzx eax, si
and ax, cx
xor ecx, ecx
cmp cx, ax
jne 0x140213077
test dword [rdi + 0x60], r11d
jne 0x140213077
lea rdx, [rcx - 1]
mov rcx, r12
call fcn.140230380
movzx r15d, byte [r12 + 0x40]
mov qword [rsp + 0x60], rax
movzx eax, r15b
mov dword [rsp + 0x34], r15d
cmp al, 2
jb 0x14021308e
mov r9, qword [rsp + 0x48]
test dword [r9 + 0x60], 0x80000
jne 0x140213093
mov rcx, r12
call fcn.14022d180
mov r9, qword [rsp + 0x48]
mov rcx, qword [r12]
xor r11d, r11d
movzx eax, word [r12 + 0x48]
movzx r10d, word [rsp + 0x30]
mov word [rsp + 0x128], r11w
add word [rcx + 0xe0], ax
test r10b, 4
je 0x140213173
mov r8, qword [r12 + 0x3c0]
movzx edx, r10w
and dx, 8
mov ecx, dword [r8 + 0x38]
test ecx, 0x1000
jne 0x14021312f
mov dword [rsp + 0x128], r11d
cmp r11w, dx
je 0x140213173
mov rax, qword [rbp + 0x28]
mov word [rsp + 0x128], r11w
cmp byte [rax + 0x3f], 1
je 0x140213173
bt ecx, 0xd
jae 0x140213116
mov word [rsp + 0x128], r11w
test r10b, 0x10
je 0x140213173
test dword [r9 + 0x60], 0x8000000
mov word [rsp + 0x128], r11w
jne 0x140213173
test ecx, 0x1000
sete al
mov word [rsp + 0x128], r11w
inc al
mov byte [r12 + 0x42], al
mov rax, qword [rbp + 0x28]
test byte [rax + 0x30], 0x80
jne 0x140213173
mov word [rsp + 0x128], r11w
test cl, 0x40
je 0x140213173
and ecx, 0xffffffbf
neg dx
mov dword [r8 + 0x38], ecx
sbb ax, ax
and ax, 8
mov word [rsp + 0x128], ax
mov dword [rsp + 0x5c], r11d
lea rsi, [r12 + 0x360]
mov qword [rsp + 0x38], rsi
mov rdi, rsi
test r15d, r15d
jg 0x14021323b
mov ecx, dword [rsp + 0x34]
mov r15, qword [rsp + 0x48]
mov eax, dword [rbx + 0x90]
mov dword [r12 + 0x4c], eax
cmp byte [r15 + 0x67], 0
jne 0x140213be4
mov ebp, r11d
test ecx, ecx
jle 0x140213bd4
mov r13, qword [rsp + 0x118]
cmp dword [r14 + 0x30], 0
jne 0x140213be4
mov rax, qword [rsi + 0x60]
mov r14d, dword [rax + 0x38]
movzx eax, byte [rsi + 0x40]
imul rdi, rax, 0x68
add rdi, r13
mov eax, dword [rdi + 0x48]
test al, 0x10
je 0x140213b26
test al, 8
je 0x140213a42
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [rdi + 0x38]
mov r8d, dword [rdi + 0x3c]
cmp dword [rbx + 0x94], ecx
jg 0x140213a0f
mov r9d, edx
mov dword [rsp + 0x20], r11d
mov edx, 0xa
mov rcx, rbx
call fcn.14018ec70
jmp 0x140213b26
mov r9, qword [rsp + 0x48]
movzx r10d, word [rsp + 0x30]
movzx eax, byte [rdi + 0x40]
lea r13, [rbp + 8]
imul rcx, rax, 0x68
mov rdx, 0xffffffffffff8000
add r13, rcx
mov r15d, edx
mov rbp, qword [r13 + 0x20]
mov qword [rsp + 0x40], rbp
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x14021328f
mov rax, qword [r9 + 0x20]
mov r15d, r11d
add rax, 0x18
mov rdx, r11
cmp qword [rax], rcx
je 0x14021328f
nop dword [rax]
inc r15d
lea rax, [rax + 0x20]
inc rdx
cmp qword [rax], rcx
jne 0x140213280
test dword [rbp + 0x30], 0x4000
mov rsi, qword [rdi + 0x60]
mov qword [rsp + 0x68], rsi
jne 0x140213373
movzx eax, byte [rbp + 0x3f]
cmp al, 2
je 0x140213373
mov ecx, dword [rsi + 0x38]
bt ecx, 0xa
jae 0x1402133d3
mov rdi, qword [rbp + 0x50]
test rdi, rdi
je 0x1402132d5
cmp qword [rdi], r9
je 0x1402132d5
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1402132c7
movsxd rdx, dword [rbx + 0x90]
mov r8d, dword [r13 + 0x44]
cmp dword [rbx + 0x94], edx
jg 0x140213301
xor r9d, r9d
mov dword [rsp + 0x20], r11d
mov edx, 0xad
mov rcx, rbx
call fcn.14018ec70
mov edx, eax
jmp 0x14021332f
lea rcx, [rdx + rdx*2]
lea eax, [rdx + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 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], r11
mov rax, qword [rbx]
cmp byte [rax + 0x67], 0
jne 0x14021336e
test edx, edx
jns 0x140213344
mov edx, dword [rbx + 0x90]
dec edx
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
cmp byte [rax + rcx*8 + 1], 0
lea rdx, [rax + rcx*8]
je 0x1402133c1
mov r9d, 0xfffffff5
mov r8, rdi
mov rcx, rbx
call fcn.1402232f0
mov rdi, qword [rsp + 0x38]
test dword [rsi + 0x38], 0x200
je 0x1402136dd
test byte [rbp + 0x30], 0x80
mov r14d, WSACleanup
mov rsi, qword [rsi + 0x20]
je 0x14021350a
mov eax, dword [rsi + 0x64]
and al, 3
cmp al, 2
movzx eax, word [rsp + 0x30]
jne 0x14021350f
test al, 0x20
je 0x14021350f
mov eax, dword [rdi + 4]
mov r14, qword [rsp + 0x110]
mov dword [rdi + 8], eax
jmp 0x1402136dd
test rdi, rdi
je 0x14021336e
mov qword [rdx + 0x10], rdi
mov byte [rdx + 1], 0xf5
inc dword [rdi + 0x18]
jmp 0x14021336e
cmp al, 1
je 0x140213373
test cl, 0x40
jne 0x1402133e2
test r10b, 0x20
je 0x1402133ed
test byte [r13 + 0x3c], 0x50
je 0x1402134c6
cmp byte [r12 + 0x42], 0
mov ecx, WSACleanup
je 0x140213408
mov eax, dword [r13 + 0x44]
mov ecx, WSACleanup
mov dword [r12 + 0x28], eax
mov edx, dword [r13 + 0x44]
mov r9, rbp
mov dword [rsp + 0x20], ecx
mov r8d, r15d
mov rcx, r14
call fcn.1401e4440
cmp byte [r12 + 0x42], 0
jne 0x14021349b
cmp word [rbp + 0x36], 0x40
jge 0x14021349b
test byte [rbp + 0x30], 0xe0
jne 0x14021349b
test dword [rsi + 0x38], 0x404000
jne 0x14021349b
mov rax, qword [r13 + 0x50]
xor ecx, ecx
mov r9d, ecx
test rax, rax
je 0x140213458
nop word [rax + rax]
inc r9d
shr rax, 1
jne 0x140213450
mov rax, qword [rbx]
movsxd r8, r9d
cmp byte [rax + 0x67], cl
jne 0x14021349b
movsxd rax, dword [rbx + 0x90]
lea rdx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rdx, [rdx - 3]
cmp byte [rax + rdx*8 + 1], cl
lea rdx, [rax + rdx*8]
je 0x140213493
mov r9d, 0xfffffffd
mov rcx, rbx
call fcn.1402232f0
jmp 0x14021349b
mov dword [rdx + 0x10], r9d
mov byte [rdx + 1], 0xfd
movsxd rax, dword [rbx + 0x90]
test eax, eax
jle 0x140213373
mov edx, dword [rsp + 0x128]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov word [rax + rcx*8 - 0x16], dx
jmp 0x140213373
cmp r15d, 1
je 0x140213373
mov rax, qword [r14]
shl rdx, 5
mov rcx, qword [rax + 0x20]
mov rax, qword [rdx + rcx + 8]
cmp byte [rax + 0x11], 0
je 0x140213373
mov rax, qword [rbp]
xor r9d, r9d
mov r8d, dword [rbp + 0x28]
mov edx, r15d
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.140199f60
jmp 0x140213373
movzx eax, word [rsp + 0x30]
cmp byte [r12 + 0x42], 0
je 0x140213547
mov rax, qword [r13 + 0x20]
mov edi, dword [rsp + 0x58]
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x140213538
cmp rcx, rsi
je 0x140213538
mov rcx, qword [rcx + 0x28]
inc edi
test rcx, rcx
jne 0x140213528
mov r14d, WSACleanup
mov dword [r12 + 0x2c], edi
mov ebp, edi
jmp 0x1402135c3
mov ecx, dword [rsp + 0x58]
test ecx, ecx
je 0x14021355f
test al, 0x20
je 0x14021355f
mov edi, ecx
mov r14d, 0x65
mov ebp, ecx
jmp 0x1402135c3
mov rcx, qword [rsp + 0x110]
mov edi, dword [rcx + 0x34]
mov ebp, edi
lea eax, [rdi + 1]
mov dword [rcx + 0x34], eax
test dword [rsi + 0x64], 0x1000
je 0x14021359f
mov rax, qword [rsp + 0x48]
test dword [rax + 0x60], 0x1000000
jne 0x14021359f
mov r9, r13
mov r8d, edi
mov rdx, rsi
call fcn.14022c950
mov rcx, qword [rsp + 0x110]
mov r8, qword [rsi + 0x48]
test r8, r8
je 0x1402135c3
test byte [r13 + 0x3c], 0x10
jne 0x1402135c3
mov qword [rsp + 0x28], r13
xor r9d, r9d
mov rdx, rsi
mov dword [rsp + 0x20], edi
call fcn.140230720
mov rax, qword [rsp + 0x38]
mov dword [rax + 8], ebp
movsxd rcx, dword [rbx + 0x90]
mov r8d, dword [rsi + 0x58]
cmp dword [rbx + 0x94], ecx
jg 0x1402135f6
mov r9d, r8d
mov dword [rsp + 0x20], r15d
mov r8d, edi
mov edx, r14d
mov rcx, rbx
call fcn.14018ec70
jmp 0x14021362c
lea eax, [rcx + 1]
xor edx, edx
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov byte [rax + rcx*8], r14b
mov word [rax + rcx*8 + 2], dx
mov dword [rax + rcx*8 + 4], edi
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], rdx
mov byte [rax + rcx*8 + 1], dl
mov r14, qword [rsp + 0x110]
mov rdx, rsi
mov rcx, r14
mov rdi, qword [r14 + 0x10]
call fcn.1401e1790
mov r8, rax
test rax, rax
je 0x14021368e
mov rax, qword [rdi]
cmp byte [rax + 0x67], 0
je 0x140213672
cmp qword [rax + 0x308], 0
jne 0x14021368e
add dword [r8], 0xffffffff
jne 0x14021368e
mov rcx, qword [r8 + 0x10]
mov rdx, r8
call fcn.1401c3490
jmp 0x14021368e
movsxd rax, dword [rdi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 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 0x1402136d8
test eax, 0x188002
jne 0x1402136d8
test byte [r12 + 0x3c], 1
jne 0x1402136d8
cmp byte [r12 + 0x43], 2
je 0x1402136d8
movsxd rax, dword [rbx + 0x90]
mov rbp, qword [rsp + 0x40]
test eax, eax
jle 0x1402136dd
lea rcx, [rax + rax*2]
mov edx, 2
mov rax, qword [rbx + 0x88]
mov word [rax + rcx*8 - 0x16], dx
jmp 0x1402136dd
mov rbp, qword [rsp + 0x40]
test r15d, r15d
js 0x140213714
mov rax, qword [r14 + 0xb0]
mov rcx, r14
test rax, rax
cmovne rcx, rax
mov eax, dword [rcx + 0x84]
bt eax, r15d
jb 0x140213714
bts eax, r15d
mov dword [rcx + 0x84], eax
cmp r15d, 1
jne 0x140213714
call fcn.1401e4800
test byte [r13 + 0x3c], 0x10
je 0x1402139cc
mov rcx, qword [r12]
mov edx, 0x24
mov rcx, qword [rcx]
call fcn.1401c3340
mov rsi, rax
test rax, rax
je 0x140213751
mov rcx, qword [r12 + 0x60]
add rsi, 0x10
mov qword [rax], rcx
mov qword [rax + 8], setsockopt
mov qword [r12 + 0x60], rax
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x38], rsi
test rsi, rsi
je 0x1402139cc
mov eax, dword [r14 + 0x34]
xor r15d, r15d
mov dword [rsi], eax
mov edx, dword [r14 + 0x38]
inc dword [r14 + 0x34]
inc edx
mov dword [r14 + 0x38], edx
mov dword [rsi + 4], edx
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x1402137a8
mov r9d, edx
mov dword [rsp + 0x20], r15d
lea edx, [r15 + 0x4d]
mov r8d, 0x10000
mov rcx, rbx
call fcn.14018ec70
jmp 0x1402137d9
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 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], r15d
mov qword [rax + rcx*8 + 0x10], r15
inc dword [r14 + 0x38]
mov edx, dword [r14 + 0x38]
mov dword [rsi + 8], edx
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x14021380c
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov r9d, edx
mov rcx, rbx
lea edx, [r8 + 0x4b]
call fcn.14018ec70
jmp 0x140213836
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 0x88]
mov qword [rax + rcx*8], 0x4b
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r15
test byte [rbp + 0x30], 0x80
jne 0x1402138e4
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [rsi]
cmp dword [rbx + 0x94], ecx
jg 0x14021386d
mov r9d, 1
mov dword [rsp + 0x20], r15d
mov r8d, edx
mov rcx, rbx
lea edx, [r9 + 0x75]
call fcn.14018ec70
jmp 0x14021389a
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 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], r15
mov rcx, qword [r14]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.1401e1620
mov r8, rax
test rax, rax
je 0x1402139b7
mov rcx, qword [rax + 0x18]
mov qword [rax + 0x20], r15
mov byte [rcx], 0
mov rax, qword [rbx]
cmp byte [rax + 0x67], 0
jne 0x14021397d
movsxd rax, dword [rbx + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
jmp 0x1402139ad
mov rdi, qword [rbp + 0x10]
test rdi, rdi
je 0x140213902
nop dword [rax]
mov eax, dword [rdi + 0x64]
and al, 3
cmp al, 2
je 0x140213902
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1402138f0
movsxd rcx, dword [rbx + 0x90]
movzx edx, word [rdi + 0x5e]
mov r8d, dword [rsi]
cmp dword [rbx + 0x94], ecx
jg 0x14021392f
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x76
mov rcx, rbx
call fcn.14018ec70
jmp 0x14021395d
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 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], r15d
mov qword [rax + rcx*8 + 0x10], r15
mov rsi, qword [r14 + 0x10]
mov rdx, rdi
mov rcx, r14
call fcn.1401e1790
mov r8, rax
test rax, rax
je 0x1402139b7
mov rax, qword [rsi]
cmp byte [rax + 0x67], 0
je 0x14021399b
cmp qword [rax + 0x308], 0
jne 0x1402139b7
add dword [r8], 0xffffffff
jne 0x1402139b7
mov rcx, qword [r8 + 0x10]
mov rdx, r8
call fcn.1401c3490
jmp 0x1402139b7
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 rax, qword [rsp + 0x68]
and dword [rax + 0x38], 0xffffffbf
mov byte [r12 + 0x41], 0
mov byte [r12 + 0x43], 3
mov r8d, dword [rsp + 0x5c]
mov r11d, 0
mov rdi, qword [rsp + 0x38]
inc r8d
mov ecx, dword [rsp + 0x34]
add rdi, 0x70
mov rbp, qword [rsp + 0x118]
mov dword [rsp + 0x5c], r8d
mov qword [rsp + 0x38], rdi
cmp r8d, ecx
jl 0x140213230
lea rsi, [r12 + 0x360]
jmp 0x140213195
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 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], r11d
mov qword [rax + rcx*8 + 0x10], r11
jmp 0x140213b26
movsxd rsi, dword [rbx + 0x90]
cmp dword [rbx + 0x94], esi
jg 0x140213a6f
xor r9d, r9d
mov dword [rsp + 0x20], r11d
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 0xf]
call fcn.14018ec70
mov esi, eax
xor r11d, r11d
jmp 0x140213a99
lea rcx, [rsi + rsi*2]
lea eax, [rsi + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov qword [rax + rcx*8], setsockopt
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r11
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [rdi + 0x38]
mov r8d, dword [rdi + 0x3c]
cmp dword [rbx + 0x94], ecx
jg 0x140213ac6
mov r9d, edx
mov dword [rsp + 0x20], r11d
mov edx, 0xa
mov rcx, rbx
call fcn.14018ec70
jmp 0x140213af4
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 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], r11d
mov qword [rax + rcx*8 + 0x10], r11
mov rax, qword [rbx]
mov edx, dword [rbx + 0x90]
cmp byte [rax + 0x67], 0
je 0x140213b0c
lea rax, [0x14036e150]
jmp 0x140213b1e
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
mov rsi, qword [rsp + 0x70]
mov dword [rax + 8], edx
mov rdi, qword [rsp + 0x60]
test r14d, 0x404000
je 0x140213b6c
bt r14d, 0xe
jae 0x140213b55
mov rcx, qword [rsp + 0x110]
lea rdx, [r12 + 0x70]
mov r9, rsi
mov r8, rdi
call fcn.14015ec20
jmp 0x140213b65
mov r9, rdi
mov r8, rsi
mov edx, ebp
mov rcx, r12
call fcn.1401c0af0
cmp byte [r15 + 0x67], 0
jne 0x140213be4
mov r14, qword [rsp + 0x110]
mov r8, rsi
movzx r9d, word [rsp + 0x30]
mov rcx, r14
mov rdx, r13
call fcn.140217a80
mov eax, dword [rbx + 0x90]
mov r9d, ebp
mov r8, r12
mov qword [rsp + 0x28], rdi
mov rdx, rbx
mov dword [rsi + 0x20], eax
mov rcx, r14
mov qword [rsp + 0x20], rsi
call fcn.140213d00
mov qword [rsp + 0x60], rax
inc ebp
mov eax, dword [rsi + 0x18]
mov r11d, 0
add rsi, 0x70
mov dword [r12 + 0x30], eax
mov qword [rsp + 0x70], rsi
cmp ebp, dword [rsp + 0x34]
jl 0x1402131c3
mov eax, dword [rbx + 0x90]
mov dword [r12 + 0x50], eax
mov rax, r12
jmp 0x140213c0d
mov r12, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x110]
mov rdx, r12
mov rcx, qword [rsp + 0x48]
movzx eax, word [r12 + 0x38]
mov word [rbp + 0xe0], ax
call fcn.14022d610
xor eax, eax
mov rdi, qword [rsp + 0x120]
mov r14, qword [rsp + 0xd0]
add rsp, 0xd8
pop r15
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret