Function at 0x10022b00
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a31d6
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x100d01c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x1d8]
mov dword [ebp - 4], 1
push eax
call fcn.10021d00
lea ebx, [esi + 0x58]
push eax
mov ecx, ebx
call fcn.10021bb0
mov edx, dword [ebp - 0x1c4]
cmp edx, 0x10
jb 0x10022b88
mov ecx, dword [ebp - 0x1d8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10022b7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022dee
push edx
push ecx
call fcn.100479cd
add esp, 8
lea eax, [ebp - 0x1b0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10022d57
cmp dword [esi + 0x68], 2
jbe 0x10022d57
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp + 8]
mov edi, eax
cmovae ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [ebp + 0x20]
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
mov eax, 2
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x20]
push 0x10
push eax
push edi
mov dword [esi + 8], edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x10022c19
push 0
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, 3
jmp 0x10022d5c
sub esp, 0x18
mov ecx, esi
mov eax, esp
mov dword [ebp - 0x1b4], esp
push eax
call fcn.10022430
sub esp, 0x18
mov byte [ebp - 4], 2
mov eax, esp
mov dword [ebp - 0x1b8], esp
push eax
call fcn.10021f20
sub esp, 0x14
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x1bc], esp
push ebx
call fcn.10017120
sub esp, 0x18
mov byte [ebp - 4], 4
lea eax, [ebp + 0x24]
mov ecx, esp
push eax
call fcn.10017120
mov byte [ebp - 4], 1
call fcn.100234a0
add esp, 0x60
mov ecx, esi
push eax
call fcn.100230f0
test eax, eax
je 0x10022ca0
push 0
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, 5
jmp 0x10022d5c
mov ebx, dword [esi + 0x8c]
test ebx, ebx
jne 0x10022cdb
push str.RecvThread_was_NULL___NetClient::Initialize
push 2
push str.UltimateAnticheat.log
call fcn.10010bd0
add esp, 0xc
push ebx
push edi
call dword [sym.imp.WS2_32.dll_shutdown]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea esi, [ebx + 0x14]
jmp 0x10022d5c
lea eax, [ebx + 4]
push eax
push 0
push esi
push 0x10022e10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebx], eax
test eax, eax
je 0x10022d3c
cmp eax, 0xffffffff
je 0x10022d3c
lea ecx, [esi + 0x10]
lea eax, [ebp + 8]
cmp ecx, eax
je 0x10022d17
cmp dword [ebp + 0x1c], 0x10
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
call fcn.100140c0
mov eax, dword [ebp + 0x20]
mov word [esi + 0x28], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edx
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
xor esi, esi
jmp 0x10022d5c
push str.Couldnt_create_recvThread___NetClient::Initialize
push 2
push str.UltimateAnticheat.log
call fcn.10010bd0
add esp, 0xc
mov esi, 0xa
jmp 0x10022d5c
mov esi, 1
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x10022d8c
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10022d82
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022df3
push edx
push ecx
call fcn.100479cd
add esp, 8
mov edx, dword [ebp + 0x38]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x10022dce
mov ecx, dword [ebp + 0x24]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10022dc4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10022df3
push edx
push ecx
call fcn.100479cd
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100479e0
mov esp, ebp
pop ebp
ret 0x34
call fcn.10055848
call fcn.10055848
int3