Function at 0x10056ab0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve function by parsing pe exports
Set socket configuration

Disassembly:
mov eax, 0x74
call fcn.100d6420
mov eax, dword [0x10151618]
xor eax, esp
mov dword [esp + 0x70], eax
push ebp
push esi
mov esi, dword [esp + 0x80]
push edi
xor edi, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], edi
or ebp, 0xffffffff
call sym.LIBEAY32.dll_BIO_sock_init
cmp eax, 1
je 0x10056afa
pop edi
pop esi
or eax, ebp
pop ebp
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.100d6528
add esp, 0x74
ret
push ebx
push esi
call sym.LIBEAY32.dll_BUF_strdup
mov ebx, eax
add esp, 4
cmp ebx, edi
mov dword [esp + 0x24], ebx
jne 0x10056b24
pop ebx
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.100d6528
add esp, 0x74
ret
xor esi, esi
cmp byte [ebx], 0
mov dword [esp + 0x10], ebx
je 0x10056b59
nop
mov cl, byte [eax]
cmp cl, 0x3a
jne 0x10056b3b
mov esi, eax
jmp 0x10056b40
cmp cl, 0x2f
je 0x10056b4a
add eax, 1
cmp byte [eax], 0
jne 0x10056b30
jmp 0x10056b4d
mov byte [eax], 0
cmp esi, edi
je 0x10056b59
mov byte [esi], 0
add esi, 1
jmp 0x10056b61
mov esi, ebx
mov dword [esp + 0x10], edi
mov ebx, edi
cmp dword [0x10152ee4], edi
jne 0x10056ba4
push str.getaddrinfo
call sym.LIBEAY32.dll_DSO_global_lookup
add esp, 4
cmp eax, edi
mov dword [0x10152ee4], eax
je 0x10056b95
push str.freeaddrinfo
call sym.LIBEAY32.dll_DSO_global_lookup
add esp, 4
cmp eax, edi
mov dword [0x10152ee8], eax
jne 0x10056ba4
mov dword [0x10152ee4], 0xffffffff
jmp 0x10056c37
cmp dword [0x10152ee4], 0xffffffff
je 0x10056c37
xor eax, eax
cmp ebx, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x28], 1
je 0x10056c1d
push 0x3a
push ebx
call fcn.100daaf0
add esp, 8
test eax, eax
je 0x10056c04
cmp byte [ebx + 1], 0
jne 0x10056bfa
mov dword [esp + 0x10], edi
mov ebx, edi
mov dword [esp + 0x2c], 0x17
jmp 0x10056c1d
cmp byte [ebx], 0x2a
jne 0x10056c1d
cmp byte [ebx + 1], 0
jne 0x10056c1d
mov dword [esp + 0x2c], 2
mov dword [esp + 0x10], edi
mov ebx, edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
push ebx
call dword [0x10152ee4]
test eax, eax
je 0x10056cee
lea edx, [esp + 0x14]
push edx
push esi
call sym.LIBEAY32.dll_BIO_get_port
add esp, 8
test eax, eax
je 0x10056f5c
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x14]
push eax
mov word [esp + 0x4c], 2
call dword [sym.imp.WS2_32.dll_htons]
cmp ebx, edi
mov word [esp + 0x4a], ax
mov dword [esp + 0x1c], 0x10
je 0x10056ce4
mov edi, 0x100eba44
mov esi, ebx
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x10056ce4
lea eax, [esp + 0x14]
push eax
push ebx
call sym.LIBEAY32.dll_BIO_get_host_ip
add esp, 8
test eax, eax
je 0x10056f5c
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov ch, al
movzx edx, ah
movzx eax, byte [esp + 0x16]
or ecx, edx
movzx edx, byte [esp + 0x17]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, edx
push ecx
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x4c], eax
jmp 0x10056d23
mov dword [esp + 0x4c], 0
jmp 0x10056d23
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x10]
cmp eax, 0x1c
mov dword [esp + 0x1c], eax
jbe 0x10056d06
mov dword [esp + 0x1c], 0x1c
mov eax, dword [esp + 0x1c]
mov ecx, dword [esi + 0x18]
push eax
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.100d73f0
add esp, 0xc
push esi
call dword [0x10152ee8]
movzx eax, word [esp + 0x48]
push 6
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x10056e68
mov esi, dword [esp + 0x8c]
cmp esi, 2
jne 0x10056d6d
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push 0xffff
push ebp
mov dword [esp + 0x2c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [esp + 0x18], eax
xor esi, esi
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x4c]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x10056ef9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp esi, 1
mov ebx, eax
jne 0x10056eb5
cmp ebx, 0x2740
jne 0x10056eb5
mov ecx, 7
lea esi, [esp + 0x48]
lea edi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x10056dcb
mov edi, 0x100eba44
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x10056e08
mov ax, word [esp + 0x48]
cmp ax, 0x17
jne 0x10056def
xor eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov byte [esp + 0x7b], 1
jmp 0x10056e08
cmp ax, 2
jne 0x10056f5c
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x68], eax
movzx eax, word [esp + 0x64]
push 6
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x10056eb5
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x68]
push edx
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 0x10056eb5
push ebp
mov esi, 2
call dword [sym.imp.WS2_32.dll_closesocket]
movzx eax, word [esp + 0x48]
push 6
push 1
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ebp, eax
cmp ebp, edi
jne 0x10056d45
push 0x2d8
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 4
push 2
call sym.LIBEAY32.dll_ERR_put_error
mov ecx, dword [esp + 0x34]
push 0x10101648
push ecx
push str.port
push 3
call sym.LIBEAY32.dll_ERR_add_error_data
push 0x2da
push str..crypto_bio_b_sock.c
push 0x76
push 0x69
push 0x20
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x38
jmp 0x10056f5c
push 0x30f
push str..crypto_bio_b_sock.c
push ebx
push 6
push 2
call sym.LIBEAY32.dll_ERR_put_error
mov edx, dword [esp + 0x34]
push 0x10101648
push edx
push str.port
push 3
call sym.LIBEAY32.dll_ERR_add_error_data
push 0x311
push str..crypto_bio_b_sock.c
push 0x75
push 0x69
push 0x20
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x38
jmp 0x10056f5c
push bind
push ebp
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x10056f54
push 0x315
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 6
push 2
call sym.LIBEAY32.dll_ERR_put_error
mov eax, dword [esp + 0x34]
push 0x10101648
push eax
push str.port
push 3
call sym.LIBEAY32.dll_ERR_add_error_data
push 0x317
push str..crypto_bio_b_sock.c
push 0x77
push 0x69
push 0x20
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x38
jmp 0x10056f5c
mov dword [esp + 0x18], 1
mov ecx, dword [esp + 0x24]
push ecx
call sym.LIBEAY32.dll_CRYPTO_free
add esp, 4
cmp dword [esp + 0x18], 0
jne 0x10056f7f
cmp ebp, 0xffffffff
je 0x10056f7f
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
or ebp, 0xffffffff
mov ecx, dword [esp + 0x80]
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.100d6528
add esp, 0x74
ret