Function at 0x1000f380
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Set socket configuration

Disassembly:
sub esp, 0x78
push ebx
push ebp
push edi
xor edi, edi
mov dword [esp + 0x14], edi
or ebp, 0xffffffff
call fcn.1000f210
cmp eax, 1
je 0x1000f3a3
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x78
ret
mov eax, dword [esp + 0x88]
push eax
call fcn.10023a00
mov ebx, eax
add esp, 4
cmp ebx, edi
mov dword [esp + 0x20], ebx
jne 0x1000f3c7
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x78
ret
mov al, byte [ebx]
push esi
xor esi, esi
mov dword [esp + 0x10], ebx
test al, al
mov ecx, ebx
je 0x1000f3f9
cmp al, 0x3a
jne 0x1000f3de
mov esi, ecx
jmp 0x1000f3e2
cmp al, 0x2f
je 0x1000f3ec
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x1000f3d6
jmp 0x1000f3ef
mov byte [ecx], 0
cmp esi, edi
je 0x1000f3f9
mov byte [esi], 0
inc esi
jmp 0x1000f401
mov esi, ebx
mov dword [esp + 0x10], edi
mov ebx, edi
cmp dword [0x100c943c], edi
jne 0x1000f441
push str.getaddrinfo
call fcn.10025150
add esp, 4
cmp eax, edi
mov dword [0x100c943c], eax
je 0x1000f435
push str.freeaddrinfo
call fcn.10025150
add esp, 4
cmp eax, edi
mov dword [0x100c9440], eax
jne 0x1000f441
mov dword [0x100c943c], 0xffffffff
jmp 0x1000f4af
cmp dword [0x100c943c], 0xffffffff
je 0x1000f4af
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
xor edi, edi
cmp ebx, edi
je 0x1000f495
push 0x3a
push ebx
call fcn.1007a830
add esp, 8
test eax, eax
je 0x1000f483
mov al, byte [ebx + 1]
test al, al
jne 0x1000f479
mov dword [esp + 0x10], edi
mov ebx, edi
mov dword [esp + 0x6c], 0x17
jmp 0x1000f495
cmp byte [ebx], 0x2a
jne 0x1000f495
mov al, byte [ebx + 1]
test al, al
jne 0x1000f495
mov dword [esp + 0x10], edi
mov ebx, edi
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x68]
push ecx
push edx
push esi
push ebx
call dword [0x100c943c]
test eax, eax
je 0x1000f58a
lea eax, [esp + 0x20]
push eax
push esi
call fcn.1000eef0
add esp, 8
test eax, eax
je 0x1000f834
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x20]
mov word [esp + 0x30], 2
push ecx
call dword [sym.imp.WS2_32.dll_htons]
test ebx, ebx
mov word [esp + 0x32], ax
mov dword [esp + 0x14], 0x10
je 0x1000f580
mov esi, 0x100abe74
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1000f524
test cl, cl
je 0x1000f520
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000f524
add eax, 2
add esi, 2
test cl, cl
jne 0x1000f500
xor eax, eax
jmp 0x1000f529
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1000f580
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.1000ede0
add esp, 8
test eax, eax
je 0x1000f834
mov ecx, dword [esp + 0x29]
mov edx, dword [esp + 0x2a]
xor eax, eax
and ecx, 0xff
mov ah, byte [esp + 0x28]
and edx, 0xff
or eax, ecx
mov ecx, dword [esp + 0x2b]
shl eax, 8
or eax, edx
and ecx, 0xff
shl eax, 8
or eax, ecx
push eax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x34], eax
jmp 0x1000f5c2
mov dword [esp + 0x34], 0
jmp 0x1000f5c2
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x10]
cmp eax, 0x1c
mov dword [esp + 0x14], eax
jbe 0x1000f5a2
mov dword [esp + 0x14], 0x1c
mov ecx, dword [esp + 0x14]
mov esi, dword [edx + 0x18]
mov eax, ecx
lea edi, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [0x100c9440]
mov ecx, dword [esp + 0x30]
mov ebx, dword [sym.imp.WS2_32.dll_socket]
push 6
and ecx, 0xffff
push 1
push ecx
call ebx
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1000f733
mov esi, dword [esp + 0x90]
cmp esi, 2
jne 0x1000f613
lea edx, [esp + 0x1c]
push 4
push edx
push 4
push 0xffff
push ebp
mov dword [esp + 0x30], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [esp + 0x18], eax
xor esi, esi
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push eax
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1000f7ce
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, 1
mov dword [esp + 0x1c], eax
jne 0x1000f787
cmp eax, 0x2740
jne 0x1000f787
mov eax, dword [esp + 0x10]
mov ecx, 7
lea esi, [esp + 0x30]
lea edi, [esp + 0x4c]
test eax, eax
rep movsd dword es:[edi], dword [esi]
je 0x1000f694
mov esi, 0x100abe74
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x1000f68b
test cl, cl
je 0x1000f687
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x1000f68b
add eax, 2
add esi, 2
test cl, cl
jne 0x1000f667
xor eax, eax
jmp 0x1000f690
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000f6d1
mov ax, word [esp + 0x30]
cmp ax, 0x17
jne 0x1000f6b8
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov byte [esp + 0x63], 1
jmp 0x1000f6d1
cmp ax, 2
jne 0x1000f834
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x4c]
push 6
and ecx, 0xffff
push 1
push ecx
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x1000f783
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x4c]
push edx
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
push esi
mov edi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp edi, 0xffffffff
jne 0x1000f783
push ebp
mov esi, 2
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x30]
push 6
and ecx, 0xffff
push 1
push ecx
call ebx
mov ebp, eax
cmp ebp, edi
jne 0x1000f5eb
push 0x2cd
push str.D:EjrsysDevworkspacemsvsopensslcrypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 4
push 2
call fcn.10026360
mov edx, dword [esp + 0xa0]
push 0x100abe34
push edx
push str.port
push 3
call fcn.10026a50
push 0x2cf
push str.D:EjrsysDevworkspacemsvsopensslcrypto_bio_b_sock.c
push 0x76
push 0x69
push 0x20
call fcn.10026360
add esp, 0x38
jmp 0x1000f834
mov eax, dword [esp + 0x1c]
push 0x30c
push str.D:EjrsysDevworkspacemsvsopensslcrypto_bio_b_sock.c
push eax
push 6
push 2
call fcn.10026360
mov eax, dword [esp + 0xa0]
push 0x100abe34
push eax
push str.port
push 3
call fcn.10026a50
push 0x30e
push str.D:EjrsysDevworkspacemsvsopensslcrypto_bio_b_sock.c
push 0x75
push 0x69
push 0x20
call fcn.10026360
add esp, 0x38
jmp 0x1000f834
push accept
push ebp
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1000f82c
push 0x313
push str.D:EjrsysDevworkspacemsvsopensslcrypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 6
push 2
call fcn.10026360
mov ecx, dword [esp + 0xa0]
push 0x100abe34
push ecx
push str.port
push 3
call fcn.10026a50
push 0x315
push str.D:EjrsysDevworkspacemsvsopensslcrypto_bio_b_sock.c
push 0x77
push 0x69
push 0x20
call fcn.10026360
add esp, 0x38
jmp 0x1000f834
mov dword [esp + 0x18], 1
mov edx, dword [esp + 0x24]
push edx
call fcn.10077ad0
mov eax, dword [esp + 0x1c]
add esp, 4
test eax, eax
pop esi
jne 0x1000f859
cmp ebp, 0xffffffff
je 0x1000f859
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
or ebp, 0xffffffff
mov eax, ebp
pop edi
pop ebp
pop ebx
add esp, 0x78
ret