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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rdi, rcx
call fcn.1400925a0
movzx ebx, al
test al, al
je 0x1400a6b0e
cmp byte [reloc.WS2_32.dll_accept], 0
jne 0x1400a6acb
cmp byte [0x1403acdc0], 0
jne 0x1400a6b0e
cmp dword [rdi], 0
jne 0x1400a6afb
mov rdx, rdi
mov byte [0x1403acdc0], 1
mov ecx, 1
mov byte [reloc.WS2_32.dll_accept], 1
call qword [0x1403bf468]
mov ecx, dword [rdi]
test ecx, ecx
je 0x1400a6afb
call fcn.1400a7930
mov byte [rdi + 4], 1
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x1400a6b15
mov ecx, dword [rdi]
call qword [0x1403bf458]
jmp 0x1400a6b15
mov byte [reloc.WS2_32.dll_accept], 0
cmp byte [rdi + 4], 0
jne 0x1400a6b28
cmp byte [reloc.WS2_32.dll_accept], 0
jne 0x1400a6d20
cmp byte [rdi + 0x18], 0
je 0x1400a6b6a
lea rcx, [rdi + 0x28]
test bl, bl
jne 0x1400a6b63
mov edx, 0x8892
call fcn.1400966e0
mov ecx, 0x8074
call qword [sym.imp.OPENGL32.dll_glEnableClientState]
mov r9, qword [rdi + 0x40]
mov edx, 0x1406
mov r8d, dword [rdi + 0x38]
mov ecx, dword [rdi + 0x48]
call qword [sym.imp.OPENGL32.dll_glVertexPointer]
jmp 0x1400a6b77
call fcn.1400a7380
jmp 0x1400a6b77
test bl, bl
je 0x1400a6b77
mov ecx, dword [rdi + 0x4c]
call qword [0x1403bdc18]
cmp byte [rdi + 0x1a], 0
je 0x1400a6bb9
lea rcx, [rdi + 0x58]
test bl, bl
jne 0x1400a6bb2
mov edx, 0x8892
call fcn.1400966e0
mov ecx, 0x8076
call qword [sym.imp.OPENGL32.dll_glEnableClientState]
mov r9, qword [rdi + 0x70]
mov edx, 0x1406
mov r8d, dword [rdi + 0x68]
mov ecx, dword [rdi + 0x78]
call qword [sym.imp.OPENGL32.dll_glColorPointer]
jmp 0x1400a6bc6
call fcn.1400a7380
jmp 0x1400a6bc6
test bl, bl
je 0x1400a6bc6
mov ecx, dword [rdi + 0x7c]
call qword [0x1403bdc18]
cmp byte [rdi + 0x1b], 0
je 0x1400a6c0d
lea rcx, [rdi + 0xb8]
test bl, bl
jne 0x1400a6c06
mov edx, 0x8892
call fcn.1400966e0
mov ecx, 0x8075
call qword [sym.imp.OPENGL32.dll_glEnableClientState]
mov r8, qword [rdi + 0xd0]
mov ecx, 0x1406
mov edx, dword [rdi + 0xc8]
call qword [sym.imp.OPENGL32.dll_glNormalPointer]
jmp 0x1400a6c1d
call fcn.1400a7380
jmp 0x1400a6c1d
test bl, bl
je 0x1400a6c1d
mov ecx, dword [rdi + 0xdc]
call qword [0x1403bdc18]
cmp byte [rdi + 0x19], 0
je 0x1400a6c6b
lea rcx, [rdi + 0x88]
test bl, bl
jne 0x1400a6c64
mov edx, 0x8892
call fcn.1400966e0
mov ecx, 0x8078
call qword [sym.imp.OPENGL32.dll_glEnableClientState]
mov r9, qword [rdi + 0xa0]
mov edx, 0x1406
mov r8d, dword [rdi + 0x98]
mov ecx, dword [rdi + 0xa8]
call qword [sym.imp.OPENGL32.dll_glTexCoordPointer]
jmp 0x1400a6c7b
call fcn.1400a7380
jmp 0x1400a6c7b
test bl, bl
je 0x1400a6c7b
mov ecx, dword [rdi + 0xac]
call qword [0x1403bdc18]
cmp byte [rdi + 0x1c], 0
je 0x1400a6c8f
lea rcx, [rdi + 8]
mov edx, 0x8893
call fcn.1400966e0
mov rax, qword [rdi + 0xf0]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400a6d1c
mov qword [rsp + 0x40], rsi
nop dword [rax]
nop word [rax + rax]
mov edx, 0x8892
lea rcx, [rbx + 0x18]
call fcn.1400966e0
mov ecx, dword [rbx + 0x3c]
call qword [0x1403bdc28]
mov rax, qword [rbx + 0x30]
mov r8d, 0x1406
cmp byte [rbx + 0x40], 0
mov edx, dword [rbx + 0x38]
mov ecx, dword [rbx + 0x3c]
setne r9b
mov qword [rsp + 0x28], rax
mov eax, dword [rbx + 0x28]
mov dword [rsp + 0x20], eax
call qword [0x1403bdeb0]
mov edx, dword [rbx + 0x44]
mov ecx, dword [rbx + 0x3c]
call qword [0x1403be0d8]
mov edx, 0x8892
lea rcx, [rbx + 0x18]
call fcn.140096890
mov rbx, qword [rbx]
cmp rbx, qword [rdi + 0xf0]
jne 0x1400a6cb0
mov rsi, qword [rsp + 0x40]
mov byte [rdi + 4], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret