Function at 0x140139160
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 r15, r9
mov r13, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x50], rbx
xorps xmm0, xmm0
mov qword [rsp + 0x48], r13
mov rsi, r8
mov r12, rdx
mov rbp, rcx
movdqu xmmword [rax - 0x78], xmm0
test r15, r15
je 0x1401391b8
cmp dword [r15], 0x40
cmovge r15, r9
mov qword [rax + 0x20], r15
mov eax, dword [rdx]
cmp eax, 0x40
jle 0x1401391e4
mov r8d, 0x40
lea rdx, str.at_most__d_tables_in_a_join
call fcn.1400fbfc0
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 + 0x30], cx
mov ecx, 1
mov qword [rsp + 0x120], rdi
cmovne eax, ecx
mov qword [rsp + 0xd0], r14
mov dword [rsp + 0x34], eax
mov rcx, r13
imul eax, eax, 0x70
add eax, 0x360
movsxd rdi, eax
lea rdx, [rdi + 0x70]
call fcn.1400f9430
cmp byte [r13 + 0x67], 0
mov r14, rax
mov qword [rsp + 0x40], rax
je 0x14013924f
test rax, rax
je 0x14013a4a6
mov rdx, rax
mov rcx, r13
call fcn.1400f92a0
jmp 0x14013a4a6
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 + 0xd8]
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.140191ec0
lea r10, [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], r10
mov qword [rsp + 0x88], rcx
mov qword [rcx + 0x48], rax
lea rax, [r10 + 0x28]
mov word [rcx + 0x3c], bp
mov word [rcx + 0x40], 3
mov dword [rcx + 0x38], ebp
mov qword [r10 + 0x20], rax
mov qword [rsp + 0x38], 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 0x140139393
nop dword [rax]
mov eax, dword [rdi + 4]
test eax, 0x82000
je 0x140139393
bt eax, 0x13
jae 0x14013938a
mov rax, qword [rdi + 0x20]
mov rdi, qword [rax + 8]
jmp 0x14013938e
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x140139370
mov byte [r10 + 0x10], 0x2c
mov r8d, 0x80
test rdi, rdi
je 0x140139594
cmp byte [rdi], 0x2c
je 0x140139574
movsxd rax, dword [r10 + 0x18]
cmp ebp, eax
jl 0x1401394e0
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 0x140139400
cmp dword [rcx + 0x1a0], 0
jne 0x1401393f1
inc dword [rcx + 0x1b4]
jmp 0x140139483
cmp byte [rcx + 0x67], 0
jne 0x1401394b1
jmp 0x140139483
cmp rdx, r8
ja 0x140139441
mov r9, qword [rcx + 0x1d8]
test r9, r9
je 0x140139423
mov rax, qword [r9]
mov qword [rcx + 0x1d8], rax
inc dword [rcx + 0x1b0]
jmp 0x140139495
mov r9, qword [rcx + 0x1d0]
test r9, r9
je 0x140139441
mov rax, qword [r9]
mov qword [rcx + 0x1d0], rax
inc dword [rcx + 0x1b0]
jmp 0x140139495
mov r9, qword [rcx + 0x1c8]
test r9, r9
je 0x14013945f
mov rax, qword [r9]
mov qword [rcx + 0x1c8], rax
inc dword [rcx + 0x1b0]
jmp 0x140139495
mov r9, qword [rcx + 0x1c0]
test r9, r9
je 0x14013947d
mov rax, qword [r9]
inc dword [rcx + 0x1b0]
mov qword [rcx + 0x1c0], rax
jmp 0x140139495
inc dword [rcx + 0x1b8]
call fcn.1400c0060
mov r10, qword [rsp + 0x38]
mov r9, rax
test rax, rax
je 0x1401394a8
mov rax, qword [rdi + 0x60]
mov qword [r9], rax
mov qword [r9 + 8], r14
mov qword [rdi + 0x60], r9
add r9, 0x10
mov qword [r10 + 0x20], r9
test r9, r9
jne 0x1401394bc
mov qword [r10 + 0x20], rbp
xor ebp, ebp
jmp 0x140139594
movsxd rax, dword [r10 + 0x14]
mov rdx, rbp
imul r8, rax, 0x38
mov rcx, r9
call fcn.140191740
mov r10, qword [rsp + 0x38]
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 0x14013951d
test dword [rsi + 4], 0x80000
je 0x14013951d
movsxd rcx, dword [rsi + 0x2c]
call fcn.14010f8b0
mov ecx, 0x10e
sub ax, cx
mov word [r8 + 0x10], ax
jmp 0x140139530
mov word [r8 + 0x10], 1
test rsi, rsi
je 0x140139553
nop dword [rax]
mov eax, dword [rsi + 4]
test eax, 0x82000
je 0x140139553
bt eax, 0x13
jae 0x14013954a
mov rax, qword [rsi + 0x20]
mov rsi, qword [rax + 8]
jmp 0x14013954e
mov rsi, qword [rsi + 0x10]
test rsi, rsi
jne 0x140139530
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 0x140139594
mov rdx, qword [rdi + 0x10]
mov r8b, 0x2c
mov rcx, r10
call fcn.14013f230
mov rdx, qword [rdi + 0x18]
mov r8b, 0x2c
mov rcx, qword [rsp + 0x38]
call fcn.14013f230
cmp dword [rsp + 0x34], 0
mov edx, 0x100
jne 0x1401395ea
mov rcx, qword [rsp + 0x40]
test r15, r15
je 0x1401395b1
movzx eax, byte [r15]
mov byte [rcx + 0x41], al
test word [rsp + 0x30], dx
je 0x1401395c7
mov rax, qword [rsp + 0x48]
test byte [rax + 0x60], 0x10
jne 0x1401395c7
mov byte [rcx + 0x43], 1
mov r14, qword [rsp + 0x110]
lea r8, str.SCAN_CONSTANT_ROW
mov rcx, r14
xor edx, edx
call fcn.140132de0
mov rbp, qword [rsp + 0x118]
jmp 0x140139657
mov rbx, qword [rsp + 0x40]
mov edi, ebp
mov rbp, qword [rsp + 0x118]
mov r14, qword [rsp + 0x110]
mov r13, qword [rsp + 0x38]
lea rsi, [rbp + 0x4c]
nop word [rax + rax]
movsxd rcx, dword [rbx + 0x25c]
mov r8, r13
mov eax, dword [rsi]
mov dword [rbx + rcx*4 + 0x260], eax
mov rcx, r14
inc dword [rbx + 0x25c]
movsxd rax, edi
imul rdx, rax, 0x68
add rdx, 8
add rdx, rbp
call fcn.14013f2b0
inc edi
lea rsi, [rsi + 0x68]
cmp edi, dword [rbp]
jl 0x140139610
mov rbx, qword [rsp + 0x50]
mov r13, qword [rsp + 0x130]
mov rsi, qword [rsp + 0x38]
mov edi, dword [rsi + 0x14]
sub edi, 1
js 0x140139683
nop dword [rax]
nop dword [rax + rax]
mov r8d, edi
mov rdx, rsi
mov rcx, rbp
call fcn.1400c1b20
sub edi, 1
jns 0x140139670
test r12, r12
je 0x14013969b
cmp qword [r12 + 0x60], 0
je 0x14013969b
mov rdx, r12
mov rcx, rsi
call fcn.140139060
cmp dword [r14 + 0x30], 0
jne 0x14013a481
mov rax, qword [rsp + 0x80]
xor edx, edx
mov ebp, edx
cmp dword [rax + 0x1c], edx
jle 0x1401397f4
mov r12, qword [rsp + 0x40]
lea r8, [0x1400c5b10]
mov rbx, qword [rsp + 0x110]
lea r9, [0x1401219e0]
mov r13, qword [rsp + 0x118]
mov r14d, edx
mov r15d, dword [rsp + 0x34]
nop word [rax + rax]
mov rax, qword [rsp + 0x80]
mov rdi, qword [rax + 0x20]
add rdi, r14
test byte [rdi + 0x12], 2
jne 0x1401397a8
cmp qword [rdi + 0x30], 0
mov rsi, qword [rdi]
jne 0x1401397a8
test r15d, r15d
je 0x140139780
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 0x140139780
mov rdx, rsi
lea rcx, [rsp + 0xa0]
call fcn.140138d30
cmp word [rsp + 0xc4], 0
je 0x1401397a8
test byte [rsi + 4], 2
je 0x14013978d
test byte [r13 + 0x44], 0x40
jne 0x1401397a8
mov r8d, dword [r12 + 0x34]
mov r9d, select
mov rdx, rsi
mov rcx, rbx
call fcn.1401013d0
or word [rdi + 0x12], 4
mov rax, qword [rsp + 0x80]
lea r8, [0x1400c5b10]
inc ebp
lea r9, [0x1401219e0]
add r14, 0x38
mov edx, 0
cmp ebp, dword [rax + 0x1c]
jl 0x1401396f0
mov rbx, qword [rsp + 0x50]
mov r15, qword [rsp + 0x128]
mov r13, qword [rsp + 0x130]
mov r14, qword [rsp + 0x110]
mov rsi, qword [rsp + 0x38]
movzx eax, word [rsp + 0x30]
bt ax, 8
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x118]
jae 0x140139866
test byte [rdi + 0x60], 0x10
je 0x14013982d
mov r12, qword [rsp + 0x40]
mov ecx, 0xfeff
and ax, cx
mov word [rsp + 0x30], ax
and word [r12 + 0x3c], cx
jmp 0x14013986b
mov r9, r13
mov r8, rsi
mov rdx, rbp
mov rcx, r14
call fcn.1400cfdb0
mov r12, qword [rsp + 0x40]
test eax, eax
je 0x14013984f
mov byte [r12 + 0x43], 1
jmp 0x14013986b
test r15, r15
jne 0x14013986b
mov eax, 0x80
mov qword [r12 + 0x10], r13
or word [r12 + 0x3c], ax
jmp 0x14013986b
mov r12, qword [rsp + 0x40]
mov r15d, dword [rsp + 0x34]
cmp r15d, 1
jne 0x140139884
lea rcx, [rsp + 0x78]
call fcn.140155c10
test eax, eax
jne 0x1401398cd
lea rcx, [rsp + 0x78]
call fcn.140150ed0
test eax, eax
jne 0x14013a481
xor edx, edx
mov rcx, r12
call fcn.140154500
cmp byte [rdi + 0x67], 0
jne 0x14013a481
cmp qword [r12 + 0x10], 0
je 0x1401398d5
movzx edx, word [r12 + 0x48]
mov rcx, r12
inc dx
call fcn.140154500
cmp byte [rdi + 0x67], 0
jne 0x14013a481
cmp qword [r12 + 0x10], 0
jne 0x1401398e7
mov eax, dword [rdi + 0x30]
bt rax, 0xc
jae 0x1401398e7
mov rcx, r12
call fcn.1401552e0
cmp dword [r14 + 0x30], 0
jne 0x14013a481
movzx eax, byte [r12 + 0x40]
mov ecx, 0x400
cmp al, 2
jb 0x14013995c
test r13, r13
je 0x140139945
movzx eax, word [rsp + 0x30]
xor r9d, r9d
and ax, cx
cmp r9w, ax
jne 0x140139945
mov eax, 0x100
test dword [rdi + 0x60], eax
jne 0x140139945
lea rdx, [r9 - 1]
mov rcx, r12
call fcn.140153770
movzx r15d, byte [r12 + 0x40]
mov qword [rsp + 0x60], rax
movzx eax, r15b
mov dword [rsp + 0x34], r15d
cmp al, 2
jb 0x14013995c
mov r11, qword [rsp + 0x48]
test dword [r11 + 0x60], 0x80000
jne 0x140139961
mov rcx, r12
call fcn.140150900
mov r11, qword [rsp + 0x48]
mov rcx, qword [r12]
xor r10d, r10d
movzx eax, word [r12 + 0x48]
movzx r9d, word [rsp + 0x30]
mov word [rsp + 0x128], r10w
add word [rcx + 0xd8], ax
test r9b, 4
je 0x140139a41
mov r8, qword [r12 + 0x3c0]
movzx edx, r9w
and dx, 8
mov ecx, dword [r8 + 0x38]
test ecx, 0x1000
jne 0x1401399fd
mov dword [rsp + 0x128], r10d
cmp r10w, dx
je 0x140139a41
mov rax, qword [rbp + 0x28]
mov word [rsp + 0x128], r10w
cmp byte [rax + 0x3f], 1
je 0x140139a41
bt ecx, 0xd
jae 0x1401399e4
mov word [rsp + 0x128], r10w
test r9b, 0x10
je 0x140139a41
test dword [r11 + 0x60], 0x8000000
mov word [rsp + 0x128], r10w
jne 0x140139a41
test ecx, 0x1000
sete al
mov word [rsp + 0x128], r10w
inc al
mov byte [r12 + 0x42], al
mov rax, qword [rbp + 0x28]
test byte [rax + 0x30], 0x80
jne 0x140139a41
mov word [rsp + 0x128], r10w
test cl, 0x40
je 0x140139a41
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], r10d
lea rsi, [r12 + 0x360]
mov qword [rsp + 0x38], rsi
mov rdi, rsi
test r15d, r15d
jg 0x140139b0b
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 0x14013a481
mov ebp, r10d
test ecx, ecx
jle 0x14013a471
mov r13, qword [rsp + 0x118]
cmp dword [r14 + 0x30], 0
jne 0x14013a481
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 0x14013a3c3
test al, 8
je 0x14013a2df
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [rdi + 0x38]
mov r8d, dword [rdi + 0x3c]
cmp dword [rbx + 0x94], ecx
jg 0x14013a2ac
mov r9d, edx
mov dword [rsp + 0x20], r10d
mov edx, 0xa
mov rcx, rbx
call fcn.1400ce0d0
jmp 0x14013a3c3
mov r11, qword [rsp + 0x48]
movzx r9d, word [rsp + 0x30]
movzx eax, byte [rdi + 0x40]
mov rdx, 0xffffffffffff8000
imul rsi, rax, 0x68
mov r15d, edx
add rsi, 8
add rsi, rbp
mov qword [rsp + 0x50], rsi
mov r13, qword [rsi + 0x20]
mov rcx, qword [r13 + 0x60]
test rcx, rcx
je 0x140139b5f
mov rax, qword [r11 + 0x20]
mov r15d, r10d
add rax, 0x18
mov rdx, r10
cmp qword [rax], rcx
je 0x140139b5f
nop dword [rax]
inc r15d
lea rax, [rax + 0x20]
inc rdx
cmp qword [rax], rcx
jne 0x140139b50
test dword [r13 + 0x30], 0x4000
mov rbp, qword [rdi + 0x60]
mov qword [rsp + 0x68], rbp
jne 0x140139c4c
movzx eax, byte [r13 + 0x3f]
cmp al, 2
je 0x140139c4c
mov ecx, dword [rbp + 0x38]
bt ecx, 0xa
jae 0x140139cb2
mov rdi, qword [r13 + 0x50]
test rdi, rdi
je 0x140139bae
nop dword [rax]
cmp qword [rdi], r11
je 0x140139bae
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140139ba0
movsxd rdx, dword [rbx + 0x90]
mov r8d, dword [rsi + 0x44]
cmp dword [rbx + 0x94], edx
jg 0x140139bda
xor r9d, r9d
mov dword [rsp + 0x20], r10d
mov edx, 0xad
mov rcx, rbx
call fcn.1400ce0d0
mov edx, eax
jmp 0x140139c08
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], r10
mov rax, qword [rbx]
cmp byte [rax + 0x67], 0
jne 0x140139c47
test edx, edx
jns 0x140139c1d
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 0x140139ca0
mov r9d, 0xfffffff5
mov r8, rdi
mov rcx, rbx
call fcn.140147ef0
mov rdi, qword [rsp + 0x38]
test dword [rbp + 0x38], 0x200
je 0x140139f88
test byte [r13 + 0x30], 0x80
mov r14d, reloc.WS2_32.dll_WSASetLastError
mov rbp, qword [rbp + 0x20]
je 0x140139de2
mov eax, dword [rbp + 0x64]
and al, 3
cmp al, 2
movzx eax, word [rsp + 0x30]
jne 0x140139de7
test al, 0x20
je 0x140139de7
mov eax, dword [rdi + 4]
mov r14, qword [rsp + 0x110]
mov rbp, qword [rsp + 0x68]
mov dword [rdi + 8], eax
jmp 0x140139f88
test rdi, rdi
je 0x140139c47
mov qword [rdx + 0x10], rdi
mov byte [rdx + 1], 0xf5
inc dword [rdi + 0x18]
jmp 0x140139c47
cmp al, 1
je 0x140139c4c
test cl, 0x40
jne 0x140139cc1
test r9b, 0x20
je 0x140139ccb
test byte [rsi + 0x3c], 0x50
je 0x140139d9e
cmp byte [r12 + 0x42], 0
mov ecx, reloc.WS2_32.dll_WSASetLastError
je 0x140139ce5
mov eax, dword [rsi + 0x44]
mov ecx, WSAStartup
mov dword [r12 + 0x28], eax
mov edx, dword [rsi + 0x44]
mov r9, r13
mov dword [rsp + 0x20], ecx
mov r8d, r15d
mov rcx, r14
call fcn.1401108a0
cmp byte [r12 + 0x42], 0
jne 0x140139d73
cmp word [r13 + 0x36], 0x40
jge 0x140139d73
test byte [r13 + 0x30], 0xe0
jne 0x140139d73
test dword [rbp + 0x38], 0x404000
jne 0x140139d73
mov rax, qword [rsi + 0x50]
xor r9d, r9d
test rax, rax
je 0x140139d2e
inc r9d
shr rax, 1
jne 0x140139d26
mov rax, qword [rbx]
movsxd r8, r9d
cmp byte [rax + 0x67], 0
jne 0x140139d73
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], 0
lea rdx, [rax + rdx*8]
je 0x140139d6b
mov r9d, 0xfffffffd
mov rcx, rbx
call fcn.140147ef0
jmp 0x140139d73
mov dword [rdx + 0x10], r9d
mov byte [rdx + 1], 0xfd
movsxd rax, dword [rbx + 0x90]
test eax, eax
jle 0x140139c4c
mov edx, dword [rsp + 0x128]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov word [rax + rcx*8 - 0x16], dx
jmp 0x140139c4c
cmp r15d, 1
je 0x140139c4c
mov rax, qword [r14]
shl rdx, 5
mov rcx, qword [rax + 0x20]
mov rax, qword [rdx + rcx + 8]
cmp byte [rax + 0x11], 0
je 0x140139c4c
mov rax, qword [r13]
xor r9d, r9d
mov r8d, dword [r13 + 0x28]
mov edx, r15d
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.1400d5f00
jmp 0x140139c4c
movzx eax, word [rsp + 0x30]
cmp byte [r12 + 0x42], 0
je 0x140139e1f
mov rax, qword [rsi + 0x20]
mov edi, dword [rsp + 0x58]
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x140139e10
cmp rcx, rbp
je 0x140139e10
mov rcx, qword [rcx + 0x28]
inc edi
test rcx, rcx
jne 0x140139e00
mov r14d, WSAStartup
mov dword [r12 + 0x2c], edi
mov esi, edi
jmp 0x140139e71
mov ecx, dword [rsp + 0x58]
test ecx, ecx
je 0x140139e37
test al, 0x20
je 0x140139e37
mov edi, ecx
mov r14d, 0x65
mov esi, ecx
jmp 0x140139e71
mov rcx, qword [rsp + 0x110]
mov edi, dword [rcx + 0x34]
mov esi, edi
lea eax, [rdi + 1]
mov dword [rcx + 0x34], eax
test dword [rbp + 0x64], 0x800
je 0x140139e71
mov rax, qword [rsp + 0x48]
test dword [rax + 0x60], 0x1000000
jne 0x140139e71
mov r9, qword [rsp + 0x50]
mov r8d, edi
mov rdx, rbp
call fcn.140150060
mov rax, qword [rsp + 0x38]
mov dword [rax + 8], esi
movsxd rcx, dword [rbx + 0x90]
mov r8d, dword [rbp + 0x58]
cmp dword [rbx + 0x94], ecx
jg 0x140139ea4
mov r9d, r8d
mov dword [rsp + 0x20], r15d
mov r8d, edi
mov edx, r14d
mov rcx, rbx
call fcn.1400ce0d0
jmp 0x140139eda
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, rbp
mov rcx, r14
mov rdi, qword [r14 + 0x10]
call fcn.14010e730
mov r8, rax
test rax, rax
je 0x140139f3c
mov rax, qword [rdi]
cmp byte [rax + 0x67], 0
je 0x140139f20
cmp qword [rax + 0x308], 0
jne 0x140139f3c
add dword [r8], 0xffffffff
jne 0x140139f3c
mov rcx, qword [r8 + 0x10]
mov rdx, r8
call fcn.1400f94f0
jmp 0x140139f3c
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 rbp, qword [rsp + 0x68]
mov eax, dword [rbp + 0x38]
test al, 0xf
je 0x140139f83
test eax, 0x188002
jne 0x140139f83
test byte [r12 + 0x3c], 1
jne 0x140139f83
cmp byte [r12 + 0x43], 2
je 0x140139f83
movsxd rax, dword [rbx + 0x90]
mov rsi, qword [rsp + 0x50]
test eax, eax
jle 0x140139f88
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov word [rax + rcx*8 - 0x16], 2
jmp 0x140139f88
mov rsi, qword [rsp + 0x50]
test r15d, r15d
js 0x140139fb9
mov rax, qword [r14 + 0xa8]
mov rcx, r14
test rax, rax
cmovne rcx, rax
mov eax, dword [rcx + 0x7c]
bt eax, r15d
jb 0x140139fb9
bts eax, r15d
mov dword [rcx + 0x7c], eax
cmp r15d, 1
jne 0x140139fb9
call fcn.140110c60
test byte [rsi + 0x3c], 0x10
je 0x14013a269
mov rcx, qword [r12]
mov edx, 0x24
mov rcx, qword [rcx]
call fcn.1400f9430
mov rsi, rax
test rax, rax
je 0x140139ff5
mov rcx, qword [r12 + 0x60]
add rsi, 0x10
mov qword [rax], rcx
mov qword [rax + 8], reloc.WS2_32.dll_sendto
mov qword [r12 + 0x60], rax
mov rax, qword [rsp + 0x38]
mov qword [rax + 0x38], rsi
test rsi, rsi
je 0x14013a269
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 0x14013a04c
mov r9d, edx
mov dword [rsp + 0x20], r15d
lea edx, [r15 + 0x4d]
mov r8d, 0x10000
mov rcx, rbx
call fcn.1400ce0d0
jmp 0x14013a07d
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 0x14013a0b0
xor r8d, r8d
mov dword [rsp + 0x20], r15d
mov r9d, edx
mov rcx, rbx
lea edx, [r8 + 0x4b]
call fcn.1400ce0d0
jmp 0x14013a0da
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 [r13 + 0x30], 0x80
jne 0x14013a189
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [rsi]
cmp dword [rbx + 0x94], ecx
jg 0x14013a112
mov r9d, 1
mov dword [rsp + 0x20], r15d
mov r8d, edx
mov rcx, rbx
lea edx, [r9 + 0x75]
call fcn.1400ce0d0
jmp 0x14013a13f
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.14010e5c0
mov r8, rax
test rax, rax
je 0x14013a259
mov rcx, qword [rax + 0x18]
mov qword [rax + 0x20], r15
mov byte [rcx], 0
mov rax, qword [rbx]
cmp byte [rax + 0x67], 0
jne 0x14013a21f
movsxd rax, dword [rbx + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
jmp 0x14013a24f
mov rdi, qword [r13 + 0x10]
test rdi, rdi
je 0x14013a1a4
mov eax, dword [rdi + 0x64]
and al, 3
cmp al, 2
je 0x14013a1a4
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x14013a192
movsxd rcx, dword [rbx + 0x90]
movzx edx, word [rdi + 0x5e]
mov r8d, dword [rsi]
cmp dword [rbx + 0x94], ecx
jg 0x14013a1d1
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x76
mov rcx, rbx
call fcn.1400ce0d0
jmp 0x14013a1ff
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.14010e730
mov r8, rax
test rax, rax
je 0x14013a259
mov rax, qword [rsi]
cmp byte [rax + 0x67], 0
je 0x14013a23d
cmp qword [rax + 0x308], 0
jne 0x14013a259
add dword [r8], 0xffffffff
jne 0x14013a259
mov rcx, qword [r8 + 0x10]
mov rdx, r8
call fcn.1400f94f0
jmp 0x14013a259
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
and dword [rbp + 0x38], 0xffffffbf
mov byte [r12 + 0x41], 0
mov byte [r12 + 0x43], 3
mov r8d, dword [rsp + 0x5c]
mov r10d, 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 0x140139b00
lea rsi, [r12 + 0x360]
jmp 0x140139a63
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], r10d
mov qword [rax + rcx*8 + 0x10], r10
jmp 0x14013a3c3
movsxd rsi, dword [rbx + 0x90]
cmp dword [rbx + 0x94], esi
jg 0x14013a30c
xor r9d, r9d
mov dword [rsp + 0x20], r10d
xor r8d, r8d
mov rcx, rbx
lea edx, [r9 + 0xf]
call fcn.1400ce0d0
mov esi, eax
xor r10d, r10d
jmp 0x14013a336
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_ntohs
mov qword [rax + rcx*8 + 8], 0
mov qword [rax + rcx*8 + 0x10], r10
movsxd rcx, dword [rbx + 0x90]
mov edx, dword [rdi + 0x38]
mov r8d, dword [rdi + 0x3c]
cmp dword [rbx + 0x94], ecx
jg 0x14013a363
mov r9d, edx
mov dword [rsp + 0x20], r10d
mov edx, 0xa
mov rcx, rbx
call fcn.1400ce0d0
jmp 0x14013a391
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], r10d
mov qword [rax + rcx*8 + 0x10], r10
mov rax, qword [rbx]
mov edx, dword [rbx + 0x90]
cmp byte [rax + 0x67], 0
je 0x14013a3a9
lea rax, [0x1401f9ac8]
jmp 0x14013a3bb
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 0x14013a409
bt r14d, 0xe
jae 0x14013a3f2
mov rcx, qword [rsp + 0x110]
lea rdx, [r12 + 0x70]
mov r9, rsi
mov r8, rdi
call fcn.1400bdaa0
jmp 0x14013a402
mov r9, rdi
mov r8, rsi
mov edx, ebp
mov rcx, r12
call fcn.1400f6ce0
cmp byte [r15 + 0x67], 0
jne 0x14013a481
mov r14, qword [rsp + 0x110]
mov r8, rsi
movzx r9d, word [rsp + 0x30]
mov rcx, r14
mov rdx, r13
call fcn.14013e2a0
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.14013a560
mov qword [rsp + 0x60], rax
inc ebp
mov eax, dword [rsi + 0x18]
mov r10d, 0
add rsi, 0x70
mov dword [r12 + 0x30], eax
mov qword [rsp + 0x70], rsi
cmp ebp, dword [rsp + 0x34]
jl 0x140139a91
mov eax, dword [rbx + 0x90]
mov dword [r12 + 0x50], eax
mov rax, r12
jmp 0x14013a4a8
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x110]
movzx eax, word [rcx + 0x38]
mov word [rdx + 0xd8], ax
mov rdx, rcx
mov rcx, qword [rsp + 0x48]
call fcn.140150c40
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