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

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x2fc
mov dword [ebp - 0x2bc], eax
mov eax, dword [eax]
mov dword [ecx], 0xffffffff
mov dword [ebp - 0x2c4], ecx
mov dword [ebp - 0x2c0], eax
mov eax, dword [ebp + 8]
mov dword [eax], 0
lea eax, [ebp - 0x2b4]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x1a8]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], edi
call fcn.6b262aa0
test eax, eax
je 0x6b262be1
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x2bc]
lea ebx, [eax + 0x9e]
lea ecx, [eax + 0xcc]
mov edx, ebx
lea eax, [ebp - 0x198]
call fcn.6b262430
test eax, eax
je 0x6b262f77
mov edi, dword [ebp - 0x2bc]
mov eax, edi
add eax, 0x40
mov esi, eax
mov dword [ebp - 0x2dc], eax
mov eax, dword [edi + 0x9e]
mov dword [edi + 0x40], eax
mov eax, dword [ebx + 4]
mov dword [esi + 4], eax
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [ebx + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [ebx + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [ebx + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [ebx + 0x28]
mov dword [esi + 0x28], eax
movzx eax, word [ebx + 0x2c]
mov ebx, dword [ebp - 0x2c0]
mov word [esi + 0x2c], ax
mov dword [esp + 8], esi
mov dword [esp + 4], str.__Trying__s..._n
mov dword [esp], ebx
call fcn.6b24c140
mov dword [esp], edi
call fcn.6b262580
mov edi, dword [ebx + 0x38c]
test edi, edi
jne 0x6b262f04
mov eax, dword [ebp - 0x2b4]
mov dword [esp], eax
call fcn.6b262840
mov eax, dword [ebp - 0x2c0]
mov esi, dword [eax + 0x494]
test esi, esi
jne 0x6b262df0
mov edi, dword [ebp - 0x2c0]
mov eax, dword [edi + 0x1e8]
test eax, eax
je 0x6b262cf8
mov edx, dword [ebp - 0x2b4]
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov edx, dword [edi + 0x1ec]
mov dword [esp], edx
call eax
cmp eax, 2
je 0x6b262f68
test eax, eax
jne 0x6b2630c4
mov dword [ebp - 0x2d8], 0
mov eax, dword [ebp - 0x1a8]
lea edi, [ebp - 0x114]
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2d4], eax
mov eax, dword [ebp - 0x2b4]
mov esi, eax
mov dword [ebp - 0x2c8], eax
mov eax, dword [ebp - 0x2bc]
mov edx, dword [eax]
mov ecx, edx
mov eax, dword [ecx + 0x1bc]
mov dword [ebp - 0x2cc], edx
movzx edx, word [edx + 0x1b8]
mov ebx, dword [ecx + 0x3cc]
mov ecx, 0x3f
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x2e0], eax
xor eax, eax
test dx, dx
rep stosd dword es:[edi], eax
jne 0x6b262fd0
test ebx, ebx
mov eax, esi
jne 0x6b262fd0
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.6b2703b0
call fcn.6b241e20
mov ecx, dword [ebp - 0x2bc]
cmp dword [ecx + 0x294], 1
mov dword [ecx + 0x28c], eax
mov dword [ecx + 0x290], edx
jle 0x6b262dc3
mov eax, dword [ecx + 0x298]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c0]
mov dword [esp], eax
call fcn.6b2655e0
mov ecx, dword [ebp - 0x2d8]
test ecx, ecx
jne 0x6b262ddd
mov eax, dword [ebp - 0x2bc]
cmp dword [eax + 0x74], 1
je 0x6b263184
mov eax, dword [ebp - 0x2b4]
mov edx, dword [ebp - 0x2c4]
mov dword [edx], eax
jmp 0x6b262bd5
mov ebx, dword [ebp - 0x2b4]
lea eax, [ebp - 0x2a8]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 8
mov dword [esp + 4], 0xffff
mov dword [esp], ebx
mov dword [ebp - 0x2a8], 1
call sub.ws2_32.dll_setsockopt
sub esp, 0x14
test eax, eax
js 0x6b263448
mov edi, dword [ebp - 0x2c0]
mov dword [ebp - 0x118], 1
mov eax, dword [edi + 0x498]
mov dword [esp], eax
call fcn.6b2783b0
imul eax, eax, 0x3e8
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x114], eax
mov eax, dword [edi + 0x49c]
mov dword [esp], eax
call fcn.6b2783b0
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
imul eax, eax, 0x3e8
mov dword [esp + 4], 0x98000004
mov dword [esp], ebx
mov dword [ebp - 0x2a8], eax
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x228]
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x118]
mov dword [esp + 8], eax
call sub.ws2_32.dll_WSAIoctl
sub esp, 0x24
test eax, eax
je 0x6b262cba
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c0]
mov dword [esp], eax
call fcn.6b24c140
jmp 0x6b262cba
mov eax, dword [ebp - 0x2bc]
mov ebx, dword [eax]
mov eax, dword [ebx + 0x38c]
mov dword [esp + 0x10], 4
mov dword [esp + 8], 1
mov dword [esp + 4], 6
mov dword [ebp - 0x118], eax
lea eax, [ebp - 0x118]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2b4]
mov dword [esp], eax
call sub.ws2_32.dll_setsockopt
sub esp, 0x14
test eax, eax
js 0x6b263418
mov dword [esp + 4], str.TCP_NODELAY_set_n
mov dword [esp], ebx
call fcn.6b24c140
jmp 0x6b262c98
mov dword [ebp - 0x2d8], 1
jmp 0x6b262d02
call sub.kernel32.dll_GetLastError
mov edi, dword [ebp - 0x2bc]
mov dword [esp], edi
mov dword [esp + 4], eax
mov ebx, eax
call fcn.6b268f00
mov dword [esp + 8], ebx
mov dword [esp + 4], str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2c0]
mov dword [esp], eax
call fcn.6b24c1c0
mov eax, dword [ebp - 0x2b4]
xor ebx, ebx
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.6b262a20
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
xor eax, eax
mov ecx, 0x20
lea edi, [ebp - 0x2a8]
test ebx, ebx
rep stosd dword es:[edi], eax
je 0x6b2630e6
mov dword [esp], ebx
mov dword [ebp - 0x2d0], edx
call sub.msvcrt.dll_strlen
mov edx, dword [ebp - 0x2d0]
cmp eax, 0xfe
ja 0x6b2630e6
mov esi, 0x6b28bb67
mov ecx, 3
mov edi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x6b26331f
add ebx, 3
mov edi, 1
mov eax, dword [ebp - 0x2bc]
lea esi, [ebp - 0x118]
mov dword [esp + 0x10], 0x100
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov eax, dword [eax + 0x70]
mov dword [ebp - 0x2d0], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2d4]
mov dword [esp], eax
call fcn.6b258920
cmp eax, 1
je 0x6b263531
mov edx, dword [ebp - 0x2d0]
jb 0x6b26354a
cmp eax, 2
jne 0x6b2632fa
mov eax, dword [ebp - 0x2d4]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Local_Interface__s_is_ip__s_using_address_family__i_n
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x2cc]
mov dword [ebp - 0x2d0], edx
mov dword [esp], eax
call fcn.6b24c140
mov edx, dword [ebp - 0x2d0]
cmp dword [ebp - 0x2d4], 2
je 0x6b2634c7
mov dword [ebp - 0x2d0], 0
jmp 0x6b2630fd
mov eax, dword [ebp - 0x2b4]
mov ebx, 0x2a
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2bc]
mov dword [esp], eax
call fcn.6b262a20
jmp 0x6b262bd7
cmp dword [ebp - 0x2d4], 2
mov dword [ebp - 0x2d0], 0
je 0x6b2634f5
mov ebx, dword [ebp - 0x2e0]
lea edi, [edx + ebx]
mov eax, dword [ebp - 0x2d0]
mov esi, edi
sub esi, ebx
mov dword [esp + 8], eax
lea eax, [ebp - 0x2a8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c8]
mov dword [esp], eax
call sub.ws2_32.dll_bind
sub esp, 0xc
test eax, eax
jns 0x6b263214
sub ebx, 1
test ebx, ebx
jle 0x6b263290
mov eax, dword [ebp - 0x2cc]
movzx esi, si
mov dword [esp + 8], esi
mov dword [esp + 4], str.Bind_to_local_port__hu_failed__trying_next_n
mov dword [esp], eax
call fcn.6b24c140
mov eax, edi
sub eax, ebx
cmp word [ebp - 0x2a8], 2
jne 0x6b263106
movzx eax, ax
mov dword [esp], eax
call sub.ws2_32.dll_ntohs
sub esp, 4
mov word [ebp - 0x2a6], ax
jmp 0x6b263106
mov eax, dword [ebp - 0x19c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x198]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2b4]
mov dword [esp], eax
call sub.ws2_32.dll_connect
sub esp, 0xc
cmp eax, 0xffffffff
jne 0x6b262ddd
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0xb
mov ebx, eax
je 0x6b262ddd
jl 0x6b2631d3
lea eax, [eax - 0x2733]
cmp eax, 1
jbe 0x6b262ddd
mov edi, dword [ebp - 0x2bc]
mov dword [esp + 4], ebx
mov dword [esp], edi
call fcn.6b268f00
mov esi, dword [ebp - 0x2c0]
mov dword [esp + 4], str.Failed_to_connect_to__s:__s
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x2dc]
mov dword [esp + 8], eax
call fcn.6b24c1c0
mov dword [esi + 0x861c], ebx
jmp 0x6b262fae
lea edx, [ebp - 0x228]
xor eax, eax
mov edi, edx
mov ecx, 0x20
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2ac]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c8]
mov dword [esp + 4], edx
mov dword [ebp - 0x2ac], pe_nt_image_headers32
mov dword [esp], eax
call sub.ws2_32.dll_getsockname
sub esp, 0xc
test eax, eax
js 0x6b263467
mov eax, dword [ebp - 0x2cc]
movzx esi, si
mov dword [esp + 8], esi
mov dword [esp + 4], str.Local_port:__hu_n
mov dword [esp], eax
call fcn.6b24c140
mov eax, dword [ebp - 0x2bc]
mov dword [eax + 0x284], 1
mov eax, dword [ebp - 0x2b4]
jmp 0x6b262d7b
call sub.ws2_32.dll_WSAGetLastError
mov edi, dword [ebp - 0x2cc]
mov ebx, eax
mov eax, dword [ebp - 0x2bc]
mov dword [edi + 0x861c], ebx
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.6b268f00
mov dword [esp + 8], ebx
mov ebx, 0x2d
mov dword [esp + 4], str.bind_failed_with_errno__d:__s
mov dword [esp], edi
mov dword [esp + 0xc], eax
call fcn.6b24c1c0
mov eax, dword [ebp - 0x2b4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2bc]
mov dword [esp], eax
call fcn.6b262a20
cmp ebx, 1
mov eax, 0
cmove ebx, eax
jmp 0x6b262bd7
test edi, edi
je 0x6b263336
mov eax, dword [ebp - 0x2cc]
mov dword [esp + 8], ebx
mov ebx, 0x2d
mov dword [esp + 4], str.Couldnt_bind_to__s
mov dword [esp], eax
call fcn.6b24c1c0
jmp 0x6b2632d2
mov esi, str.host_
mov ecx, 5
mov edi, ebx
repe cmpsb byte [esi], byte es:[edi]
jne 0x6b2634c0
add ebx, 5
mov eax, dword [ebp - 0x2bc]
cmp dword [ebp - 0x2d4], 2
mov edi, dword [eax + 0x2a4]
je 0x6b26353b
mov eax, dword [ebp - 0x2bc]
lea esi, [ebp - 0x2b0]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [ebp - 0x2d0], edx
call fcn.6b242650
mov edx, dword [ebp - 0x2d0]
cmp eax, 1
je 0x6b263576
mov eax, dword [ebp - 0x2bc]
mov dword [ebp - 0x2d0], edx
mov dword [eax + 0x2a4], edi
mov eax, dword [ebp - 0x2b0]
test eax, eax
je 0x6b2632fe
lea esi, [ebp - 0x118]
mov dword [esp + 8], 0x100
mov dword [esp + 4], esi
mov eax, dword [eax]
mov dword [esp], eax
call fcn.6b2424a0
mov eax, dword [ebp - 0x2b0]
mov edi, dword [ebp - 0x2cc]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Name__s_family__i_resolved_to__s_family__i_n
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x2d4]
mov dword [esp], edi
mov dword [esp + 0xc], eax
call fcn.6b24c140
mov eax, dword [ebp - 0x2b0]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.6b2428b0
mov edx, dword [ebp - 0x2d0]
jmp 0x6b2630ab
call sub.ws2_32.dll_WSAGetLastError
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2bc]
mov dword [esp], eax
call fcn.6b268f00
mov dword [esp + 4], str.Could_not_set_TCP_NODELAY:__s_n
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.6b24c140
jmp 0x6b262c98
mov eax, dword [ebp - 0x2c0]
mov dword [esp + 8], ebx
mov dword [esp + 4], str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
mov dword [esp], eax
call fcn.6b24c140
jmp 0x6b262cba
call sub.ws2_32.dll_WSAGetLastError
mov edi, dword [ebp - 0x2cc]
mov esi, dword [ebp - 0x2bc]
mov ebx, eax
mov dword [edi + 0x861c], ebx
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.6b268f00
mov dword [esp + 8], ebx
mov ebx, 0x2d
mov dword [esp + 4], str.getsockname___failed_with_errno__d:__s
mov dword [esp], edi
mov dword [esp + 0xc], eax
call fcn.6b24c1c0
mov eax, dword [ebp - 0x2b4]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.6b262a20
jmp 0x6b262bd7
xor edi, edi
jmp 0x6b263022
lea eax, [ebp - 0x2a4]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], 2
mov dword [ebp - 0x2d0], edx
call fcn.6b268db0
mov edx, dword [ebp - 0x2d0]
test eax, eax
jle 0x6b2630b8
movzx eax, dx
mov ebx, 2
mov dword [esp], eax
mov dword [ebp - 0x2d4], edx
mov word [ebp - 0x2a8], bx
call sub.ws2_32.dll_htons
mov edx, dword [ebp - 0x2d4]
mov dword [ebp - 0x2d0], 0x10
sub esp, 4
mov word [ebp - 0x2a6], ax
jmp 0x6b2630fd
mov ebx, 1
jmp 0x6b2632d2
mov dword [eax + 0x2a4], 1
jmp 0x6b26334f
test edi, edi
je 0x6b263336
mov eax, dword [ebp - 0x2cc]
mov dword [esp + 8], ebx
mov ebx, 0x2d
mov dword [esp + 4], str.Couldnt_bind_to_interface__s
mov dword [esp], eax
call fcn.6b24c1c0
jmp 0x6b2632d2
mov eax, dword [ebp - 0x2bc]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.6b279ea0
mov edx, dword [ebp - 0x2d0]
jmp 0x6b263388