Function at 0x484a70
Capabilities:
Get thread local storage value
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 1
call fcn.0049df20
pop ecx
mov esi, eax
push 0x400
push 2
call fcn.0049cf60
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
test eax, eax
je 0x484aab
mov eax, dword [esi]
cmp eax, 0xf0123a42
jne 0x484aab
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x484aee
push 1
call fcn.0049d010
pop ecx
mov dword [ebp - 0x14], eax
push 2
call fcn.0049d010
pop ecx
mov dword [ebp - 0x18], eax
push 3
call fcn.0049d010
pop ecx
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 3
mov eax, dword [ebp + 8]
push eax
push 0
push 0xbc4
push 1
call fcn.00492c70
add esp, 0x20
jmp 0x484d66
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xc], eax
push 0x1a
push 3
call fcn.0049cf60
add esp, 8
test eax, eax
je 0x484b14
push 3
call fcn.0049dbf0
pop ecx
mov dword [ebp - 4], eax
jmp 0x484b1d
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor edi, edi
mov dword [esi + 0xc], 0
lea eax, [0x6994ed]
mov dword [esi + 8], eax
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x7c], 0
je 0x484b92
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx eax, word [eax + 0x80]
test eax, eax
jne 0x484b92
push 0x7d87d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [0x7d87f0]
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [eax + 0x7c], 0
push 0x7d87f8
call fcn.0048dab0
pop ecx
push 0x7d87d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x7d87c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x1654], 0
je 0x484bc2
push 0x7d87c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0048d580
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [eax + 0x1658], 1
push 0x7d87c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
jmp 0x484c7e
cmp dword [ebp + 0xc], 1
jne 0x484c15
mov eax, dword [ebp - 4]
sub eax, edi
cmp eax, 0x578
jge 0x484c06
mov eax, dword [ebp - 4]
sub eax, edi
mov dword [ebp - 0x14], eax
jmp 0x484c0d
mov dword [ebp - 0x14], 0x578
mov eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
jmp 0x484c1b
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
xor ebx, ebx
push esi
call fcn.004828d0
pop ecx
test eax, eax
je 0x484c40
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
add eax, edi
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.WSOCK32.dll_send]
mov ebx, eax
test ebx, ebx
jle 0x484c48
add edi, ebx
jmp 0x484c78
test ebx, ebx
jne 0x484c5b
or dword [esi + 0xc], 0xffffffff
lea eax, str.Timeout
mov dword [esi + 8], eax
jmp 0x484c87
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [esi + 0xc], eax
push eax
call fcn.00534900
pop ecx
mov dword [esi + 8], eax
push 0
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
jmp 0x484c87
cmp dword [ebp + 0xc], 0
je 0x484c87
cmp edi, dword [ebp - 4]
jl 0x484bea
push 0x7d87c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [eax + 0x1658], 0
push 0x7d87c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x7c], 0
jne 0x484d2a
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx eax, word [eax + 0x80]
test eax, eax
jne 0x484d2a
push 0x7d87d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x484cfd
push 0xffffffffffffffff
push 0x7d87d8
push 0x7d87f8
call fcn.0048db80
add esp, 0xc
mov eax, dword [0x7d87f4]
test eax, eax
jne 0x484ce9
inc dword [0x7d87f0]
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [eax + 0x7c], 1
push 0x7d87d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [esi + 0x20], edi
test ebx, ebx
jle 0x484d4c
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
lea eax, [eax + 0x10]
push eax
call fcn.004a0410
add esp, 8
jmp 0x484d66
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0xffffffffffffffff
lea eax, [eax + 0x10]
push eax
call fcn.004a0410
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret