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

Disassembly:
push rsi
push r13
sub rsp, 0x68
cmp byte [rcx + 0x1e], 0
mov rsi, rcx
mov r13, qword [rcx]
mov qword [rsp + 0x98], r13
jne 0x1400dfab1
cmp byte [r13 + 0x51], 0
jne 0x1400dfaa4
cmp dword [rcx + 0x4c], 0
jne 0x1400dfaa4
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], r12
call fcn.1400ec180
xor r12d, r12d
mov rdi, rax
lea ebx, [r12 + 1]
test rax, rax
je 0x1400dfa70
nop dword [rax]
movsxd rcx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
lea edx, [rcx - 1]
cmp edx, dword [rax + 0x64]
jle 0x1400df5e9
mov rax, qword [rdi + 8]
lea rcx, [rcx + rcx*2]
cmp byte [rax + rcx*8 - 0x18], 0x3d
jne 0x1400df5e9
mov rcx, rdi
call fcn.140108f10
jmp 0x1400df5c0
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x18]
call fcn.1401089e0
cmp byte [r13 + 0x51], r12b
jne 0x1400dfa3c
cmp dword [rsi + 0x16c], r12d
jne 0x1400df620
cmp qword [rsi + 0x150], r12
je 0x1400dfa3c
mov ecx, dword [rdi + 0x3c]
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r15
test ecx, ecx
je 0x1400df640
mov rax, qword [rdi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
mov ebp, r12d
mov dword [rax + 0x64], ecx
cmp dword [r13 + 0x28], r12d
jle 0x1400df76a
mov r15, r12
mov r14d, ebx
lea r12, [rsi + 0x170]
test dword [rsi + 0x16c], r14d
je 0x1400df750
mov eax, dword [rdi + 0x94]
bts eax, ebp
mov dword [rdi + 0x94], eax
cmp ebp, 1
je 0x1400df6a5
mov rax, qword [rdi]
mov rcx, qword [rax + 0x20]
mov rax, qword [rcx + r15 + 8]
cmp byte [rax + 0x11], 0
je 0x1400df6a5
mov eax, dword [rdi + 0x98]
bts eax, ebp
mov dword [rdi + 0x98], eax
mov rax, qword [r13 + 0x20]
mov r9d, 0
test dword [rsi + 0x168], r14d
mov r8d, ebp
mov edx, 4
setne r9b
mov rcx, qword [rax + r15 + 0x18]
mov eax, dword [rcx + 4]
mov rcx, rdi
mov dword [rsp + 0x80], eax
mov eax, dword [r12]
mov dword [rsp + 0x20], eax
call fcn.1401089e0
mov r8, qword [rdi + 8]
mov rcx, qword [rdi]
test r8, r8
je 0x1400df730
cmp byte [rcx + 0x51], 0
jne 0x1400df730
test eax, eax
jns 0x1400df6fc
mov eax, dword [rdi + 0x3c]
dec eax
cdqe
lea rdx, [rax + rax*2]
lea rbx, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [rbx + 0x10]
call fcn.140087680
mov eax, dword [rsp + 0x80]
mov qword [rbx + 0x10], 0
mov dword [rbx + 0x10], eax
mov byte [rbx + 1], 0xf2
nop dword [rax + rax]
cmp byte [r13 + 0xa1], 0
jne 0x1400df750
mov rdx, qword [rdi + 8]
test rdx, rdx
je 0x1400df750
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [rdx + rcx*8 - 0x15], 1
inc ebp
rol r14d, 1
add r12, 4
add r15, 0x20
cmp ebp, dword [r13 + 0x28]
jl 0x1400df663
xor r12d, r12d
cmp dword [rsi + 0x1f4], 0
mov r14d, r12d
jle 0x1400df824
mov r15, r12
nop dword [rax]
mov rax, qword [rsi + 0x268]
mov rbx, qword [r15 + rax]
mov rbx, qword [rbx + 0x58]
test rbx, rbx
je 0x1400df7a2
cmp qword [rbx], r13
je 0x1400df7a2
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x1400df794
xor r9d, r9d
mov dword [rsp + 0x20], r12d
xor r8d, r8d
mov edx, 0x92
mov rcx, rdi
call fcn.1401089e0
mov r8, qword [rdi + 8]
mov rcx, qword [rdi]
test r8, r8
je 0x1400df810
cmp byte [rcx + 0x51], 0
jne 0x1400df810
test eax, eax
jns 0x1400df7d5
mov eax, dword [rdi + 0x3c]
dec eax
cdqe
lea rdx, [rax + rax*2]
lea rbp, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [rbp + 0x10]
call fcn.140087680
test rbx, rbx
jne 0x1400df7fc
mov qword [rbp + 0x10], r12
mov byte [rbp + 1], bl
jmp 0x1400df810
mov qword [rbp + 0x10], rbx
mov byte [rbp + 1], 0xf6
inc dword [rbx + 0x18]
nop word [rax + rax]
inc r14d
add r15, 8
cmp r14d, dword [rsi + 0x1f4]
jl 0x1400df780
mov rcx, rsi
mov dword [rsi + 0x1f4], r12d
call fcn.1400ec180
cmp dword [rsi + 0x1ac], 0
mov r14, rax
mov ebp, r12d
jle 0x1400df94d
mov r15, r12
mov r13d, 1
nop
mov rcx, qword [rsi + 0x1b0]
movsxd rbx, dword [r14 + 0x3c]
mov rax, qword [r15 + rcx + 0x10]
mov r12d, dword [r15 + rcx]
mov qword [rsp + 0x90], rax
movzx eax, byte [r15 + rcx + 8]
mov dword [rsp + 0x88], eax
mov eax, dword [r15 + rcx + 4]
mov dword [rsp + 0x80], eax
mov rax, qword [r14 + 0x30]
cmp dword [rax + 0x60], ebx
jg 0x1400df8a5
mov edx, r13d
mov rcx, r14
call fcn.1400aad80
test eax, eax
je 0x1400df8a5
mov ebx, r13d
xor r12d, r12d
jmp 0x1400df8df
inc dword [r14 + 0x3c]
lea rcx, [rbx + rbx*2]
mov rax, qword [r14 + 8]
mov edx, dword [rsp + 0x80]
mov dword [rax + rcx*8 + 4], r12d
xor r12d, r12d
mov dword [rax + rcx*8 + 8], edx
mov edx, dword [rsp + 0x88]
mov qword [rax + rcx*8 + 0x10], r12
mov word [rax + rcx*8], 0x91
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 0xc], edx
mov r8, qword [r14 + 8]
mov rcx, qword [r14]
test r8, r8
je 0x1400df933
cmp byte [rcx + 0x51], 0
jne 0x1400df933
test ebx, ebx
jns 0x1400df8fb
mov ebx, dword [r14 + 0x3c]
dec ebx
movsxd rax, ebx
lea rdx, [rax + rax*2]
lea rbx, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [rbx + 0x10]
call fcn.140087680
mov rax, qword [rsp + 0x90]
test rax, rax
jne 0x1400df92b
mov qword [rbx + 0x10], r12
mov byte [rbx + 1], al
jmp 0x1400df933
mov qword [rbx + 0x10], rax
mov byte [rbx + 1], 0xfe
inc ebp
add r15, 0x18
cmp ebp, dword [rsi + 0x1ac]
jl 0x1400df850
mov r13, qword [rsp + 0x98]
mov rcx, rsi
call fcn.1400cc860
mov r15, qword [rsi + 0x150]
test r15, r15
je 0x1400df9de
mov byte [rsi + 0x23], 0
mov ebp, r12d
cmp dword [r15], 0
jle 0x1400df9de
mov r14, r12
nop dword [rax]
nop word [rax + rax]
mov rax, qword [r15 + 8]
mov rdx, qword [r14 + rax]
mov ebx, dword [r14 + rax + 0x20]
test rdx, rdx
je 0x1400df9a6
cmp byte [rdx], 0x9f
jne 0x1400df9a6
mov r8d, dword [rdx + 0x2c]
mov edx, 0x21
mov rcx, qword [rsi + 0x10]
jmp 0x1400df9c6
mov r8d, ebx
mov rcx, rsi
call fcn.1400db550
cmp eax, ebx
je 0x1400df9d3
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1400df9d3
mov r8d, eax
mov edx, 0x22
mov r9d, ebx
mov dword [rsp + 0x20], r12d
call fcn.1401089e0
inc ebp
add r14, 0x28
cmp ebp, dword [r15]
jl 0x1400df980
mov rax, qword [rdi + 0x30]
movsxd rbx, dword [rdi + 0x3c]
mov r15, qword [rsp + 0x38]
mov r14, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x58]
cmp dword [rax + 0x60], ebx
jg 0x1400dfa0b
mov edx, 1
mov rcx, rdi
call fcn.1400aad80
test eax, eax
jne 0x1400dfa37
mov rax, qword [rdi + 8]
lea rcx, [rbx + rbx*2]
inc dword [rdi + 0x3c]
mov ebx, 1
mov word [rax + rcx*8], reloc.WS2_32.dll_recv
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r12d
mov qword [rax + rcx*8 + 8], rbx
mov qword [rax + rcx*8 + 0x10], r12
jmp 0x1400dfa3c
mov ebx, 1
cmp dword [rsi + 0x4c], 0
jne 0x1400dfa70
cmp byte [r13 + 0x51], 0
jne 0x1400dfa70
cmp qword [rsi + 0x1b8], 0
je 0x1400dfa5c
cmp dword [rsi + 0x50], 0
jne 0x1400dfa5c
mov dword [rsi + 0x50], ebx
mov rdx, rsi
mov rcx, rdi
call fcn.140112400
mov byte [rsi + 0x1c], 0
mov ebx, 0x65
mov dword [rsi + 0x18], ebx
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
mov dword [rsi + 0x58], r12d
mov dword [rsi + 0x1e8], r12d
mov dword [rsi + 0x16c], r12d
mov r12, qword [rsp + 0x48]
mov qword [rsi + 0x50], 0
add rsp, 0x68
pop r13
pop rsi
ret
cmp dword [rcx + 0x18], 0
jne 0x1400dfab1
mov dword [rcx + 0x18], 1
add rsp, 0x68
pop r13
pop rsi
ret