Function at 0x4235f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ca2c0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x647138]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x423658
mov ecx, edi
call fcn.00423710
call fcn.00501920
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
xor eax, eax
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push dword [0x6565a0]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x6565a0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
xor esi, esi
push ebx
push ecx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00423850
test eax, eax
je 0x4236bc
cmp esi, 0xffffffff
lea eax, [esi + 1]
push ebx
cmove eax, esi
push ecx
mov ecx, edi
mov esi, eax
call fcn.00423850
test eax, eax
jne 0x4236a4
push dword [ebp - 0x14]
push dword [0x6565a0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4236db
push ecx
call fcn.004307d0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x424d00
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
mov eax, dword [0x647138]
xor eax, esp
mov dword [esp + 0x1a0], eax
push esi
push 0x656104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x424d46
lea eax, [esp + 0x10]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x656108
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp byte [ebp + 8], 0
je 0x424d5d
push 0
push 0x656108
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x424d74
mov ecx, dword [esp + 0x1a4]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00501f98
mov esp, ebp
pop ebp
ret 4
mov dword [esp + 8], eax
call fcn.00501920
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push str.winsock
push eax
call fcn.00422af0
int3

Function at 0x4268e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [0x6565a0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x426922
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x426922
mov eax, dword [ecx]
test eax, eax
je 0x426922
mov dword [ecx], 0
mov dl, byte [eax]
movzx ecx, dl
cmp ecx, ebx
jb 0x426919
mov byte [eax + ebx], dl
pop ebx
pop ebp
ret
push eax
call fcn.004307d0
add esp, 4
lea eax, [ebx + 1]
push eax
call fcn.00501ce1
add esp, 4
mov ecx, eax
cmp ebx, 0xff
ja 0x426943
movzx eax, bl
mov byte [ecx + ebx], al
mov eax, ecx
pop ebx
pop ebp
ret
xor eax, eax
mov byte [ecx + ebx], al
mov eax, ecx
pop ebx
pop ebp
ret