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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x14025e2c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, rcx
cmp byte [rcx + 0x670], 0
je 0x140132491
mov al, 1
jmp 0x140132668
call fcn.140132690
cmp qword [0x14026d108], 0
jne 0x14013265a
mov ecx, 0x90
call fcn.1401d19cc
mov rbx, rax
mov qword [rsp + 0x20], rax
xor esi, esi
mov word [rsp + 0x3e], si
mov qword [rsp + 0x40], reloc.WS2_32.dll_listen
mov qword [rsp + 0x48], setsockopt
vmovsd xmm0, qword [str.Npc_interface]
vmovsd qword [rsp + 0x30], xmm0
mov eax, dword [0x14020ed30]
mov dword [rsp + 0x38], eax
movzx eax, byte [0x14020ed34]
mov byte [rsp + 0x3c], al
mov byte [rsp + 0x3d], sil
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14009c930
nop
lea rax, vtable.NpcScriptInterface.0
mov qword [rbx], rax
mov byte [rbx + 0x88], sil
mov rax, qword [0x14026d248]
mov qword [rbx + 8], rax
test rax, rax
je 0x140132556
mov rcx, rbx
call fcn.1401349a0
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbx + 8]
call qword [sym.imp.lua.dll_lua_createtable]
mov edx, 0xfff0b9d8
mov rcx, qword [rbx + 8]
call qword [sym.imp.lua.dll_luaL_ref]
mov dword [rbx + 0x10], eax
mov dword [rbx + 0x14], 0x3e8
mov qword [0x14026d108], rbx
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov ecx, 0x20
call fcn.1401d19cc
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], setsockopt
mov qword [rsp + 0x48], 0x1f
vmovups xmm0, xmmword [str.data_npc_lib_npc.lua]
vmovups xmmword [rax], xmm0
mov ecx, dword [0x14020ecc0]
mov dword [rax + 0x10], ecx
mov byte [rax + 0x14], 0
mov rbx, qword [0x14026d108]
cmp byte [rbx + 0x88], 0
jne 0x14013261a
xor r8d, r8d
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14009cc30
cmp eax, 0xffffffff
jne 0x140132613
lea rdx, str._Warning___NpcScriptInterface::loadNpcLib__Can_not_load
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000d520
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
mov rcx, rax
call fcn.14000f490
lea rdx, [0x14000b3f0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x14013261a
mov byte [rbx + 0x88], 1
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14013265a
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140132655
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140132655
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401d177c
mov rcx, rdi
call fcn.140132af0
mov byte [rdi + 0x670], al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1401d1730
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret