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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x12c
mov ebx, dword [esp + 0x140]
cmp dword [ebx + 0x90], 2
mov esi, dword [ebx]
je 0x402936
cmp byte [ebx + 0x25a], 0
jne 0x40292e
cmp byte [ebx + 0x276], 0
je 0x402948
mov dword [esp], ebx
call sym._Curl_persistconninfo
add esp, 0x12c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x144]
lea edx, [esp + 0x1c]
lea ebp, [esp + 0x20]
mov dword [esp + 0x1c], pe_nt_image_headers32
mov dword [esp + 8], edx
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_getpeername]
sub esp, 0xc
test eax, eax
lea edx, [esp + 0x1c]
jne 0x402aa0
lea edi, [esp + 0xa0]
mov ecx, 0x20
mov dword [esp + 0x1c], pe_nt_image_headers32
rep stosd dword es:[edi], eax
lea eax, [esp + 0xa0]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x144]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_getsockname]
sub esp, 0xc
test eax, eax
jne 0x402ad8
lea edi, [ebx + 0x106]
lea eax, [ebx + 0x134]
mov dword [esp], ebp
mov dword [esp + 8], eax
mov dword [esp + 4], edi
call sym._Curl_getaddressinfo
test al, al
je 0x402b10
mov edx, dword [ebx + 0x106]
lea eax, [ebx + 0x168]
mov dword [ebx + 0x5c], edx
mov edx, dword [edi + 4]
mov dword [ebx + 0x60], edx
mov edx, dword [edi + 8]
mov dword [ebx + 0x64], edx
mov edx, dword [edi + 0xc]
mov dword [ebx + 0x68], edx
mov edx, dword [edi + 0x10]
mov dword [ebx + 0x6c], edx
mov edx, dword [edi + 0x14]
mov dword [ebx + 0x70], edx
mov edx, dword [edi + 0x18]
mov dword [ebx + 0x74], edx
mov edx, dword [edi + 0x1c]
mov dword [ebx + 0x78], edx
mov edx, dword [edi + 0x20]
mov dword [ebx + 0x7c], edx
mov edx, dword [edi + 0x24]
mov dword [ebx + 0x80], edx
mov edx, dword [edi + 0x28]
mov dword [ebx + 0x84], edx
movzx edx, word [edi + 0x2c]
mov word [ebx + 0x88], dx
mov dword [esp + 8], eax
lea eax, [ebx + 0x138]
mov dword [esp + 4], eax
lea eax, [esp + 0xa0]
mov dword [esp], eax
call sym._Curl_getaddressinfo
test al, al
jne 0x40292e
mov edi, dword [sym.imp.msvcrt.dll__errno]
call edi
mov eax, dword [eax]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._Curl_strerror
mov ebx, eax
call edi
mov dword [esp + 0xc], ebx
mov eax, dword [eax]
mov dword [esp + 4], str.ssloc_inet_ntop___failed_with_errno__d:__s
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._Curl_failf
jmp 0x402936
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov edi, eax
call sym._Curl_strerror
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.getpeername___failed_with_errno__d:__s
mov dword [esp], esi
call sym._Curl_failf
jmp 0x402936
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov edi, eax
call sym._Curl_strerror
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.getsockname___failed_with_errno__d:__s
mov dword [esp], esi
call sym._Curl_failf
jmp 0x402936
mov edi, dword [sym.imp.msvcrt.dll__errno]
call edi
mov eax, dword [eax]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._Curl_strerror
mov ebx, eax
call edi
mov dword [esp + 0xc], ebx
mov eax, dword [eax]
mov dword [esp + 4], str.ssrem_inet_ntop___failed_with_errno__d:__s
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._Curl_failf
jmp 0x402936