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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push esi
push edi
lea edi, [ebp - 0x268]
mov ecx, 0x9a
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4cfaa8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
lea edx, [ebp - 0x8c]
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x98], 0
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0xa4], 0
mov ecx, dword [ebp - 8]
mov dx, word [ecx + 0x1a8]
mov word [ebp - 0xac], dx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1ac]
mov dword [ebp - 0xb0], ecx
mov edx, 4
shl edx, 3
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx + 0x528]
mov dword [ebp - 0xb4], ecx
cmp dword [ebp - 0xb4], 0
jne 0x44143e
movzx edx, word [ebp - 0xac]
test edx, edx
jne 0x44143e
xor eax, eax
jmp 0x4419c9
push 0x80
push 0
lea eax, [ebp - 0x8c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [ebp - 0xb4], 0
je 0x4417c8
mov ecx, dword [ebp - 0xb4]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xff
jae 0x4417c8
mov dl, byte [0x4d1e38]
mov byte [ebp - 0x1bc], dl
push 0xff
push 0
lea eax, [ebp - 0x1bb]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1c4], 0
mov byte [ebp - 0x1c5], 0
mov byte [ebp - 0x1c6], 0
mov ecx, dword [0x4c49b8]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, esp
push eax
mov edx, dword [ebp - 0xb4]
push edx
mov eax, dword [0x4c49b8]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
cmp esi, esp
call fcn.004a9923
test eax, eax
jne 0x44150c
mov ecx, dword [0x4c49b8]
push ecx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add eax, dword [ebp - 0xb4]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 0x1c5], 1
jmp 0x441562
mov edx, dword [str.host_]
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov esi, esp
push eax
mov eax, dword [ebp - 0xb4]
push eax
mov ecx, dword [str.host_]
push ecx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
cmp esi, esp
call fcn.004a9923
test eax, eax
jne 0x441562
mov edx, dword [str.host_]
push edx
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
add eax, dword [ebp - 0xb4]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 0x1c6], 1
movzx eax, byte [ebp - 0x1c6]
test eax, eax
jne 0x44162e
push 0x100
lea ecx, [ebp - 0x1bc]
push ecx
mov edx, dword [ebp - 0xb4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x90]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.0047cfc0
add esp, 0x18
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x268], 0
je 0x4415c1
cmp dword [ebp - 0x268], 1
je 0x4415f0
cmp dword [ebp - 0x268], 2
je 0x4415fa
jmp 0x44162e
movzx ecx, byte [ebp - 0x1c5]
test ecx, ecx
je 0x4415ee
mov edx, dword [ebp - 0xb4]
push edx
push str.Couldnt_bind_to_interface__s
mov eax, dword [ebp - 8]
push eax
call fcn.0043e100
add esp, 0xc
mov eax, 0x2d
jmp 0x4419c9
jmp 0x44162e
mov eax, 1
jmp 0x4419c9
mov byte [ebp - 0x1c5], 1
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x1bc]
push edx
mov eax, dword [ebp - 0xb4]
push eax
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
mov ecx, dword [ebp - 8]
push ecx
call fcn.0043e010
add esp, 0x14
mov dword [ebp - 0x1c4], 1
movzx edx, byte [ebp - 0x1c5]
test edx, edx
jne 0x44172a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2d0]
mov dword [ebp - 0x1cc], ecx
cmp dword [ebp + 0x10], 2
jne 0x44165f
mov edx, dword [ebp + 8]
mov dword [edx + 0x2d0], 1
lea eax, [ebp - 0xa4]
push eax
push 0
mov ecx, dword [ebp - 0xb4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042c5c0
add esp, 0x10
mov dword [ebp - 0x1d0], eax
cmp dword [ebp - 0x1d0], 1
jne 0x44169d
lea eax, [ebp - 0xa4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042bae0
add esp, 8
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1cc]
mov dword [edx + 0x2d0], eax
cmp dword [ebp - 0xa4], 0
je 0x441720
push 0x100
lea ecx, [ebp - 0x1bc]
push ecx
mov edx, dword [ebp - 0xa4]
mov eax, dword [edx]
push eax
call fcn.0042ca00
add esp, 0xc
mov ecx, dword [ebp - 0xa4]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push eax
lea ecx, [ebp - 0x1bc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0xb4]
push eax
push str.Name__s_family__i_resolved_to__s_family__i_n
mov ecx, dword [ebp - 8]
push ecx
call fcn.0043e010
add esp, 0x18
mov edx, dword [ebp - 0xa4]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.0042c860
add esp, 8
mov dword [ebp - 0x1c4], 1
jmp 0x44172a
mov dword [ebp - 0x1c4], 0xffffffff
cmp dword [ebp - 0x1c4], 0
jle 0x441791
cmp dword [ebp + 0x10], 2
jne 0x441791
mov ecx, dword [ebp - 0x9c]
add ecx, 4
push ecx
lea edx, [ebp - 0x1bc]
push edx
push 2
call fcn.00457420
add esp, 0xc
test eax, eax
jle 0x441791
mov eax, 2
mov ecx, dword [ebp - 0x9c]
mov word [ecx], ax
mov esi, esp
movzx edx, word [ebp - 0xac]
push edx
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call fcn.004a9923
mov ecx, dword [ebp - 0x9c]
mov word [ecx + 2], ax
mov dword [ebp - 0x98], 0x10
cmp dword [ebp - 0x1c4], 1
jge 0x4417c6
mov edx, dword [ebp - 8]
mov byte [edx + 0x48b0], 0
mov eax, dword [ebp - 0xb4]
push eax
push str.Couldnt_bind_to__s
mov ecx, dword [ebp - 8]
push ecx
call fcn.0043e100
add esp, 0xc
mov eax, 0x2d
jmp 0x4419c9
jmp 0x441807
cmp dword [ebp + 0x10], 2
jne 0x441807
mov edx, 2
mov eax, dword [ebp - 0x9c]
mov word [eax], dx
mov esi, esp
movzx ecx, word [ebp - 0xac]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
cmp esi, esp
call fcn.004a9923
mov edx, dword [ebp - 0x9c]
mov word [edx + 2], ax
mov dword [ebp - 0x98], 0x10
mov esi, esp
mov eax, dword [ebp - 0x98]
push eax
mov ecx, dword [ebp - 0x94]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_bind]
cmp esi, esp
call fcn.004a9923
test eax, eax
jl 0x4418f9
mov dword [ebp - 0x260], 0x80
push 0x80
push 0
lea eax, [ebp - 0x254]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov esi, esp
lea ecx, [ebp - 0x260]
push ecx
lea edx, [ebp - 0x254]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
cmp esi, esp
call fcn.004a9923
test eax, eax
jge 0x4418cf
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0xb8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0xb8]
mov dword [ecx + 0x48b4], edx
mov eax, dword [ebp - 0xb8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041d3e0
add esp, 8
push eax
mov edx, dword [ebp - 0xb8]
push edx
push 0x4c4a6c
mov eax, dword [ebp - 8]
push eax
call fcn.0043e100
add esp, 0x10
mov eax, 0x2d
jmp 0x4419c9
movzx ecx, word [ebp - 0xac]
push ecx
push str.Local_port:__hu_n
mov edx, dword [ebp - 8]
push edx
call fcn.0043e010
add esp, 0xc
mov eax, dword [ebp + 8]
mov byte [eax + 0x29b], 1
xor eax, eax
jmp 0x4419c9
mov ecx, dword [ebp - 0xb0]
sub ecx, 1
mov dword [ebp - 0xb0], ecx
cmp dword [ebp - 0xb0], 0
jle 0x44196d
movzx edx, word [ebp - 0xac]
push edx
push str.Bind_to_local_port__hu_failed__trying_next_n
mov eax, dword [ebp - 8]
push eax
call fcn.0043e010
add esp, 0xc
mov cx, word [ebp - 0xac]
add cx, 1
mov word [ebp - 0xac], cx
mov edx, dword [ebp - 0x94]
movzx eax, word [edx]
cmp eax, 2
jne 0x44196b
mov esi, esp
movzx ecx, word [ebp - 0xac]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
cmp esi, esp
call fcn.004a9923
mov edx, dword [ebp - 0x9c]
mov word [edx + 2], ax
jmp 0x44196f
jmp 0x441974
jmp 0x441807
mov esi, esp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xb8]
mov dword [eax + 0x48b4], ecx
mov edx, dword [ebp - 0xb8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0041d3e0
add esp, 8
push eax
mov ecx, dword [ebp - 0xb8]
push ecx
push str.bind_failed_with_errno__d:__s
mov edx, dword [ebp - 8]
push edx
call fcn.0043e100
add esp, 0x10
mov eax, 0x2d
push edx
mov ecx, ebp
push eax
lea edx, [0x4419f8]
call fcn.004a98cf
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a93ad
add esp, 0x268
cmp ebp, esp
call fcn.004a9923
mov esp, ebp
pop ebp
ret