Function at 0x100046b0
Capabilities:
Get common file path
Link many functions at runtime
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x1087c
call fcn.10016ca0
push ebx
push ebp
mov ebp, dword [esp + 0x10890]
push esi
push edi
lea eax, [esp + 0x68c]
push ebp
lea ecx, [esp + 0xa90]
push eax
lea edx, [esp + 0x294]
push ecx
mov ecx, dword [esp + 0x1089c]
lea eax, [esp + 0x30]
push edx
xor esi, esi
push eax
push ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x4c], esi
call sym.wpcap.dll_pcap_parsesrcstr
add esp, 0x18
cmp eax, 0xffffffff
je 0x100047db
cmp dword [esp + 0x24], 4
je 0x10004735
push str.This_function_is_able_to_open_only_remote_interfaces
push 0x100
push ebp
call fcn.10016898
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1087c
ret
push 0x100
push ebp
mov dword [esp + 0x18], esi
call fcn.10007300
add esp, 8
cmp eax, 0xffffffff
je 0x100047db
lea edx, [esp + 0x28c]
push ebp
push edx
call fcn.10006f20
add esp, 8
cmp eax, 0xffffffff
mov dword [esp + 0x24], eax
je 0x100047db
cmp eax, esi
je 0x1000477f
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], 1
jmp 0x10004a13
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xa8c]
mov dword [esp + 0x5c], esi
test eax, eax
mov dword [esp + 0x60], 1
je 0x100047e8
mov al, byte [esp + 0xa8c]
test al, al
je 0x100047e8
push 0x100
lea ecx, [esp + 0x14]
push ebp
lea edx, [esp + 0x60]
push ecx
lea eax, [esp + 0xa98]
push edx
push eax
lea ecx, [esp + 0x2a0]
push ecx
call fcn.100075f0
add esp, 0x18
cmp eax, 0xffffffff
jne 0x100047ff
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1087c
ret
push 0x100
lea edx, [esp + 0x14]
push ebp
lea eax, [esp + 0x60]
push edx
push eax
push str.2002
jmp 0x100047c6
mov edx, dword [esp + 0x10]
push 0x100
push ebp
push esi
push esi
push edx
call fcn.100073d0
add esp, 0x14
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x10004c45
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [0x10032c2c]
cmp eax, esi
jne 0x100049e9
mov eax, dword [0x10032c28]
mov dword [esp + 0x38], str.getaddrinfo
cmp eax, esi
mov dword [esp + 0x3c], 0x100026b0
mov dword [esp + 0x40], str.getnameinfo
mov dword [esp + 0x44], 0x100033f0
mov dword [esp + 0x48], str.freeaddrinfo
mov dword [esp + 0x4c], 0x10002660
jne 0x100049df
lea ecx, [esp + 0x184]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100049d5
lea edi, [esp + 0x184]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x78]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ws2_32
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
and ecx, 3
lea eax, [esp + 0x78]
rep movsb byte es:[edi], byte [esi]
push eax
call ebx
mov esi, eax
test esi, esi
je 0x10004912
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1000498e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esp + 0x184]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x78]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.wship6
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x78]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebx
mov esi, eax
test esi, esi
je 0x100049d3
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1000498e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100049d3
mov ecx, dword [0x100201f0]
xor ebx, ebx
test ecx, ecx
jle 0x100049bd
lea edi, [esp + 0x3c]
mov ecx, dword [edi - 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [edi], eax
je 0x10004985
mov ecx, dword [0x100201f0]
inc ebx
add edi, 8
cmp ebx, ecx
jl 0x1000499e
xor eax, eax
test ecx, ecx
jle 0x100049d3
mov edx, dword [esp + eax*8 + 0x3c]
mov dword [eax*8 + 0x1002d24c], edx
inc eax
cmp eax, ecx
jl 0x100049c3
xor esi, esi
mov dword [0x10032c28], 1
mov eax, dword [0x1002d25c]
mov dword [0x10032c2c], eax
mov ecx, dword [esp + 0x28]
push ecx
call eax
mov edx, dword [esp + 0x10894]
mov eax, dword [esp + 0x14]
push ebp
push edx
push eax
mov dword [esp + 0x1c], esi
call fcn.10006a90
add esp, 0xc
cmp eax, 0xffffffff
je 0x10004c45
push 0x100
push ebp
push 1
lea ecx, [esp + 0x28]
push 0xfa00
push ecx
push esi
push 8
push esi
call fcn.100078f0
add esp, 0x20
test eax, eax
jne 0x10004c45
lea edi, [esp + 0x68c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + 0xe8c]
push ecx
push esi
push 3
push edx
call fcn.10006d80
push 0x100
push ebp
push esi
lea eax, [esp + 0x38]
push 0xfa00
lea ecx, [esp + 0xeac]
push eax
push ecx
lea edi, [esp + 0x6b4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x6b4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.100078f0
add esp, 0x30
test eax, eax
jne 0x10004c45
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
push 0x100
push ebp
lea ecx, [esp + 0xe94]
push eax
push ecx
push ebx
call fcn.10007890
add esp, 0x14
test eax, eax
jne 0x10004c45
push 0x100
push ebp
push 1
lea edx, [esp + 0x38]
push 8
push edx
push ebx
call fcn.10007960
add esp, 0x18
cmp eax, 0xffffffff
je 0x10004c45
push esi
push 1
lea eax, [esp + 0x34]
push 0x83
push eax
push ebx
push ebp
call fcn.10006dc0
add esp, 0x18
cmp eax, 0x83
mov dword [esp + 0x24], eax
je 0x10004b45
cmp eax, 0xfffffffd
jl 0x10004b2d
cmp eax, esi
jl 0x10004c45
cmp eax, 1
jne 0x10004b2d
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp + 0x18], eax
jmp 0x10004c45
push str.Internal_error
push 0x100
push ebp
call fcn.10016898
add esp, 0xc
jmp 0x10004c45
push 0x100
push ebp
push 1
lea edx, [esp + 0x5c]
push 8
push edx
push ebx
call fcn.10007960
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
je 0x10004c45
push 0x200
call fcn.100169d2
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x20], esi
jne 0x10004ba7
call fcn.10016b7f
mov eax, dword [eax]
push eax
call fcn.10008980
push eax
push str.malloc___failed:__s
push 0x100
push ebp
call fcn.10016898
add esp, 0x14
jmp 0x10004c45
mov ecx, 0x80
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x50]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
push ecx
call edi
mov dword [esi + 0x14], eax
mov edx, dword [esp + 0x54]
push edx
call edi
mov dword [esi + 0x18], eax
xor eax, eax
mov dword [esi + 0x1e4], ebx
mov dword [esi + 0x1e0], 1
mov dword [esi + 0xa0], 0x100042d0
mov dword [esi + 0xa4], 0x100060d0
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], 0x10004460
mov dword [esi + 0xb8], 0x10004320
mov eax, dword [esp + 0x30]
push eax
call edi
mov ebp, dword [esp + 0x18]
cmp ebp, eax
je 0x10004e89
mov ecx, dword [esp + 0x30]
push 0
push 0
push ecx
call edi
sub eax, ebp
push eax
push ebx
call fcn.10008980
add esp, 0x10
cmp eax, 1
jne 0x10004e85
mov edx, dword [esp + 0x30]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
push edx
call edi
mov esi, dword [esp + 0x18]
cmp esi, eax
je 0x10004c75
mov eax, dword [esp + 0x30]
push 0
push 0
push eax
call edi
mov ecx, dword [esp + 0x1c]
sub eax, esi
push eax
push ecx
call fcn.10007a10
add esp, 0x10
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10004e4e
mov dword [esp + 0x28], eax
mov eax, dword [0x10032c2c]
test eax, eax
jne 0x10004e47
mov eax, dword [0x10032c28]
mov dword [esp + 0x38], str.getaddrinfo
test eax, eax
mov dword [esp + 0x3c], 0x100026b0
mov dword [esp + 0x40], str.getnameinfo
mov dword [esp + 0x44], 0x100033f0
mov dword [esp + 0x48], str.freeaddrinfo
mov dword [esp + 0x4c], 0x10002660
jne 0x10004e3d
lea edx, [esp + 0x184]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10004e33
lea edi, [esp + 0x184]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x78]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.ws2_32
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x78]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x10004d70
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x10004df2
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10004d76
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edi, [esp + 0x184]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x78]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x78]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.wship6
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x78]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x10004e33
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x10004df2
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10004e33
mov ecx, dword [0x100201f0]
xor ebp, ebp
test ecx, ecx
jle 0x10004e1d
lea edi, [esp + 0x3c]
mov ecx, dword [edi - 4]
push ecx
push esi
call ebx
test eax, eax
mov dword [edi], eax
je 0x10004de9
mov ecx, dword [0x100201f0]
inc ebp
add edi, 8
cmp ebp, ecx
jl 0x10004e02
xor eax, eax
test ecx, ecx
jle 0x10004e33
mov edx, dword [esp + eax*8 + 0x3c]
mov dword [eax*8 + 0x1002d24c], edx
inc eax
cmp eax, ecx
jl 0x10004e23
mov dword [0x10032c28], 1
mov eax, dword [0x1002d25c]
mov dword [0x10032c2c], eax
mov ecx, dword [esp + 0x28]
push ecx
call eax
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x10004e67
mov edx, dword [esp + 0x14]
push 0
push 0
push edx
call fcn.100075b0
add esp, 0xc
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10004e78
push eax
call sym.wpcap.dll_pcap_close
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1087c
ret
mov esi, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1087c
ret