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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rax, qword [0x1403e4018]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edi, dword [rcx + 0x30]
test edi, edi
jne 0x140242259
mov rsi, rcx
mov eax, dword [rcx + 0x80]
xor edi, edi
cmp eax, r8d
jle 0x140242259
mov ebx, edx
xor ebp, ebp
cmp edx, 1
setne bpl
add ebp, r8d
cmp ebp, eax
jge 0x140241968
xor r14d, r14d
cmp ebx, 1
setne r14b
movsxd rax, r8d
add r14, rax
imul r15, r14, 0x38
add r15, 0x10
mov rax, qword [rsi + 0x78]
mov rcx, qword [rax + r15]
call fcn.140242ab0
inc r14
movsxd rax, dword [rsi + 0x80]
add r15, 0x38
cmp r14, rax
jl 0x140241948
mov dword [rsi + 0x80], ebp
cmp ebx, 1
je 0x140241a61
mov rbx, qword [rsi + 0x128]
test rbx, rbx
jne 0x140241991
mov rax, qword [rsi + 0x50]
cmp qword [rax], 0
je 0x140242259
test ebp, ebp
je 0x140241ac3
mov rdi, qword [rsi + 0x78]
dec ebp
movsxd rax, ebp
imul r12, rax, 0x38
mov rax, rdi
add rax, r12
mov qword [rsp + 0x30], rax
je 0x140241ac3
mov ebp, dword [rdi + r12 + 0x18]
mov ecx, 0x200
call fcn.14022f8d0
test rax, rax
je 0x140241ead
mov rbx, rax
lea r14, [rdi + r12]
add r14, 0x18
mov rcx, rax
add rcx, 4
mov dword [rsp + 0x2c], 0
mov r8d, 0x1fc
xor edx, edx
call fcn.14031b780
mov dword [rbx], ebp
mov eax, dword [r14]
mov dword [rsi + 0x20], eax
mov al, byte [rsi + 0x10]
mov byte [rsi + 0x17], al
lea r14, [rsi + 0x60]
mov r15, qword [rsi + 0x60]
cmp qword [rsi + 0x128], 0
jne 0x140241da1
mov r12, qword [rdi + r12 + 8]
test r12, r12
cmove r12, r15
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [r14], rax
cmp qword [r14], r12
jge 0x140242132
mov dword [rsp + 0x20], 1
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, 1
call fcn.140242b70
test eax, eax
je 0x140241a31
mov edi, eax
jmp 0x140241e67
mov rbx, qword [rsi + 0x78]
movsxd rax, ebp
imul r14, rax, 0x38
cmp dword [rbx + r14 + 0x20], 0
je 0x140242259
mov rcx, qword [rsi + 0x58]
mov rax, qword [rcx]
mov edi, 0
test rax, rax
je 0x140242259
xor edi, edi
lea rdx, reloc.WS2_32.dll_accept
cmp rax, rdx
jne 0x140241ab6
mov rax, qword [rsi + 0xc8]
add rax, 4
mov edx, dword [rbx + r14 + 0x1c]
imul rdx, rax
call fcn.14023dbb0
mov edi, eax
mov eax, dword [rbx + r14 + 0x1c]
mov dword [rsi + 0x3c], eax
jmp 0x140242259
mov eax, dword [rsi + 0x24]
mov dword [rsi + 0x20], eax
mov al, byte [rsi + 0x10]
mov byte [rsi + 0x17], al
test rbx, rbx
je 0x140241d8a
cmp byte [rbx + 0x40], 0
je 0x140241eb7
mov r15d, dword [rbx + 0x58]
mov rax, qword [rbx + 0x30]
mov rax, qword [rax]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmm2, xmmword [rax + 0x20]
movups xmmword [rbx + 0x58], xmm1
movups xmmword [rbx + 0x48], xmm0
movups xmmword [rbx + 0x68], xmm2
mov eax, dword [rbx + 0x58]
lea ecx, [rax + 1]
xor edi, edi
cmp ecx, r15d
ja 0x140241cea
movabs rdx, 0xffffffff021
lea r13, [rdx - 0x21]
mov r12d, ecx
lea edx, [rax + 0x1001]
movabs rcx, 0xffffffff021
add rdx, rcx
mov rcx, qword [rbx + 0x30]
test rdx, r13
je 0x140241b5b
shr rdx, 0xc
movsxd rdx, edx
add eax, 0x22
and eax, 0xfff
shl rax, 2
add rax, qword [rcx + rdx*8]
jmp 0x140241b6b
mov rax, qword [rcx]
mov ecx, r12d
lea rax, [rax + rcx*4]
add rax, 0x84
mov ebp, dword [rax]
mov rcx, qword [rsi + 0x120]
mov rax, qword [0x1403f39d8]
mov rcx, qword [rcx + 0x48]
xor edi, edi
mov edx, ebp
xor r8d, r8d
call qword [case.0x140318756.0]
test rax, rax
je 0x140241cbc
mov rcx, qword [rsi + 0x120]
mov r14, qword [rax + 8]
cmp qword [r14], 0
je 0x140241bb0
inc qword [rcx + 0x18]
inc qword [r14 + 0x38]
jmp 0x140241bbd
mov edx, ebp
mov r8, rax
call fcn.140240c50
mov r14, rax
test r14, r14
je 0x140241cbc
cmp qword [r14 + 0x38], 1
jne 0x140241c17
test byte [r14 + 0x34], 2
je 0x140241c96
mov rax, qword [r14 + 0x18]
cmp qword [rax + 0x10], r14
jne 0x140241bea
mov rcx, qword [r14 + 0x48]
mov qword [rax + 0x10], rcx
mov rcx, qword [r14 + 0x40]
mov rdx, qword [r14 + 0x48]
lea r8, [rax + 8]
lea r9, [rcx + 0x48]
test rcx, rcx
cmove r9, r8
mov qword [r9], rdx
mov rcx, qword [r14 + 0x40]
mov rdx, qword [r14 + 0x48]
test rdx, rdx
je 0x140241c8a
mov qword [rdx + 0x40], rcx
jmp 0x140241c96
mov rcx, r14
call fcn.140240ca0
mov edi, eax
test eax, eax
jne 0x140241c35
mov rax, qword [rsi + 0x108]
mov rcx, r14
call qword [case.0x140318756.0]
test byte [r14 + 0x34], 0x20
jne 0x140241c46
mov rcx, r14
call fcn.14023a930
jmp 0x140241cbc
mov rax, qword [r14 + 0x28]
dec dword [rax + 0x98]
mov rcx, qword [rax + 0xa8]
mov qword [r14 + 0x20], rcx
mov qword [rax + 0xa8], r14
mov edx, dword [r14 + 0x30]
dec edx
imul rdx, qword [rax + 0xc8]
mov r8, qword [r14 + 8]
mov rcx, qword [rax + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x90]
call qword [case.0x140318756.0]
jmp 0x140241cbc
mov qword [rax], rcx
test rcx, rcx
jne 0x140241c96
mov byte [rax + 0x31], 2
mov rax, qword [r14 + 0x18]
dec qword [rax + 0x18]
mov rax, qword [0x1403f39e0]
mov rdx, qword [r14]
mov rcx, qword [r14 + 0x18]
mov rcx, qword [rcx + 0x48]
mov r8d, 1
call qword [case.0x140318756.0]
mov rax, qword [rsi + 0x70]
test rax, rax
je 0x140241cd2
mov dword [rax + 0x18], 1
mov rax, qword [rax + 0x40]
jmp 0x140241cc0
test edi, edi
jne 0x140241ce7
lea ecx, [r12 + 1]
mov eax, r12d
cmp ecx, r15d
jbe 0x140241b23
mov eax, dword [rbx + 0x58]
cmp r15d, eax
je 0x140241eb9
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rcx
movaps xmm0, xmmword [0x1403bc150]
movaps xmmword [rsp + 0x40], xmm0
test eax, eax
je 0x140241eb9
add eax, 0x1000
movabs r14, 0xffffffff021
add r14, rax
shr r14, 0xc
cmp dword [rbx + 0x28], r14d
jle 0x140241d49
mov rax, qword [rbx + 0x30]
movsxd rcx, r14d
mov rcx, qword [rax + rcx*8]
mov qword [rsp + 0x48], rcx
xor eax, eax
test rcx, rcx
jne 0x140241d68
lea r15, [rsp + 0x48]
mov rcx, rbx
mov edx, r14d
mov r8, r15
call fcn.140240170
mov rcx, qword [r15]
test rcx, rcx
je 0x140241eb9
lea rdx, [rcx + 0x4000]
mov qword [rsp + 0x40], rdx
test r14d, r14d
je 0x14024213f
shl r14d, 0xc
add r14d, 0xffffffde
jmp 0x14024214e
lea r14, [rsi + 0x60]
mov r15, qword [rsi + 0x60]
mov al, 1
mov dword [rsp + 0x2c], eax
xor ebx, ebx
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [r14], 0
lea r12, [rsp + 0x40]
cmp qword [r14], r15
jge 0x140241e5a
mov dword [rsp + 0x40], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov rcx, rsi
xor edx, edx
mov r8, r15
mov r9, r12
call fcn.140243020
mov edi, eax
mov r13d, dword [rsp + 0x40]
test r13d, r13d
jne 0x140241e0d
mov ecx, dword [rsi + 0xb8]
add rcx, qword [rsi + 0x68]
cmp rcx, qword [rsi + 0x60]
jne 0x140241e50
mov rax, r15
sub rax, rcx
mov rcx, qword [rsi + 0xc8]
add rcx, 8
cqo
idiv rcx
mov r13, rax
test edi, edi
jne 0x140241e50
test r13d, r13d
je 0x140241e50
mov ebp, 1
cmp qword [r14], r15
jge 0x140241e4e
mov dword [rsp + 0x20], 1
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9d, 1
call fcn.140242b70
mov edi, eax
test eax, eax
jne 0x140241e50
lea eax, [rbp + 1]
cmp ebp, r13d
mov ebp, eax
jb 0x140241e1b
jmp 0x140241e50
xor edi, edi
test edi, edi
je 0x140241dad
jmp 0x140241e5c
xor edi, edi
cmp byte [rsp + 0x2c], 0
jne 0x140242248
mov rdx, qword [rsp + 0x30]
mov r13d, dword [rdx + 0x1c]
mov rax, qword [rsi + 0xc8]
add rax, 4
imul rax, r13
mov qword [rsp + 0x38], rax
mov r12, qword [rsi + 0x128]
test r12, r12
je 0x14024205b
mov eax, dword [rdx + 0x30]
cmp eax, dword [r12 + 0x88]
jne 0x140242068
mov eax, dword [rdx + 0x24]
jmp 0x14024207c
mov edi, 7
jmp 0x140242259
xor edi, edi
mov rcx, qword [rsi + 0x120]
call fcn.140243310
test rax, rax
je 0x140242259
test edi, edi
jne 0x140242259
mov rbx, rax
mov ebp, dword [rbx + 0x30]
mov rbx, qword [rbx + 0x20]
mov rcx, qword [rsi + 0x120]
mov rax, qword [0x1403f39d8]
mov rcx, qword [rcx + 0x48]
xor edi, edi
mov edx, ebp
xor r8d, r8d
call qword [case.0x140318756.0]
test rax, rax
je 0x14024202f
mov rcx, qword [rsi + 0x120]
mov r14, qword [rax + 8]
cmp qword [r14], 0
je 0x140241f23
inc qword [rcx + 0x18]
inc qword [r14 + 0x38]
jmp 0x140241f30
mov edx, ebp
mov r8, rax
call fcn.140240c50
mov r14, rax
test r14, r14
je 0x14024202f
cmp qword [r14 + 0x38], 1
jne 0x140241f8a
test byte [r14 + 0x34], 2
je 0x140242009
mov rax, qword [r14 + 0x18]
cmp qword [rax + 0x10], r14
jne 0x140241f5d
mov rcx, qword [r14 + 0x48]
mov qword [rax + 0x10], rcx
mov rcx, qword [r14 + 0x40]
mov rdx, qword [r14 + 0x48]
lea r8, [rax + 8]
lea r9, [rcx + 0x48]
test rcx, rcx
cmove r9, r8
mov qword [r9], rdx
mov rcx, qword [r14 + 0x40]
mov rdx, qword [r14 + 0x48]
test rdx, rdx
je 0x140241ffd
mov qword [rdx + 0x40], rcx
jmp 0x140242009
mov rcx, r14
call fcn.140240ca0
mov edi, eax
test eax, eax
jne 0x140241fa8
mov rax, qword [rsi + 0x108]
mov rcx, r14
call qword [case.0x140318756.0]
test byte [r14 + 0x34], 0x20
jne 0x140241fb9
mov rcx, r14
call fcn.14023a930
jmp 0x14024202f
mov rax, qword [r14 + 0x28]
dec dword [rax + 0x98]
mov rcx, qword [rax + 0xa8]
mov qword [r14 + 0x20], rcx
mov qword [rax + 0xa8], r14
mov edx, dword [r14 + 0x30]
dec edx
imul rdx, qword [rax + 0xc8]
mov r8, qword [r14 + 8]
mov rcx, qword [rax + 0x48]
mov rax, qword [rcx]
mov rax, qword [rax + 0x90]
call qword [case.0x140318756.0]
jmp 0x14024202f
mov qword [rax], rcx
test rcx, rcx
jne 0x140242009
mov byte [rax + 0x31], 2
mov rax, qword [r14 + 0x18]
dec qword [rax + 0x18]
mov rax, qword [0x1403f39e0]
mov rdx, qword [r14]
mov rcx, qword [r14 + 0x18]
mov rcx, qword [rcx + 0x48]
mov r8d, 1
call qword [case.0x140318756.0]
mov rax, qword [rsi + 0x70]
test rax, rax
je 0x140242045
mov dword [rax + 0x18], 1
mov rax, qword [rax + 0x40]
jmp 0x140242033
test rbx, rbx
je 0x140242259
test edi, edi
je 0x140241ed9
jmp 0x140242259
test edi, edi
jne 0x140242248
jmp 0x140242216
mov dword [rdx + 0x24], 0
mov eax, dword [r12 + 0x88]
mov dword [rdx + 0x30], eax
xor eax, eax
cmp eax, dword [r12 + 0x58]
jae 0x140242216
mov dword [r12 + 0x58], eax
mov ecx, dword [rdx + 0x28]
mov dword [r12 + 0x60], ecx
mov ecx, dword [rdx + 0x2c]
mov dword [r12 + 0x64], ecx
movabs rcx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rcx
movaps xmm0, xmmword [0x1403bc150]
movaps xmmword [rsp + 0x40], xmm0
test eax, eax
je 0x14024220d
add eax, 0x1000
movabs rdi, 0xffffffff021
add rdi, rax
shr rdi, 0xc
cmp dword [r12 + 0x28], edi
jle 0x1402420f4
mov rax, qword [r12 + 0x30]
movsxd rcx, edi
mov rcx, qword [rax + rcx*8]
mov qword [rsp + 0x48], rcx
xor eax, eax
test rcx, rcx
jne 0x140242113
lea r13, [rsp + 0x48]
mov rcx, r12
mov edx, edi
mov r8, r13
call fcn.140240170
mov rcx, qword [r13]
test rcx, rcx
je 0x14024220d
lea rdx, [rcx + 0x4000]
mov qword [rsp + 0x40], rdx
test edi, edi
je 0x1402421ab
shl edi, 0xc
add edi, 0xffffffde
jmp 0x1402421b9
mov dword [rsp + 0x2c], 0
jmp 0x140241da8
add rcx, 0x88
mov qword [rsp + 0x48], rcx
xor r14d, r14d
mov dword [rsp + 0x50], r14d
test eax, eax
jne 0x140241eb9
mov eax, dword [rbx + 0x58]
sub eax, r14d
xor ecx, ecx
mov rdx, qword [rsp + 0x40]
movzx edx, word [rdx + rcx*2]
movzx edx, dx
cmp eax, edx
jge 0x14024217e
mov rdx, qword [rsp + 0x40]
mov word [rdx + rcx*2], 0
inc rcx
cmp rcx, 0x2000
jne 0x140242163
mov edx, dword [rsp + 0x40]
movsxd rcx, eax
shl rcx, 2
add rcx, qword [rsp + 0x48]
sub edx, ecx
movsxd r8, edx
xor edx, edx
call fcn.14031b780
jmp 0x140241eb9
add rcx, 0x88
mov qword [rsp + 0x48], rcx
xor edi, edi
mov dword [rsp + 0x50], edi
test eax, eax
jne 0x14024220d
mov eax, dword [r12 + 0x58]
sub eax, edi
xor ecx, ecx
mov rdx, qword [rsp + 0x40]
movzx edx, word [rdx + rcx*2]
movzx edx, dx
cmp eax, edx
jge 0x1402421e5
mov rdx, qword [rsp + 0x40]
mov word [rdx + rcx*2], 0
inc rcx
cmp rcx, 0x2000
jne 0x1402421ca
mov edx, dword [rsp + 0x40]
movsxd rcx, eax
shl rcx, 2
add rcx, qword [rsp + 0x48]
sub edx, ecx
movsxd r8, edx
xor edx, edx
call fcn.14031b780
mov rax, qword [rsp + 0x30]
mov r13d, dword [rax + 0x1c]
dec r13d
lea r12, [rsp + 0x38]
xor edi, edi
inc r13d
cmp r13d, dword [rsi + 0x3c]
jae 0x140242248
mov dword [rsp + 0x20], 1
mov rcx, rsi
mov rdx, r12
mov r8, rbx
xor r9d, r9d
call fcn.140242b70
test eax, eax
je 0x140242220
mov edi, eax
mov rcx, rbx
call fcn.140242ab0
test edi, edi
jne 0x140242259
mov qword [r14], r15
xor edi, edi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140319a10
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret