Function at 0x1001e5c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042cca
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], edi
xorps xmm0, xmm0
movups xmmword [edi + 8], xmm0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0xf
mov byte [edi + 8], 0
lea eax, [edi + 0x20]
mov dword [ebp - 4], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
movups xmmword [eax + 0xc], xmm0
push 2
movq qword [eax + 0x1c], xmm0
mov dword [eax + 0x24], 0
push eax
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
call fcn.100238f8
lea eax, [edi + 0x50]
xorps xmm0, xmm0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
movups xmmword [eax + 0xc], xmm0
push 2
movq qword [eax + 0x1c], xmm0
mov dword [eax + 0x24], 0
push eax
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
call fcn.100238f8
add esp, 0x10
mov dword [edi + 0x230], 0
mov dword [edi + 0x234], 0
mov dword [edi + 0x238], 0
mov dword [edi + 0x23c], 0
mov dword [edi + 0x240], 0
mov dword [edi + 0x244], 0
xorps xmm0, xmm0
movups xmmword [edi + 0x248], xmm0
mov dword [edi + 0x258], 0
mov dword [edi + 0x25c], 0xf
mov byte [edi + 0x248], 0
lea eax, [edi + 0x90]
mov byte [ebp - 4], 6
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1001e715
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
jne 0x1001e738
mov word [edi + 0x260], 0
mov byte [edi + 0x261], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 2
mov byte [edi + 0x260], 1
mov word [edi + 0x80], cx
lea eax, [edi + 0x84]
cmp dword [0x10055c4c], 0xf
mov ecx, 0x10055c38
push eax
cmova ecx, dword [0x10055c38]
push ecx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp dword [0x10055c34], 0xf
mov edx, 0x10055c20
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
cmova edx, dword [0x10055c20]
mov ecx, edx
mov dword [ebp - 0x44], 0
movups xmmword [ebp - 0x58], xmm0
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001e7a0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.10003320
mov byte [ebp - 4], 7
call fcn.1002b15c
cmp dword [ebp - 0x44], 0xf
lea esi, [ebp - 0x58]
mov dword [ebp - 0x1c], eax
cmova esi, dword [ebp - 0x58]
mov dword [eax], 0
lea eax, [ebp - 0x14]
push 0xa
push eax
push esi
call fcn.1002ba1b
add esp, 0xc
mov dword [ebp - 0x24], eax
cmp esi, dword [ebp - 0x14]
je 0x1001ebcf
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x22
je 0x1001ebd9
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x1001e82f
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001e825
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ebe3
push ecx
push edx
call fcn.100240fa
add esp, 8
push dword [ebp - 0x24]
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi + 0x82], ax
lea eax, [edi + 0x80]
push 0x10
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_connect]
mov dword [edi + 0x220], eax
cmp eax, 0xffffffff
je 0x1001e71e
xorps xmm0, xmm0
mov word [edi + 0x261], 1
lea eax, [ebp - 0x70]
mov byte [edi + 0x263], 0
lea esi, [edi + 8]
mov dword [edi + 0x224], 0xa
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
movups xmmword [ebp - 0x70], xmm0
mov byte [ebp - 0x70], 0
cmp esi, eax
je 0x1001e8f2
mov ecx, dword [esi + 0x14]
cmp ecx, 0xf
jbe 0x1001e8d0
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x1001e8c6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ebe3
mov eax, edx
push ecx
push eax
call fcn.100240fa
add esp, 8
movups xmm0, xmmword [ebp - 0x70]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x60]
movq qword [esi + 0x10], xmm0
mov edx, dword [esi + 0x10]
mov eax, dword [edi + 0x224]
mov dword [ebp - 0x1c], edx
cmp edx, eax
ja 0x1001e977
mov ecx, dword [esi + 0x14]
cmp ecx, eax
je 0x1001e977
jae 0x1001e924
mov byte [ebp - 0x24], 0
sub eax, edx
push dword [ebp - 0x24]
mov ecx, esi
push eax
call fcn.1000d950
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x10], eax
jmp 0x1001e977
cmp eax, 0xf
ja 0x1001e977
cmp ecx, 0xf
jbe 0x1001e977
mov ecx, dword [esi]
lea eax, [edx + 1]
push eax
push ecx
push esi
mov dword [ebp - 0x14], ecx
call fcn.10025860
mov ecx, dword [esi + 0x14]
add esp, 0xc
mov eax, dword [ebp - 0x14]
inc ecx
cmp ecx, 0x1000
jb 0x1001e966
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ebe3
mov eax, edx
push ecx
push eax
call fcn.100240fa
add esp, 8
mov dword [esi + 0x14], 0xf
lea ecx, [ebp - 0x40]
mov dword [edi + 0x228], 0
call fcn.100126b0
push eax
mov ecx, edi
mov byte [ebp - 4], 8
call fcn.1001ee00
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x1001e9cd
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001e9c3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001ebe8
push ecx
push edx
call fcn.100240fa
add esp, 8
push 8
call fcn.100240ca
add esp, 4
mov dword [ebp - 0x24], eax
mov dword [eax], edi
mov dword [eax + 4], 0x1001e460
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 9
push ecx
push 0
push eax
push 0x1001fe40
push 0
push 0
call fcn.1002af93
add esp, 0x18
mov dword [ebp - 0x20], eax
test eax, eax
je 0x1001ec05
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x1001ebed
push ecx
push eax
call fcn.10022969
add esp, 8
test eax, eax
jne 0x1001ebf4
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], edi
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x1001f280
push eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x24], esi
call fcn.1001fcf0
add esp, 0xc
mov esi, eax
lea ecx, [edi + 0x230]
mov byte [ebp - 4], 0xb
mov edx, dword [ecx + 4]
cmp edx, dword [ecx + 8]
je 0x1001ea7b
mov eax, dword [esi]
mov dword [esi], 0
mov dword [edx], eax
mov byte [edx + 4], 1
add dword [ecx + 4], 8
jmp 0x1001ea82
push esi
push edx
call fcn.1001b020
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x1001eaab
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x1001eaab
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x1001eaa5
mov eax, dword [edx]
push ecx
mov ecx, edx
jmp 0x1001eaa9
mov eax, dword [ecx]
push 1
call dword [eax]
push 0xb0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0x1001f0c0
call fcn.100240ca
add esp, 4
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xc
push ecx
mov ecx, eax
call fcn.10020010
mov esi, eax
mov byte [ebp - 0x30], 0
mov dword [ebp - 0x34], esi
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 0xd
test esi, esi
je 0x1001ebfb
mov dword [ebp - 0x28], esi
lea ecx, [esi + 4]
mov byte [ebp - 0x24], 1
lock inc dword [ecx]
or eax, 0xffffffff
lock xadd dword [ecx], eax
jne 0x1001eb1c
cmp dword [esi + 0x78], 0
je 0x1001eb14
mov eax, dword [esi + 0x78]
mov ecx, dword [esi + 0x78]
push esi
mov eax, dword [eax]
jmp 0x1001eb1a
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov byte [ebp - 4], 0xe
mov ecx, dword [edi + 0x234]
cmp ecx, dword [edi + 0x238]
je 0x1001eb4e
mov dword [ecx], esi
mov eax, edi
mov byte [ecx + 4], 1
add dword [edi + 0x234], 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x28]
push edx
push ecx
lea ecx, [edi + 0x230]
call fcn.1001b020
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x1001ebbc
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
jne 0x1001ebbc
mov edx, dword [ecx + 0x78]
test edx, edx
je 0x1001eb90
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push str.invalid_stoi_argument
call fcn.10021e9b
push str.stoi_argument_out_of_range
call fcn.10021edb
call fcn.1002ade6
call fcn.1002ade6
push 1
call fcn.100221cb
push 1
call fcn.100221cb
mov ecx, 4
call fcn.1000c0d0
push 6
mov dword [ebp - 0x1c], 0
call fcn.100221cb
int3