Function at 0x10004ea0
Capabilities:
Get common file path
Get local ipv4 addresses
Get socket information
Link many functions at runtime
Set socket configuration

Disassembly:
mov eax, 0x10150
call fcn.10016ca0
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x10164]
xor ebp, ebp
push edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x4c], ebp
call fcn.100067e0
add esp, 4
test eax, eax
je 0x10004ee6
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10150
ret
mov eax, dword [0x10039a64]
cmp eax, ebp
je 0x10004f11
mov ecx, dword [edi + 0x1e4]
cmp dword [eax + 0x80], ecx
je 0x10004f09
mov eax, dword [eax + 0x84]
cmp eax, ebp
jne 0x10004ef5
jmp 0x10004f11
mov dword [esp + 0x20], 1
mov edx, dword [edi + 0x1e4]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x194]
push eax
push ecx
push edx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
jne 0x10004f5a
add edi, 0xc4
push 0x100
push edi
push str.getsockname__:
call fcn.100071f0
add esp, 0xc
jmp 0x10005d8a
movsx eax, word [esp + 0x194]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x58], eax
mov eax, dword [0x10032c34]
cmp eax, ebp
jne 0x10005149
mov eax, dword [0x10032c28]
mov dword [esp + 0x24], str.getaddrinfo
cmp eax, ebp
mov dword [esp + 0x28], 0x100026b0
mov dword [esp + 0x2c], str.getnameinfo
mov dword [esp + 0x30], 0x100033f0
mov dword [esp + 0x34], str.freeaddrinfo
mov dword [esp + 0x38], 0x10002660
je 0x10004fba
mov eax, dword [0x1002d254]
jmp 0x10005144
lea ecx, [esp + 0x214]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1000512c
lea edi, [esp + 0x214]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x88]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x88]
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 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
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
and ecx, 3
lea eax, [esp + 0x88]
rep movsb byte es:[edi], byte [esi]
push eax
call ebp
mov esi, eax
test esi, esi
je 0x10005062
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100050e7
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esp + 0x214]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x88]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x88]
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 + 0x88]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov esi, eax
test esi, esi
je 0x1000512c
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100050e7
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1000512c
mov ecx, dword [0x100201f0]
xor ebp, ebp
test ecx, ecx
jle 0x10005116
lea edi, [esp + 0x28]
mov ecx, dword [edi - 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [edi], eax
je 0x100050de
mov ecx, dword [0x100201f0]
inc ebp
add edi, 8
cmp ebp, ecx
jl 0x100050f7
xor eax, eax
test ecx, ecx
jle 0x1000512c
mov edx, dword [esp + eax*8 + 0x28]
mov dword [eax*8 + 0x1002d24c], edx
inc eax
cmp eax, ecx
jl 0x1000511c
mov eax, dword [0x1002d254]
mov edi, dword [esp + 0x10164]
mov dword [0x10032c28], 1
xor ebp, ebp
mov dword [0x10032c34], eax
push 2
push ebp
push ebp
lea ecx, [esp + 0x328]
push 0x42
push ecx
lea edx, [esp + 0x1a8]
push ebx
push edx
call eax
mov esi, eax
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp esi, ebp
je 0x1000518d
add edi, 0xc4
push 0x100
push edi
push str.getnameinfo__:
call fcn.100071f0
add esp, 0xc
jmp 0x10005d8a
cmp dword [esp + 0x20], ebp
jne 0x100051a0
test byte [edi + 0x1ec], 2
je 0x1000568b
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x68]
push 0x100
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x10168]
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x70], eax
lea edx, [esp + 0x14]
mov ecx, dword [edi + 0x1ec]
lea eax, [esp + 0x6c]
and cl, 2
mov dword [esp + 0x6c], 1
neg cl
sbb ecx, ecx
add edi, 0xc4
push edi
push edx
neg ecx
push eax
inc ecx
push 0x1002d5f8
push ebp
mov dword [esp + 0x88], ecx
mov dword [esp + 0x6c], edi
call fcn.100075f0
add esp, 0x18
cmp eax, 0xffffffff
je 0x10005d8a
mov ecx, dword [esp + 0x10]
push 0x100
push edi
push 1
push 1
push ecx
call fcn.100073d0
mov esi, eax
add esp, 0x14
cmp esi, 0xffffffff
mov dword [esp + 0x14], esi
je 0x10005d8a
mov eax, dword [0x10032c2c]
mov edx, dword [esp + 0x10]
cmp eax, ebp
mov dword [esp + 0x40], edx
jne 0x1000541c
mov eax, dword [0x10032c28]
mov dword [esp + 0x24], str.getaddrinfo
cmp eax, ebp
mov dword [esp + 0x28], 0x100026b0
mov dword [esp + 0x2c], str.getnameinfo
mov dword [esp + 0x30], 0x100033f0
mov dword [esp + 0x34], str.freeaddrinfo
mov dword [esp + 0x38], 0x10002660
je 0x1000528a
mov eax, dword [0x1002d25c]
jmp 0x10005417
lea eax, [esp + 0x214]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100053fe
lea edi, [esp + 0x214]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x88]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x88]
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 + 0x88]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov esi, eax
test esi, esi
je 0x10005332
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100053b7
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esp + 0x214]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x88]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x88]
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 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 + 0x88]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov esi, eax
test esi, esi
je 0x100053fe
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100053b7
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x100053fe
mov ecx, dword [0x100201f0]
xor ebp, ebp
test ecx, ecx
jle 0x100053e8
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edi, [esp + 0x28]
mov ecx, dword [edi - 4]
push ecx
push esi
call ebx
test eax, eax
mov dword [edi], eax
je 0x100053ae
mov ecx, dword [0x100201f0]
inc ebp
add edi, 8
cmp ebp, ecx
jl 0x100053cd
xor eax, eax
test ecx, ecx
jle 0x100053fe
mov edx, dword [esp + eax*8 + 0x28]
mov dword [eax*8 + 0x1002d24c], edx
inc eax
cmp eax, ecx
jl 0x100053ee
mov eax, dword [0x1002d25c]
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x14]
mov dword [0x10032c28], 1
xor ebp, ebp
mov dword [0x10032c2c], eax
mov ecx, dword [esp + 0x40]
push ecx
call eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x194]
push edx
push eax
push esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x24], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x10005460
push 0x100
push edi
push str.getsockname__:
call fcn.100071f0
add esp, 0xc
jmp 0x10005d8a
mov eax, dword [0x10032c34]
mov ecx, dword [esp + 0x18]
cmp eax, ebp
mov dword [esp + 0x40], ecx
jne 0x10005646
mov eax, dword [0x10032c28]
mov dword [esp + 0x24], str.getaddrinfo
cmp eax, ebp
mov dword [esp + 0x28], 0x100026b0
mov dword [esp + 0x2c], str.getnameinfo
mov dword [esp + 0x30], 0x100033f0
mov dword [esp + 0x34], str.freeaddrinfo
mov dword [esp + 0x38], 0x10002660
je 0x100054b8
mov eax, dword [0x1002d254]
jmp 0x10005641
lea edx, [esp + 0x214]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1000562c
lea edi, [esp + 0x214]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x88]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x88]
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 + 0x88]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov esi, eax
test esi, esi
je 0x10005560
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100055e5
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edi, [esp + 0x214]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x88]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x88]
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 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 + 0x88]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov esi, eax
test esi, esi
je 0x1000562c
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100055e5
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1000562c
mov ecx, dword [0x100201f0]
xor ebp, ebp
test ecx, ecx
jle 0x10005616
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edi, [esp + 0x28]
mov ecx, dword [edi - 4]
push ecx
push esi
call ebx
test eax, eax
mov dword [edi], eax
je 0x100055dc
mov ecx, dword [0x100201f0]
inc ebp
add edi, 8
cmp ebp, ecx
jl 0x100055fb
xor eax, eax
test ecx, ecx
jle 0x1000562c
mov edx, dword [esp + eax*8 + 0x28]
mov dword [eax*8 + 0x1002d24c], edx
inc eax
cmp eax, ecx
jl 0x1000561c
mov eax, dword [0x1002d254]
mov edi, dword [esp + 0x54]
mov dword [0x10032c28], 1
xor ebp, ebp
mov dword [0x10032c34], eax
mov edx, dword [esp + 0x40]
push 8
lea ecx, [esp + 0x364]
push 0x400
push ecx
push ebp
push ebp
lea ecx, [esp + 0x1a8]
push edx
push ecx
call eax
mov esi, eax
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp esi, ebp
je 0x1000568b
push 0x100
push edi
push str.getnameinfo__:
call fcn.100071f0
add esp, 0xc
jmp 0x10005d8a
mov edx, dword [esp + 0x10164]
push 0x100
lea eax, [esp + 0x20]
lea edi, [edx + 0xc4]
push edi
push 1
push 0xfa00
push eax
push ebp
push 8
push ebp
call fcn.100078f0
add esp, 0x20
test eax, eax
jne 0x10005d8a
mov ecx, dword [esp + 0x10164]
mov edx, dword [ecx + 0xbc]
lea ebp, [ecx + 0xbc]
lea ecx, [esp + 0x760]
lea eax, [edx*8 + 0x14]
push eax
push 0
push 4
push ecx
call fcn.10006d80
mov edx, dword [esp + 0x2c]
push 0x100
push edi
push 1
lea eax, [esp + 0x38]
push 0xfa00
push eax
push 0
push 0xc
push 0
lea esi, [esp + edx + 0x790]
call fcn.100078f0
add esp, 0x30
test eax, eax
jne 0x10005d8a
mov edi, dword [esp + 0x10164]
mov edx, esi
xor ecx, ecx
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov eax, dword [edi + 8]
cdq
sub eax, edx
sar eax, 1
push eax
mov dword [edi + 8], eax
call ebx
mov dword [esi + 4], eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x10005758
test byte [edi + 0x1ec], 2
je 0x10005785
lea edi, [esi + 0xa]
lea eax, [esp + 0x360]
push edi
push 0x1002d704
push eax
call fcn.10016e3e
mov cx, word [edi]
add esp, 0xc
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi], ax
mov edi, dword [esp + 0x10164]
mov edx, dword [edi + 0x10]
push edx
call ebx
mov dword [esi], eax
mov word [esi + 8], 0
test byte [edi + 0x1ec], 1
je 0x100057a2
mov word [esi + 8], 1
test byte [edi + 0x1ec], 2
je 0x100057af
or byte [esi + 8], 2
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100057bb
or byte [esi + 8], 4
mov ax, word [esi + 8]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 8], ax
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
push ebp
lea eax, [esp + edx + 0x764]
push ecx
push eax
push edi
call fcn.10005e40
add esp, 0x10
test eax, eax
jne 0x10005d8a
mov ecx, dword [esp + 0x10164]
mov edx, dword [esp + 0x1c]
push 0x100
lea eax, [ecx + 0xc4]
mov ecx, dword [ecx + 0x1e4]
push eax
lea eax, [esp + 0x768]
push edx
push eax
push ecx
call fcn.10007890
add esp, 0x14
test eax, eax
jne 0x10005d8a
mov ecx, dword [esp + 0x10164]
push 0x100
lea edx, [esp + 0x50]
lea eax, [ecx + 0xc4]
push eax
mov eax, dword [ecx + 0x1e4]
push 1
push 8
push edx
push eax
call fcn.10007960
add esp, 0x18
cmp eax, 0xffffffff
je 0x10005d8a
mov esi, dword [esp + 0x10164]
push 0
push 1
lea ecx, [esp + 0x54]
mov edx, dword [esi + 0x1e4]
push 0x84
push ecx
lea edi, [esi + 0xc4]
push edx
push edi
call fcn.10006dc0
add esp, 0x18
cmp eax, 0x84
je 0x100058d5
cmp eax, 0xfffffffd
jl 0x100058b7
test eax, eax
jl 0x10005d8a
cmp eax, 1
jne 0x100058b0
mov eax, dword [esp + 0x50]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp + 0x3c], eax
jmp 0x10005d8a
mov esi, dword [esp + 0x10164]
push str.Internal_error
lea eax, [esi + 0xc4]
push 0x100
push eax
call fcn.10016898
add esp, 0xc
jmp 0x10005d8a
mov edx, dword [esi + 0x1e4]
push 0x100
push edi
push 1
lea ecx, [esp + 0x6c]
push 8
push ecx
push edx
call fcn.10007960
add esp, 0x18
cmp eax, 0xffffffff
mov dword [esp + 0x3c], eax
je 0x10005d8a
mov eax, dword [esp + 0x10164]
test byte [eax + 0x1ec], 2
jne 0x10005c20
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x10005bb9
mov edx, dword [esp + 0x64]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x58]
push edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], 1
call dword [sym.imp.WS2_32.dll_ntohs]
and eax, 0xffff
push eax
lea eax, [esp + 0x364]
push 0x1002d704
push eax
call fcn.10016846
mov ecx, dword [esp + 0x10170]
push 0x100
lea edx, [esp + 0x20]
lea eax, [ecx + 0xc4]
lea ecx, [esp + 0x370]
push eax
lea eax, [esp + 0x7c]
push edx
push eax
lea edx, [esp + 0x338]
push ecx
push edx
call fcn.100075f0
add esp, 0x24
cmp eax, 0xffffffff
je 0x10005d8a
mov eax, dword [esp + 0x10164]
mov ecx, dword [esp + 0x10]
add eax, 0xc4
push 0x100
push eax
push 0
push 0
push ecx
call fcn.100073d0
add esp, 0x14
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x10005d8a
mov eax, dword [0x10032c2c]
mov edx, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x40], edx
jne 0x10005ba8
mov eax, dword [0x10032c28]
mov dword [esp + 0x24], str.getaddrinfo
test eax, eax
mov dword [esp + 0x28], 0x100026b0
mov dword [esp + 0x2c], str.getnameinfo
mov dword [esp + 0x30], 0x100033f0
mov dword [esp + 0x34], str.freeaddrinfo
mov dword [esp + 0x38], 0x10002660
jne 0x10005b9e
lea eax, [esp + 0x214]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10005b94
lea edi, [esp + 0x214]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x88]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x88]
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 + 0x88]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov esi, eax
test esi, esi
je 0x10005acc
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x10005b53
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10005ad2
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edi, [esp + 0x214]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x88]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x88]
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 + 0x88]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call ebp
mov esi, eax
test esi, esi
je 0x10005b94
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x10005b53
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x10005b94
mov ecx, dword [0x100201f0]
xor ebp, ebp
test ecx, ecx
jle 0x10005b7e
lea edi, [esp + 0x28]
mov ecx, dword [edi - 4]
push ecx
push esi
call ebx
test eax, eax
mov dword [edi], eax
je 0x10005b4a
mov ecx, dword [0x100201f0]
inc ebp
add edi, 8
cmp ebp, ecx
jl 0x10005b63
xor eax, eax
test ecx, ecx
jle 0x10005b94
mov edx, dword [esp + eax*8 + 0x28]
mov dword [eax*8 + 0x1002d24c], edx
inc eax
cmp eax, ecx
jl 0x10005b84
mov dword [0x10032c28], 1
mov eax, dword [0x1002d25c]
mov dword [0x10032c2c], eax
mov ecx, dword [esp + 0x40]
push ecx
call eax
mov dword [esp + 0x10], 0
jmp 0x10005c20
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x18]
lea eax, [esp + 0x194]
push edx
push eax
push edi
mov dword [esp + 0x24], 0x80
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push 0x100
cmp esi, 0xffffffff
jne 0x10005c05
mov ecx, dword [esp + 0x10168]
lea eax, [ecx + 0xc4]
push eax
push str.accept__:
call fcn.100071f0
add esp, 0xc
jmp 0x10005d8a
mov edx, dword [esp + 0x10168]
lea eax, [edx + 0xc4]
push eax
push edi
call fcn.100075b0
add esp, 0xc
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x10164]
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x14]
push eax
mov dword [edi + 0x1e8], ebx
lea esi, [edi + 0x8c]
call dword [sym.imp.WS2_32.dll_ntohl]
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x48]
push ecx
push edx
push 0x1002
push 0xffff
push ebx
mov dword [esi], eax
mov dword [esp + 0x70], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
jne 0x10005c85
lea eax, [edi + 0xc4]
push 0x100
push eax
push str.pcap_startcapture_remote__
call fcn.100071f0
add esp, 0xc
mov eax, dword [esi]
mov ecx, dword [edi + 0x10]
cmp eax, ecx
jg 0x10005c93
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x48]
mov ecx, dword [esi]
cmp eax, ecx
jge 0x10005cca
mov ebp, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
push esi
push 0x1002
push 0xffff
push ebx
call ebp
test eax, eax
je 0x10005cca
mov eax, dword [esi]
mov ecx, dword [esp + 0x48]
cdq
sub eax, edx
sar eax, 1
cmp ecx, eax
mov dword [esi], eax
jl 0x10005ca3
mov dword [esi], ecx
mov eax, dword [edi + 0x10]
add eax, 0x10
push eax
mov dword [esi], eax
call fcn.100169d2
add esp, 4
mov dword [edi + 0x90], eax
test eax, eax
jne 0x10005d0e
call fcn.10016b7f
mov ecx, dword [eax]
push ecx
call sym.wpcap.dll_pcap_strerror
push eax
push str.malloc:__s
add edi, 0xc4
push 0x100
push edi
call fcn.10016898
add esp, 0x14
jmp 0x10005d8a
mov edx, dword [esp + 0x50]
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push edx
call ebx
mov esi, dword [esp + 0x3c]
cmp esi, eax
je 0x10005d4c
mov eax, dword [esp + 0x50]
push 0
push 0
push eax
call ebx
mov ecx, dword [edi + 0x1e4]
sub eax, esi
push eax
push ecx
call fcn.10007a10
add esp, 0x10
cmp eax, 1
je 0x10005d8a
mov edi, dword [esp + 0x10164]
test byte [edi + 0x1ec], 4
je 0x10005e21
lea edx, [esp + 0x40]
push edx
push edi
call fcn.10006110
add esp, 8
cmp eax, 0xffffffff
je 0x10005d8a
mov ecx, dword [esp + 0x10164]
lea eax, [esp + 0x40]
push eax
push ecx
call fcn.10005f50
add esp, 8
cmp eax, 0xffffffff
jne 0x10005e0d
mov edx, dword [esp + 0x50]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
push edx
call edi
mov esi, dword [esp + 0x3c]
cmp esi, eax
je 0x10005dc3
mov eax, dword [esp + 0x50]
push 0
push 0
push eax
call edi
mov ecx, dword [esp + 0x1016c]
sub eax, esi
push eax
mov edx, dword [ecx + 0x1e4]
push edx
call fcn.10007a10
add esp, 0x10
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10005ddd
cmp eax, 0xffffffff
je 0x10005ddd
push 0
push 0
push eax
call fcn.100075b0
add esp, 0xc
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x10005dff
mov eax, dword [esp + 0x10164]
push 0
push 0
mov ecx, dword [eax + 0x1e4]
push ecx
call fcn.100075b0
add esp, 0xc
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10150
ret
lea edx, [esp + 0x40]
push edx
call sym.wpcap.dll_pcap_freecode
mov edi, dword [esp + 0x10168]
add esp, 4
mov dword [edi + 0x1f0], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10150
ret