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

Disassembly:
jmp 0x100cb39d
push ebp
lea ebp, [esp - 0x1064]
mov eax, 0x1064
call fcn.100e3910
push 0xffffffffffffffff
push 0x100f41ad
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x10157040]
xor eax, ebp
mov dword [ebp + 0x1060], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x101d3884]
xor edi, edi
mov dword [ebp - 0x10], edi
mov byte [esi + 0x4d], 1
push 0x1000
lea eax, [ebp + 0x60]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x60]
push 0
push 0x1000
push eax
push dword [esi + 0x49]
call dword [sym.imp.WS2_32.dll_recv]
mov cl, byte [0x1018ef5b]
mov ebx, eax
test cl, cl
je 0x100cb519
test ebx, ebx
jle 0x100cb55b
sub esp, 0x18
lea ecx, [ebp + 0x60]
mov edx, esp
mov dword [ebp - 0x14], esp
xor eax, eax
mov edi, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [edx + 0x10], 0
lea edi, [ecx + 1]
and dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100cb446
sub ecx, edi
mov eax, ebx
cmp ecx, ebx
cmovb eax, ecx
mov ecx, edx
push eax
lea eax, [ebp + 0x60]
push eax
call fcn.1000545d
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call fcn.100cb244
add esp, 0x18
test al, al
je 0x100cb51f
lea eax, [ebp + 0x60]
push eax
push str._TE_Chat___s
push 0xff008700
call fcn.100323e6
add esp, 0xc
lea ecx, [ebp]
push str._TE_Chat_
call fcn.100054df
mov dword [ebp - 4], 1
lea ecx, [ebp + 0x60]
push ecx
mov edx, eax
lea ecx, [ebp + 0x18]
call fcn.100138c4
mov byte [ebp - 4], 2
mov edx, eax
lea ecx, [ebp + 0x30]
mov dword [esp], 0x10102acc
call fcn.100138c4
pop ecx
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x100cb4d7
mov eax, dword [eax]
push ecx
push eax
mov ecx, 0x101d3898
call fcn.1000da64
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x30]
call fcn.10004f4d
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x18]
call fcn.10004f4d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.10004f4d
cmp byte [esi + 0x4d], 0
je 0x100cb654
mov edi, dword [ebp - 0x10]
jmp 0x100cb3e9
test ebx, ebx
jle 0x100cb55b
jmp 0x100cb522
mov edi, dword [ebp - 0x10]
lea eax, [ebp + 0x60]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
pop ecx
test eax, eax
jle 0x100cb555
lea eax, [ebp + 0x60]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
pop ecx
cmp eax, 0x3ec
jge 0x100cb555
lea eax, [ebp + 0x60]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
pop ecx
mov dword [0x1018ef20], eax
jmp 0x100cb507
mov cl, byte [0x1018ef5b]
test cl, cl
je 0x100cb507
cmp ebx, 0xffffffff
jne 0x100cb507
lea ecx, [ebp + 0x60]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100cb56a
sub ecx, edx
jne 0x100cb507
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
test eax, eax
je 0x100cb507
test edi, edi
jle 0x100cb5da
push str._TE_Chat__Reconnecting_.._n
lea ecx, [ebp + 0x48]
call fcn.100054df
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x100cb5a4
mov eax, dword [eax]
push ecx
push eax
mov ecx, 0x101d3898
call fcn.1000da64
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x48]
call fcn.10004f4d
call ebx
push eax
push str._TE_Chat__Reconnecting_..__Last_Err:__i_
push 0xffff0000
call fcn.100323e6
add esp, 0xc
mov ecx, esi
call fcn.100cb677
jmp 0x100cb5e9
push 0x10
lea eax, [esi + 0x39]
push eax
push dword [esi + 0x49]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100cb507
mov eax, edi
inc edi
mov dword [ebp - 0x10], edi
cmp eax, 4
jl 0x100cb581
push str._TE_Chat__Disconnected._n
lea ecx, [ebp + 0x48]
call fcn.100054df
mov dword [ebp - 4], 5
cmp dword [eax + 0x14], 0xf
mov edx, dword [eax + 0x10]
jbe 0x100cb61c
mov eax, dword [eax]
push edx
push eax
mov ecx, 0x101d3898
call fcn.1000da64
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x48]
call fcn.10004f4d
push str._TE_Chat__Disconnected.
push 0xffff0000
call fcn.100323e6
pop ecx
pop ecx
push dword [esi + 0x49]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1060]
xor ecx, ebp
call fcn.100e1471
add ebp, 0x1064
leave
ret