Function at 0x5b1e10
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x79689a
mov eax, dword fs:[0]
push eax
sub esp, 0x49c
mov eax, dword [0x856918]
xor eax, esp
mov dword [esp + 0x498], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x856918]
xor eax, esp
push eax
lea eax, [esp + 0x4b0]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [esp + 0x4c0]
call edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp]
push eax
call fcn.005a9990
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x5b1ea8
push 0x30
call fcn.005645f4
add esp, 4
cmp eax, ebx
je 0x5b1ea4
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x28], 0xf
mov dword [eax + 0x24], ebx
mov byte [eax + 0x14], bl
mov byte [eax + 0x2c], bl
mov byte [eax + 0x2d], bl
jmp 0x5b1ea6
xor eax, eax
mov esi, eax
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
mov dword [esp + 0x4b8], ebx
call fcn.005b1dd0
cmp dword [esi], 0xffffffff
je 0x5b1f58
cmp byte [esi + 4], 0
jne 0x5b1f4a
cmp dword [esi + 0xc], ebx
je 0x5b1eea
call edi
sub eax, dword [esi + 0xc]
cmp eax, 0x3a98
ja 0x5b1f4a
push 0xffffffffffffffff
push ebx
lea eax, [esi + 0x10]
push eax
lea ecx, [esp + 0x80]
call fcn.00403fb2
mov edi, 0x10
mov al, byte [esi + 0x2c]
mov byte [esp + 0x17], al
test al, al
jne 0x5b221e
mov byte [esp + 0x38], al
cmp byte [0x86aae1], al
je 0x5b1f22
mov byte [esp + 0x38], 2
mov edx, dword [0x858028]
mov dword [esp + 0x18], ebx
cmp dword [0x85803c], edi
jae 0x5b1f39
mov edx, 0x858028
cmp dword [ebp + 0x24], edi
jb 0x5b21cf
mov eax, dword [ebp + 0x10]
jmp 0x5b21d2
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x5b1f58
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x5b1ffe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.005abb10
push eax
lea edx, [esp + 0x28]
push str.CCategoryManager::ThreadProc_failed_to_create_socket_with_error:
push edx
mov byte [esp + 0x4cc], 1
call fcn.00404cfa
push 1
push eax
mov byte [esp + 0x4d4], 2
call fcn.005a7050
mov esi, 0x10
add esp, 0x1c
cmp dword [esp + 0x34], esi
jb 0x5b1fc3
mov eax, dword [esp + 0x20]
push eax
call fcn.00564155
add esp, 4
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], 0
mov dword [esp + 0x34], 0xf
cmp dword [esp + 0x54], esi
jb 0x5b1fe7
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00564155
add esp, 4
cmp dword [esp + 0x8c], esi
jb 0x5b2772
mov edx, dword [esp + 0x78]
push edx
jmp 0x5b276a
mov edi, dword [0x86aad0]
cmp edi, ebx
je 0x5b270c
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
mov eax, 0x4ec4ec4f
imul ecx
mov eax, dword [0x86aad4]
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, eax
jb 0x5b270c
push eax
mov ecx, edi
call fcn.005a71a0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x80]
call fcn.00403fb2
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x7c]
push edx
lea ecx, [esi + 0x10]
call fcn.00403fb2
mov eax, dword [0x86aad4]
push eax
mov ecx, edi
call fcn.005a71a0
mov cl, byte [eax + 0x30]
xor eax, eax
mov byte [esi + 0x2c], cl
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov eax, dword [0x86aad4]
mov edx, 2
push eax
mov ecx, edi
mov word [esp + 0x5c], dx
call fcn.005a71a0
cmp dword [eax + 0x24], ebx
je 0x5b20e6
mov ecx, dword [0x86aad4]
push ecx
mov ecx, edi
call fcn.005a71a0
cmp word [eax + 0x28], bx
je 0x5b20e6
mov edx, dword [0x86aad4]
push edx
mov ecx, edi
call fcn.005a71a0
movzx eax, word [eax + 0x28]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [0x86aad4]
push ecx
mov ecx, edi
mov word [esp + 0x5e], ax
call fcn.005a71a0
mov edx, dword [eax + 0x24]
mov dword [esp + 0x5c], edx
mov byte [esi + 0x2d], 1
jmp 0x5b2118
mov eax, dword [0x86aad4]
push eax
mov ecx, edi
call fcn.005a71a0
movzx ecx, word [eax + 0x20]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [0x86aad4]
push edx
mov ecx, edi
mov word [esp + 0x5e], ax
call fcn.005a71a0
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x5c], eax
mov edx, dword [esi]
mov edi, 0x10
push edi
lea ecx, [esp + 0x5c]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x5b1f02
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.005abb10
push eax
lea ecx, [esp + 0x48]
push str.CCategoryManager::ThreadProc_failed_to_connect_to_server_with_error:
push ecx
mov byte [esp + 0x4cc], 4
call fcn.00404cfa
push 1
push eax
mov byte [esp + 0x4d4], 5
call fcn.005a7050
add esp, 0x1c
lea ecx, [esp + 0x3c]
call fcn.00402ed7
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4b8], 0
call fcn.00402ed7
call fcn.005ac8d0
push esi
mov byte [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp]
push eax
call fcn.005afa30
cmp dword [ebp + 0x4c], 1
jbe 0x5b21c1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 4]
cmp eax, dword [ebp + 8]
jae 0x5b21c1
push ebp
call fcn.005b1e10
add esp, 4
lea ecx, [esp + 0x74]
call fcn.00402ed7
jmp 0x5b2772
lea eax, [ebp + 0x10]
mov ecx, dword [0x85800c]
cmp dword [0x858020], edi
jae 0x5b21e5
mov ecx, 0x85800c
push edx
push 0
push 0
lea edx, [esp + 0x24]
push edx
push eax
mov eax, dword [esp + 0x4c]
push ecx
push eax
call fcn.005ab5f0
mov ecx, dword [esp + 0x34]
mov edx, dword [esi]
add esp, 0x1c
push 0
push ecx
mov edi, eax
push edi
push edx
call dword [sym.imp.WS2_32.dll_send]
push edi
mov ebx, eax
call fcn.00565caa
jmp 0x5b22c9
cmp dword [0x85803c], edi
mov edi, dword [0x858028]
jae 0x5b2231
mov edi, 0x858028
mov eax, 0x10
cmp dword [ebp + 0x24], eax
jb 0x5b2240
mov ecx, dword [ebp + 0x10]
jmp 0x5b2243
lea ecx, [ebp + 0x10]
mov edx, dword [0x85800c]
cmp dword [0x858020], eax
jae 0x5b2256
mov edx, 0x85800c
cmp dword [esp + 0x8c], eax
mov eax, dword [esp + 0x78]
jae 0x5b2267
lea eax, [esp + 0x78]
movzx ebx, byte [esi + 0x2d]
push ebx
push edi
movzx edi, byte [ebp + 0x4a]
push edi
movzx edi, byte [0x86aae1]
push edi
push 0
push 0
push 0
push ecx
push edx
push eax
lea eax, [esp + 0x80]
push eax
call fcn.005ab190
mov eax, dword [esp + 0x88]
add esp, 0x2c
cmp dword [esp + 0x70], 0x10
jae 0x5b22a5
lea eax, [esp + 0x5c]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esi]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp dword [esp + 0x70], 0x10
mov ebx, eax
jb 0x5b22cc
mov eax, dword [esp + 0x5c]
push eax
call fcn.00564155
add esp, 4
cmp ebx, 0xffffffff
jne 0x5b236b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov bl, byte [esi + 4]
push esi
mov edi, eax
mov byte [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp]
push eax
call fcn.005afa30
test bl, bl
jne 0x5b2310
cmp dword [ebp + 0x4c], 1
jbe 0x5b2310
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp + 4]
cmp eax, dword [ebp + 8]
jb 0x5b21b8
lea ecx, [esp + 0x3c]
push edi
push ecx
call fcn.005abb10
push eax
lea edx, [esp + 0x28]
push str.CCategoryManager::ThreadProc_failed_to_send_data_to_server_with_error:
push edx
mov byte [esp + 0x4cc], 6
call fcn.00404cfa
push 1
push eax
mov byte [esp + 0x4d4], 7
call fcn.005a7050
mov esi, 0x10
add esp, 0x1c
cmp dword [esp + 0x34], esi
jb 0x5b235e
mov eax, dword [esp + 0x20]
push eax
call fcn.00564155
add esp, 4
mov dword [esp + 0x30], 0
jmp 0x5b1fc7
push 0x3ff
lea eax, [esp + 0xb1]
push 0
push eax
mov byte [esp + 0xb8], 0
call fcn.00566330
mov edx, dword [esi]
add esp, 0xc
push 0
push 0x3ff
lea ecx, [esp + 0xb4]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5b2421
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.005abb10
push eax
lea ecx, [esp + 0x48]
push str.CCategoryManager::ThreadProc_failed_to_receive_data_from_server_with_error:
push ecx
mov byte [esp + 0x4cc], 8
call fcn.00404cfa
push 1
push eax
mov byte [esp + 0x4d4], 9
call fcn.005a7050
add esp, 0x1c
lea ecx, [esp + 0x3c]
call fcn.00402ed7
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4b8], 0
call fcn.00402ed7
push esi
mov byte [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp]
push eax
call fcn.005afa30
lea ecx, [esp + 0x74]
call fcn.00402ed7
jmp 0x5b2772
cmp byte [esp + 0x17], 0
jne 0x5b243b
lea edx, [esp + 0xac]
push edi
push edx
call fcn.005a6f90
add esp, 8
jmp 0x5b2453
lea eax, [esp + 0xac]
push eax
mov byte [esp + edi + 0xb0], 0
call fcn.005ab860
add esp, 4
mov bl, al
mov byte [esp + 0x16], 0
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], 0
mov byte [esp + 0x94], 0
mov byte [esp + 0x4b8], 0xa
test bl, bl
je 0x5b26a3
cmp byte [esp + 0x17], 0
jne 0x5b24a9
lea ecx, [esp + 0xac]
push edi
push ecx
call fcn.005a7010
add esp, 8
mov byte [esp + 0x16], al
jmp 0x5b2572
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
lea edx, [esp + 0x90]
push edx
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0xb4]
push ecx
mov byte [esp + 0x4c4], 0xb
call fcn.005ab940
add esp, 0xc
test al, al
je 0x5b255b
lea edx, [esp + 0x58]
push 0x7ca748
push edx
call fcn.00404cd7
add esp, 8
test al, al
je 0x5b2504
mov byte [esp + 0x16], 1
jmp 0x5b255d
lea eax, [esp + 0x58]
push 0x7ca744
push eax
call fcn.00404cd7
add esp, 8
test al, al
je 0x5b2521
mov byte [esp + 0x16], 2
jmp 0x5b255d
lea ecx, [esp + 0x58]
push 0x7ca740
push ecx
call fcn.00404cd7
add esp, 8
test al, al
je 0x5b253e
mov byte [esp + 0x16], 7
jmp 0x5b255d
lea edx, [esp + 0x58]
push 0x7ca73c
push edx
call fcn.00404cd7
add esp, 8
test al, al
je 0x5b255d
mov byte [esp + 0x16], 8
jmp 0x5b255d
xor bl, bl
lea ecx, [esp + 0x58]
mov byte [esp + 0x4b8], 0xa
call fcn.00402ed7
mov al, byte [esp + 0x16]
test bl, bl
je 0x5b26a3
cmp al, 1
je 0x5b2586
cmp al, 2
jne 0x5b26a3
mov bl, byte [esp + 0x17]
xor eax, eax
mov dword [esp + 0x18], eax
test bl, bl
jne 0x5b25a9
lea eax, [esp + 0xac]
push edi
push eax
call fcn.005a6fd0
add esp, 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
mov byte [esp + 0x4b8], 0xc
test bl, bl
jne 0x5b263b
lea edi, [esp + 0x18]
mov ebx, 4
test al, al
je 0x5b2650
test ebx, ebx
je 0x5b2650
cmp dword [esp + 0x6c], 0
je 0x5b25ef
push 0x2c
push 1
lea ecx, [esp + 0x60]
call fcn.0040323d
movzx ecx, byte [edi]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.005abb10
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x64]
mov byte [esp + 0x4c4], 0xd
call fcn.00401e38
cmp dword [esp + 0x54], 0x10
mov byte [esp + 0x4b8], 0xc
jb 0x5b2632
mov eax, dword [esp + 0x40]
push eax
call fcn.00564155
add esp, 4
inc edi
dec ebx
cmp byte [edi], 0
jne 0x5b25d7
jmp 0x5b2650
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x98]
push ecx
lea ecx, [esp + 0x64]
call fcn.00403fb2
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x60]
push edx
lea ecx, [ebp + 0x28]
call fcn.00403fb2
cmp byte [esp + 0x16], 2
push 1
jne 0x5b2681
mov ecx, dword [ebp]
lea eax, [esp + 0x5c]
push eax
lea eax, [ebp + 0xc]
push eax
mov byte [ebp + 0x49], 1
call fcn.005b0b90
jmp 0x5b2692
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [ebp]
lea eax, [ebp + 0xc]
push eax
call fcn.005b0a80
lea ecx, [esp + 0x58]
mov byte [esp + 0x4b8], 0xa
call fcn.00402ed7
cmp byte [ebp + 0x48], 0
je 0x5b26b6
push 0
push ebp
call fcn.005a9f50
add esp, 8
jmp 0x5b26d8
mov ecx, dword [ebp + 0x44]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [0x86aacc]
push 0
push 0xea60
push fcn.005a9f50
push ebp
call fcn.0054df20
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp]
push eax
call fcn.005afa30
lea ecx, [esp + 0x90]
call fcn.00402ed7
lea ecx, [esp + 0x74]
call fcn.00402ed7
jmp 0x5b2772
push 0x3e
push str.CCategoryManager::ThreadProc_no_servers_struct_or_invalid_size
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], 0
call fcn.00405920
lea ecx, [esp + 0x1c]
push 1
push ecx
mov byte [esp + 0x4c0], 3
call fcn.005a7050
mov esi, 0x10
add esp, 8
cmp dword [esp + 0x34], esi
jb 0x5b275c
mov edx, dword [esp + 0x20]
push edx
call fcn.00564155
add esp, 4
cmp dword [esp + 0x8c], esi
jb 0x5b2772
mov eax, dword [esp + 0x78]
push eax
call fcn.00564155
add esp, 4
mov ecx, dword [esp + 0x4b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x498]
xor ecx, esp
call fcn.00564b24
add esp, 0x4a8
ret