Function at 0x48bfb0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x32c
mov ebp, dword [eax]
lea eax, [eax + ecx*4]
mov dword [eax + 0x410], 0xffffffff
mov dword [esp + 0x30], eax
lea eax, [esp + 0x50]
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [esp + 0x190]
mov dword [esp + 8], eax
call sym._Curl_socket
test eax, eax
mov edi, eax
je 0x48c001
add esp, 0x32c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x54]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x62]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x19c]
mov dword [esp + 4], eax
lea eax, [esp + 0x1a0]
mov dword [esp], eax
call sym._Curl_addr2string
test al, al
je 0x48c390
mov eax, dword [esp + 0x54]
mov dword [esp + 4], str.__Trying__s:_ld..._n
mov dword [esp], ebp
mov dword [esp + 0xc], eax
lea eax, [esp + 0x62]
mov dword [esp + 8], eax
call sym._Curl_infof
mov eax, dword [esp + 0x190]
cmp eax, 2
je 0x48c1f0
cmp eax, 0x17
je 0x48c1f0
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call sym._Curl_sndbufset
mov esi, dword [ebp + 0x5e0]
test esi, esi
je 0x48c0d4
mov dword [esp + 4], 1
mov dword [esp], ebp
call sym._Curl_set_in_callback
mov eax, dword [esp + 0x50]
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x5e4]
mov dword [esp], eax
call dword [ebp + 0x5e0]
mov dword [esp + 4], 0
mov esi, eax
mov dword [esp], ebp
call sym._Curl_set_in_callback
cmp esi, 2
je 0x48c665
test esi, esi
jne 0x48c5e4
mov byte [esp + 0x41], 0
mov eax, dword [esp + 0x190]
cmp eax, 2
je 0x48c3f2
mov esi, dword [esp + 0x50]
cmp eax, 0x17
mov dword [esp + 0x34], esi
je 0x48c3f2
mov eax, dword [esp + 0x34]
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._curlx_nonblock
call sym._Curl_now
cmp dword [ebx + 0x4fc], 1
mov dword [ebx + 0x4f4], eax
mov dword [ebx + 0x4f8], edx
jle 0x48c14c
mov dword [esp + 0xc], 3
mov eax, dword [ebx + 0x500]
mov edx, dword [ebx + 0x504]
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call sym._Curl_expire
cmp byte [esp + 0x41], 0
jne 0x48c36f
cmp dword [ebx + 0x2f8], 4
je 0x48c36f
test byte [ebx + 0x4f3], 8
je 0x48c340
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
mov esi, eax
je 0x48c36f
jl 0x48c193
lea eax, [eax - 0x2733]
cmp eax, 1
jbe 0x48c36f
lea eax, [esp + 0x220]
mov dword [esp + 8], 0x100
mov dword [esp], esi
mov edi, 7
mov dword [esp + 4], eax
call sym._Curl_strerror
mov dword [esp + 0xc], eax
lea eax, [esp + 0x62]
mov dword [esp + 4], str.Immediate_connect_fail_for__s:__s_n
mov dword [esp], ebp
mov dword [esp + 8], eax
call sym._Curl_infof
mov eax, dword [esp + 0x50]
mov dword [ebp + 0xc6c], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._Curl_closesocket
jmp 0x48bff4
cmp dword [esp + 0x194], 1
jne 0x48c06c
test byte [ebp + 0xac0], 8
jne 0x48c670
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call sym._Curl_sndbufset
test byte [ebp + 0xac1], 0x10
je 0x48c078
mov esi, dword [esp + 0x50]
lea eax, [esp + 0x90]
mov dword [esp + 0x90], 1
mov dword [esp + 0x10], 4
mov dword [esp + 8], 8
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0xffff
mov dword [esp], esi
call dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0x14
test eax, eax
js 0x48c94f
mov eax, dword [ebp + 0xa80]
mov dword [esp + 0x220], 1
mov dword [esp], eax
call sym._curlx_sltosi
imul eax, eax, 0x3e8
mov dword [esp + 0x90], eax
mov dword [esp + 0x224], eax
mov eax, dword [ebp + 0xa84]
mov dword [esp], eax
call sym._curlx_sltosi
imul eax, eax, 0x3e8
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xc
mov dword [esp + 4], 0x98000004
mov dword [esp + 0x90], eax
mov dword [esp + 0x228], eax
lea eax, [esp + 0x110]
mov dword [esp], esi
mov dword [esp + 0x18], eax
lea eax, [esp + 0x220]
mov dword [esp + 8], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
sub esp, 0x24
test eax, eax
je 0x48c078
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov dword [esp], ebp
call sym._Curl_infof
jmp 0x48c078
mov eax, dword [esp + 0x19c]
mov dword [esp + 8], eax
lea eax, [esp + 0x1a0]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_connect]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x48c171
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x30]
xor edi, edi
mov dword [esi + 0x410], eax
add esp, 0x32c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [sym.imp.msvcrt.dll__errno]
call esi
lea edx, [esp + 0x220]
mov dword [esp + 8], 0x100
mov dword [esp + 4], edx
mov eax, dword [eax]
mov dword [esp], eax
call sym._Curl_strerror
mov edi, eax
call esi
mov dword [esp + 0xc], edi
mov eax, dword [eax]
xor edi, edi
mov dword [esp], ebp
mov dword [esp + 4], str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov dword [esp + 8], eax
call sym._Curl_failf
mov eax, dword [esp + 0x50]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._Curl_closesocket
add esp, 0x32c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [esp + 0x1a0]
mov dword [esp], eax
call sym._Curl_ipv6_scope
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x190]
mov dword [esp + 0x58], 0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x34], eax
mov eax, dword [ebx]
movzx esi, word [eax + 0x5b8]
mov edx, dword [eax + 0x93c]
mov dword [esp + 0x38], eax
test edx, edx
mov word [esp + 0x42], si
jne 0x48c445
test si, si
je 0x48c0fa
mov eax, dword [esp + 0x38]
xor esi, esi
lea edi, [esp + 0x90]
mov ecx, 0x20
test edx, edx
mov eax, dword [eax + 0x5bc]
mov dword [esp + 0x48], eax
mov eax, esi
rep stosd dword es:[edi], eax
je 0x48c6f2
mov dword [esp], edx
mov dword [esp + 0x4c], edx
call sym._strlen
cmp eax, 0xfe
ja 0x48c6f2
lea edi, [esp + 0x224]
mov eax, esi
mov ecx, 0x3f
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x220], 0
mov esi, 0x5dbe1f
rep stosd dword es:[edi], eax
mov ecx, 3
mov edi, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x48c7fe
lea esi, [esp + 0x220]
add edx, 3
mov dword [esp + 0x14], 0x100
mov dword [esp + 0xc], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x10], esi
mov eax, dword [ebx + 0x2f4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sym._Curl_if2ip
cmp eax, 1
je 0x48c9c7
mov edx, dword [esp + 0x4c]
jb 0x48ca2a
cmp eax, 2
jne 0x48c9d1
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov dword [esp + 4], str.Local_Interface__s_is_ip__s_using_address_family__i_n
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sym._Curl_infof
cmp dword [esp + 0x3c], 0x17
je 0x48ca4c
cmp dword [esp + 0x3c], 2
je 0x48c5fe
xor edi, edi
nop
lea esi, [esi]
mov eax, dword [sym.imp.WS2_32.dll_ntohs]
mov dword [esp + 0x4c], ebp
movzx ebp, word [esp + 0x42]
mov dword [esp + 0x44], ebx
mov esi, dword [sym.imp.WS2_32.dll_bind]
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x90]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call esi
sub esp, 0xc
test eax, eax
jns 0x48c710
sub ebx, 1
test ebx, ebx
jle 0x48c790
movzx eax, bp
mov dword [esp + 4], str.Bind_to_local_port__hu_failed__trying_next_n
add ebp, 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sym._Curl_infof
cmp word [esp + 0x90], 2
movzx eax, bp
mov dword [esp], eax
je 0x48c651
call dword [sym.imp.WS2_32.dll_ntohs]
sub esp, 4
mov word [esp + 0x92], ax
jmp 0x48c570
mov eax, dword [esp + 0x50]
mov dword [esp], ebx
mov edi, 0x2a
mov dword [esp + 4], eax
call sym._Curl_closesocket
jmp 0x48bff4
lea eax, [esp + 0x94]
mov dword [esp + 4], esi
mov dword [esp], 2
mov dword [esp + 8], eax
call sym._Curl_inet_pton
test eax, eax
jle 0x48c549
mov eax, 2
mov edi, 0x10
mov word [esp + 0x90], ax
movzx eax, word [esp + 0x42]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_htons]
sub esp, 4
mov word [esp + 0x92], ax
jmp 0x48c550
call dword [esp + 0x3c]
sub esp, 4
mov word [esp + 0x92], ax
jmp 0x48c570
mov byte [esp + 0x41], 1
jmp 0x48c0d9
lea eax, [esp + 0x110]
mov esi, dword [ebx]
mov dword [esp + 0x110], 1
mov dword [esp + 0x10], 4
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 4], 6
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0x14
test eax, eax
jns 0x48c20b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea edx, [esp + 0x220]
mov dword [esp + 8], 0x100
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._Curl_strerror
mov dword [esp + 4], str.Could_not_set_TCP_NODELAY:__s_n
mov dword [esp + 8], eax
mov dword [esp], esi
call sym._Curl_infof
jmp 0x48c20b
cmp dword [esp + 0x3c], 0x17
je 0x48c9fa
xor edi, edi
cmp dword [esp + 0x3c], 2
jne 0x48c550
jmp 0x48c621
lea edx, [esp + 0x110]
xor eax, eax
mov ecx, 0x20
mov word [esp + 0x42], bp
mov ebx, dword [esp + 0x44]
mov edi, edx
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x5c], pe_nt_image_headers32
rep stosd dword es:[edi], eax
lea eax, [esp + 0x5c]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_getsockname]
sub esp, 0xc
test eax, eax
js 0x48c968
movzx eax, word [esp + 0x42]
mov dword [esp + 4], str.Local_port:__hu_n
mov dword [esp + 8], eax
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call sym._Curl_infof
or byte [ebx + 0x4f3], 1
mov eax, dword [esp + 0x50]
mov dword [esp + 0x34], eax
jmp 0x48c0fa
mov ebx, dword [esp + 0x44]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [esp + 0x38]
mov esi, eax
lea eax, [esp + 0x220]
mov dword [edi + 0xc6c], esi
mov dword [esp + 8], 0x100
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._Curl_strerror
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov edi, 0x2d
mov dword [esp + 8], esi
mov dword [esp + 4], str.bind_failed_with_errno__d:__s
call sym._Curl_failf
mov eax, dword [esp + 0x50]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._Curl_closesocket
cmp edi, 1
mov eax, 7
cmove edi, eax
jmp 0x48bff4
mov esi, str.host_
mov ecx, 5
mov edi, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x48c947
lea esi, [esp + 0x220]
mov dword [esp + 0x14], 0x100
mov dword [esp + 0xc], edx
mov dword [esp + 0x4c], edx
mov dword [esp + 0x10], esi
mov eax, dword [ebx + 0x2f4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sym._Curl_if2ip
cmp eax, 1
je 0x48c9c7
cmp eax, 2
mov edx, dword [esp + 0x4c]
je 0x48c50f
cmp dword [esp + 0x3c], 2
mov esi, dword [ebx + 0x510]
je 0x48cacc
cmp dword [esp + 0x3c], 0x17
je 0x48cadb
lea edi, [esp + 0x58]
mov dword [esp + 4], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x44], edx
call sym._Curl_resolv
cmp eax, 1
mov edx, dword [esp + 0x44]
je 0x48caf4
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x510], esi
test eax, eax
je 0x48c9d1
lea esi, [esp + 0x220]
mov dword [esp + 8], 0x100
mov dword [esp + 0x44], edx
mov dword [esp + 4], esi
mov eax, dword [eax]
mov dword [esp], eax
call sym._Curl_printable_address
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 8], edx
mov dword [esp], edi
mov dword [esp + 0x10], esi
mov dword [esp + 4], str.Name__s_family__i_resolved_to__s_family__i_n
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
call sym._Curl_infof
mov eax, dword [esp + 0x58]
mov dword [esp], edi
mov edi, 1
mov dword [esp + 4], eax
call sym._Curl_resolv_unlock
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x3c]
mov eax, dword [eax]
cmp ecx, dword [eax + 4]
jne 0x48c7de
jmp 0x48c533
add edx, 5
jmp 0x48c861
mov dword [esp + 8], esi
mov dword [esp + 4], str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov dword [esp], ebp
call sym._Curl_infof
jmp 0x48c078
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, dword [esp + 0x38]
mov esi, eax
lea eax, [esp + 0x220]
mov dword [edi + 0xc6c], esi
mov dword [esp + 8], 0x100
mov dword [esp + 4], eax
mov dword [esp], esi
call sym._Curl_strerror
mov dword [esp], edi
mov dword [esp + 0xc], eax
mov edi, 0x2d
mov dword [esp + 8], esi
mov dword [esp + 4], str.getsockname___failed_with_errno__d:__s
call sym._Curl_failf
mov eax, dword [esp + 0x50]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._Curl_closesocket
jmp 0x48bff4
mov edi, 1
jmp 0x48c7de
mov eax, dword [esp + 0x38]
mov edi, 0x2d
and byte [eax + 0xe84], 0xf7
mov dword [esp + 8], edx
mov dword [esp + 4], str.Couldnt_bind_to__s
mov dword [esp], eax
call sym._Curl_failf
jmp 0x48c7de
movzx eax, word [esp + 0x42]
mov edx, 0x17
mov edi, 0x1c
mov word [esp + 0x90], dx
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_htons]
sub esp, 4
mov word [esp + 0x92], ax
jmp 0x48c550
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edx
mov edi, 0x2d
mov dword [esp + 4], str.Couldnt_bind_to_interface__s
mov dword [esp], eax
call sym._Curl_failf
jmp 0x48c7de
mov dword [esp + 4], 0x25
mov dword [esp], esi
call sym._strchr
test eax, eax
je 0x48cb09
lea edi, [eax + 1]
mov byte [eax], 0
lea eax, [esp + 0x98]
mov dword [esp + 4], esi
mov dword [esp], 0x17
mov dword [esp + 8], eax
call sym._Curl_inet_pton
test eax, eax
jle 0x48caea
movzx eax, word [esp + 0x42]
mov ecx, 0x17
mov word [esp + 0x90], cx
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_htons]
sub esp, 4
test edi, edi
mov word [esp + 0x92], ax
je 0x48caea
mov dword [esp], edi
mov edi, 0x1c
call sym._atoi
mov dword [esp + 0xa8], eax
jmp 0x48c550
mov dword [ebx + 0x510], 1
jmp 0x48c87d
mov dword [ebx + 0x510], 2
jmp 0x48c87d
mov edi, 0x1c
jmp 0x48c550
mov dword [esp + 4], edi
mov dword [esp], ebx
call sym._Curl_resolver_wait_resolv
mov edx, dword [esp + 0x44]
jmp 0x48c8b2
xor edi, edi
jmp 0x48ca6a