Function at 0x414e7b
Capabilities:
Get common file path
Link many functions at runtime
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
sub esp, 0x420
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
je 0x414e97
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [esi], ebx
mov edi, 0x104
push edi
lea eax, [ebp - 0x20f]
push ebx
push eax
mov byte [ebp - 0x210], bl
call sub.msvcrt.dll_memset
push edi
lea eax, [ebp - 0x107]
push ebx
push eax
mov byte [ebp - 0x108], bl
call sub.msvcrt.dll_memset
add esp, 0x18
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
push str.Npcapwpcap.dll
call sub.msvcrt.dll_strlen
mov ebx, eax
lea eax, [ebp - 0x108]
push eax
call sub.msvcrt.dll_strlen
lea eax, [ebx + eax + 1]
cmp eax, edi
pop ecx
pop ecx
jae 0x414f14
lea eax, [ebp - 0x108]
push str.Npcapwpcap.dll
push eax
lea eax, [ebp - 0x210]
call fcn.00406c27
pop ecx
pop ecx
xor ebx, ebx
jmp 0x414f1c
xor ebx, ebx
mov byte [ebp - 0x210], bl
lea eax, [ebp - 0x210]
push eax
call fcn.00406ac1
test eax, eax
pop ecx
je 0x414fd5
push edi
lea eax, [ebp - 0x317]
push ebx
push eax
mov byte [ebp - 0x318], bl
call sub.msvcrt.dll_memset
push str.Npcap
call sub.msvcrt.dll_strlen
mov ebx, eax
lea eax, [ebp - 0x108]
push eax
call sub.msvcrt.dll_strlen
lea eax, [ebx + eax + 1]
add esp, 0x14
cmp eax, edi
jae 0x414f85
lea eax, [ebp - 0x108]
push str.Npcap
push eax
lea eax, [ebp - 0x420]
call fcn.00406c27
pop ecx
pop ecx
xor ebx, ebx
jmp 0x414f8d
xor ebx, ebx
mov byte [ebp - 0x420], bl
lea eax, [ebp - 0x318]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
mov edi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
lea eax, [ebp - 0x210]
push eax
call edi
cmp eax, ebx
mov dword [esi], eax
jne 0x414fc6
push str.wpcap.dll
call edi
mov dword [esi], eax
lea eax, [ebp - 0x318]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
jmp 0x414fe2
push str.wpcap.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, ebx
je 0x4150de
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.pcap_findalldevs_ex
push eax
call edi
push str.pcap_freealldevs
push dword [esi]
mov dword [esi + 4], eax
call edi
push str.pcap_open
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.pcap_close
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.pcap_next_ex
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.pcap_loop
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.pcap_compile
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.pcap_setfilter
push dword [esi]
mov dword [esi + 0x1c], eax
call edi
push str.pcap_freecode
push dword [esi]
mov dword [esi + 0x20], eax
call edi
push str.pcap_next
push dword [esi]
mov dword [esi + 0x24], eax
call edi
push str.pcap_findalldevs
push dword [esi]
mov dword [esi + 0x28], eax
call edi
push str.pcap_open_live
push dword [esi]
mov dword [esi + 0x2c], eax
call edi
push str.pcap_open_offline
push dword [esi]
mov dword [esi + 0x30], eax
call edi
push str.pcap_dispatch
push dword [esi]
mov dword [esi + 0x34], eax
call edi
cmp dword [esi + 0x2c], ebx
mov dword [esi + 0x38], eax
je 0x4150cf
cmp dword [esi + 8], ebx
je 0x4150cf
cmp dword [esi + 0x10], ebx
je 0x4150cf
cmp dword [esi + 0x18], ebx
je 0x4150cf
cmp dword [esi + 0x1c], ebx
je 0x4150cf
cmp dword [esi + 0x20], ebx
je 0x4150cf
cmp dword [esi + 0x24], ebx
je 0x4150cf
cmp dword [esi + 0x28], ebx
je 0x4150cf
cmp dword [esi + 0x30], ebx
je 0x4150cf
cmp eax, ebx
je 0x4150cf
cmp dword [esi + 0x34], ebx
jne 0x4150de
mov eax, dword [esi]
cmp eax, ebx
je 0x4150de
push eax
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [esi], ebx
xor eax, eax
cmp dword [esi], ebx
pop edi
setne al
pop ebx
leave
ret