Function at 0x10028df0
Capabilities:
Check for time delay via gettickcount
Get thread local storage value
Send data
Send data on socket
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
mov esi, ecx
push edi
push dword [0x100db8a4]
mov edi, dword [esi + 8]
mov byte [esi + 0x1057c], 1
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push edi
push dword [0x100db8a4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [esi + 0x10560]
mov ebx, dword [esi + 0x104fc]
mov edx, dword [esi + 0x105ac]
mov ecx, dword [esi + 0x105a0]
mov dword [esp + 0x40], ebx
mov eax, dword [edi + 0x18]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x10580]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x48], edx
mov eax, dword [edi + 0x18]
mov dword [esp + 0x54], eax
mov dword [esp + 0x30], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [esp + 0x58], edx
mov dword [esp + 0x5c], ecx
mov eax, dword [edi + 0x18]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0x105a4]
push ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
call ebx
push dword [esi + 0x105a4]
call ebx
mov ecx, esi
call fcn.10029530
lea ebx, [esi + 0x10564]
mov byte [esp + 0xf], 0
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [esi + 0x10500], 0
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jne 0x10029295
lea esp, [esp]
cmp byte [esi + 0x10488], 0
je 0x10029295
cmp byte [esp + 0xf], 0
push ebx
je 0x10028eed
call edi
lea eax, [esp + 0x30]
jmp 0x10028f04
cmp dword [esi + 0x10594], 8
jae 0x10028efe
call edi
lea eax, [esp + 0x40]
jmp 0x10028f04
call edi
lea eax, [esp + 0x50]
push 0xffffffffffffffff
push 0
push eax
push 4
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
je 0x1002928f
cmp edi, 1
jne 0x10028f89
mov ecx, dword [esi + 0x10560]
mov eax, dword [ecx]
call dword [eax + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x10560]
mov eax, dword [esi + 0x10584]
mov dword [ecx + 4], eax
cmp dword [esi + 0x10588], 0
jne 0x10028f69
mov eax, dword [esi + 0x10560]
push dword [esi + 0x10580]
mov dword [esi + 0x10588], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [esi + 0x10560]
inc dword [esi + 0x1058c]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
mov dword [esi + 0x10584], eax
call edi
jmp 0x1002927a
cmp edi, 2
jne 0x10029116
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [esi + 0x10598], 0
mov edx, eax
mov dword [esp + 0x10], edx
je 0x100290be
jmp 0x10028fb0
mov ebx, dword [esi + 0x10598]
mov ecx, dword [ebx + 0x10]
cmp ecx, edx
je 0x100290be
mov eax, edx
sub eax, ecx
cmp eax, dword [ebx + 0x14]
jb 0x100290be
mov eax, dword [ebx + 4]
mov dword [esi + 0x10598], eax
test eax, eax
jne 0x10028fe1
mov dword [esi + 0x1059c], eax
dec dword [esi + 0x10594]
mov ecx, ebx
inc byte [ebx + 0xd]
cmp byte [ebx + 0xd], 3
jae 0x10029081
inc dword [esi + 0x10594]
mov eax, dword [ebx]
mov dword [ebx + 4], 0
mov dword [ebx + 0x10], edx
call dword [eax + 8]
mov eax, dword [ebx]
mov ecx, ebx
mov edi, dword [ebx + 8]
call dword [eax]
push 0
push 0
push 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
push 1
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], edi
push eax
push dword [esi + 0x1047c]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x10029053
push 0
push dword [esp + 0x18]
lea ecx, [esi + 0x378]
call fcn.10013b50
add esp, 8
mov eax, dword [esi + 0x1059c]
test eax, eax
je 0x10029062
mov dword [eax + 4], ebx
jmp 0x10029068
mov dword [esi + 0x10598], ebx
mov edx, dword [esp + 0x10]
mov dword [esi + 0x1059c], ebx
cmp dword [esi + 0x10598], 0
jne 0x10028fb0
jmp 0x100290ba
mov eax, dword [ebx]
push 0x5b4
call dword [eax + 0x14]
cmp dword [esi + 0x10594], 8
lea ebx, [esi + 0x10564]
mov edi, dword [sym.imp.KERNEL32.dll_SetEvent]
jne 0x100290a5
push dword [ebx + 0x3c]
call edi
dec dword [ebx + 0x30]
jne 0x100290af
push dword [ebx + 0x40]
call edi
mov byte [ebx + 0x44], 0
mov byte [esi + 0x10488], 0
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x10598]
test ecx, ecx
je 0x10029105
mov eax, dword [ecx + 0x14]
add eax, dword [ecx + 0x10]
push 0xffffffffffffffff
push 0xffffd8f0
sub eax, edx
push 0
push eax
call fcn.100a2ea0
push 0
push 0
push 0
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x2c]
push 0
push eax
push dword [esi + 0x105ac]
mov dword [esp + 0x3c], edx
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
jmp 0x10029274
push dword [esi + 0x105ac]
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
jmp 0x10029274
cmp edi, 3
jne 0x10029274
mov eax, dword [esi + 0x10594]
mov byte [esp + 0xf], 0
cmp eax, 8
jae 0x10029268
mov edi, dword [esi + 0x10584]
test edi, edi
je 0x10029260
cmp byte [edi + 0xc], 0
je 0x10029200
mov byte [esp + 0xf], 1
test eax, eax
je 0x1002915f
push dword [esi + 0x105a4]
jmp 0x1002926e
mov byte [esi + 0x105a8], 1
dec dword [esi + 0x1058c]
mov eax, dword [edi + 4]
mov dword [esi + 0x10584], eax
test eax, eax
jne 0x1002918f
push dword [esi + 0x10580]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [esi + 0x10588], 0
lea eax, [esi + 0x10590]
mov bl, 1
lock xadd byte [eax], bl
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov byte [eax + 1], bl
cmp dword [esi + 0x10594], 0
jne 0x100291b9
push dword [esi + 0x105a4]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x10], eax
mov ecx, edi
mov eax, dword [edi]
mov byte [edi + 0xd], 0
call dword [eax + 8]
mov eax, dword [edi]
mov ecx, edi
push dword [edi + 8]
call dword [eax]
push eax
mov ecx, esi
call fcn.10026ec0
mov dword [edi + 4], 0
mov eax, dword [esi + 0x1059c]
test eax, eax
je 0x1002921a
mov dword [eax + 4], edi
inc dword [esi + 0x10594]
mov dword [esi + 0x1059c], edi
jmp 0x10029274
cmp byte [esi + 0x105a8], 0
je 0x10029166
push dword [esi + 0x105a4]
mov byte [esp + 0x13], 1
jmp 0x1002926e
push 0xffffffffffffffff
push 0xffffd8f0
push 0
mov dword [esi + 0x10598], edi
push dword [edi + 0x14]
call fcn.100a2ea0
push 0
push 0
push 0
mov dword [esp + 0x34], eax
lea eax, [esp + 0x34]
push 0
push eax
push dword [esi + 0x105ac]
mov dword [esp + 0x44], edx
call dword [sym.imp.KERNEL32.dll_SetWaitableTimer]
inc dword [esi + 0x10594]
mov dword [esi + 0x1059c], edi
jmp 0x10029274
push dword [esi + 0x10580]
jmp 0x1002926e
push dword [esi + 0x105a0]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp byte [esi + 0x10500], 0
lea ebx, [esi + 0x10564]
je 0x10028ed0
jmp 0x10029295
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 0x105ac]
mov byte [esi + 0x1057c], 0
call dword [sym.imp.KERNEL32.dll_CancelWaitableTimer]
cmp dword [esi + 0x10598], 0
je 0x100292d3
mov ecx, dword [esi + 0x10598]
push 0x3e3
mov eax, dword [ecx + 4]
mov dword [esi + 0x10598], eax
mov eax, dword [ecx]
call dword [eax + 0x14]
cmp dword [esi + 0x10598], 0
jne 0x100292b1
cmp dword [esi + 0x10584], 0
je 0x10029314
lea esp, [esp]
mov ecx, dword [esi + 0x10584]
mov eax, ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x10584], eax
test eax, eax
jne 0x100292fb
mov dword [esi + 0x10588], eax
dec dword [esi + 0x1058c]
mov eax, dword [ecx]
push 0x3e3
call dword [eax + 0x14]
cmp dword [esi + 0x10584], 0
jne 0x100292e0
push ebx
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret