Function at 0x483ab0
Capabilities:
Get thread local storage value
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
push 1
call fcn.0049df20
pop ecx
mov ebx, eax
push 0x2000
push 2
call fcn.0049cf60
add esp, 8
mov dword [ebp - 0x20], eax
push 0x1a
push 3
call fcn.0049cf60
add esp, 8
mov dword [ebp - 0x24], eax
push 0x1a
push 4
call fcn.0049cf60
add esp, 8
mov dword [ebp - 0x28], eax
xor edi, edi
xor esi, esi
mov eax, ebx
test eax, eax
je 0x483b06
mov eax, dword [ebx]
cmp eax, 0xf0123a42
je 0x483b58
push 1
call fcn.0049d010
pop ecx
mov dword [ebp - 0x2c], eax
push 2
call fcn.0049d010
pop ecx
mov dword [ebp - 0x30], eax
push 3
call fcn.0049d010
pop ecx
mov dword [ebp - 0x34], eax
push 4
call fcn.0049d010
pop ecx
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
push 4
mov eax, dword [ebp + 8]
push eax
push 0
push 0xbc4
push 1
call fcn.00492c70
add esp, 0x24
jmp 0x483fad
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x483b6b
push eax
call fcn.0049ff30
pop ecx
mov dword [ebp - 0x1c], eax
jmp 0x483b72
mov dword [ebp - 0x1c], 0x50
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x483b85
push eax
call fcn.0049ff30
pop ecx
mov dword [ebp - 4], eax
jmp 0x483b8c
mov dword [ebp - 4], 0
mov dword [ebx + 0xc], 0
lea eax, [0x6994ed]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0049b580
pop ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 8]
dec eax
cmp esi, eax
jne 0x483bde
mov eax, dword [ebp - 0x1c]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.0049b5d0
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0x7c], 0
je 0x483c41
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx eax, word [eax + 0x80]
test eax, eax
jne 0x483c41
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 0x483c71
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]
push ebx
call fcn.004827d0
pop ecx
test eax, eax
je 0x483d65
push 0
push 1
lea eax, [ebp - 0xd]
push eax
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.WSOCK32.dll_recv]
mov edi, eax
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 0x483e4a
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx eax, word [eax + 0x80]
test eax, eax
jne 0x483e4a
push 0x7d87d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x483d33
push 0xffffffffffffffff
push 0x7d87d8
push 0x7d87f8
call fcn.0048db80
add esp, 0xc
mov eax, dword [0x7d87f4]
test eax, eax
jne 0x483d1f
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]
jmp 0x483e4a
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 0x483e08
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
movzx eax, word [eax + 0x80]
test eax, eax
jne 0x483e08
push 0x7d87d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
jmp 0x483ddb
push 0xffffffffffffffff
push 0x7d87d8
push 0x7d87f8
call fcn.0048db80
add esp, 0xc
mov eax, dword [0x7d87f4]
test eax, eax
jne 0x483dc7
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 eax, dword [ebx + 0x24]
add dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x483e45
push eax
call fcn.004903d0
pop ecx
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea eax, [eax + 0x10]
push eax
call fcn.0049fc50
pop ecx
test eax, eax
je 0x483e45
mov eax, dword [ebx + 0x28]
cmp eax, 0xffffffff
je 0x483e43
cmp dword [ebp - 0x18], eax
jge 0x483e45
jmp 0x483e87
mov edi, 0xfffffffe
test edi, edi
jle 0x483e9a
movsx eax, byte [ebp - 0xd]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
movsx edx, byte [ecx + edx]
cmp eax, edx
jne 0x483e74
add dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx + eax]
test eax, eax
jne 0x483e7b
jmp 0x483e9a
mov dword [ebp - 0x14], 0
mov eax, esi
inc esi
mov edx, dword [ebp - 0xc]
mov cl, byte [ebp - 0xd]
mov byte [edx + eax], cl
mov eax, dword [ebp - 4]
test eax, eax
je 0x483bbd
cmp esi, eax
jl 0x483bbd
test edi, edi
jg 0x483f20
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x483eb6
push edi
mov eax, dword [ebp - 0x20]
push eax
call fcn.004a0410
add esp, 8
test edi, edi
jne 0x483ecc
mov dword [ebx + 0xc], 0xfffffffe
lea eax, str.Connection_closed
mov dword [ebx + 8], eax
jmp 0x483efb
cmp edi, 0xfffffffe
jne 0x483ee0
or dword [ebx + 0xc], 0xffffffff
lea eax, str.Timeout
mov dword [ebx + 8], eax
jmp 0x483efb
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [ebx + 0xc], eax
push eax
call fcn.00534900
pop ecx
mov dword [ebx + 8], eax
push 0
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
mov eax, dword [ebp - 0xc]
push eax
call fcn.0049b640
pop ecx
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea eax, [eax + 0x10]
push eax
call fcn.004a45e0
pop ecx
jmp 0x483fad
mov eax, dword [ebp - 4]
test eax, eax
je 0x483f2b
cmp esi, eax
jge 0x483f64
dec esi
mov dword [ebx + 0x20], esi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x483f43
push esi
mov eax, dword [ebp - 0x20]
push eax
call fcn.004a0410
add esp, 8
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, esi
push edx
mov edx, dword [ebp - 0xc]
push edx
lea eax, [eax + 0x10]
push eax
call fcn.004a4d10
add esp, 0xc
jmp 0x483fad
mov dword [ebx + 0xc], 0xfffffffd
lea eax, str.Buffer_overrun
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x483f89
push 0xfffffffffffffffe
mov eax, dword [ebp - 0x20]
push eax
call fcn.004a0410
add esp, 8
mov eax, dword [ebp - 0xc]
push eax
call fcn.0049b640
pop ecx
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
lea eax, [eax + 0x10]
push eax
call fcn.004a4aa0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret