Function at 0x10046763
Capabilities:
Get local ipv4 addresses
Set socket configuration

Disassembly:
mov eax, 0x100cfd80
call fcn.10030644
sub esp, 0xb4
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov esi, ecx
jne 0x1004694b
lea eax, [ebp - 0x98]
push eax
push ebx
push ebx
call sub.iphlpapi.dll_GetBestRoute
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x50], al
call fcn.10002424
mov esi, str.count
push esi
call fcn.10030730
pop ecx
push eax
push esi
lea ecx, [ebp - 0x50]
call fcn.100036bc
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 4], ebx
call fcn.1006f1f1
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp + 0xb], al
call fcn.10002424
cmp byte [ebp + 0xb], bl
je 0x100467f7
mov ecx, dword [ebp + 0xc]
push esi
call fcn.100420b1
mov esi, eax
push 2
mov ecx, esi
call fcn.1006e74a
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], ebx
mov dword [ebp + 8], ebx
jle 0x10046f04
mov edi, dword [sym.imp.WSOCK32.dll_inet_addr]
push dword [ebp + 8]
lea eax, [ebp - 0x20]
push str.net_d
push eax
call fcn.100598b6
add esp, 0xc
mov ecx, dword [eax]
mov dword [ebp - 4], 1
cmp ecx, ebx
je 0x10046831
call fcn.1000886e
jmp 0x10046833
xor eax, eax
mov ecx, dword [ebp + 0xc]
push eax
call fcn.100420b1
mov esi, eax
push 4
mov ecx, esi
call fcn.1006e74a
mov esi, dword [esi]
push ebx
lea ecx, [ebp - 0x50]
mov al, byte [esi]
mov byte [ebp - 0x50], al
call fcn.10002424
push dword [0x100d6d18]
lea ecx, [ebp - 0x50]
push ebx
push esi
call fcn.10003585
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x10046877
mov eax, 0x100d6d1c
push eax
call edi
mov dword [ebp - 0x98], eax
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.10002424
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.1000278a
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push str.mask_d
push eax
call fcn.100598b6
add esp, 0xc
mov ecx, dword [eax]
mov dword [ebp - 4], 3
cmp ecx, ebx
je 0x100468c2
call fcn.1000886e
jmp 0x100468c4
xor eax, eax
mov ecx, dword [ebp + 0xc]
push eax
call fcn.100420b1
mov esi, eax
push 4
mov ecx, esi
call fcn.1006e74a
mov esi, dword [esi]
push ebx
lea ecx, [ebp - 0x40]
mov al, byte [esi]
mov byte [ebp - 0x40], al
call fcn.10002424
push dword [0x100d6d18]
lea ecx, [ebp - 0x40]
push ebx
push esi
call fcn.10003585
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 4
cmp eax, ebx
jne 0x10046908
mov eax, 0x100d6d1c
push eax
call edi
mov dword [ebp - 0x94], eax
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.10002424
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.1000278a
lea eax, [ebp - 0x98]
push eax
call sub.iphlpapi.dll_CreateIpForwardEntry
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x10]
jl 0x10046809
jmp 0x10046f04
cmp dword [ebp + 8], 1
jne 0x10046f04
cmp byte [esi + 0x35ec], bl
jne 0x1004696b
push ebx
push ebx
push 0x10101fc0
call fcn.100c5aaa
jmp 0x100469dc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
push eax
push ebx
mov dword [ebp - 0x10], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
push dword [ebp - 0x10]
call fcn.100c0da0
push dword [ebp - 0x10]
mov edi, eax
mov dword [ebp - 0x1c], edi
push ebx
push edi
call fcn.10031000
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
push edi
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, ebx
je 0x100469e3
push eax
lea eax, [ebp + 0xc]
push 0x10101f98
push eax
call fcn.100598b6
add esp, 0xc
mov eax, dword [eax]
mov dword [ebp - 4], 5
cmp eax, ebx
je 0x100469c6
mov eax, dword [eax]
jmp 0x100469c8
xor eax, eax
push ebx
push ebx
push eax
call fcn.100c5aaa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.1000278a
xor al, al
jmp 0x10046f06
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp + 8]
add eax, 0x1b0
push eax
call fcn.10002736
lea eax, [esi + 0x36e4]
mov dword [ebp - 4], 6
mov dword [ebp - 0x20], eax
push eax
lea ecx, [ebp + 8]
call fcn.10005a49
test eax, eax
je 0x10046a3e
mov edi, dword [edi]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.1000278a
cmp edi, ebx
je 0x10046a53
lea eax, [edi + 0x1b0]
lea ecx, [ebp + 8]
push eax
call fcn.10002736
push dword [ebp - 0x20]
mov dword [ebp - 4], 6
jmp 0x10046a05
mov eax, dword [edi + 0x19c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
mov dword [ebp - 0x18], eax
call fcn.1000278a
push dword [ebp - 0x1c]
call fcn.100c0dc9
pop ecx
xor eax, eax
push 0xd
lea edi, [ebp - 0x94]
pop ecx
mov dword [ebp - 0x98], ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x18]
or edi, 0xffffffff
push eax
mov ecx, esi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x88], eax
call fcn.10046703
mov esi, dword [esi + 0x36e8]
mov dword [ebp - 0x74], eax
cmp esi, ebx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
je 0x10046aa8
mov ecx, esi
call fcn.1000886e
jmp 0x10046aaa
xor eax, eax
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
push 3
mov dword [ebp - 0x8c], eax
pop eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], eax
mov al, byte [ebp + 0xf]
push ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x40], al
call fcn.10002424
mov esi, str.count
push esi
call fcn.10030730
pop ecx
push eax
push esi
lea ecx, [ebp - 0x40]
call fcn.100036bc
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 4], 7
call fcn.1006f1f1
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp + 0xb], al
call fcn.10002424
cmp byte [ebp + 0xb], bl
je 0x10046b36
mov ecx, dword [ebp + 0xc]
push esi
call fcn.100420b1
mov esi, eax
push 2
mov ecx, esi
call fcn.1006e74a
mov eax, dword [esi]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
jle 0x10046f04
push dword [ebp - 0x14]
mov edi, str.net_d
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.100598b6
add esp, 0xc
mov ecx, dword [eax]
mov dword [ebp - 4], 8
cmp ecx, ebx
je 0x10046b6b
call fcn.1000886e
jmp 0x10046b6d
xor eax, eax
mov ecx, dword [ebp + 0xc]
push eax
call fcn.100420b1
mov esi, eax
push 4
mov ecx, esi
call fcn.1006e74a
mov esi, dword [esi]
push ebx
lea ecx, [ebp - 0x40]
mov al, byte [esi]
mov byte [ebp - 0x40], al
call fcn.10002424
push dword [0x100d6d18]
lea ecx, [ebp - 0x40]
push ebx
push esi
call fcn.10003585
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 9
cmp eax, ebx
jne 0x10046bb1
mov eax, 0x100d6d1c
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x98], eax
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 8
call fcn.10002424
mov ecx, dword [ebp - 0x5c]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x10046bdf
call fcn.10002801
mov dword [ebp - 0x5c], ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x58]
push str.mask_d
push eax
call fcn.100598b6
add esp, 0xc
mov ecx, dword [eax]
mov dword [ebp - 4], 0xa
cmp ecx, ebx
je 0x10046c07
call fcn.1000886e
jmp 0x10046c09
xor eax, eax
mov ecx, dword [ebp + 0xc]
push eax
call fcn.100420b1
mov esi, eax
push 4
mov ecx, esi
call fcn.1006e74a
mov esi, dword [esi]
push ebx
lea ecx, [ebp - 0x50]
mov al, byte [esi]
mov byte [ebp - 0x50], al
call fcn.10002424
push dword [0x100d6d18]
lea ecx, [ebp - 0x50]
push ebx
push esi
call fcn.10003585
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 0xb
cmp eax, ebx
jne 0x10046c4d
mov eax, 0x100d6d1c
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [ebp - 0x94], eax
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xa
call fcn.10002424
mov ecx, dword [ebp - 0x58]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x10046c7b
call fcn.10002801
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x98]
push eax
call sub.iphlpapi.dll_CreateIpForwardEntry
cmp eax, ebx
je 0x10046ef5
push str.add
lea ecx, [ebp + 8]
call fcn.10002736
push dword [ebp - 0x14]
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 0xc
push edi
push eax
call fcn.100598b6
add esp, 0xc
mov ecx, dword [eax]
mov byte [ebp - 4], 0xd
cmp ecx, ebx
je 0x10046cc4
call fcn.1000886e
jmp 0x10046cc6
xor eax, eax
mov ecx, dword [ebp + 0xc]
push eax
call fcn.100420b1
mov esi, eax
push 4
mov ecx, esi
call fcn.1006e74a
mov esi, dword [esi]
push ebx
lea ecx, [ebp - 0xa8]
mov al, byte [esi]
mov byte [ebp - 0xa8], al
call fcn.10002424
push dword [0x100d6d18]
lea ecx, [ebp - 0xa8]
push ebx
push esi
call fcn.10003585
mov eax, dword [ebp - 0xa4]
mov byte [ebp - 4], 0xe
cmp eax, ebx
jne 0x10046d16
mov eax, 0x100d6d1c
push eax
lea ecx, [ebp - 0x28]
call fcn.10002736
lea eax, [ebp - 0x28]
lea ecx, [ebp + 8]
push eax
mov byte [ebp - 4], 0xf
call fcn.10003a64
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 4], 0xe
cmp ecx, ebx
je 0x10046d42
call fcn.10002801
mov dword [ebp - 0x28], ebx
push 1
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0xd
call fcn.10002424
mov ecx, dword [ebp - 0x54]
mov byte [ebp - 4], 0xc
cmp ecx, ebx
je 0x10046d66
call fcn.10002801
mov dword [ebp - 0x54], ebx
push str._mask
lea ecx, [ebp - 0x2c]
call fcn.10002736
lea eax, [ebp - 0x2c]
lea ecx, [ebp + 8]
push eax
mov byte [ebp - 4], 0x10
call fcn.10003a64
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0xc
cmp ecx, ebx
je 0x10046d96
call fcn.10002801
mov dword [ebp - 0x2c], ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push str.mask_d
push eax
call fcn.100598b6
add esp, 0xc
mov ecx, dword [eax]
mov byte [ebp - 4], 0x11
cmp ecx, ebx
je 0x10046dbb
call fcn.1000886e
jmp 0x10046dbd
xor eax, eax
mov ecx, dword [ebp + 0xc]
push eax
call fcn.100420b1
mov esi, eax
push 4
mov ecx, esi
call fcn.1006e74a
mov esi, dword [esi]
push ebx
lea ecx, [ebp - 0xb8]
mov al, byte [esi]
mov byte [ebp - 0xb8], al
call fcn.10002424
push dword [0x100d6d18]
lea ecx, [ebp - 0xb8]
push ebx
push esi
call fcn.10003585
mov eax, dword [ebp - 0xb4]
mov byte [ebp - 4], 0x12
cmp eax, ebx
jne 0x10046e0d
mov eax, 0x100d6d1c
push eax
lea ecx, [ebp - 0x30]
call fcn.10002736
lea eax, [ebp - 0x30]
lea ecx, [ebp + 8]
push eax
mov byte [ebp - 4], 0x13
call fcn.10003a64
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 4], 0x12
cmp ecx, ebx
je 0x10046e39
call fcn.10002801
mov dword [ebp - 0x30], ebx
push 1
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0x11
call fcn.10002424
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 0xc
cmp ecx, ebx
je 0x10046e5d
call fcn.10002801
mov dword [ebp - 0x24], ebx
push 0x100fba24
lea ecx, [ebp - 0x18]
call fcn.10002736
lea eax, [ebp - 0x18]
lea ecx, [ebp + 8]
push eax
mov byte [ebp - 4], 0x14
call fcn.10003a64
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 0xc
cmp ecx, ebx
je 0x10046e8d
call fcn.10002801
mov dword [ebp - 0x18], ebx
push dword [ebp - 0x20]
lea ecx, [ebp + 8]
call fcn.10003a64
lea ecx, [ebp + 8]
call fcn.10003ab9
push ecx
mov ecx, esp
mov dword [ebp - 0xbc], esp
push eax
call fcn.100c10db
push ecx
mov byte [ebp - 4], 0x15
mov ecx, esp
mov dword [ebp - 0xc0], esp
push str.route
call fcn.100c10db
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0xc
push eax
call fcn.10040f11
add esp, 0xc
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xc
call fcn.100c1067
mov ecx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x10046ef5
call fcn.10002801
mov dword [ebp + 8], ebx
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x1c]
jl 0x10046b42
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8