Function at 0x14012b060
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 r14
sub rsp, 0xd8
mov rsi, qword [rcx + 0x10]
mov r12, r9
mov rbp, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x48], rsi
xorps xmm0, xmm0
mov qword [rsp + 0x40], rbp
mov r14, rcx
mov rdi, r8
mov r13, rdx
mov ecx, 0xfeff
movdqu xmmword [rax - 0x80], xmm0
test r12, r12
je 0x14012b0d0
cmp dword [r12], 0x40
jl 0x14012b0d0
mov qword [rax + 0x20], r9
mov r12d, r9d
movzx eax, word [rsp + 0x140]
and ax, cx
or ax, 0x2000
jmp 0x14012b0d8
movzx eax, word [rsp + 0x140]
mov ecx, dword [rdx]
mov word [rsp + 0x30], ax
mov dword [rsp + 0x34], ecx
cmp ecx, 0x40
jle 0x14012b110
mov r8d, 0x40
lea rdx, str.at_most__d_tables_in_a_join
mov rcx, r14
call fcn.1400ed030
xor eax, eax
add rsp, 0xd8
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov qword [rsp + 0x120], rbx
test al, 0x20
mov qword [rsp + 0xd0], r15
mov eax, 0x3d0
mov edx, 1
je 0x14012b134
mov dword [rsp + 0x34], edx
jmp 0x14012b140
cmp ecx, edx
jle 0x14012b140
imul eax, ecx, 0x70
add eax, 0x360
movsxd rbx, eax
mov rcx, rbp
lea rdx, [rbx + 0x70]
call fcn.1400ea610
cmp byte [rbp + 0x67], 0
mov r15, rax
mov qword [rsp + 0x38], rax
je 0x14012b176
test rax, rax
je 0x14012c374
mov rdx, rax
mov rcx, rbp
call fcn.1400ea480
jmp 0x14012c374
movsxd rcx, dword [rsp + 0x34]
xorps xmm0, xmm0
mov qword [rax], r14
xor edx, edx
mov qword [rax + 8], r13
mov qword [rax + 0x10], r12
mov rax, qword [rsp + 0x130]
mov qword [r15 + 0x18], rax
mov rax, 0xffffffffffffffff
mov qword [r15 + 0x28], rax
mov byte [r15 + 0x40], cl
mov qword [rsp + 0x60], rax
mov eax, dword [r14 + 0x48]
dec eax
mov dword [r14 + 0x48], eax
mov dword [r15 + 0x30], eax
mov dword [r15 + 0x34], eax
movzx eax, word [rsp + 0x30]
mov word [r15 + 0x3c], ax
mov eax, dword [rsp + 0x148]
mov word [r15 + 0x3e], ax
movsx eax, word [r14 + 0xe0]
mov dword [r15 + 0x38], eax
mov rax, qword [rsp + 0x138]
mov qword [r15 + 0x20], rax
xor eax, eax
movups xmmword [r15 + 0x41], xmm0
movups xmmword [r15 + 0x51], xmm0
mov qword [r15 + 0x61], rax
mov dword [r15 + 0x69], eax
mov word [r15 + 0x6d], ax
mov byte [r15 + 0x6f], al
lea rax, [rcx + 1]
imul r8, rax, 0x70
lea rcx, [r15 + 0x360]
call fcn.1401585e8
lea r14, [r15 + 0x70]
xor ebp, ebp
mov dword [r15 + 0x25c], ebp
lea rcx, [rbx + r15]
mov dword [r15 + 0x260], 0xffffff9d
lea rax, [rcx + 0x58]
mov qword [rsp + 0x70], r15
mov rbx, rdi
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], rcx
mov qword [rcx + 0x48], rax
lea rax, [r14 + 0x28]
mov word [rcx + 0x3c], bp
mov word [rcx + 0x40], 3
mov dword [rcx + 0x38], ebp
mov qword [r14 + 0x20], rax
mov qword [r14], r15
mov byte [r14 + 0x11], bpl
mov qword [r14 + 8], rbp
mov dword [r14 + 0x14], ebp
mov qword [r14 + 0x18], 8
test rdi, rdi
je 0x14012b2ae
mov eax, dword [rbx + 4]
test eax, 0x82000
je 0x14012b2ae
bt eax, 0x13
jae 0x14012b2a0
mov rax, qword [rbx + 0x20]
mov rbx, qword [rax + 8]
jmp 0x14012b2a9
cmp byte [rbx], 0x72
jne 0x14012b2ae
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14012b286
mov byte [r14 + 0x10], 0x2c
mov r13d, 0x80
test rbx, rbx
je 0x14012b4a7
cmp byte [rbx], 0x2c
je 0x14012b489
movsxd rax, dword [r14 + 0x18]
cmp ebp, eax
jl 0x14012b3f1
mov rbp, qword [r14 + 0x20]
mov rbx, r15
imul r15, rax, 0x70
mov rax, qword [rbx]
mov rcx, qword [rax]
lea rdx, [r15 + 0x10]
movzx eax, word [rcx + 0x1a4]
cmp rdx, rax
jbe 0x14012b31b
cmp dword [rcx + 0x1a0], 0
jne 0x14012b30c
inc dword [rcx + 0x1b4]
jmp 0x14012b39e
cmp byte [rcx + 0x67], 0
jne 0x14012b3c7
jmp 0x14012b39e
cmp rdx, r13
ja 0x14012b35c
mov r9, qword [rcx + 0x1d8]
test r9, r9
je 0x14012b33e
mov rax, qword [r9]
mov qword [rcx + 0x1d8], rax
inc dword [rcx + 0x1b0]
jmp 0x14012b3ab
mov r9, qword [rcx + 0x1d0]
test r9, r9
je 0x14012b35c
mov rax, qword [r9]
mov qword [rcx + 0x1d0], rax
inc dword [rcx + 0x1b0]
jmp 0x14012b3ab
mov r9, qword [rcx + 0x1c8]
test r9, r9
je 0x14012b37a
mov rax, qword [r9]
mov qword [rcx + 0x1c8], rax
inc dword [rcx + 0x1b0]
jmp 0x14012b3ab
mov r9, qword [rcx + 0x1c0]
test r9, r9
je 0x14012b398
mov rax, qword [r9]
inc dword [rcx + 0x1b0]
mov qword [rcx + 0x1c0], rax
jmp 0x14012b3ab
inc dword [rcx + 0x1b8]
call fcn.1400ac4b0
mov r9, rax
test rax, rax
je 0x14012b3be
mov rax, qword [rbx + 0x60]
mov qword [r9], rax
mov qword [r9 + 8], r15
mov qword [rbx + 0x60], r9
add r9, 0x10
mov qword [r14 + 0x20], r9
test r9, r9
jne 0x14012b3d2
mov qword [r14 + 0x20], rbp
xor ebp, ebp
jmp 0x14012b4a7
movsxd rax, dword [r14 + 0x14]
mov rdx, rbp
imul r8, rax, 0x38
mov rcx, r9
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [r14 + 0x18]
add eax, eax
mov dword [r14 + 0x18], eax
xor ebp, ebp
movsxd rdx, dword [r14 + 0x14]
imul r8, rdx, 0x38
lea eax, [rdx + 1]
add r8, qword [r14 + 0x20]
mov dword [r14 + 0x14], eax
mov dword [r14 + 0x1c], eax
test rdi, rdi
je 0x14012b42e
test dword [rdi + 4], 0x80000
je 0x14012b42e
movsxd rcx, dword [rdi + 0x2c]
call fcn.140100650
mov ecx, 0x10e
sub ax, cx
mov word [r8 + 0x10], ax
jmp 0x14012b440
mov word [r8 + 0x10], 1
test rdi, rdi
je 0x14012b468
nop word [rax + rax]
mov eax, dword [rdi + 4]
test eax, 0x82000
je 0x14012b468
bt eax, 0x13
jae 0x14012b45a
mov rax, qword [rdi + 0x20]
mov rdi, qword [rax + 8]
jmp 0x14012b463
cmp byte [rdi], 0x72
jne 0x14012b468
mov rdi, qword [rdi + 0x10]
test rdi, rdi
jne 0x14012b440
mov qword [r8], rdi
xorps xmm0, xmm0
mov word [r8 + 0x12], bp
xor eax, eax
mov qword [r8 + 8], r14
movups xmmword [r8 + 0x14], xmm0
movups xmmword [r8 + 0x24], xmm0
mov dword [r8 + 0x34], eax
jmp 0x14012b4a7
mov rdx, qword [rbx + 0x10]
mov r8b, 0x2c
mov rcx, r14
call fcn.1401312b0
mov rdx, qword [rbx + 0x18]
mov r8b, 0x2c
mov rcx, r14
call fcn.1401312b0
cmp dword [rsp + 0x34], 0
mov ecx, 0x100
mov r15, qword [rsp + 0x38]
jne 0x14012b507
test r12, r12
je 0x14012b4c6
movzx eax, byte [r12]
mov byte [r15 + 0x41], al
test word [rsp + 0x30], cx
je 0x14012b4dd
mov rax, qword [rsp + 0x40]
test byte [rax + 0x60], 0x10
jne 0x14012b4dd
mov byte [r15 + 0x43], 1
mov rax, qword [r15 + 0x20]
test rax, rax
je 0x14012b564
test dword [rax + 4], 0x400
jne 0x14012b564
mov rcx, qword [rsp + 0x110]
lea r8, str.SCAN_CONSTANT_ROW
xor edx, edx
call fcn.140124690
jmp 0x14012b564
mov rsi, qword [rsp + 0x118]
mov ebx, ebp
mov rbp, qword [rsp + 0x110]
lea rdi, [rsi + 0x28]
nop dword [rax]
movsxd rcx, dword [r15 + 0x25c]
mov r8, r14
mov eax, dword [rdi]
mov dword [r15 + rcx*4 + 0x260], eax
mov rcx, rbp
inc dword [r15 + 0x25c]
movsxd rax, ebx
lea rdx, [rax + rax*4]
shl rdx, 4
add rdx, 8
add rdx, rsi
call fcn.140131340
inc ebx
lea rdi, [rdi + 0x50]
cmp ebx, dword [rsi]
jl 0x14012b520
mov rsi, qword [rsp + 0x48]
mov ebx, dword [r14 + 0x14]
sub ebx, 1
js 0x14012b593
mov rdi, qword [rsp + 0x118]
nop word [rax + rax]
mov r8d, ebx
mov rdx, r14
mov rcx, rdi
call fcn.1400adf50
sub ebx, 1
jns 0x14012b580
mov rax, qword [rsp + 0x138]
test rax, rax
je 0x14012b5b2
cmp qword [rax + 0x60], 0
je 0x14012b5b2
mov rdx, rax
mov rcx, r14
call fcn.14012af30
mov r14, qword [rsp + 0x110]
cmp dword [r14 + 0x34], 0
jne 0x14012c355
mov rax, qword [rsp + 0x78]
xor r9d, r9d
mov ebp, r9d
cmp dword [rax + 0x1c], r9d
jle 0x14012b6f9
mov rsi, qword [rsp + 0x110]
lea rdx, [0x1400b2310]
mov r13, qword [rsp + 0x118]
lea r8, [0x140112e40]
mov r12d, dword [rsp + 0x34]
mov r14d, r9d
mov rax, qword [rsp + 0x78]
mov rbx, qword [rax + 0x20]
add rbx, r14
test byte [rbx + 0x12], 2
jne 0x14012b6b6
cmp qword [rbx + 0x30], 0
mov rdi, qword [rbx]
jne 0x14012b6b6
test r12d, r12d
je 0x14012b68f
mov qword [rsp + 0x98], r9
mov eax, 1
mov word [rsp + 0xbc], ax
mov qword [rsp + 0xb0], r9
mov dword [rsp + 0xb8], r9d
mov qword [rsp + 0xbe], r9
mov word [rsp + 0xc6], r9w
mov qword [rsp + 0xa0], rdx
mov qword [rsp + 0xa8], r8
test rdi, rdi
je 0x14012b68f
mov rdx, rdi
lea rcx, [rsp + 0x98]
call fcn.14012ac00
cmp word [rsp + 0xbc], 0
je 0x14012b6b6
test byte [rdi + 4], 2
je 0x14012b69c
test byte [r13 + 0x20], 0x40
jne 0x14012b6b6
mov r8d, dword [r15 + 0x34]
mov r9d, reloc.WS2_32.dll_recv
mov rdx, rdi
mov rcx, rsi
call fcn.1400f2020
or word [rbx + 0x12], 4
mov rax, qword [rsp + 0x78]
lea rdx, [0x1400b2310]
inc ebp
lea r8, [0x140112e40]
add r14, 0x38
mov r9d, 0
cmp ebp, dword [rax + 0x1c]
jl 0x14012b600
mov rsi, qword [rsp + 0x48]
mov r13d, 0x80
mov r12, qword [rsp + 0x128]
mov r14, qword [rsp + 0x110]
movzx eax, word [rsp + 0x30]
bt ax, 8
mov rdi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x130]
mov rbp, qword [rsp + 0x118]
jae 0x14012b75f
test byte [rdi + 0x60], 0x10
je 0x14012b734
mov ecx, 0xfeff
and ax, cx
and word [r15 + 0x3c], cx
mov word [rsp + 0x30], ax
jmp 0x14012b75f
lea r8, [r15 + 0x70]
mov r9, rbx
mov rdx, rbp
mov rcx, r14
call fcn.1400bd0e0
test eax, eax
je 0x14012b751
mov byte [r15 + 0x43], 1
jmp 0x14012b75f
test r12, r12
jne 0x14012b75f
or word [r15 + 0x3c], r13w
mov qword [r15 + 0x10], rbx
mov r12d, dword [rsp + 0x34]
cmp r12d, 1
jne 0x14012b778
lea rcx, [rsp + 0x70]
call fcn.140148ff0
test eax, eax
jne 0x14012b7ea
lea rcx, [rsp + 0x70]
call fcn.140143bb0
test eax, eax
jne 0x14012c355
xor edx, edx
mov rcx, r15
call fcn.140147890
cmp byte [rdi + 0x67], 0
jne 0x14012c355
cmp qword [r15 + 0x10], 0
je 0x14012b7d5
mov rcx, r15
call fcn.140143990
movzx r10d, word [r15 + 0x4a]
mov edx, 1
test r10w, r10w
mov rcx, r15
lea eax, [r10 + 1]
cmovns dx, ax
call fcn.140147890
cmp byte [rdi + 0x67], 0
jne 0x14012c355
mov r13d, 0x100
test word [r15 + 0x3c], r13w
je 0x14012b7f0
add word [r15 + 0x4a], 0xffe2
jmp 0x14012b7f0
mov r13d, 0x100
cmp qword [r15 + 0x10], 0
jne 0x14012b809
mov eax, dword [rdi + 0x30]
bt rax, 0xc
jae 0x14012b809
mov rcx, r15
call fcn.140148700
cmp dword [r14 + 0x34], 0
jne 0x14012c355
movzx eax, byte [r15 + 0x40]
cmp al, 2
jb 0x14012b87b
test rbx, rbx
je 0x14012b864
movzx eax, word [rsp + 0x30]
mov ecx, 0x2400
and ax, cx
xor r9d, r9d
cmp r9w, ax
jne 0x14012b864
test dword [rdi + 0x60], r13d
jne 0x14012b864
mov rdx, 0xffffffffffffffff
mov rcx, r15
call fcn.1401467e0
movzx r12d, byte [r15 + 0x40]
mov qword [rsp + 0x60], rax
movzx eax, r12b
mov dword [rsp + 0x34], r12d
cmp al, 2
jb 0x14012b87b
mov r8, qword [rsp + 0x40]
test dword [r8 + 0x60], 0x80000
jne 0x14012b880
mov rcx, r15
call fcn.140143560
mov r8, qword [rsp + 0x40]
mov rcx, qword [r15]
xor r10d, r10d
movzx eax, word [r15 + 0x4a]
movzx r9d, word [rsp + 0x30]
mov word [rsp + 0x128], r10w
add word [rcx + 0xe0], ax
test r9b, 4
je 0x14012b950
mov rdx, qword [r15 + 0x3c0]
mov ecx, dword [rdx + 0x38]
test ecx, 0x1000
jne 0x14012b910
mov dword [rsp + 0x128], r10d
test r9b, 8
je 0x14012b950
mov rax, qword [rbp + 0x18]
mov word [rsp + 0x128], r10w
cmp byte [rax + 0x3f], 1
je 0x14012b950
bt ecx, 0xd
jae 0x14012b8f7
mov word [rsp + 0x128], r10w
test r9b, 0x10
je 0x14012b950
test dword [r8 + 0x60], 0x8000000
mov word [rsp + 0x128], r10w
jne 0x14012b950
test ecx, 0x1000
sete al
mov word [rsp + 0x128], r10w
inc al
mov byte [r15 + 0x42], al
mov rax, qword [rbp + 0x18]
test byte [rax + 0x30], 0x80
jne 0x14012b950
mov word [rsp + 0x128], r10w
test cl, 0x40
je 0x14012b950
and ecx, 0xffffffbf
movzx eax, r9w
and ax, 8
mov dword [rdx + 0x38], ecx
mov word [rsp + 0x128], ax
mov dword [rsp + 0x58], r10d
lea rbx, [r15 + 0x360]
mov qword [rsp + 0x50], rbx
test r12d, r12d
jle 0x14012c138
jmp 0x14012b97b
mov r8, qword [rsp + 0x40]
movzx r9d, word [rsp + 0x30]
movzx eax, byte [rbx + 0x40]
lea r13, [rbp + 8]
mov rdx, 0xffffffffffff8000
mov r12d, edx
lea rcx, [rax + rax*4]
shl rcx, 4
add r13, rcx
mov rbp, qword [r13 + 0x10]
mov qword [rsp + 0x48], rbp
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x14012b9cf
mov rax, qword [r8 + 0x20]
mov r12d, r10d
add rax, 0x18
mov rdx, r10
cmp qword [rax], rcx
je 0x14012b9cf
nop dword [rax]
inc r12d
lea rax, [rax + 0x20]
inc rdx
cmp qword [rax], rcx
jne 0x14012b9c0
test dword [rbp + 0x30], 0x4000
mov rdi, qword [rbx + 0x60]
mov qword [rsp + 0x68], rdi
jne 0x14012bab3
movzx eax, byte [rbp + 0x3f]
cmp al, 2
je 0x14012bab3
mov ecx, dword [rdi + 0x38]
bt ecx, 0xa
jae 0x14012bb13
mov rbx, qword [rbp + 0x50]
test rbx, rbx
je 0x14012ba15
cmp qword [rbx], r8
je 0x14012ba15
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14012ba07
movsxd rdx, dword [rsi + 0x90]
mov r8d, dword [r13 + 0x20]
cmp dword [rsi + 0x94], edx
jg 0x14012ba41
xor r9d, r9d
mov dword [rsp + 0x20], r10d
mov edx, 0xad
mov rcx, rsi
call fcn.1400bb2e0
mov edx, eax
jmp 0x14012ba6f
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 0x14012baae
test edx, edx
jns 0x14012ba84
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 0x14012bb01
mov r9d, 0xfffffff5
mov r8, rbx
mov rcx, rsi
call fcn.14013a520
mov rbx, qword [rsp + 0x50]
test dword [rdi + 0x38], 0x200
je 0x14012be16
test byte [rbp + 0x30], 0x80
mov r14d, 0x66
mov rdi, qword [rdi + 0x20]
je 0x14012bc41
mov eax, dword [rdi + 0x64]
and al, 3
cmp al, 2
movzx eax, word [rsp + 0x30]
jne 0x14012bc46
test al, 0x20
je 0x14012bc46
mov eax, dword [rbx + 4]
mov r14, qword [rsp + 0x110]
mov dword [rbx + 8], eax
jmp 0x14012be16
test rbx, rbx
je 0x14012baae
mov qword [rdx + 0x10], rbx
mov byte [rdx + 1], 0xf5
inc dword [rbx + 0x18]
jmp 0x14012baae
cmp al, 1
je 0x14012bab3
test cl, 0x40
jne 0x14012bb22
test r9b, 0x20
je 0x14012bb2d
test byte [r13 + 0x18], 0x50
je 0x14012bbfd
cmp byte [r15 + 0x42], 0
mov ecx, 0x66
je 0x14012bb46
mov eax, dword [r13 + 0x20]
mov ecx, WSAStartup
mov dword [r15 + 0x28], eax
mov edx, dword [r13 + 0x20]
mov r9, rbp
mov dword [rsp + 0x20], ecx
mov r8d, r12d
mov rcx, r14
call fcn.140101a50
cmp byte [r15 + 0x42], 0
jne 0x14012bbd2
cmp word [rbp + 0x36], 0x40
jge 0x14012bbd2
test byte [rbp + 0x30], 0xe0
jne 0x14012bbd2
test dword [rdi + 0x38], 0x404000
jne 0x14012bbd2
mov rax, qword [r13 + 0x28]
xor r9d, r9d
test rax, rax
je 0x14012bb8d
inc r9d
shr rax, 1
jne 0x14012bb85
mov rax, qword [rsi]
movsxd r8, r9d
cmp byte [rax + 0x67], 0
jne 0x14012bbd2
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], 0
lea rdx, [rax + rdx*8]
je 0x14012bbca
mov r9d, 0xfffffffd
mov rcx, rsi
call fcn.14013a520
jmp 0x14012bbd2
mov dword [rdx + 0x10], r9d
mov byte [rdx + 1], 0xfd
movsxd rax, dword [rsi + 0x90]
test eax, eax
jle 0x14012bab3
mov edx, dword [rsp + 0x128]
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov word [rax + rcx*8 - 0x16], dx
jmp 0x14012bab3
cmp r12d, 1
je 0x14012bab3
mov rax, qword [r14]
shl rdx, 5
mov rcx, qword [rax + 0x20]
mov rax, qword [rdx + rcx + 8]
cmp byte [rax + 0x11], 0
je 0x14012bab3
mov rax, qword [rbp]
xor r9d, r9d
mov r8d, dword [rbp + 0x28]
mov edx, r12d
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.1400c5cf0
jmp 0x14012bab3
movzx eax, word [rsp + 0x30]
cmp byte [r15 + 0x42], 0
je 0x14012bc82
mov rax, qword [r13 + 0x10]
mov ebx, dword [rsp + 0x148]
mov rcx, qword [rax + 0x10]
test rcx, rcx
je 0x14012bc71
cmp rcx, rdi
je 0x14012bc71
mov rcx, qword [rcx + 0x28]
inc ebx
test rcx, rcx
jne 0x14012bc61
mov r14d, WSAStartup
mov dword [r15 + 0x2c], ebx
mov ebp, ebx
jmp 0x14012bd01
mov ecx, dword [rsp + 0x148]
test ecx, ecx
je 0x14012bc9d
test al, 0x20
je 0x14012bc9d
mov ebx, ecx
mov r14d, 0x65
mov ebp, ecx
jmp 0x14012bd01
mov rcx, qword [rsp + 0x110]
mov ebx, dword [rcx + 0x38]
mov ebp, ebx
lea eax, [rbx + 1]
mov dword [rcx + 0x38], eax
test dword [rdi + 0x64], 0x1000
je 0x14012bcdd
mov rax, qword [rsp + 0x40]
test dword [rax + 0x60], 0x1000000
jne 0x14012bcdd
mov r9, r13
mov r8d, ebx
mov rdx, rdi
call fcn.140142e50
mov rcx, qword [rsp + 0x110]
mov r8, qword [rdi + 0x48]
test r8, r8
je 0x14012bd01
test byte [r13 + 0x18], 0x10
jne 0x14012bd01
mov qword [rsp + 0x28], r13
xor r9d, r9d
mov rdx, rdi
mov dword [rsp + 0x20], ebx
call fcn.140146a50
mov rax, qword [rsp + 0x50]
mov dword [rax + 8], ebp
movsxd rcx, dword [rsi + 0x90]
mov r8d, dword [rdi + 0x58]
cmp dword [rsi + 0x94], ecx
jg 0x14012bd34
mov r9d, r8d
mov dword [rsp + 0x20], r12d
mov r8d, ebx
mov edx, r14d
mov rcx, rsi
call fcn.1400bb2e0
jmp 0x14012bd6a
lea eax, [rcx + 1]
xor edx, edx
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov byte [rax + rcx*8], r14b
mov word [rax + rcx*8 + 2], dx
mov dword [rax + rcx*8 + 4], ebx
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], rdx
mov byte [rax + rcx*8 + 1], dl
mov r14, qword [rsp + 0x110]
mov rdx, rdi
mov rcx, r14
mov rbx, qword [r14 + 0x10]
call fcn.1400ff560
mov r8, rax
test rax, rax
je 0x14012bdcc
mov rax, qword [rbx]
cmp byte [rax + 0x67], 0
je 0x14012bdb0
cmp qword [rax + 0x308], 0
jne 0x14012bdcc
add dword [r8], 0xffffffff
jne 0x14012bdcc
mov rcx, qword [r8 + 0x10]
mov rdx, r8
call fcn.1400ea6d0
jmp 0x14012bdcc
movsxd rax, dword [rbx + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x88]
mov byte [rax + rcx*8 - 0x17], 0xf8
mov qword [rax + rcx*8 - 8], r8
mov rax, qword [rsp + 0x68]
mov eax, dword [rax + 0x38]
test al, 0xf
je 0x14012be11
test eax, 0x188002
jne 0x14012be11
test byte [r15 + 0x3c], 1
jne 0x14012be11
cmp byte [r15 + 0x43], 2
je 0x14012be11
movsxd rax, dword [rsi + 0x90]
mov rbp, qword [rsp + 0x48]
test eax, eax
jle 0x14012be16
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
mov word [rax + rcx*8 - 0x16], 2
jmp 0x14012be16
mov rbp, qword [rsp + 0x48]
test r12d, r12d
js 0x14012be4d
mov rax, qword [r14 + 0xb0]
mov rcx, r14
test rax, rax
cmovne rcx, rax
mov eax, dword [rcx + 0x84]
bt eax, r12d
jb 0x14012be4d
bts eax, r12d
mov dword [rcx + 0x84], eax
cmp r12d, 1
jne 0x14012be4d
call fcn.140101e20
test byte [r13 + 0x18], 0x10
je 0x14012c101
mov rcx, qword [r15]
mov edx, 0x24
mov rcx, qword [rcx]
call fcn.1400ea610
mov rdi, rax
test rax, rax
je 0x14012be87
mov rcx, qword [r15 + 0x60]
add rdi, 0x10
mov qword [rax], rcx
mov qword [rax + 8], reloc.WS2_32.dll_sendto
mov qword [r15 + 0x60], rax
mov rax, qword [rsp + 0x50]
mov qword [rax + 0x38], rdi
test rdi, rdi
je 0x14012c101
mov eax, dword [r14 + 0x38]
xor r12d, r12d
mov dword [rdi], eax
mov edx, dword [r14 + 0x3c]
inc dword [r14 + 0x38]
inc edx
mov dword [r14 + 0x3c], edx
mov dword [rdi + 4], edx
movsxd rcx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], ecx
jg 0x14012bedf
mov r9d, edx
mov dword [rsp + 0x20], r12d
mov edx, 0x4d
mov r8d, 0x10000
mov rcx, rsi
call fcn.1400bb2e0
jmp 0x14012bf10
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], r12d
mov qword [rax + rcx*8 + 0x10], r12
inc dword [r14 + 0x3c]
mov edx, dword [r14 + 0x3c]
mov dword [rdi + 8], edx
movsxd rcx, dword [rsi + 0x90]
cmp dword [rsi + 0x94], ecx
jg 0x14012bf44
mov r9d, edx
mov dword [rsp + 0x20], r12d
mov edx, 0x4b
xor r8d, r8d
mov rcx, rsi
call fcn.1400bb2e0
jmp 0x14012bf6e
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], r12d
mov qword [rax + rcx*8 + 0x10], r12
test byte [rbp + 0x30], 0x80
jne 0x14012c01e
movsxd rcx, dword [rsi + 0x90]
mov edx, dword [rdi]
cmp dword [rsi + 0x94], ecx
jg 0x14012bfa6
mov r8d, edx
mov dword [rsp + 0x20], r12d
mov edx, 0x75
mov r9d, 1
mov rcx, rsi
call fcn.1400bb2e0
jmp 0x14012bfd3
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x75
mov dword [rax + rcx*8 + 4], edx
mov qword [rax + rcx*8 + 8], 1
mov qword [rax + rcx*8 + 0x10], r12
mov rcx, qword [r14]
xor r8d, r8d
mov edx, 1
call fcn.1400ff3f0
mov r8, rax
test rax, rax
je 0x14012c0ee
mov rcx, qword [rax + 0x18]
mov qword [rax + 0x20], r12
mov byte [rcx], 0
mov rax, qword [rsi]
cmp byte [rax + 0x67], 0
jne 0x14012c0b4
movsxd rax, dword [rsi + 0x90]
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
jmp 0x14012c0e4
mov rbx, qword [rbp + 0x10]
test rbx, rbx
je 0x14012c039
mov eax, dword [rbx + 0x64]
and al, 3
cmp al, 2
je 0x14012c039
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x14012c027
movsxd rcx, dword [rsi + 0x90]
movzx edx, word [rbx + 0x5e]
mov r8d, dword [rdi]
cmp dword [rsi + 0x94], ecx
jg 0x14012c066
mov r9d, edx
mov dword [rsp + 0x20], r12d
mov edx, 0x75
mov rcx, rsi
call fcn.1400bb2e0
jmp 0x14012c094
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 0x88]
mov dword [rax + rcx*8], 0x75
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r12d
mov qword [rax + rcx*8 + 0x10], r12
mov rdi, qword [r14 + 0x10]
mov rdx, rbx
mov rcx, r14
call fcn.1400ff560
mov r8, rax
test rax, rax
je 0x14012c0ee
mov rax, qword [rdi]
cmp byte [rax + 0x67], 0
je 0x14012c0d2
cmp qword [rax + 0x308], 0
jne 0x14012c0ee
add dword [r8], 0xffffffff
jne 0x14012c0ee
mov rcx, qword [r8 + 0x10]
mov rdx, r8
call fcn.1400ea6d0
jmp 0x14012c0ee
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
mov rcx, qword [rsp + 0x68]
and dword [rcx + 0x38], 0xffffffbf
mov byte [r15 + 0x41], 0
mov byte [r15 + 0x43], 3
mov r9d, dword [rsp + 0x58]
mov r10d, 0
mov rbx, qword [rsp + 0x50]
inc r9d
mov r12d, dword [rsp + 0x34]
add rbx, 0x70
mov rbp, qword [rsp + 0x118]
mov dword [rsp + 0x58], r9d
mov qword [rsp + 0x50], rbx
cmp r9d, r12d
jl 0x14012b970
mov rdi, qword [rsp + 0x40]
mov eax, dword [rsi + 0x90]
mov dword [r15 + 0x4c], eax
cmp byte [rdi + 0x67], 0
jne 0x14012c355
mov ebp, r10d
test r12d, r12d
jle 0x14012c346
mov r13, qword [rsp + 0x118]
lea r12, [r15 + 0x70]
lea rbx, [r15 + 0x360]
cmp dword [r14 + 0x34], 0
jne 0x14012c355
mov rax, qword [rbx + 0x60]
mov r15d, dword [rax + 0x38]
movzx eax, byte [rbx + 0x40]
lea rcx, [rax + rax*4]
add rcx, rcx
mov eax, dword [r13 + rcx*8 + 0x24]
test al, 0x20
je 0x14012c29b
mov r14, qword [r13 + rcx*8 + 0x50]
test al, 0x10
jne 0x14012c1fe
movsxd rdi, dword [rsi + 0x90]
cmp dword [rsi + 0x94], edi
jg 0x14012c1d2
xor r9d, r9d
mov dword [rsp + 0x20], r10d
xor r8d, r8d
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, rsi
call fcn.1400bb2e0
mov edi, eax
xor r10d, r10d
jmp 0x14012c201
lea rcx, [rdi + rdi*2]
lea eax, [rdi + 1]
mov dword [rsi + 0x90], eax
mov rax, qword [rsi + 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
jmp 0x14012c201
mov edi, r10d
movsxd rcx, dword [rsi + 0x90]
mov edx, dword [r14 + 8]
mov r8d, dword [r14 + 0xc]
cmp dword [rsi + 0x94], ecx
jg 0x14012c22f
mov r9d, edx
mov dword [rsp + 0x20], r10d
mov edx, 0xa
mov rcx, rsi
call fcn.1400bb2e0
jmp 0x14012c25d
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [rsi + 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
test edi, edi
je 0x14012c28e
mov rax, qword [rsi]
mov edx, dword [rsi + 0x90]
cmp byte [rax + 0x67], 0
je 0x14012c279
lea rax, [0x14019e058]
jmp 0x14012c28b
movsxd rax, edi
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x110]
test r15d, 0x404000
je 0x14012c2e2
bt r15d, 0xe
jae 0x14012c2c5
mov r8, qword [rsp + 0x60]
mov r9, rbx
mov rdx, r12
mov rcx, r14
call fcn.1400a9e00
mov r15, qword [rsp + 0x38]
jmp 0x14012c2dc
mov r15, qword [rsp + 0x38]
mov r8, rbx
mov r9, qword [rsp + 0x60]
mov rcx, r15
mov edx, ebp
call fcn.1400e7e70
cmp byte [rdi + 0x67], 0
jne 0x14012c35a
movzx r9d, word [rsp + 0x30]
mov r8, rbx
mov rdx, r13
mov rcx, r14
call fcn.140130210
mov eax, dword [rsi + 0x90]
mov r9d, ebp
mov r15, qword [rsp + 0x38]
mov rdx, rsi
mov dword [rbx + 0x20], eax
mov r8, r15
mov rax, qword [rsp + 0x60]
mov rcx, r14
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
call fcn.14012c430
mov qword [rsp + 0x60], rax
inc ebp
mov eax, dword [rbx + 0x18]
mov r10d, 0
add rbx, 0x70
mov dword [r15 + 0x30], eax
cmp ebp, dword [rsp + 0x34]
jl 0x14012c170
mov eax, dword [rsi + 0x90]
mov dword [r15 + 0x50], eax
mov rax, r15
jmp 0x14012c376
mov r15, qword [rsp + 0x38]
movzx eax, word [r15 + 0x38]
mov rdx, r15
mov rcx, qword [rsp + 0x40]
mov word [r14 + 0xe0], ax
call fcn.1401438b0
xor eax, eax
mov rbx, qword [rsp + 0x120]
mov r15, qword [rsp + 0xd0]
add rsp, 0xd8
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret