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

Disassembly:
mov word [rsp + 0x18], r8w
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov rax, qword [0x1403c2018]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 8]
mov rax, qword [rax]
or rax, rcx
not rax
mov qword [rsp + 0x30], rax
xor eax, eax
mov word [rsp + 0x54], ax
mov rax, qword [rsp + 0x80]
mov eax, dword [rax + 0x14]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x80]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x20], rax
jmp 0x1402a825e
mov eax, dword [rsp + 0x38]
dec eax
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x20]
add rax, 0x40
mov qword [rsp + 0x20], rax
cmp dword [rsp + 0x38], 0
jle 0x1402a840b
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x12]
and eax, 2
test eax, eax
je 0x1402a827e
jmp 0x1402a840b
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 8]
mov rax, qword [rax + 0x38]
and rax, rcx
test rax, rax
jne 0x1402a829d
jmp 0x1402a8246
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rax + 0x38]
and rax, rcx
test rax, rax
je 0x1402a82b5
jmp 0x1402a8246
mov rax, qword [rsp + 0x88]
movzx eax, word [rax + 0x2c]
dec eax
mov dword [rsp + 0x3c], eax
jmp 0x1402a82d3
mov eax, dword [rsp + 0x3c]
dec eax
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jl 0x1402a833e
lfence
movsxd rax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx + 0x38]
mov rax, qword [rcx + rax*8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1402a8301
jmp 0x1402a82c9
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x28], rax
jne 0x1402a830f
jmp 0x1402a833e
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x18], 0
jl 0x1402a833c
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x18]
imul rax, rax, 0x40
mov rcx, qword [rsp + 0x80]
add rax, qword [rcx + 0x20]
cmp rax, qword [rsp + 0x20]
jne 0x1402a833c
jmp 0x1402a833e
jmp 0x1402a82c9
cmp dword [rsp + 0x3c], 0
jge 0x1402a8406
mov rax, qword [rsp + 0x20]
movsx eax, word [rax + 0x10]
test eax, eax
jg 0x1402a8380
mov rax, qword [rsp + 0x20]
movsx eax, word [rax + 0x10]
mov rcx, qword [rsp + 0x88]
movsx ecx, word [rcx + 0x16]
add ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x88]
mov word [rcx + 0x16], ax
jmp 0x1402a8406
mov rax, qword [rsp + 0x88]
movzx eax, word [rax + 0x16]
dec ax
mov rcx, qword [rsp + 0x88]
mov word [rcx + 0x16], ax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax + 0x14]
and eax, 0x82
test eax, eax
je 0x1402a8406
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x44]
mov rcx, qword [rsp + 0x58]
call fcn.1402520f0
test eax, eax
je 0x1402a83e9
cmp dword [rsp + 0x44], 0xffffffff
jl 0x1402a83e9
cmp dword [rsp + 0x44], 1
jg 0x1402a83e9
mov dword [rsp + 0x44], 0xa
jmp 0x1402a83f1
mov dword [rsp + 0x44], setsockopt
movsx eax, word [rsp + 0x54]
cmp eax, dword [rsp + 0x44]
jge 0x1402a8406
movzx eax, word [rsp + 0x44]
mov word [rsp + 0x54], ax
jmp 0x1402a8246
mov rax, qword [rsp + 0x88]
movsx eax, word [rax + 0x16]
movsx ecx, word [rsp + 0x90]
movsx edx, word [rsp + 0x54]
sub ecx, edx
cmp eax, ecx
jle 0x1402a8445
movsx eax, word [rsp + 0x90]
movsx ecx, word [rsp + 0x54]
sub eax, ecx
mov rcx, qword [rsp + 0x88]
mov word [rcx + 0x16], ax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.1402d3744
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140038910
add rsp, 0x70
pop rdi
ret