Function at 0x10018c40
Capabilities:
Connect socket
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ddf6
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x1008f180]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x54], esi
push 0x10
lea eax, [esi + 0x88]
mov dword [ebp - 4], 0
push eax
push dword [esi + 0x30]
mov dword [ebp - 0x5c], esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x10018f82
push 0x40
xor edi, edi
lea ecx, [ebp - 0x48]
xorps xmm0, xmm0
mov dword [ebp - 0x38], edi
push str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x34], edi
call fcn.10016bc0
push edi
push 0x10
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
push eax
push dword [esi + 0x30]
xorps xmm0, xmm0
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10018fc8
xorps xmm0, xmm0
mov dword [ebp - 0x7c], edi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x78], edi
movups xmmword [ebp - 0x8c], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10018cf1
sub ecx, edx
lea eax, [ebp - 0x24]
push ecx
push eax
lea ecx, [ebp - 0x8c]
call fcn.10016bc0
mov byte [ebp - 4], 6
call fcn.10055355
cmp dword [ebp - 0x78], 0xf
lea esi, [ebp - 0x8c]
mov dword [ebp - 0x58], eax
cmova esi, dword [ebp - 0x8c]
mov dword [eax], 0
lea eax, [ebp - 0x4c]
push 0xa
push eax
push esi
call fcn.10055226
add esp, 0xc
mov dword [ebp - 0x50], eax
cmp esi, dword [ebp - 0x4c]
je 0x1001901e
mov ecx, dword [ebp - 0x58]
cmp dword [ecx], 0x22
je 0x10019028
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x78]
cmp ecx, 0xf
jbe 0x10018d92
mov edx, dword [ebp - 0x8c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10018d85
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10019032
push ecx
push edx
call fcn.1004d752
mov eax, dword [ebp - 0x50]
add esp, 8
test eax, eax
jle 0x1001908a
push ecx
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
push eax
lea ecx, [ebp - 0x30]
movq qword [ebp - 0x30], xmm0
call fcn.100110d0
mov esi, dword [ebp - 0x54]
mov byte [ebp - 4], 7
nop word [eax + eax]
mov edx, dword [ebp - 0x50]
cmp edi, edx
jge 0x10018de7
mov ecx, dword [ebp - 0x30]
sub edx, edi
push 0
push edx
add ecx, edi
push ecx
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10019037
add edi, eax
jmp 0x10018dc0
mov edx, dword [ebp - 0x30]
xorps xmm0, xmm0
mov ecx, edx
mov dword [ebp - 0x64], 0
movups xmmword [ebp - 0x74], xmm0
mov dword [ebp - 0x60], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10018e04
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x74]
call fcn.10016bc0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.10049f00
mov ecx, dword [ebp - 0x98]
test ecx, ecx
je 0x10018e83
mov edx, dword [ebp - 0x90]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10018e5b
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10019080
push edx
push ecx
call fcn.1004d752
add esp, 8
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 0
mov ecx, dword [ebp - 0x60]
cmp ecx, 0xf
jbe 0x10018eb7
mov edx, dword [ebp - 0x74]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10018ead
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10019080
push ecx
push edx
call fcn.1004d752
add esp, 8
mov ecx, dword [ebp - 0x30]
mov word [esi + 0x18], 0x101
test ecx, ecx
je 0x10018f06
mov edx, dword [ebp - 0x28]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10018ee7
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10019085
push edx
push ecx
call fcn.1004d752
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x10018f3a
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10018f30
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10019085
push ecx
push edx
call fcn.1004d752
add esp, 8
mov al, 1
jmp 0x10018f66
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004d713
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x48]
call fcn.100167c0
push eax
mov edx, str.Socket_error:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.1000d470
add esp, 4
push eax
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.100171c0
push 0x100880c0
lea eax, [ebp - 0xb0]
push eax
call fcn.1004eeb0
mov ecx, esi
mov word [esi + 0x18], 0
call fcn.10011160
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x74]
call fcn.100167c0
push eax
mov edx, str.recv_size
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xa4]
call fcn.1000d470
add esp, 4
push eax
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 5
call fcn.100171c0
push 0x100880c0
lea eax, [ebp - 0xbc]
push eax
call fcn.1004eeb0
push str.invalid_stoi_argument
call fcn.1004aaa1
push str.stoi_argument_out_of_range
call fcn.1004aae1
call fcn.1005260f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x74]
call fcn.100167c0
push eax
mov edx, str.recv_certificate
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xa4]
call fcn.1000d470
add esp, 4
push eax
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 9
call fcn.100171c0
push 0x100880c0
lea eax, [ebp - 0xc8]
push eax
call fcn.1004eeb0
call fcn.1005260f
call fcn.1005260f
mov esi, dword [ebp - 0x54]
mov ecx, esi
mov word [esi + 0x18], 0
call fcn.10011160
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea ecx, [ebp - 0x74]
call fcn.100167c0
push eax
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 0xc
call fcn.100171c0
push 0x100880c0
lea eax, [ebp - 0xd4]
push eax
call fcn.1004eeb0
int3