Function at 0x1104ed40
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.110afe90
mov eax, dword [0x1111aac8]
xor eax, esp
mov dword [esp + 0x70], eax
push ebp
push esi
mov esi, dword [esp + 0x80]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], 0
or ebp, 0xffffffff
call sym.LIBEAY32.dll_BIO_sock_init
cmp eax, 1
je 0x1104ed8a
pop esi
or eax, ebp
pop ebp
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.110b03b7
add esp, 0x74
ret
push ebx
push esi
call sym.LIBEAY32.dll_BUF_strdup
mov ebx, eax
add esp, 4
mov dword [esp + 0x1c], ebx
test ebx, ebx
jne 0x1104edb3
pop ebx
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.110b03b7
add esp, 0x74
ret
push edi
xor esi, esi
cmp byte [ebx], 0
mov edi, ebx
mov dword [esp + 0x14], edi
je 0x1104ede6
mov cl, byte [eax]
cmp cl, 0x3a
jne 0x1104edcc
mov esi, eax
jmp 0x1104edd1
cmp cl, 0x2f
je 0x1104edd9
inc eax
cmp byte [eax], 0
jne 0x1104edc1
jmp 0x1104eddc
mov byte [eax], 0
test esi, esi
je 0x1104ede6
mov byte [esi], 0
inc esi
jmp 0x1104edf4
mov dword [esp + 0x14], 0
mov edi, dword [esp + 0x14]
mov esi, ebx
cmp dword [0x1111c52c], 0
jne 0x1104ee38
push str.getaddrinfo
call sym.LIBEAY32.dll_DSO_global_lookup
add esp, 4
mov dword [0x1111c52c], eax
test eax, eax
je 0x1104ee29
push str.freeaddrinfo
call sym.LIBEAY32.dll_DSO_global_lookup
add esp, 4
mov dword [0x1111c530], eax
test eax, eax
jne 0x1104ee38
mov dword [0x1111c52c], 0xffffffff
jmp 0x1104eec7
cmp dword [0x1111c52c], 0xffffffff
je 0x1104eec7
xor eax, eax
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
test edi, edi
je 0x1104eead
push 0x3a
push edi
call fcn.110b4bf0
add esp, 8
test eax, eax
je 0x1104ee96
cmp byte [edi + 1], 0
jne 0x1104ee8c
mov dword [esp + 0x14], 0
mov edi, dword [esp + 0x14]
mov dword [esp + 0x2c], 0x17
jmp 0x1104eead
cmp byte [edi], 0x2a
jne 0x1104eead
cmp byte [edi + 1], 0
jne 0x1104eead
mov dword [esp + 0x14], 0
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
push ecx
push esi
push edi
call dword [0x1111c52c]
test eax, eax
je 0x1104efa1
lea edx, [esp + 0x10]
push edx
push esi
call sym.LIBEAY32.dll_BIO_get_port
add esp, 8
test eax, eax
je 0x1104f1cd
mov ecx, dword [esp + 0x10]
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, 2
push ecx
mov word [esp + 0x4c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x4a], ax
mov dword [esp + 0x18], 0x10
test edi, edi
je 0x1104ef97
mov ecx, 0x110d6370
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1104ef48
test dl, dl
je 0x1104ef44
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1104ef48
add eax, 2
add ecx, 2
test dl, dl
jne 0x1104ef28
xor eax, eax
jmp 0x1104ef4d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1104ef97
lea edx, [esp + 0x10]
push edx
push edi
call sym.LIBEAY32.dll_BIO_get_host_ip
add esp, 8
test eax, eax
je 0x1104f1cd
mov eax, dword [esp + 0x10]
movzx ecx, al
shl ecx, 8
movzx edx, ah
movzx eax, byte [esp + 0x12]
or ecx, edx
movzx edx, byte [esp + 0x13]
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 0x1104efd6
mov dword [esp + 0x4c], 0
jmp 0x1104efd6
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x18], eax
cmp eax, 0x1c
jbe 0x1104efb9
mov dword [esp + 0x18], 0x1c
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x18]
push eax
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.110b1390
add esp, 0xc
push esi
call dword [0x1111c530]
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 0x1104f13d
mov esi, dword [esp + 0x8c]
cmp esi, 2
jne 0x1104f020
push 4
lea ecx, [esp + 0x20]
push ecx
push 4
push 0xffff
push ebp
mov dword [esp + 0x30], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [esp + 0x1c], eax
xor esi, esi
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x4c]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x1104f201
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp esi, 1
jne 0x1104f187
cmp ebx, 0x2740
jne 0x1104f187
mov eax, dword [esp + 0x14]
mov ecx, 7
lea esi, [esp + 0x48]
lea edi, [esp + 0x64]
rep movsd dword es:[edi], dword [esi]
test eax, eax
je 0x1104f09c
mov ecx, 0x110d6370
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1104f093
test dl, dl
je 0x1104f08f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1104f093
add eax, 2
add ecx, 2
test dl, dl
jne 0x1104f073
xor eax, eax
jmp 0x1104f098
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1104f0d9
mov ax, word [esp + 0x48]
cmp ax, 0x17
jne 0x1104f0c0
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 0x1104f0d9
cmp ax, 2
jne 0x1104f1c9
push 0x7f000001
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x68], eax
movzx ecx, word [esp + 0x64]
push 6
push 1
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x1104f187
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x68]
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 0x1104f187
push ebp
mov esi, 2
call dword [sym.imp.WS2_32.dll_closesocket]
movzx ecx, word [esp + 0x48]
push 6
push 1
push ecx
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, dword [esp + 0x20]
mov ebp, eax
cmp ebp, edi
jne 0x1104eff8
push 0x2ca
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 edx, dword [esp + 0x38]
push 0x110d62f8
push edx
push str.port
push 3
call sym.LIBEAY32.dll_ERR_add_error_data
push 0x2cc
push str..crypto_bio_b_sock.c
push 0x76
push 0x69
push 0x20
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x38
jmp 0x1104f1cd
push 0x309
push str..crypto_bio_b_sock.c
push ebx
push 6
push 2
call sym.LIBEAY32.dll_ERR_put_error
mov eax, dword [esp + 0x38]
push 0x110d62f8
push eax
push str.port
push 3
call sym.LIBEAY32.dll_ERR_add_error_data
push 0x30b
push str..crypto_bio_b_sock.c
push 0x75
push 0x69
push 0x20
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x38
mov ebx, dword [esp + 0x20]
push ebx
call sym.LIBEAY32.dll_CRYPTO_free
add esp, 4
cmp dword [esp + 0x1c], 0
pop edi
jne 0x1104f1ed
cmp ebp, 0xffffffff
je 0x1104f1ed
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
or ebp, 0xffffffff
mov ecx, dword [esp + 0x7c]
pop ebx
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.110b03b7
add esp, 0x74
ret
push bind
push ebp
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x1104f25f
push 0x310
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 ecx, dword [esp + 0x38]
push 0x110d62f8
push ecx
push str.port
push 3
call sym.LIBEAY32.dll_ERR_add_error_data
push 0x312
push str..crypto_bio_b_sock.c
push 0x77
push 0x69
push 0x20
call sym.LIBEAY32.dll_ERR_put_error
add esp, 0x38
jmp 0x1104f1cd
mov dword [esp + 0x1c], 1
jmp 0x1104f1cd