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

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 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 + 0x68], rbx
mov qword [rsp + 0x40], r13
mov r15, r9
mov rsi, r8
mov r12, rdx
movdqu xmmword [rsp + 0x88], xmm0
test r9, r9
je 0x140115912
cmp dword [r9], 0x40
cmovge r15, rcx
mov eax, dword [rdx]
cmp eax, 0x40
jle 0x140115941
mov r8d, 0x40
lea rdx, str.at_most__d_tables_in_a_join
mov rcx, rbp
call fcn.1400d8a30
xor eax, eax
add rsp, 0xd8
pop r15
pop r13
pop r12
pop rsi
pop rbp
pop rbx
ret
movzx ecx, word [rsp + 0x140]
test cl, 0x20
mov word [rsp + 0x128], cx
mov ecx, 1
mov qword [rsp + 0x120], rdi
cmovne eax, ecx
mov qword [rsp + 0xd0], r14
mov dword [rsp + 0x38], eax
mov rcx, r13
imul eax, eax, 0x70
add eax, 0x370
movsxd rdi, eax
lea rdx, [rdi + 0x70]
call fcn.1400d6080
cmp byte [r13 + 0x67], 0
mov r14, rax
mov qword [rsp + 0x50], rax
je 0x1401159af
test rax, rax
je 0x140116bd6
mov rdx, rax
mov rcx, r13
call fcn.1400d5ef0
jmp 0x140116bd6
movsxd rdx, dword [rsp + 0x38]
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], rsi
mov rax, 0xffffffffffffffff
mov qword [r14 + 0x30], rax
mov byte [r14 + 0x48], dl
mov qword [rsp + 0x60], rax
mov eax, dword [rbp + 0x44]
dec eax
mov qword [rsp + 0x30], rcx
mov dword [rbp + 0x44], eax
mov dword [r14 + 0x38], eax
mov dword [r14 + 0x3c], eax
movzx eax, word [rsp + 0x128]
mov word [r14 + 0x44], ax
mov eax, dword [rsp + 0x148]
mov word [r14 + 0x46], ax
mov dword [rsp + 0x58], 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.140147800
lea r10, [r14 + 0x80]
xor ebp, ebp
mov dword [r14 + 0x26c], ebp
lea rcx, [rdi + r14]
mov dword [r14 + 0x270], 0xffffff9d
lea rax, [rcx + 0x58]
mov qword [rsp + 0x70], r14
mov rdi, rsi
mov qword [rsp + 0x78], r10
mov qword [rsp + 0x80], 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 + 0x48], 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 rsi, rsi
je 0x140115b03
nop word [rax + rax]
mov eax, dword [rdi + 4]
test eax, 0x82000
je 0x140115b03
bt eax, 0x13
jae 0x140115afa
mov rax, qword [rdi + 0x20]
mov rdi, qword [rax + 8]
jmp 0x140115afe
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x140115ae0
mov byte [r10 + 0x10], 0x2c
mov r8d, 0x80
test rdi, rdi
je 0x140115d04
cmp byte [rdi], 0x2c
je 0x140115ce4
movsxd rax, dword [r10 + 0x18]
cmp ebp, eax
jl 0x140115c50
mov rbp, qword [r10 + 0x20]
mov rdi, r14
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 0x140115b70
cmp dword [rcx + 0x1a0], 0
jne 0x140115b61
inc dword [rcx + 0x1b4]
jmp 0x140115bf3
cmp byte [rcx + 0x67], 0
jne 0x140115c21
jmp 0x140115bf3
cmp rdx, r8
ja 0x140115bb1
mov r9, qword [rcx + 0x1d8]
test r9, r9
je 0x140115b93
mov rax, qword [r9]
mov qword [rcx + 0x1d8], rax
inc dword [rcx + 0x1b0]
jmp 0x140115c05
mov r9, qword [rcx + 0x1d0]
test r9, r9
je 0x140115bb1
mov rax, qword [r9]
mov qword [rcx + 0x1d0], rax
inc dword [rcx + 0x1b0]
jmp 0x140115c05
mov r9, qword [rcx + 0x1c8]
test r9, r9
je 0x140115bcf
mov rax, qword [r9]
mov qword [rcx + 0x1c8], rax
inc dword [rcx + 0x1b0]
jmp 0x140115c05
mov r9, qword [rcx + 0x1c0]
test r9, r9
je 0x140115bed
mov rax, qword [r9]
inc dword [rcx + 0x1b0]
mov qword [rcx + 0x1c0], rax
jmp 0x140115c05
inc dword [rcx + 0x1b8]
call fcn.14009fbb0
mov r10, qword [rsp + 0x48]
mov r9, rax
test rax, rax
je 0x140115c18
mov rax, qword [rdi + 0x70]
mov qword [r9], rax
mov qword [r9 + 8], r14
mov qword [rdi + 0x70], r9
add r9, 0x10
mov qword [r10 + 0x20], r9
test r9, r9
jne 0x140115c2c
mov qword [r10 + 0x20], rbp
xor ebp, ebp
jmp 0x140115d04
movsxd rax, dword [r10 + 0x14]
mov rdx, rbp
imul r8, rax, 0x38
mov rcx, r9
call fcn.140147160
mov r10, qword [rsp + 0x48]
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 rsi, rsi
je 0x140115c8d
test dword [rsi + 4], 0x80000
je 0x140115c8d
movsxd rcx, dword [rsi + 0x2c]
call fcn.1400eb800
mov ecx, 0x10e
sub ax, cx
mov word [r8 + 0x10], ax
jmp 0x140115ca0
mov eax, 1
mov word [r8 + 0x10], ax
test rsi, rsi
je 0x140115cc3
nop dword [rax]
mov eax, dword [rsi + 4]
test eax, 0x82000
je 0x140115cc3
bt eax, 0x13
jae 0x140115cba
mov rax, qword [rsi + 0x20]
mov rsi, qword [rax + 8]
jmp 0x140115cbe
mov rsi, qword [rsi + 0x10]
test rsi, rsi
jne 0x140115ca0
mov qword [r8], rsi
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 0x140115d04
mov rdx, qword [rdi + 0x10]
mov r8b, 0x2c
mov rcx, r10
call fcn.14011ba10
mov rdx, qword [rdi + 0x18]
mov r8b, 0x2c
mov rcx, qword [rsp + 0x48]
call fcn.14011ba10
cmp dword [rsp + 0x38], 0
mov ecx, 0x100
mov r14, qword [rsp + 0x50]
jne 0x140115d54
test r15, r15
je 0x140115d22
movzx eax, byte [r15]
mov byte [r14 + 0x49], al
test word [rsp + 0x128], cx
je 0x140115d3c
mov rax, qword [rsp + 0x40]
test byte [rax + 0x60], 0x10
jne 0x140115d3c
mov byte [r14 + 0x4b], 1
mov rcx, qword [rsp + 0x110]
lea r8, str.SCAN_CONSTANT_ROW
xor edx, edx
call fcn.14010ed00
jmp 0x140115db8
mov rbx, qword [rsp + 0x118]
mov edi, ebp
mov rbp, qword [rsp + 0x110]
mov r12, qword [rsp + 0x48]
lea rsi, [rbx + 0x4c]
nop
movsxd rcx, dword [r14 + 0x26c]
mov r8, r12
mov eax, dword [rsi]
mov dword [r14 + rcx*4 + 0x270], eax
mov rcx, rbp
inc dword [r14 + 0x26c]
movsxd rax, edi
imul rdx, rax, 0x68
add rdx, 8
add rdx, rbx
call fcn.14011ba90
inc edi
lea rsi, [rsi + 0x68]
cmp edi, dword [rbx]
jl 0x140115d70
mov rbx, qword [rsp + 0x68]
mov r12, qword [rsp + 0x130]
lea rsi, [r14 + 0x80]
mov edi, dword [rsi + 0x14]
sub edi, 1
js 0x140115de3
mov rbp, qword [rsp + 0x118]
nop
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call fcn.1400a15f0
sub edi, 1
jns 0x140115dd0
test r13, r13
je 0x140115ecd
mov r10, qword [r13 + 0x60]
test r10, r10
je 0x140115ecd
test byte [r13 + 4], 9
jne 0x140115ecd
mov rcx, qword [r13 + 0x28]
cmp dword [rcx], 1
jne 0x140115ecd
mov rax, qword [rcx + 0x28]
cmp byte [rax + 0x3f], 1
jne 0x140115ecd
mov edi, dword [rcx + 0x4c]
xor r11d, r11d
movsxd rcx, dword [rsi + 0x14]
mov r8, qword [r13 + 0x48]
test ecx, ecx
jle 0x140115e5a
mov rax, qword [rsi + 0x20]
mov rdx, rcx
add rax, 0x1c
mov ecx, r11d
nop
test byte [rax - 0xa], 4
jne 0x140115e4e
cmp dword [rax], edi
jne 0x140115ed0
inc rcx
add rax, 0x38
cmp rcx, rdx
jl 0x140115e40
test r8, r8
je 0x140115e8f
movsxd r9, dword [r8]
test r9, r9
jle 0x140115e8f
mov rdx, r11
lea rax, [r8 + 0x18]
nop
mov rcx, qword [rax - 0x10]
cmp byte [rcx], 0xa7
jne 0x140115ed0
cmp dword [rcx + 0x2c], edi
jne 0x140115ed0
test byte [rax], 2
jne 0x140115ed0
inc rdx
add rax, 0x20
cmp rdx, r9
jl 0x140115e70
mov r8, qword [r10 + 0x10]
mov r9d, edi
mov edx, dword [r13 + 8]
mov rcx, rsi
mov dword [rsp + 0x20], 0x49
call fcn.14012b670
mov edx, dword [r13 + 0xc]
test edx, edx
jle 0x140115ecd
mov r8, qword [r13 + 0x60]
mov r9d, edi
mov rcx, rsi
mov dword [rsp + 0x20], 0x4a
mov r8, qword [r8 + 0x18]
call fcn.14012b670
xor r11d, r11d
mov r13, qword [rsp + 0x110]
cmp dword [r13 + 0x30], 0
jne 0x140116bb6
mov rcx, qword [rsp + 0x78]
mov ebp, r11d
cmp dword [rcx + 0x1c], 0
jle 0x140115fe5
mov ebx, dword [rsp + 0x38]
lea r8, [0x1400a52c0]
mov rsi, r11
lea r9, [0x1400fd660]
mov r12d, 1
mov rdi, qword [rcx + 0x20]
add rdi, rsi
test byte [rdi + 0x12], 2
jne 0x140115fc2
cmp qword [rdi + 0x30], 0
jne 0x140115fc2
test ebx, ebx
je 0x140115f92
mov rdx, qword [rdi]
mov qword [rsp + 0x98], r11
mov qword [rsp + 0xb0], r11
mov dword [rsp + 0xb8], r11d
mov qword [rsp + 0xbe], r11
mov word [rsp + 0xc6], r11w
mov word [rsp + 0xbc], r12w
mov qword [rsp + 0xa0], r8
mov qword [rsp + 0xa8], r9
test rdx, rdx
je 0x140115f92
lea rcx, [rsp + 0x98]
call fcn.14012b480
cmp word [rsp + 0xbc], 0
je 0x140115fac
mov r8d, dword [r14 + 0x3c]
mov r9d, setsockopt
mov rdx, qword [rdi]
mov rcx, r13
call fcn.1400ddbe0
or word [rdi + 0x12], 4
mov rcx, qword [rsp + 0x78]
lea r9, [0x1400fd660]
lea r8, [0x1400a52c0]
xor r11d, r11d
inc ebp
add rsi, 0x38
cmp ebp, dword [rcx + 0x1c]
jl 0x140115f10
mov rbx, qword [rsp + 0x68]
lea rsi, [r14 + 0x80]
mov r12, qword [rsp + 0x130]
movzx eax, word [rsp + 0x128]
bt ax, 8
mov rdi, qword [rsp + 0x40]
jae 0x140116018
test byte [rdi + 0x60], 0x10
je 0x1401161de
mov ecx, 0xfeff
and ax, cx
and word [r14 + 0x44], cx
mov word [rsp + 0x128], ax
mov rsi, qword [rsp + 0x118]
mov ebp, dword [rsp + 0x38]
cmp ebp, 1
jne 0x140116037
lea rcx, [rsp + 0x70]
call fcn.140130f30
test eax, eax
jne 0x14011607e
lea rcx, [rsp + 0x70]
call fcn.14012c320
test eax, eax
jne 0x140116bb6
xor edx, edx
mov rcx, r14
call fcn.14012f890
cmp byte [rdi + 0x67], 0
jne 0x140116bb6
cmp qword [r14 + 0x10], 0
je 0x140116085
movzx edx, word [r14 + 0x50]
mov rcx, r14
inc dx
call fcn.14012f890
cmp byte [rdi + 0x67], 0
jne 0x140116bb6
cmp qword [r14 + 0x10], 0
jne 0x140116097
mov eax, dword [rdi + 0x30]
bt rax, 0xc
jae 0x140116097
mov qword [r14 + 0x78], 0xffffffffffffffff
cmp dword [r13 + 0x30], 0
jne 0x140116bb6
movzx eax, byte [r14 + 0x48]
mov ecx, 0x400
cmp al, 2
jb 0x14011610a
test r12, r12
je 0x1401160f3
movzx eax, word [rsp + 0x128]
and ax, cx
xor ecx, ecx
cmp cx, ax
jne 0x1401160f3
mov eax, 0x100
test dword [rdi + 0x60], eax
jne 0x1401160f3
lea rdx, [rcx - 1]
mov rcx, r14
call fcn.14012eb60
movzx ebp, byte [r14 + 0x48]
mov qword [rsp + 0x60], rax
movzx eax, bpl
mov dword [rsp + 0x38], ebp
cmp al, 2
jb 0x14011610a
mov r8, qword [rsp + 0x40]
test dword [r8 + 0x60], 0x80000
jne 0x14011610f
mov rcx, r14
call fcn.14012bb40
mov r8, qword [rsp + 0x40]
mov rcx, qword [r14]
xor r11d, r11d
movsx eax, word [r14 + 0x50]
movzx edi, r11w
movzx r10d, word [rsp + 0x128]
mov dword [rsp + 0x110], edi
add dword [rcx + 0xc8], eax
test r10b, 4
je 0x1401161cf
mov rdx, qword [r14 + 0x3d0]
mov ecx, dword [rdx + 0x38]
test ecx, 0x1000
jne 0x140116190
mov dword [rsp + 0x110], r11d
mov edi, r11d
test r10b, 8
je 0x1401161cf
mov rax, qword [rsi + 0x28]
mov dword [rsp + 0x110], r11d
cmp byte [rax + 0x3f], 1
je 0x1401161cf
bt ecx, 0xd
jae 0x14011618a
movzx edi, r11w
mov dword [rsp + 0x110], edi
test r10b, 0x10
je 0x1401161cf
test ecx, 0x1000
sete al
movzx edi, r11w
inc al
mov dword [rsp + 0x110], edi
mov byte [r14 + 0x4a], al
mov rax, qword [rsi + 0x28]
test byte [rax + 0x30], 0x80
jne 0x1401161cf
mov dword [rsp + 0x110], edi
test cl, 0x40
je 0x1401161cf
and ecx, 0xffffffbf
movzx edi, r10w
and di, 8
mov dword [rdx + 0x38], ecx
mov dword [rsp + 0x110], edi
mov dword [rsp + 0x48], r11d
test ebp, ebp
jle 0x14011699a
jmp 0x14011622a
mov r8, rsi
mov r9, r12
mov rsi, qword [rsp + 0x118]
mov rcx, r13
mov rdx, rsi
call fcn.1400af1c0
test eax, eax
je 0x140116205
mov byte [r14 + 0x4b], 1
jmp 0x140116020
test r15, r15
jne 0x140116020
mov eax, 0x80
mov qword [r14 + 0x10], r12
or word [r14 + 0x44], ax
jmp 0x140116020
movzx r10d, word [rsp + 0x128]
mov r9, qword [rsp + 0x30]
mov ebp, 0xffff8000
mov rdx, 0xffffffffffff8000
movzx eax, byte [r9 + 0x40]
imul r12, rax, 0x68
add r12, rsi
mov r15, qword [r12 + 0x28]
mov rcx, qword [r15 + 0x60]
test rcx, rcx
je 0x14011627e
mov rax, qword [r8 + 0x20]
mov ebp, r11d
add rax, 0x18
mov rdx, r11
cmp qword [rax], rcx
je 0x14011627e
nop dword [rax + rax]
inc ebp
lea rax, [rax + 0x20]
inc rdx
cmp qword [rax], rcx
jne 0x140116270
test dword [r15 + 0x30], 0x4000
mov rsi, qword [r9 + 0x60]
mov qword [rsp + 0x68], rsi
jne 0x14011649d
movzx eax, byte [r15 + 0x3f]
cmp al, 2
je 0x14011649d
mov ecx, dword [rsi + 0x38]
bt ecx, 0xa
jae 0x140116382
mov rdi, qword [r15 + 0x50]
test rdi, rdi
je 0x1401162c6
cmp qword [rdi], r8
je 0x1401162c6
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1401162b8
movsxd rdx, dword [rbx + 0x90]
mov r8d, dword [r12 + 0x4c]
cmp dword [rbx + 0x94], edx
jg 0x1401162f3
xor r9d, r9d
mov dword [rsp + 0x20], r11d
mov edx, 0xad
mov rcx, rbx
call fcn.1400ad9d0
mov edx, eax
jmp 0x140116321
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 0x14011649d
test edx, edx
jns 0x14011633a
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 0x140116369
mov r9d, 0xfffffff5
mov r8, rdi
mov rcx, rbx
call fcn.1401246b0
jmp 0x14011649d
test rdi, rdi
je 0x14011649d
mov qword [rdx + 0x10], rdi
mov byte [rdx + 1], 0xf5
inc dword [rdi + 0x18]
jmp 0x14011649d
cmp al, 1
je 0x14011649d
test cl, 0x40
jne 0x140116395
test r10b, 0x20
je 0x1401163a1
test byte [r12 + 0x44], 0x50
je 0x140116468
cmp byte [r14 + 0x4a], 0
mov ecx, reloc.WS2_32.dll_WSASetLastError
je 0x1401163bb
mov eax, dword [r12 + 0x4c]
mov ecx, WSACleanup
mov dword [r14 + 0x30], eax
mov edx, dword [r12 + 0x4c]
mov r9, r15
mov dword [rsp + 0x20], ecx
mov r8d, ebp
mov rcx, r13
call fcn.1400ec7c0
cmp byte [r14 + 0x4a], 0
jne 0x14011644b
cmp word [r15 + 0x36], 0x40
jge 0x14011644b
test byte [r15 + 0x30], 0xe0
jne 0x14011644b
test dword [rsi + 0x38], 0x404000
jne 0x14011644b
mov rax, qword [r12 + 0x58]
xor ecx, ecx
mov r9d, ecx
test rax, rax
je 0x140116408
inc r9d
shr rax, 1
jne 0x140116400
mov rax, qword [rbx]
movsxd r8, r9d
cmp byte [rax + 0x67], cl
jne 0x14011644b
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 0x140116443
mov r9d, 0xfffffffd
mov rcx, rbx
call fcn.1401246b0
jmp 0x14011644b
mov dword [rdx + 0x10], r9d
mov byte [rdx + 1], 0xfd
movsxd rax, dword [rbx + 0x90]
test eax, eax
jle 0x14011649d
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov word [rax + rcx*8 - 0x16], di
jmp 0x14011649d
cmp ebp, 1
je 0x14011649d
mov rax, qword [r13]
shl rdx, 5
mov rcx, qword [rax + 0x20]
mov rax, qword [rdx + rcx + 8]
cmp byte [rax + 0x11], 0
je 0x14011649d
mov rax, qword [r15]
xor r9d, r9d
mov r8d, dword [r15 + 0x28]
mov edx, ebp
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.1400b30d0
test dword [rsi + 0x38], 0x200
je 0x14011664e
test byte [r15 + 0x30], 0x80
mov r10d, reloc.WS2_32.dll_WSASetLastError
mov rsi, qword [rsi + 0x20]
je 0x1401164e0
mov eax, dword [rsi + 0x64]
and al, 3
cmp al, 2
movzx eax, word [rsp + 0x128]
jne 0x1401164e8
test al, 0x20
je 0x1401164e8
mov rdi, qword [rsp + 0x30]
mov eax, dword [rdi + 4]
mov dword [rdi + 8], eax
jmp 0x140116653
movzx eax, word [rsp + 0x128]
cmp byte [r14 + 0x4a], 0
je 0x14011651d
mov rax, qword [r12 + 0x28]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x140116511
cmp rcx, rsi
je 0x140116511
mov rcx, qword [rcx + 0x28]
inc edx
test rcx, rcx
jne 0x140116501
mov r10d, WSACleanup
mov dword [r14 + 0x34], edx
jmp 0x140116540
mov ecx, dword [rsp + 0x58]
test ecx, ecx
je 0x140116535
test al, 0x20
je 0x140116535
mov edx, ecx
mov r10d, 0x65
mov eax, ecx
jmp 0x140116542
mov edx, dword [r13 + 0x34]
lea eax, [rdx + 1]
mov dword [r13 + 0x34], eax
mov eax, edx
mov rcx, qword [rsp + 0x30]
mov dword [rcx + 8], eax
movsxd rcx, dword [rbx + 0x90]
mov r8d, dword [rsi + 0x58]
cmp dword [rbx + 0x94], ecx
jg 0x140116574
mov r9d, r8d
mov dword [rsp + 0x20], ebp
mov r8d, edx
mov rcx, rbx
mov edx, r10d
call fcn.1400ad9d0
jmp 0x1401165ac
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 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 rdi, qword [r13 + 0x10]
mov rdx, rsi
mov rcx, r13
call fcn.1400ea6f0
mov r8, rax
test rax, rax
je 0x140116606
mov rax, qword [rdi]
cmp byte [rax + 0x67], 0
je 0x1401165ea
cmp qword [rax + 0x300], 0
jne 0x140116606
add dword [r8], 0xffffffff
jne 0x140116606
mov rcx, qword [r8 + 0x10]
mov rdx, r8
call fcn.1400d5ef0
jmp 0x140116606
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 0x14011664e
test eax, 0x188002
jne 0x14011664e
test byte [r14 + 0x44], 1
jne 0x14011664e
cmp byte [r14 + 0x4b], 2
je 0x14011664e
movsxd rax, dword [rbx + 0x90]
mov rdi, qword [rsp + 0x30]
test eax, eax
jle 0x140116653
lea rcx, [rax + rax*2]
mov edx, 2
mov rax, qword [rbx + 0x88]
mov word [rax + rcx*8 - 0x16], dx
jmp 0x140116653
mov rdi, qword [rsp + 0x30]
test ebp, ebp
js 0x140116680
mov rax, qword [r13 + 0xa0]
mov rcx, r13
test rax, rax
cmovne rcx, rax
mov eax, dword [rcx + 0x74]
bt eax, ebp
jb 0x140116680
bts eax, ebp
mov dword [rcx + 0x74], eax
cmp ebp, 1
jne 0x140116680
call fcn.1400ecb90
test byte [r12 + 0x44], 0x10
je 0x14011695d
mov rcx, qword [r14]
mov edx, 0x24
mov rcx, qword [rcx]
call fcn.1400d6080
mov rsi, rax
test rax, rax
je 0x1401166bb
mov rcx, qword [r14 + 0x70]
add rsi, 0x10
mov qword [rax], rcx
mov qword [rax + 8], reloc.WS2_32.dll_sendto
mov qword [r14 + 0x70], rax
mov qword [rdi + 0x38], rsi
test rsi, rsi
je 0x14011695d
mov eax, dword [r13 + 0x34]
xor ebp, ebp
mov dword [rsi], eax
mov edx, dword [r13 + 0x38]
inc dword [r13 + 0x34]
inc edx
mov dword [r13 + 0x38], edx
mov dword [rsi + 4], edx
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x14011670a
mov r9d, edx
mov dword [rsp + 0x20], ebp
lea edx, [rbp + 0x4d]
mov r8d, 0x10000
mov rcx, rbx
call fcn.1400ad9d0
jmp 0x14011673a
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], ebp
mov qword [rax + rcx*8 + 0x10], rbp
inc dword [r13 + 0x38]
mov edx, dword [r13 + 0x38]
mov dword [rsi + 8], edx
movsxd rcx, dword [rbx + 0x90]
cmp dword [rbx + 0x94], ecx
jg 0x14011676c
xor r8d, r8d
mov dword [rsp + 0x20], ebp
mov r9d, edx
mov rcx, rbx
lea edx, [r8 + 0x4b]
call fcn.1400ad9d0
jmp 0x140116795
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], ebp
mov qword [rax + rcx*8 + 0x10], rbp
test byte [r15 + 0x30], 0x80
jne 0x140116873
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [rsi]
cmp dword [rbx + 0x94], ecx
jg 0x1401167cc
mov r9d, 1
mov dword [rsp + 0x20], ebp
mov r8d, edx
mov rcx, rbx
lea edx, [r9 + 0x75]
call fcn.1400ad9d0
jmp 0x1401167f9
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], rbp
mov rcx, qword [r13]
xor r8d, r8d
lea edx, [r8 + 1]
call fcn.1400ea580
mov r8, rax
test rax, rax
je 0x14011694a
mov rcx, qword [rax + 0x18]
mov qword [rax + 0x20], rbp
mov byte [rcx], 0
mov rax, qword [rbx]
cmp byte [rax + 0x67], 0
je 0x140116852
cmp qword [rax + 0x300], 0
jne 0x14011694a
add dword [r8], 0xffffffff
jne 0x14011694a
mov rcx, qword [r8 + 0x10]
mov rdx, r8
call fcn.1400d5ef0
jmp 0x14011694a
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
jmp 0x14011694a
mov rdi, qword [r15 + 0x10]
test rdi, rdi
je 0x140116892
nop dword [rax]
mov eax, dword [rdi + 0x64]
and al, 3
cmp al, 2
je 0x140116892
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140116880
movsxd rcx, dword [rbx + 0x90]
movzx edx, word [rdi + 0x5e]
mov r8d, dword [rsi]
cmp dword [rbx + 0x94], ecx
jg 0x1401168be
mov r9d, edx
mov dword [rsp + 0x20], ebp
mov edx, 0x76
mov rcx, rbx
call fcn.1400ad9d0
jmp 0x1401168eb
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], ebp
mov qword [rax + rcx*8 + 0x10], rbp
mov rsi, qword [r13 + 0x10]
mov rdx, rdi
mov rcx, r13
call fcn.1400ea6f0
mov r8, rax
test rax, rax
je 0x140116945
mov rax, qword [rsi]
cmp byte [rax + 0x67], 0
je 0x140116929
cmp qword [rax + 0x300], 0
jne 0x140116945
add dword [r8], 0xffffffff
jne 0x140116945
mov rcx, qword [r8 + 0x10]
mov rdx, r8
call fcn.1400d5ef0
jmp 0x140116945
movsxd rax, dword [rsi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov byte [rax + rcx*8 - 0x17], 0xf8
mov qword [rax + rcx*8 - 8], r8
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x68]
and dword [rax + 0x38], 0xffffffbf
mov byte [r14 + 0x49], 0
mov byte [r14 + 0x4b], 3
mov r8d, dword [rsp + 0x48]
add rdi, 0x70
mov ebp, dword [rsp + 0x38]
inc r8d
mov rsi, qword [rsp + 0x118]
cmp r8d, ebp
mov dword [rsp + 0x48], r8d
mov r11d, 0
mov r8, qword [rsp + 0x40]
mov qword [rsp + 0x30], rdi
mov edi, dword [rsp + 0x110]
jl 0x140116221
mov eax, dword [rbx + 0x90]
mov dword [r14 + 0x54], eax
mov rax, qword [rsp + 0x40]
cmp byte [rax + 0x67], 0
jne 0x140116bb6
mov r12, qword [rsp + 0x50]
mov r14d, r11d
test ebp, ebp
jle 0x140116c63
lea rdi, [r12 + 0x3b0]
nop dword [rax + rax]
cmp dword [r13 + 0x30], 0
jne 0x140116bb3
mov rax, qword [rdi + 0x20]
mov rdx, qword [rsp + 0x118]
mov r15d, dword [rax + 0x38]
movzx eax, byte [rdi]
imul rbp, rax, 0x68
add rbp, rdx
mov eax, dword [rbp + 0x48]
test al, 0x10
je 0x140116b55
test al, 8
je 0x140116a67
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [rbp + 0x38]
mov r8d, dword [rbp + 0x3c]
cmp dword [rbx + 0x94], ecx
jg 0x140116a34
mov r9d, edx
mov dword [rsp + 0x20], r11d
mov edx, 9
mov rcx, rbx
call fcn.1400ad9d0
jmp 0x140116b4d
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 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], r11d
mov qword [rax + rcx*8 + 0x10], r11
jmp 0x140116b4d
movsxd rsi, dword [rbx + 0x90]
cmp dword [rbx + 0x94], esi
jg 0x140116a94
xor r9d, r9d
mov dword [rsp + 0x20], r11d
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 0xe]
call fcn.1400ad9d0
mov esi, eax
xor r11d, r11d
jmp 0x140116abe
lea rcx, [rsi + rsi*2]
lea eax, [rsi + 1]
mov dword [rbx + 0x90], eax
mov rax, qword [rbx + 0x88]
mov qword [rax + rcx*8], reloc.WS2_32.dll_ntohl
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r11
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [rbp + 0x38]
mov r8d, dword [rbp + 0x3c]
cmp dword [rbx + 0x94], ecx
jg 0x140116aeb
mov r9d, edx
mov dword [rsp + 0x20], r11d
mov edx, 9
mov rcx, rbx
call fcn.1400ad9d0
jmp 0x140116b19
lea eax, [rcx + 1]
mov dword [rbx + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rbx + 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], r11d
mov qword [rax + rcx*8 + 0x10], r11
mov rax, qword [rbx]
mov edx, dword [rbx + 0x90]
cmp byte [rax + 0x67], 0
je 0x140116b31
lea rax, [0x1401ca5a0]
jmp 0x140116b4a
lea eax, [rdx - 1]
test esi, esi
cmovns eax, esi
cdqe
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
mov rdx, qword [rsp + 0x118]
lea rsi, [rdi - 0x40]
test r15d, 0x404000
je 0x140116bf9
bt r15d, 0xe
mov r15, qword [rsp + 0x60]
mov r9, r15
jae 0x140116b9a
movzx eax, byte [rdi]
add rdx, 8
imul r8, rax, 0x68
mov rcx, r13
mov qword [rsp + 0x20], rsi
add r8, rdx
lea rdx, [r12 + 0x80]
call fcn.14009d7e0
jmp 0x140116ba8
mov r8, rsi
mov edx, r14d
mov rcx, r12
call fcn.1400d3900
mov rax, qword [rsp + 0x40]
cmp byte [rax + 0x67], 0
je 0x140116bfe
mov r14, r12
mov rcx, r14
call fcn.140131190
mov eax, dword [r14 + 0x40]
mov rdx, r14
mov rcx, qword [rsp + 0x40]
mov dword [r13 + 0xc8], eax
call fcn.14012c130
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
mov r15, qword [rsp + 0x60]
movzx r9d, word [rsp + 0x128]
mov r8, rsi
mov rdx, qword [rsp + 0x118]
mov rcx, r13
call fcn.14011aa50
mov eax, dword [rbx + 0x90]
mov r9d, r14d
mov r8, r12
mov qword [rsp + 0x28], r15
mov rdx, rbx
mov dword [rdi - 0x20], eax
mov rcx, r13
mov qword [rsp + 0x20], rsi
call fcn.140116d10
mov qword [rsp + 0x60], rax
inc r14d
mov eax, dword [rdi - 0x28]
mov r11d, 0
add rdi, 0x70
mov dword [r12 + 0x38], eax
cmp r14d, dword [rsp + 0x38]
jl 0x1401169d0
mov eax, dword [rbx + 0x90]
mov dword [r12 + 0x58], eax
mov rax, r12
jmp 0x140116bd8