Function at 0x1000ecb0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push 0x20
push 0
lea eax, [ebp - 0x80]
push eax
call fcn.10014780
add esp, 0xc
mov dword [ebp - 0x80], 8
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x7c], 0
movzx ecx, word [ebp + 0xc]
push ecx
push 0x10026114
push 8
lea edx, [ebp - 0x60]
push edx
call fcn.100147fe
add esp, 0x10
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
cmp ecx, 0x5b
jne 0x1000edb6
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x8c], 1
jmp 0x1000ed39
mov edx, dword [ebp - 0x88]
add edx, 1
mov dword [ebp - 0x88], edx
mov eax, dword [ebp - 0x8c]
add eax, 1
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x8c]
movsx edx, byte [ecx]
test edx, edx
je 0x1000eda9
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x8c]
movsx ecx, byte [eax]
cmp ecx, 0x5d
je 0x1000eda9
cmp dword [ebp - 0x88], 0x40
jge 0x1000eda9
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x88]
mov cl, byte [edx]
mov byte [ebp + eax - 0x58], cl
push 3
push 0x10026118
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x8c]
push edx
call fcn.100142d0
add esp, 0xc
test eax, eax
jne 0x1000eda4
mov eax, dword [ebp - 0x8c]
add eax, 2
mov dword [ebp - 0x8c], eax
jmp 0x1000ed1b
mov ecx, dword [ebp - 0x88]
mov byte [ebp + ecx - 0x58], 0
jmp 0x1000edc8
push 0x40
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x58]
push eax
call fcn.100143f0
add esp, 0xc
mov byte [ebp - 0x18], 0
lea ecx, [ebp - 0x84]
push ecx
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000edfc
xor edx, edx
je 0x1000edf4
jmp 0x1000edee
or eax, 0xffffffff
jmp 0x1000eede
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp - 0x84]
mov dword [ebp - 4], eax
jmp 0x1000ee17
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1000eeac
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jge 0x1000ee47
jmp 0x1000ee0e
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
movzx edx, word [ecx]
cmp edx, 0x17
jne 0x1000ee73
cmp dword [ebp + 0x10], 0
jbe 0x1000ee73
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x18], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x1000eea5
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1000ee0e
jmp 0x1000eeac
mov ecx, dword [ebp - 0x84]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 0xc], 0
jge 0x1000eeca
xor edx, edx
je 0x1000eec5
jmp 0x1000eebf
or eax, 0xffffffff
jmp 0x1000eede
cmp dword [ebp - 8], 0
jge 0x1000eedb
xor eax, eax
je 0x1000eed6
jmp 0x1000eed0
or eax, 0xffffffff
jmp 0x1000eede
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret