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

Disassembly:
sub esp, 0x218
mov eax, dword [0x100d95f0]
xor eax, esp
mov dword [esp + 0x214], eax
mov eax, dword [esp + 0x21c]
push ebx
push ebp
push esi
push edi
mov edi, dword [eax]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
movzx ebp, word [edi + 0x180]
mov esi, dword [edi + 0x394]
push 0xff
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x184]
lea ecx, [esp + 0x129]
push ebx
push ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], eax
mov byte [esp + 0x130], bl
call fcn.10088b00
add esp, 0xc
cmp esi, ebx
jne 0x1005bb54
cmp bp, bx
je 0x1005bf1e
push 0x80
lea edx, [esp + 0x28]
push ebx
push edx
call fcn.10088b00
add esp, 0xc
test esi, esi
je 0x1005bde4
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005bb74
sub eax, edx
cmp eax, 0xff
jae 0x1005bde4
mov edx, dword [0x100d9014]
mov eax, edx
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005bb93
sub eax, ebp
push eax
push esi
push edx
call fcn.10086da0
add esp, 0xc
test eax, eax
jne 0x1005bc14
mov eax, dword [0x100d9014]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005bbb3
sub eax, edx
add esi, eax
mov ebx, 1
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 0x88]
mov ebp, dword [esp + 0x234]
push 0x100
lea eax, [esp + 0x128]
push eax
push esi
push edx
push ebp
call sym.__f425c2d2f0184a739725f4d6c646cf09.dll___62725529c38447f08b02d826b54c2ad2
add esp, 0x14
sub eax, 0
je 0x1005bc57
dec eax
je 0x1005bc4d
dec eax
jne 0x1005bc6f
push ebp
lea eax, [esp + 0x128]
push eax
push esi
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push edi
call fcn.10059500
add esp, 0x14
jmp 0x1005bd32
mov edx, dword [str.host_]
mov eax, edx
lea ebp, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005bc20
sub eax, ebp
push eax
push esi
push edx
call fcn.10086da0
add esp, 0xc
test eax, eax
jne 0x1005bbc3
mov eax, dword [str.host_]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1005bc40
sub eax, edx
add esi, eax
jmp 0x1005bc77
mov eax, 1
jmp 0x1005bf50
test ebx, ebx
je 0x1005bc77
push esi
push str.Couldnt_bind_to_interface__s
push edi
call fcn.10059590
add esp, 0xc
jmp 0x1005bf4b
test ebx, ebx
jne 0x1005bdd0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x234]
mov ebp, dword [ecx + 0x2c8]
mov ebx, ecx
cmp eax, 2
jne 0x1005bc9b
mov dword [ebx + 0x2c8], 1
jmp 0x1005bcac
cmp eax, 0x17
jne 0x1005bcac
mov edx, ecx
mov dword [edx + 0x2c8], 2
lea eax, [esp + 0x1c]
push eax
push 0
push esi
push ebx
call fcn.10050540
add esp, 0x10
cmp eax, 1
jne 0x1005bcd0
lea ecx, [esp + 0x1c]
push ecx
push ebx
call fcn.1004f660
add esp, 8
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x2c8], ebp
test eax, eax
je 0x1005bdd0
mov eax, dword [eax]
push 0x100
lea edx, [esp + 0x128]
push edx
push eax
call fcn.10050290
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x240]
push eax
lea ecx, [esp + 0x134]
push ecx
push edx
push esi
push str.Name__s_family__i_resolved_to__s_family__i_n
push edi
call fcn.10059500
mov eax, dword [esp + 0x40]
push eax
push edi
call fcn.10050750
mov ebp, dword [esp + 0x260]
add esp, 0x2c
cmp ebp, 0x17
jne 0x1005bda6
lea ecx, [esp + 0x124]
push 0x25
push ecx
call fcn.10087220
mov esi, eax
add esp, 8
test esi, esi
je 0x1005bd53
mov byte [esi], 0
inc esi
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x128]
push eax
push 0x17
call fcn.1005d7c0
add esp, 0xc
test eax, eax
jle 0x1005bd99
mov edx, dword [esp + 0x18]
mov ecx, 0x17
push edx
mov word [esp + 0x28], cx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x26], ax
test esi, esi
je 0x1005bd99
push esi
call fcn.10086eed
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], 0x1c
jmp 0x1005be2b
cmp ebp, 2
jne 0x1005be2b
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x128]
push ecx
push ebp
call fcn.1005d7c0
add esp, 0xc
test eax, eax
jle 0x1005be2b
mov eax, dword [esp + 0x18]
push eax
jmp 0x1005be0e
push esi
push str.Couldnt_bind_to__s
push edi
call fcn.10059590
add esp, 0xc
jmp 0x1005bf4b
mov eax, dword [esp + 0x234]
cmp eax, 0x17
jne 0x1005be08
mov ecx, eax
push ebp
mov word [esp + 0x28], cx
call dword [sym.imp.WS2_32.dll_htons]
mov dword [esp + 0x14], 0x1c
jmp 0x1005be26
cmp eax, 2
jne 0x1005be2b
push ebp
mov edx, 2
mov word [esp + 0x28], dx
call dword [sym.imp.WS2_32.dll_htons]
mov dword [esp + 0x14], 0x10
mov word [esp + 0x26], ax
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x230]
mov ebp, dword [sym.imp.WS2_32.dll_bind]
push eax
lea ecx, [esp + 0x28]
push ecx
push edx
call ebp
test eax, eax
jns 0x1005be9c
mov esi, dword [sym.imp.WS2_32.dll_ntohs]
nop
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
test eax, eax
jle 0x1005bf22
mov ebx, dword [esp + 0x18]
movzx eax, bx
push eax
push str.Bind_to_local_port__hu_failed__trying_next_n
push edi
call fcn.10059500
add esp, 0xc
inc ebx
push ebx
mov dword [esp + 0x1c], ebx
call esi
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
mov word [esp + 0x2a], ax
mov eax, dword [esp + 0x234]
push edx
push eax
call ebp
test eax, eax
js 0x1005be50
push 0x80
lea ecx, [esp + 0xa8]
push 0
push ecx
mov dword [esp + 0x2c], 0x80
call fcn.10088b00
mov ecx, dword [esp + 0x23c]
add esp, 0xc
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0xa8]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jns 0x1005befc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
mov esi, eax
push esi
push edx
mov dword [edi + 0x85ec], esi
call fcn.1004d0b0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x1005bf42
movzx eax, word [esp + 0x18]
push eax
push str.Local_port:__hu_n
push edi
call fcn.10059500
mov ecx, dword [esp + 0x1c]
add esp, 0xc
mov dword [ecx + 0x2a8], 1
xor eax, eax
jmp 0x1005bf50
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, dword [esp + 0x10]
mov esi, eax
push esi
push edx
mov dword [edi + 0x85ec], esi
call fcn.1004d0b0
push eax
push esi
push str.bind_failed_with_errno__d:__s
push edi
call fcn.10059590
add esp, 0x18
mov eax, 0x2d
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10088aee
add esp, 0x218
ret