Function at 0x4086e0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xac
push ebx
push edi
push str.IPHLPAPI.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x14], edi
jne 0x40870a
pop edi
xor eax, eax
pop ebx
add esp, 0xac
ret
push ebp
lea eax, [esp + 0x24]
push esi
push eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
je 0x40894f
cmp dword [esp + 0x38], 2
jne 0x40894f
push str.GetAdaptersInfo
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x4089dc
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push ecx
push ebx
call esi
cmp eax, 0x6f
jne 0x4089dc
mov edx, dword [esp + 0x14]
push edx
call fcn.0044f2f1
add esp, 4
mov ebx, eax
lea eax, [esp + 0x14]
mov dword [esp + 0x20], ebx
push eax
push ebx
call esi
test eax, eax
jne 0x408949
test ebx, ebx
mov dword [esp + 0x18], ebx
je 0x408949
jmp 0x408796
mov ebx, dword [esp + 0x18]
lea edi, [ebx + 0x1ac]
test edi, edi
je 0x408933
mov cl, byte [edi + 4]
lea eax, [edi + 4]
test cl, cl
je 0x4087e0
mov esi, str.0.0.0.0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4087d7
test cl, cl
je 0x4087d3
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4087d7
add eax, 2
add esi, 2
test cl, cl
jne 0x4087b3
xor eax, eax
jmp 0x4087dc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4087eb
mov edi, dword [edi]
test edi, edi
jne 0x4087a4
jmp 0x408933
lea edi, [ebx + 0x1d4]
test edi, edi
je 0x408933
mov cl, byte [edi + 4]
lea eax, [edi + 4]
test cl, cl
je 0x408835
mov esi, str.0.0.0.0
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40882c
test cl, cl
je 0x408828
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40882c
add eax, 2
add esi, 2
test cl, cl
jne 0x408808
xor eax, eax
jmp 0x408831
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408840
mov edi, dword [edi]
test edi, edi
jne 0x4087f9
jmp 0x408933
mov eax, dword [esp + 0x1c]
push str.GetPerAdapterInfo
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, eax
test esi, esi
je 0x408933
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
mov edx, dword [ebx + 0x19c]
push ecx
push 0
push edx
call esi
cmp eax, 0x6f
jne 0x408933
mov eax, dword [esp + 0x14]
push eax
call fcn.0044f2f1
mov edx, dword [ebx + 0x19c]
add esp, 4
lea ecx, [esp + 0x14]
mov edi, eax
push ecx
push edi
push edx
mov dword [esp + 0x30], edi
call esi
test eax, eax
jne 0x40892a
lea ebp, [edi + 0xc]
test ebp, ebp
je 0x40892a
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0x10]
lea ebx, [eax + ecx*4]
mov al, byte [ebp + 4]
lea edi, [ebp + 4]
test al, al
je 0x40891b
mov esi, str.0.0.0.0
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4088ef
test cl, cl
je 0x4088eb
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4088ef
add eax, 2
add esi, 2
test cl, cl
jne 0x4088cb
xor eax, eax
jmp 0x4088f4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40891b
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc4]
cmp eax, ecx
jge 0x40891b
push edi
call sub.WSOCK32.dll_inet_addr
mov ecx, dword [esp + 0x10]
mov dword [ebx], eax
inc ecx
add ebx, 4
mov dword [esp + 0x10], ecx
mov ebp, dword [ebp]
test ebp, ebp
jne 0x4088ba
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
push edi
call fcn.0044f31a
add esp, 4
mov eax, dword [ebx]
test eax, eax
mov dword [esp + 0x18], eax
jne 0x408792
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
push ebx
jmp 0x4089d4
push str.GetNetworkParams
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x4089dc
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push ecx
push ebx
call esi
cmp eax, 0x6f
jne 0x4089dc
mov edx, dword [esp + 0x18]
push edx
call fcn.0044f2f1
add esp, 4
mov ebp, eax
lea eax, [esp + 0x18]
push eax
push ebp
call esi
test eax, eax
jne 0x4089d3
lea esi, [ebp + 0x10c]
cmp esi, ebx
je 0x4089d3
mov edi, dword [esp + 0xc0]
mov ebx, dword [esp + 0xc4]
mov cl, byte [esi + 4]
lea eax, [esi + 4]
test cl, cl
je 0x4089c9
cmp dword [esp + 0x10], ebx
jge 0x4089c9
push eax
call sub.WSOCK32.dll_inet_addr
mov ecx, dword [esp + 0x10]
mov dword [edi], eax
inc ecx
add edi, 4
mov dword [esp + 0x10], ecx
mov esi, dword [esi]
test esi, esi
jne 0x4089a5
mov edi, dword [esp + 0x1c]
push ebp
call fcn.0044f31a
add esp, 4
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop edi
pop ebx
add esp, 0xac
ret