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

Disassembly:
sub esp, 0x190
mov eax, dword [esp + 0x194]
push ebx
xor edx, edx
push ebp
mov ebx, dword [eax]
push esi
mov dword [esp + 0x10], edx
push edi
mov esi, dword [ebx + 0x42c]
mov ecx, dword [ebx + 0x17c]
mov bp, word [ebx + 0x178]
cmp esi, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
jne 0x10002bfa
cmp bp, dx
jne 0x10002bfa
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x190
ret
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0x20]
cmp esi, edx
rep stosd dword es:[edi], eax
je 0x10002e5a
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xff
jae 0x10002e5a
mov al, byte [0x100437b4]
mov ecx, 0x3f
mov byte [esp + 0xa0], al
xor eax, eax
lea edi, [esp + 0xa1]
mov dword [esp + 0x10], edx
rep stosd dword es:[edi], eax
mov edx, dword [0x1003c0c4]
or ecx, 0xffffffff
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x10002ce9
mov edi, dword [0x1003c0c4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], 1
add esi, ecx
mov edi, dword [esp + 0x1a4]
mov eax, dword [esp + 0x1b0]
lea ecx, [esp + 0xa0]
push 0x100
mov edx, dword [edi + 0x88]
push ecx
mov ecx, dword [esp + 0x1b4]
push esi
push edx
push eax
push ecx
call sym.libcurl.dll_curl_pushheader_byname
add esp, 0x18
sub eax, 0
je 0x10002d38
dec eax
je 0x10002d28
dec eax
jne 0x10002d5f
mov edx, dword [esp + 0x1ac]
lea eax, [esp + 0xa0]
push edx
push eax
push esi
push str.Local_Interface__s_is_ip__s_using_address_family__i_n
push ebx
call fcn.100243c0
add esp, 0x14
jmp 0x10002e0a
mov edx, dword [str.host_]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
push edx
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x10002c82
mov edi, dword [str.host_]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x1a4]
not ecx
dec ecx
add esi, ecx
jmp 0x10002d6b
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x190
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10002d6b
push esi
push str.Couldnt_bind_to_interface__s
push ebx
call fcn.10024430
add esp, 0xc
mov eax, 0x2d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x10002e3b
mov eax, dword [esp + 0x1ac]
mov ecx, dword [edi + 0x310]
cmp eax, 2
mov dword [esp + 0x10], ecx
jne 0x10002d8b
mov dword [edi + 0x310], 1
lea edx, [esp + 0x14]
push edx
push 0
push esi
push edi
call fcn.10012470
add esp, 0x10
cmp eax, 1
jne 0x10002daf
lea eax, [esp + 0x14]
push eax
push edi
call fcn.10001120
add esp, 8
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
test eax, eax
mov dword [edi + 0x310], ecx
je 0x10002e3b
mov eax, dword [eax]
lea edx, [esp + 0xa0]
push 0x100
push edx
push eax
call fcn.10012160
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
lea ecx, [esp + 0xac]
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x1b8]
push eax
push ecx
push edx
push esi
push str.Name__s_family__i_resolved_to__s_family__i_n
push ebx
call fcn.100243c0
mov eax, dword [esp + 0x38]
push eax
push ebx
call fcn.10012630
add esp, 0x2c
mov eax, dword [esp + 0x1ac]
mov esi, 2
cmp eax, esi
jne 0x10002e7f
lea ecx, [esp + 0x24]
lea edx, [esp + 0xa0]
push ecx
push edx
push esi
call fcn.1001a020
add esp, 0xc
test eax, eax
jle 0x10002e7f
mov word [esp + 0x20], si
jmp 0x10002e6b
push esi
push str.Couldnt_bind_to__s
push ebx
call fcn.10024430
add esp, 0xc
mov eax, 0x2d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret
cmp dword [esp + 0x1ac], 2
jne 0x10002e7f
mov word [esp + 0x20], 2
push ebp
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x22], ax
mov dword [esp + 0x1c], 0x10
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x1a8]
mov edi, dword [sym.imp.WS2_32.dll_bind]
lea ecx, [esp + 0x20]
push eax
push ecx
push esi
call edi
test eax, eax
jge 0x10002eeb
mov eax, dword [esp + 0x18]
dec eax
test eax, eax
mov dword [esp + 0x18], eax
jle 0x10002f73
mov edx, ebp
and edx, 0xffff
push edx
push str.Bind_to_local_port__hu_failed__trying_next_n
push ebx
call fcn.100243c0
add esp, 0xc
inc ebp
cmp word [esp + 0x20], 2
jne 0x10002eda
push ebp
call dword [sym.imp.WS2_32.dll_ntohs]
mov word [esp + 0x22], ax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push ecx
push esi
call edi
test eax, eax
jl 0x10002e9d
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0xa0]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xa0]
push edx
push eax
push esi
mov dword [esp + 0x24], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jge 0x10002f40
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [esp + 0x1a4]
mov esi, eax
push esi
push ecx
mov dword [ebx + 0x4724], esi
call fcn.10029320
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x10002f96
and ebp, 0xffff
push ebp
push str.Local_port:__hu_n
push ebx
call fcn.100243c0
mov edx, dword [esp + 0x1b0]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
mov dword [edx + 0x2d4], 1
pop ebx
add esp, 0x190
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov eax, dword [esp + 0x1a4]
push esi
push eax
mov dword [ebx + 0x4724], esi
call fcn.10029320
push eax
push esi
push str.bind_failed_with_errno__d:__s
push ebx
call fcn.10024430
add esp, 0x18
mov eax, 0x2d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x190
ret