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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r15d, edx
mov qword [rsp + 0x40], rcx
mov rdi, rcx
call fcn.140076f80
mov rsi, rax
mov eax, dword [rdi + 0x50]
dec eax
mov dword [rsp + 0x90], eax
mov rbx, qword [rsi + 0x30]
movsxd r13, dword [rbx + 0x78]
lea ecx, [r13 + 1]
mov dword [rbx + 0x78], ecx
lea ecx, [r13 - 1]
test r13d, ecx
jne 0x14006681a
mov rdx, qword [rbx + 0x80]
lea eax, [r13*2 + 1]
mov rcx, qword [rbx]
movsxd r8, eax
shl r8, 2
call fcn.140017ab0
mov qword [rbx + 0x80], rax
mov rcx, qword [rbx + 0x80]
test rcx, rcx
je 0x14006682e
mov dword [rcx + r13*4], 0xffffffff
cmp dword [rsp + 0xc8], 0
not r13d
mov dword [rsp + 0x3c], r13d
jge 0x140066865
mov rax, qword [rsp + 0xb0]
mov r9d, r13d
mov edx, 0x88
mov dword [rsp + 0x20], 0
mov rcx, rsi
movzx r8d, byte [rax + 0x2c]
call fcn.140037d60
mov rax, qword [rsp + 0xb0]
xor ebp, ebp
mov r14d, dword [rsp + 0xc0]
mov r12, qword [rsp + 0xb8]
cmp dword [rax + 0x28], ebp
jle 0x1400668c7
mov rbx, r12
mov rdi, rax
nop word [rax + rax]
lea r8d, [r14 + 1]
mov dword [rsp + 0x20], 0
add r8d, dword [rbx]
mov r9d, r13d
mov edx, 0x4c
mov rcx, rsi
call fcn.140037d60
inc ebp
lea rbx, [rbx + 4]
cmp ebp, dword [rdi + 0x28]
jl 0x140066890
mov rdi, qword [rsp + 0x40]
mov rax, qword [rsp + 0xb0]
cmp dword [rsp + 0xd0], 0
lea rbp, [0x140120b10]
jne 0x140066e00
mov rdx, qword [rsp + 0xa8]
test rdx, rdx
jne 0x140066ac8
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x1400668fd
inc dword [rdi + 0x54]
mov ebx, dword [rdi + 0x54]
jmp 0x140066909
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov ebx, dword [rdi + rax*4 + 0x24]
lea r8d, [r14 + 1]
mov dword [rsp + 0x20], 0
add r8d, dword [r12]
mov r9d, ebx
mov edx, 0x20
mov rcx, rsi
call fcn.140037d60
xor r9d, r9d
mov dword [rsp + 0x20], 0
mov r8d, ebx
mov rcx, rsi
lea edx, [r9 + 0x26]
call fcn.140037d60
mov r12, qword [rsp + 0xa0]
mov ebp, eax
mov rax, qword [rsp + 0xb0]
cmp r12, qword [rax]
jne 0x1400669a5
cmp dword [rsp + 0xc8], 1
jne 0x1400669a5
mov r9d, r13d
mov dword [rsp + 0x20], ebx
mov r8d, r14d
mov edx, 0x4f
mov rcx, rsi
call fcn.140037d60
mov rax, qword [rsi]
mov ecx, dword [rsi + 0x3c]
dec ecx
cmp byte [rax + 0x51], 0
je 0x140066992
lea rax, [0x140120b10]
jmp 0x1400669a1
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
lea rax, [rax + rcx*8]
mov byte [rax + 3], 0x90
mov r14d, dword [rsp + 0x90]
mov r9, r12
mov edx, r14d
mov dword [rsp + 0x20], 0x36
mov r8d, r15d
mov rcx, rdi
call fcn.1400692b0
xor r9d, r9d
mov dword [rsp + 0x20], ebx
mov r8d, r14d
mov rcx, rsi
lea edx, [r9 + 0x49]
call fcn.140037d60
xor r12d, r12d
mov r9d, r13d
xor r8d, r8d
mov dword [rsp + 0x20], r12d
mov rcx, rsi
lea edx, [r12 + 0xe]
call fcn.140037d60
mov edx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
lea ecx, [rdx - 1]
add edx, 0xfffffffe
mov dword [rax + 0x64], ecx
mov r8d, dword [rsi + 0x3c]
jns 0x140066a11
lea edx, [r8 - 1]
mov rax, qword [rsi]
cmp byte [rax + 0x51], r12b
je 0x140066a23
lea rax, [0x140120b10]
jmp 0x140066a32
movsxd rax, edx
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
lea rax, [rax + rcx*8]
mov dword [rax + 8], r8d
mov ecx, dword [rsi + 0x3c]
mov rax, qword [rsi + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
mov edx, dword [rsi + 0x3c]
test ebp, ebp
jns 0x140066a4c
lea ebp, [rdx - 1]
mov rax, qword [rsi]
cmp byte [rax + 0x51], r12b
je 0x140066a61
lea rbp, [0x140120b10]
mov rax, rbp
jmp 0x140066a77
movsxd rax, ebp
lea rbp, [0x140120b10]
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
lea rax, [rax + rcx*8]
mov dword [rax + 8], edx
test ebx, ebx
je 0x140066e0b
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x140066e0b
mov ecx, r12d
lea rax, [rdi + 0x88]
nop dword [rax]
cmp dword [rax + 0xc], ebx
je 0x140066abf
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x140066aa0
movzx eax, dl
mov dword [rdi + rax*4 + 0x24], ebx
inc byte [rdi + 0x1f]
jmp 0x140066e0b
mov byte [rax + 6], 1
jmp 0x140066e0b
movsxd rbx, dword [rax + 0x28]
mov ecx, dword [rdi + 0x44]
mov ebp, dword [rdi + 0x48]
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebp
cmp ebx, ecx
jg 0x140066aeb
lea eax, [rbx + rbp]
sub ecx, ebx
mov dword [rdi + 0x48], eax
mov dword [rdi + 0x44], ecx
jmp 0x140066afa
mov eax, dword [rdi + 0x54]
lea ebp, [rax + 1]
add eax, ebx
mov dword [rdi + 0x54], eax
mov dword [rsp + 0x34], ebp
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x140066b0a
inc dword [rdi + 0x54]
mov eax, dword [rdi + 0x54]
jmp 0x140066b16
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov eax, dword [rdi + rax*4 + 0x24]
mov r9d, dword [rdx + 0x58]
mov rcx, rsi
mov r8d, dword [rsp + 0x90]
mov edx, 0x36
mov dword [rsp + 0xd0], eax
mov dword [rsp + 0x20], r15d
call fcn.140037d60
mov rdx, qword [rsp + 0xa8]
mov rcx, rdi
call fcn.1400388e0
mov r15, rbx
mov qword [rsp + 0x48], rbx
xor ebx, ebx
test r15, r15
jle 0x140066b8a
nop word [rax + rax]
lea r8d, [r14 + 1]
mov dword [rsp + 0x20], 0
add r8d, dword [r12 + rbx*4]
mov r9d, ebp
mov edx, 0x1f
mov rcx, rsi
call fcn.140037d60
inc ebp
inc rbx
cmp rbx, r15
jl 0x140066b60
mov rax, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0xa0]
cmp rdx, qword [rax]
jne 0x140066cac
cmp dword [rsp + 0xc8], 1
jne 0x140066cac
mov eax, dword [rsi + 0x3c]
lea ecx, [r15 + 1]
add eax, ecx
xor ebx, ebx
test r15, r15
jle 0x140066c8f
mov r13, r15
mov edi, eax
nop word [rax + rax]
mov eax, dword [r12 + rbx*4]
lea ebp, [r14 + 1]
movsxd r15, dword [rsi + 0x3c]
lea r12d, [r14 + 1]
add r12d, eax
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax + 8]
movsx ecx, word [rax + rbx*2]
mov rax, qword [rsi + 0x30]
add ebp, ecx
cmp cx, word [rdx + 0x3c]
cmove ebp, r14d
cmp dword [rax + 0x60], r15d
jg 0x140066c13
mov rcx, rsi
call fcn.140037cb0
test eax, eax
jne 0x140066c3f
mov rax, qword [rsi + 8]
lea rcx, [r15 + r15*2]
inc dword [rsi + 0x3c]
mov word [rax + rcx*8], 0x4e
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r12d
mov dword [rax + rcx*8 + 8], edi
mov dword [rax + rcx*8 + 0xc], ebp
mov qword [rax + rcx*8 + 0x10], 0
mov rax, qword [rsi]
mov ecx, dword [rsi + 0x3c]
dec ecx
cmp byte [rax + 0x51], 0
je 0x140066c56
lea rax, [0x140120b10]
jmp 0x140066c65
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 8]
lea rax, [rax + rcx*8]
mov r12, qword [rsp + 0xb8]
inc rbx
mov rdx, qword [rsp + 0xa0]
mov byte [rax + 3], 0x10
cmp rbx, r13
jl 0x140066bd0
mov rdi, qword [rsp + 0x40]
mov r13d, dword [rsp + 0x3c]
xor r12d, r12d
mov r9d, r13d
xor r8d, r8d
mov dword [rsp + 0x20], r12d
mov rcx, rsi
lea edx, [r12 + 0xe]
call fcn.140037d60
jmp 0x140066caf
xor r12d, r12d
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rdi]
call fcn.140069380
mov r15d, dword [rsp + 0x30]
mov edx, 0x31
mov r14d, dword [rsp + 0x34]
mov r9d, r15d
mov ebp, dword [rsp + 0xd0]
mov r8d, r14d
mov rcx, rsi
mov dword [rsp + 0x20], ebp
mov rbx, rax
call fcn.140037d60
mov r9d, r15d
mov r8, rbx
mov edx, eax
mov rcx, rsi
call fcn.1400387d0
mov r8d, dword [rsp + 0x90]
mov r9d, r13d
mov edx, 0x46
mov dword [rsp + 0x20], ebp
mov rcx, rsi
call fcn.140037d60
mov r8, qword [rsi + 8]
mov rcx, qword [rsi]
test r8, r8
je 0x140066d58
cmp byte [rcx + 0x51], 0
jne 0x140066d58
test eax, eax
jns 0x140066d31
mov eax, dword [rsi + 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.1400384b0
mov qword [rbx + 0x10], r12
mov dword [rbx + 0x10], r12d
mov byte [rbx + 1], 0xf2
jmp 0x140066d64
xor r8d, r8d
lea edx, [r8 - 0xe]
call fcn.1400384b0
test ebp, ebp
je 0x140066da0
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x140066da0
mov ecx, r12d
lea rax, [rdi + 0x88]
nop dword [rax + rax]
cmp dword [rax + 0xc], ebp
je 0x140066d9c
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x140066d80
movzx eax, dl
mov dword [rdi + rax*4 + 0x24], ebp
inc byte [rdi + 0x1f]
jmp 0x140066da0
mov byte [rax + 6], 1
lea r9d, [r15 - 1]
mov r8d, 0xa
add r9d, r14d
lea rcx, [rdi + 0x94]
mov edx, dword [rcx]
cmp edx, r14d
jl 0x140066ddf
cmp edx, r9d
jg 0x140066ddf
cmp byte [rcx - 6], 0
je 0x140066ddc
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x140066dd8
movzx eax, al
mov dword [rdi + rax*4 + 0x24], edx
inc byte [rdi + 0x1f]
mov byte [rcx - 6], 0
mov dword [rcx], r12d
add rcx, 0x14
sub r8, 1
jne 0x140066db4
lea rbp, [0x140120b10]
cmp r15d, dword [rdi + 0x44]
jle 0x140066e03
mov dword [rdi + 0x44], r15d
mov dword [rdi + 0x48], r14d
jmp 0x140066e03
xor r12d, r12d
mov r14d, dword [rsp + 0x90]
mov rdx, qword [rsp + 0xb0]
movzx ecx, byte [rdx + 0x2c]
test cl, cl
jne 0x140066ea9
mov rax, qword [rdi]
test dword [rax + 0x2c], 0x1000000
jne 0x140066ea9
cmp qword [rdi + 0x1c0], 0
jne 0x140066ea9
cmp byte [rdi + 0x20], cl
jne 0x140066ea9
mov rcx, rdi
call fcn.140076f80
mov rcx, qword [rdi + 0x1c0]
mov edx, socket
test rcx, rcx
mov dword [rsp + 0x20], r12d
mov r8d, 0x313
mov rbx, rax
cmovne rdi, rcx
mov rcx, rax
lea r9d, [rdx - 0x14]
mov byte [rdi + 0x21], 1
call fcn.140037d60
mov r9d, 0xfffffffe
xor r8d, r8d
mov edx, eax
mov rcx, rbx
call fcn.1400387d0
mov rax, qword [rbx]
mov ecx, dword [rbx + 0x3c]
dec ecx
cmp byte [rax + 0x51], 0
jne 0x140066ea3
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
lea rbp, [rax + rcx*8]
mov byte [rbp + 3], 4
jmp 0x140066ee3
mov r9d, dword [rsp + 0xc8]
test r9d, r9d
jle 0x140066ecc
test cl, cl
jne 0x140066ecc
mov rax, qword [rdi + 0x1c0]
test rax, rax
cmovne rdi, rax
mov byte [rdi + 0x21], 1
movzx r8d, byte [rdx + 0x2c]
mov rcx, rsi
mov edx, 0x87
mov dword [rsp + 0x20], r12d
call fcn.140037d60
mov r9, qword [rsi + 0x30]
mov rdx, qword [r9 + 0x80]
test rdx, rdx
je 0x140066eff
mov eax, dword [rsi + 0x3c]
not r13d
movsxd rcx, r13d
mov dword [rdx + rcx*4], eax
mov eax, dword [rsi + 0x3c]
mov r8d, r14d
dec eax
mov dword [rsp + 0xb0], r12d
mov dword [r9 + 0x64], eax
mov rcx, rsi
xor r9d, r9d
lea edx, [r9 + 0x3d]
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.140037d60