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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x22c
mov esi, dword [esp + 0x240]
cmp dword [esi + 0x2f8], 3
je 0x48b840
mov dword [esp], esi
call sym._Curl_persistconninfo
add esp, 0x22c
pop ebx
pop esi
pop edi
pop ebp
ret
test dword [esi + 0x4f0], 0x8000002
jne 0x48b82a
lea eax, [esp + 0x18]
mov ebp, dword [esi]
lea ebx, [esp + 0x20]
mov dword [esp + 0x18], pe_nt_image_headers32
mov dword [esp + 8], eax
mov eax, dword [esp + 0x244]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_getpeername]
sub esp, 0xc
test eax, eax
je 0x48b8c0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea eax, [esp + 0x120]
mov dword [esp + 8], 0x100
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._Curl_strerror
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.getpeername___failed_with_errno__d:__s
mov dword [esp], ebp
call sym._Curl_failf
jmp 0x48b832
lea edi, [esp + 0xa0]
mov ecx, 0x20
mov dword [esp + 0x1c], pe_nt_image_headers32
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
mov dword [esp + 8], eax
lea eax, [esp + 0xa0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x244]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_getsockname]
sub esp, 0xc
test eax, eax
jne 0x48b974
lea eax, [esi + 0x3a0]
lea edi, [esi + 0x372]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
call sym._Curl_addr2string
test al, al
jne 0x48b9b4
mov ebx, dword [sym.imp.msvcrt.dll__errno]
call ebx
lea edx, [esp + 0x120]
mov dword [esp + 8], 0x100
mov dword [esp + 4], edx
mov eax, dword [eax]
mov dword [esp], eax
call sym._Curl_strerror
mov esi, eax
call ebx
mov dword [esp + 0xc], esi
mov eax, dword [eax]
mov dword [esp + 4], str.ssrem_inet_ntop___failed_with_errno__d:__s
mov dword [esp], ebp
mov dword [esp + 8], eax
call sym._Curl_failf
jmp 0x48b832
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea eax, [esp + 0x120]
mov dword [esp + 8], 0x100
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._Curl_strerror
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.getsockname___failed_with_errno__d:__s
mov dword [esp], ebp
call sym._Curl_failf
jmp 0x48b832
mov ecx, dword [esi + 0x372]
lea eax, [esi + 0x3d4]
mov dword [esi + 0x2c4], ecx
mov ecx, dword [edi + 4]
mov dword [esi + 0x2c8], ecx
mov ecx, dword [edi + 8]
mov dword [esi + 0x2cc], ecx
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x2d0], ecx
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x2d4], ecx
mov ecx, dword [edi + 0x14]
mov dword [esi + 0x2d8], ecx
mov ecx, dword [edi + 0x18]
mov dword [esi + 0x2dc], ecx
mov ecx, dword [edi + 0x1c]
mov dword [esi + 0x2e0], ecx
mov ecx, dword [edi + 0x20]
mov dword [esi + 0x2e4], ecx
mov ecx, dword [edi + 0x24]
mov dword [esi + 0x2e8], ecx
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x2ec], ecx
movzx ecx, word [edi + 0x2c]
mov word [esi + 0x2f0], cx
mov dword [esp + 0xc], eax
lea eax, [esi + 0x3a4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 4], eax
lea eax, [esp + 0xa0]
mov dword [esp], eax
call sym._Curl_addr2string
test al, al
jne 0x48b82a
mov ebx, dword [sym.imp.msvcrt.dll__errno]
call ebx
lea edx, [esp + 0x120]
mov dword [esp + 8], 0x100
mov dword [esp + 4], edx
mov eax, dword [eax]
mov dword [esp], eax
call sym._Curl_strerror
mov esi, eax
call ebx
mov dword [esp + 0xc], esi
mov eax, dword [eax]
mov dword [esp + 4], str.ssloc_inet_ntop___failed_with_errno__d:__s
mov dword [esp], ebp
mov dword [esp + 8], eax
call sym._Curl_failf
jmp 0x48b832