Function at 0x1400474f0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x14006b620]
lea rcx, str.NPcapPacket.dll
and eax, 0xfffffffd
or eax, 4
mov dword [0x14006b620], eax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x1400475c9
lea rcx, str.Packet.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x1400475c9
test byte [0x14006b620], 4
je 0x1400475c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7e
je 0x140047583
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea r8, str.Packet.dll
mov r9d, ebx
lea rdx, str._s:_couldnt_load__d_n
mov rcx, rax
call fcn.140001010
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea r8, str.Packet.dll
lea rdx, str._s:_not_found_n
call fcn.140001010
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.__HINT:_you_must_install_either_WinPcap_or_Npcap_n
call fcn.140001010
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
lea rcx, str.Npcapwpcap.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x14004761f
lea rcx, str.wpcap.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
jne 0x14004761f
test byte [0x14006b620], 4
je 0x140047578
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, 2
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea r8, str.wpcap.dll
jmp 0x140047566
lea rdx, str.pcap_close
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [fcn.14000cc20], rax
test rax, rax
jne 0x140047650
or dword [0x14006b620], 1
lea rax, [fcn.14000cc20]
mov qword [fcn.14000cc20], rax
lea rdx, str.pcap_datalink
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b638], rax
test rax, rax
jne 0x140047681
or dword [0x14006b620], 1
lea rax, [fcn.140013280]
mov qword [0x14006b638], rax
lea rdx, str.pcap_dispatch
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b640], rax
test rax, rax
jne 0x1400476b2
or dword [0x14006b620], 1
lea rax, [fcn.140013280]
mov qword [0x14006b640], rax
lea rdx, str.pcap_findalldevs
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b648], rax
test rax, rax
jne 0x1400476e3
or dword [0x14006b620], 1
lea rax, [0x1400472f0]
mov qword [0x14006b648], rax
lea rdx, str.pcap_freealldevs
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b650], rax
test rax, rax
jne 0x140047714
or dword [0x14006b620], 1
lea rax, [fcn.14000cc20]
mov qword [0x14006b650], rax
lea rdx, str.pcap_lib_version
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b660], rax
test rax, rax
jne 0x140047745
or dword [0x14006b620], 1
lea rax, [0x140047380]
mov qword [0x14006b660], rax
lea rdx, str.pcap_lookupdev
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b658], rax
test rax, rax
jne 0x140047776
or dword [0x14006b620], 1
lea rax, [0x140047320]
mov qword [0x14006b658], rax
lea rdx, str.pcap_major_version
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b668], rax
test rax, rax
jne 0x1400477a7
or dword [0x14006b620], 1
lea rax, [fcn.140013280]
mov qword [0x14006b668], rax
lea rdx, str.pcap_minor_version
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b670], rax
test rax, rax
jne 0x1400477d8
or dword [0x14006b620], 1
lea rax, [fcn.140013280]
mov qword [0x14006b670], rax
lea rdx, str.pcap_open_live
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b678], rax
test rax, rax
jne 0x140047809
or dword [0x14006b620], 1
lea rax, [0x140047350]
mov qword [0x14006b678], rax
lea rdx, str.pcap_open_offline
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b680], rax
test rax, rax
jne 0x14004783a
or dword [0x14006b620], 1
lea rax, [0x1400473c0]
mov qword [0x14006b680], rax
lea rdx, str.pcap_sendpacket
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b688], rax
test rax, rax
jne 0x14004786b
or dword [0x14006b620], 1
lea rax, [0x1400473d0]
mov qword [0x14006b688], rax
lea rdx, str.pcap_next
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b690], rax
test rax, rax
jne 0x14004789c
or dword [0x14006b620], 1
lea rax, [0x1400473f0]
mov qword [0x14006b690], rax
lea rdx, str.pcap_setdirection
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b698], rax
test rax, rax
jne 0x1400478cd
or dword [0x14006b620], 1
lea rax, [0x140047410]
mov qword [0x14006b698], rax
lea rdx, str.pcap_datalink_val_to_name
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b6a0], rax
test rax, rax
jne 0x1400478fe
or dword [0x14006b620], 1
lea rax, [0x140047430]
mov qword [0x14006b6a0], rax
lea rdx, str.pcap_perror
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b6a8], rax
test rax, rax
jne 0x14004792f
or dword [0x14006b620], 1
lea rax, [0x140047450]
mov qword [0x14006b6a8], rax
lea rdx, str.pcap_geterr
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b6b0], rax
test rax, rax
jne 0x140047960
or dword [0x14006b620], 1
lea rax, [0x140047490]
mov qword [0x14006b6b0], rax
lea rax, [0x1400474a0]
mov rcx, rbx
mov qword [0x14006b6b8], rax
lea rdx, str.pcap_sendqueue_alloc
lea rax, [0x1400365c0]
mov qword [0x14006b6c0], rax
lea rax, [0x1400474b0]
mov qword [0x14006b6c8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b6d0], rax
test rax, rax
jne 0x1400479bb
or dword [0x14006b620], 1
lea rax, [fcn.140013280]
mov qword [0x14006b6d0], rax
lea rdx, str.pcap_sendqueue_transmit
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b6d8], rax
test rax, rax
jne 0x1400479ec
or dword [0x14006b620], 1
lea rax, [0x1400473d0]
mov qword [0x14006b6d8], rax
lea rdx, str.pcap_sendqueue_destroy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b6e0], rax
test rax, rax
jne 0x140047a1d
or dword [0x14006b620], 1
lea rax, [0x1400474c0]
mov qword [0x14006b6e0], rax
lea rdx, str.pcap_sendqueue_queue
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b6e8], rax
test rax, rax
jne 0x140047a4e
or dword [0x14006b620], 1
lea rax, [0x1400474d0]
mov qword [0x14006b6e8], rax
lea rdx, str.pcap_create
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b6f0], rax
test rax, rax
jne 0x140047a7f
or dword [0x14006b620], 1
lea rax, [fcn.140013280]
mov qword [0x14006b6f0], rax
lea rdx, str.pcap_set_snaplen
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b6f8], rax
test rax, rax
jne 0x140047ab0
or dword [0x14006b620], 1
lea rax, [fcn.140013280]
mov qword [0x14006b6f8], rax
lea rdx, str.pcap_set_promisc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b700], rax
test rax, rax
jne 0x140047ae1
or dword [0x14006b620], 1
lea rax, [fcn.140013280]
mov qword [0x14006b700], rax
lea rdx, str.pcap_set_timeout
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b708], rax
test rax, rax
jne 0x140047b12
or dword [0x14006b620], 1
lea rax, [fcn.140013280]
mov qword [0x14006b708], rax
lea rdx, str.pcap_set_immediate_mode
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b710], rax
test rax, rax
jne 0x140047b43
or dword [0x14006b620], 1
lea rax, [fcn.140013280]
mov qword [0x14006b710], rax
lea rdx, str.pcap_set_buffer_size
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b718], rax
test rax, rax
jne 0x140047b74
or dword [0x14006b620], 1
lea rax, [fcn.140013280]
mov qword [0x14006b718], rax
lea rdx, str.pcap_set_rfmon
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b720], rax
test rax, rax
jne 0x140047ba5
or dword [0x14006b620], 1
lea rax, [fcn.140013280]
mov qword [0x14006b720], rax
lea rdx, str.pcap_can_set_rfmon
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b728], rax
test rax, rax
jne 0x140047bd6
or dword [0x14006b620], 1
lea rax, [fcn.140013280]
mov qword [0x14006b728], rax
lea rdx, str.pcap_activate
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14006b730], rax
test rax, rax
mov eax, dword [0x14006b620]
jne 0x140047c09
lea rcx, [fcn.140013280]
or eax, 1
mov qword [0x14006b730], rcx
test al, 1
jne 0x140047c1e
or eax, 2
mov dword [0x14006b620], eax
xor eax, eax
add rsp, 0x20
pop rbx
ret
and eax, 0xfffffffd
mov dword [0x14006b620], eax
xor eax, eax
add rsp, 0x20
pop rbx
ret