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

Disassembly:
sub esp, 0x29c
mov eax, dword [0x6204e0]
xor eax, esp
mov dword [esp + 0x298], eax
mov eax, dword [esp + 0x2a0]
push ebx
mov ebx, dword [eax]
push ebp
xor ebp, ebp
push esi
mov dword [esp + 0xc], ebp
mov esi, dword [ebx + 0x9c4]
push edi
movzx edi, word [ebx + 0x600]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x604]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x24], eax
cmp esi, ebp
jne 0x48d927
cmp di, bp
je 0x48dd77
push 0x80
lea ecx, [esp + 0x2c]
push ebp
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
cmp esi, ebp
je 0x48dd02
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48d947
sub eax, edx
cmp eax, 0xff
jae 0x48dd02
push 0xff
lea edx, [esp + 0xad]
push ebp
push edx
mov byte [esp + 0xb4], cl
call sub.MSVCR90.dll_memset
mov edx, dword [0x618930]
mov eax, edx
add esp, 0xc
mov dword [esp + 0x1c], ebp
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48d987
sub eax, edi
mov edi, dword [sym.imp.MSVCR90.dll_strncmp]
push eax
push esi
push edx
call edi
add esp, 0xc
test eax, eax
jne 0x48d9c2
mov eax, dword [0x618930]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48d9b0
sub eax, edx
add esi, eax
mov ebp, 1
jmp 0x48da0b
mov edx, dword [str.host_]
mov eax, edx
lea ebp, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48d9d0
sub eax, ebp
push eax
push esi
push edx
call edi
add esp, 0xc
test eax, eax
jne 0x48da07
mov eax, dword [str.host_]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48d9f0
mov edi, dword [esp + 0x2b8]
sub eax, edx
add esi, eax
jmp 0x48da92
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x2f4]
mov edi, dword [esp + 0x2b8]
push 0x100
lea eax, [esp + 0xac]
push eax
mov eax, dword [esp + 0x2c4]
push esi
push edx
push eax
push edi
call fcn.00524c10
add esp, 0x18
sub eax, 0
je 0x48da72
sub eax, 1
je 0x48da68
sub eax, 1
jne 0x48da8a
push edi
lea ecx, [esp + 0xac]
push ecx
push esi
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push ebx
call fcn.00489260
add esp, 0x14
jmp 0x48db4d
mov eax, 1
jmp 0x48ddb1
test ebp, ebp
je 0x48da92
push esi
push str.Couldnt_bind_to_interface__s
push ebx
call fcn.00489340
add esp, 0xc
jmp 0x48ddac
test ebp, ebp
jne 0x48dce4
mov ebp, dword [esp + 0x20]
mov edx, dword [ebp + 0x5d0]
mov dword [esp + 0x1c], edx
cmp edi, 2
jne 0x48dab1
mov dword [ebp + 0x5d0], 1
jmp 0x48dac0
cmp edi, 0x17
jne 0x48dac0
mov dword [ebp + 0x5d0], 2
lea eax, [esp + 0x10]
push eax
push 0
push 0
push esi
push ebp
call fcn.004afc60
add esp, 0x14
cmp eax, 1
jne 0x48dae6
lea ecx, [esp + 0x10]
push ecx
push ebp
call fcn.0047fbf0
add esp, 8
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov dword [ebp + 0x5d0], edx
test eax, eax
je 0x48dce4
mov edx, dword [eax]
push 0x100
lea ecx, [esp + 0xac]
push ecx
push edx
call fcn.004af1d0
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
push edx
lea eax, [esp + 0xb8]
push eax
push edi
push esi
push str.Name__s_family__i_resolved_to__s_family__i_n
push ebx
call fcn.00489260
mov ecx, dword [esp + 0x34]
push ecx
push ebx
call fcn.004aff00
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
add esp, 0x2c
cmp edi, dword [eax + 4]
jne 0x48da68
cmp edi, 0x17
jne 0x48dc99
lea ecx, [esp + 0xa8]
push 0x25
push ecx
call dword [sym.imp.MSVCR90.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x48db73
mov byte [esi], 0
inc esi
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0xac]
push eax
push 0x17
call fcn.004b5b60
add esp, 0xc
test eax, eax
jle 0x48dbba
mov edx, dword [esp + 0x18]
mov ecx, 0x17
push edx
mov word [esp + 0x2c], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
test esi, esi
je 0x48dbba
push esi
call dword [sym.imp.MSVCR90.dll_atoi]
add esp, 4
mov dword [esp + 0x40], eax
mov dword [esp + 0x14], 0x1c
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x2b4]
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jge 0x48dc31
mov ebp, dword [sym.imp.WS2_32.dll_ntohs]
jmp 0x48dbf0
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
test eax, eax
jle 0x48dd7b
movzx edx, di
push edx
push str.Bind_to_local_port__hu_failed__trying_next_n
push ebx
call fcn.00489260
add esp, 0xc
inc edi
push edi
call ebp
mov word [esp + 0x2a], ax
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jl 0x48dbf0
push 0x80
lea edx, [esp + 0xac]
push 0
push edx
mov dword [esp + 0x28], 0x80
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xac]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x48dd57
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea edx, [esp + 0x1ac]
mov esi, eax
push edx
push esi
mov dword [ebx + 0xe54], esi
call fcn.004b55d0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x48dda3
cmp edi, 2
jne 0x48dbc2
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0xac]
push ecx
push edi
call fcn.004b5b60
add esp, 0xc
test eax, eax
jle 0x48dbc2
mov eax, dword [esp + 0x18]
mov edx, edi
push eax
mov word [esp + 0x2c], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x14], 0x10
jmp 0x48dbc2
push esi
push str.Couldnt_bind_to__s
push ebx
mov dword [ebx + 0x1188], 0
call fcn.00489340
add esp, 0xc
jmp 0x48ddac
mov eax, dword [esp + 0x2b8]
cmp eax, 0x17
jne 0x48dd2e
mov ecx, eax
push edi
mov word [esp + 0x2c], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x14], 0x1c
jmp 0x48dbc6
cmp eax, 2
jne 0x48dbc6
mov edx, eax
push edi
mov word [esp + 0x2c], dx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2a], ax
mov dword [esp + 0x14], 0x10
jmp 0x48dbc6
movzx eax, di
push eax
push str.Local_port:__hu_n
push ebx
call fcn.00489260
mov ecx, dword [esp + 0x2c]
add esp, 0xc
mov dword [ecx + 0x58c], 1
xor eax, eax
jmp 0x48ddb1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea edx, [esp + 0x1ac]
mov esi, eax
push edx
push esi
mov dword [ebx + 0xe54], esi
call fcn.004b55d0
push eax
push esi
push str.bind_failed_with_errno__d:__s
push ebx
call fcn.00489340
add esp, 0x1c
mov eax, 0x2d
mov ecx, dword [esp + 0x2a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0058ecc6
add esp, 0x29c
ret