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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x23c], ecx
mov ecx, dword [ebp + 0xc]
cmp dword [eax + 0x14], 0
push esi
mov dword [ebp - 0x238], ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x240], ecx
je 0x446fb1
or eax, 0xffffffff
jmp 0x4471e3
mov eax, dword [ebp + 0x14]
xor edi, edi
inc edi
push 2
pop ecx
cmp eax, edi
je 0x446fc2
cmp eax, ecx
jne 0x446fa9
push 6
push edi
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
or esi, 0xffffffff
cmp ebx, esi
jne 0x446fdc
mov eax, esi
jmp 0x4471e3
xor eax, eax
mov dword [ebp - 0x244], edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
mov dword [ebp - 0x234], eax
lea eax, [ebp - 0x244]
push eax
push 4
push 0xffff
push ebx
call edi
cmp eax, esi
jne 0x447010
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x446fd5
push 4
lea eax, [ebp - 0x234]
push eax
push 0x80
push 0xffff
push ebx
call edi
cmp eax, esi
je 0x447007
xor eax, eax
lea edi, [ebp - 0x22a]
stosd dword es:[edi], eax
push 0x14
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
pop eax
push 2
mov word [ebp - 0x22a], ax
pop eax
mov word [ebp - 0x22c], ax
lea eax, [ebp - 0x22c]
push 0x10
push eax
push ebx
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, esi
je 0x447007
push 1
push ebx
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
js 0x447007
xor eax, eax
mov dword [ebp - 0x248], 0x10
mov word [ebp - 0x21c], ax
lea edi, [ebp - 0x21a]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x4470aa
xor eax, eax
jmp 0x4471e3
movsx eax, byte [ebp - 0x219]
push eax
movsx eax, byte [ebp - 0x21a]
push eax
movsx eax, byte [ebp - 0x215]
push eax
movsx eax, byte [ebp - 0x216]
push eax
movsx eax, byte [ebp - 0x217]
push eax
movsx eax, byte [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push str.PORT__d__d__d__d__d__d
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
mov edi, dword [ebp - 0x230]
lea eax, [ebp - 0x20c]
add esp, 0x20
push edi
push 0x32
push eax
call fcn.00446a14
test eax, eax
je 0x447007
mov eax, dword [ebp - 0x23c]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x440]
test eax, eax
je 0x44714f
push eax
lea eax, [ebp - 0x10c]
push str.REST__lld
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0xc
lea eax, [ebp - 0x10c]
push edi
push 0x33
push eax
call fcn.00446a14
test eax, eax
jne 0x44714f
xor esi, esi
jmp 0x447007
push 0x448
call dword [sym.imp.msvcrt.dll_void____cdecl_operator_new_unsigned_int_]
mov edi, eax
pop ecx
test edi, edi
je 0x44716a
mov ecx, edi
call fcn.004c56bd
jmp 0x44716c
xor edi, edi
test edi, edi
je 0x447007
push 0x448
push 0
push edi
call dword [sym.imp.msvcrt.dll_memset]
add esp, 0xc
push dword [ebp - 0x230]
push 0x31
push dword [ebp - 0x240]
call fcn.00446a14
test eax, eax
jne 0x4471b1
mov ebx, dword [ebp - 0x238]
push dword [ebx]
call fcn.00447582
and dword [ebx], 0
jmp 0x446fd5
mov eax, dword [ebp + 0x14]
xor ecx, ecx
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x230]
mov dword [edi + 0x18], ebx
mov ebx, dword [ebp - 0x238]
cmp dword [eax + 0x34], 1
cmove ecx, eax
mov dword [edi + 0x30], ecx
mov ecx, dword [eax + 0x38]
mov dword [edi + 0x38], ecx
mov ecx, dword [eax + 0x3c]
xor eax, eax
mov dword [edi + 0x3c], ecx
inc eax
mov dword [ebx], edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret 0x14