Function at 0x4f82e0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x90
mov eax, dword [0x632f90]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
mov ebx, dword [esp + 0x98]
push ebp
mov ebp, dword [esp + 0xa8]
push esi
or ebp, 0x10
mov dword [esp + 0x10], 0x80
push edi
test ebx, ebx
je 0x4f8564
push ebx
call fcn.00502420
add esp, 4
test eax, eax
je 0x4f8564
mov eax, dword [esp + 0xb4]
mov edi, dword [esp + 0xb8]
test eax, eax
jle 0x4f833f
push eax
jmp 0x4f8346
jns 0x4f8355
push 0x80
push edi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
js 0x4f8564
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4f837d
push str.getsockname
push edi
call fcn.004fdb30
add esp, 8
jmp 0x4f8564
push 0x3c
push 1
call fcn.004ef2c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4f839e
push 0x62bed4
call fcn.004fda00
jmp 0x4f8561
mov eax, dword [esp + 0xa8]
mov dword [esi + 8], eax
mov eax, dword [esp + 0xac]
mov dword [esi + 0x10], eax
mov eax, 1
or dword [esi + 0x20], eax
push ebx
mov dword [esi], 0x5c40fc
mov dword [esi + 0x14], ebp
mov word [esi + 0x18], ax
call fcn.00502420
push 1
push edi
push eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], ebx
call fcn.00502320
add esp, 0x10
test eax, eax
js 0x4f855b
push 1
call fcn.004feb50
mov dword [esi + 4], eax
mov eax, 4
push eax
push eax
mov word [esi + 0x30], ax
call fcn.004ef2c0
add esp, 0xc
mov dword [esi + 0x38], eax
test eax, eax
jne 0x4f841d
push str.calloc
call fcn.004fda00
jmp 0x4f8546
xor eax, eax
xor ebx, ebx
cmp ax, word [esi + 0x30]
jge 0x4f84fe
mov ebp, dword [esp + 0xa8]
movzx eax, word [esp + 0x1c]
mov dword [esp + 0x18], eax
cmp eax, 2
jne 0x4f844c
mov byte [esp + 0x13], 0x40
mov eax, 0x9b
jmp 0x4f845f
cmp eax, 0x17
jne 0x4f84ca
mov byte [esp + 0x13], 0x58
mov eax, 0xb3
push eax
push 1
call fcn.004ef2c0
mov edi, eax
add esp, 8
test edi, edi
je 0x4f84ca
lea eax, [edi + 0x18]
push fcn.004f8880
push eax
call fcn.00502090
mov al, byte [esp + 0x1b]
add esp, 8
mov byte [edi + 0x50], al
mov eax, dword [esp + 0x18]
mov dword [edi + 0x30], 0xffffffff
push edi
mov dword [edi + 0x4c], esi
mov byte [edi + 0x51], al
push 0x4f8970
push dword [esi + 0x28]
call fcn.004ee6c0
cdq
add esp, 4
sub eax, edx
sar eax, 1
push eax
lea eax, [edi + 0x38]
push eax
call fcn.004ef880
add esp, 0x10
push 0x3e8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
jmp 0x4f84cc
xor edi, edi
mov eax, dword [esi + 0x38]
mov dword [eax + ebx*4], edi
mov eax, dword [esi + 0x38]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x4f8531
test ebp, ebp
je 0x4f84ed
push eax
call fcn.004f8c80
add esp, 4
test eax, eax
js 0x4f850b
inc word [esi + 0x18]
inc ebx
movsx eax, word [esi + 0x30]
cmp ebx, eax
jl 0x4f8432
push esi
call fcn.004f8b70
add esp, 4
mov eax, esi
jmp 0x4f8566
push str.Couldnt_start_accepting_on_socket
call fcn.004fdc50
mov eax, dword [esi + 0x38]
add esp, 4
push dword [eax + ebx*4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x38]
push dword [eax + ebx*4]
call fcn.004f8c50
jmp 0x4f853b
push str.Couldnt_create_accepting_socket
call fcn.004fdc50
add esp, 4
push dword [esi + 0x38]
call fcn.004ef3b0
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x4f855b
push 1
push eax
call fcn.004feb80
add esp, 8
push esi
call fcn.004ef3b0
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00526f37
add esp, 0x90
ret