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

Disassembly:
cmp dword [0x757f90], 0
je 0x48433f
cmp dword [0x757f50], 0
jne 0x48433f
push ebx
push esi
push edi
mov dword [0x757f50], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x74f72c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push dword [0x74f72c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, edi
call fcn.00483c40
mov esi, dword [0x757fa0]
test esi, esi
je 0x483d97
mov eax, dword [esi]
call eax
push esi
mov esi, dword [esi + 4]
call fcn.0066a657
add esp, 4
test esi, esi
jne 0x483d83
mov esi, dword [0x757fb8]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x757fa0], 0
test esi, esi
je 0x483dbd
push esi
call ebx
push esi
call fcn.0066a657
add esp, 4
cmp dword [0x757fb0], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x757fb8], 0
je 0x483de6
push dword [0x758278]
call esi
push dword [0x75827c]
call esi
mov eax, dword [0x74f72c]
push eax
mov dword [0x74f72c], 0xffffffff
call esi
cmp dword [0x755a60], 0
je 0x483e8c
mov eax, dword [0x755a4c]
test eax, eax
je 0x483e17
mov eax, dword [eax + 8]
test eax, eax
je 0x483e17
call eax
call fcn.00479400
mov esi, dword [0x755a54]
test esi, esi
je 0x483e32
push esi
call ebx
push esi
call fcn.0066a657
add esp, 4
mov esi, dword [0x755a58]
mov dword [0x755a54], 0
test esi, esi
je 0x483e52
push esi
call ebx
push esi
call fcn.0066a657
add esp, 4
mov esi, dword [0x755a50]
mov dword [0x755a58], 0
test esi, esi
je 0x483e72
push esi
call ebx
push esi
call fcn.0066a657
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x755a50], 0
mov dword [0x755a60], 0
mov ecx, dword [0x758254]
test ecx, ecx
je 0x483eb5
call fcn.004aaf40
push dword [0x75824c]
mov dword [0x758254], 0
call esi
push dword [0x758250]
call esi
call fcn.004b3580
call fcn.004b3580
mov esi, dword [0x758268]
test esi, esi
je 0x483f62
mov edi, dword [esi]
sub edi, 1
js 0x483f3e
test esi, esi
je 0x483ee4
cmp edi, dword [esi]
jge 0x483ee4
mov eax, dword [esi + 4]
mov ebx, dword [eax + edi*4]
jmp 0x483ee6
xor ebx, ebx
test esi, esi
je 0x483f1b
mov edx, dword [esi]
cmp edi, edx
jge 0x483f1b
lea eax, [edx - 1]
cmp edi, eax
je 0x483f16
mov eax, dword [esi + 4]
sub edx, edi
lea ecx, [eax + edi*4]
lea eax, [edx*4 - 4]
push eax
lea eax, [ecx + 4]
push eax
push ecx
call fcn.00666bd0
mov edx, dword [esi]
add esp, 0xc
lea eax, [edx - 1]
mov dword [esi], eax
mov ecx, dword [ebx]
call fcn.004e5090
push dword [ebx + 4]
call fcn.0066a657
push ebx
call fcn.0066a657
mov esi, dword [0x758268]
add esp, 8
sub edi, 1
jns 0x483ed4
test esi, esi
je 0x483f62
cmp dword [esi], 0
jne 0x483f62
push dword [esi + 4]
call fcn.0066a657
push esi
call fcn.0066a657
add esp, 8
mov dword [0x758268], 0
mov ebx, dword [0x757f38]
test ebx, ebx
je 0x483fa9
xor esi, esi
cmp dword [ebx], esi
jle 0x483f8e
mov eax, dword [ebx + 4]
mov edi, dword [eax + esi*4]
test edi, edi
je 0x483f89
mov eax, dword [edi]
call eax
push edi
call fcn.0066a657
add esp, 4
inc esi
cmp esi, dword [ebx]
jl 0x483f72
push dword [ebx + 4]
call fcn.0066a657
push ebx
call fcn.0066a657
add esp, 8
mov dword [0x757f38], 0
mov esi, dword [0x758508]
test esi, esi
je 0x483fc3
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
call fcn.0066a657
add esp, 4
mov ebx, dword [0x758390]
mov dword [0x758508], 0
test ebx, ebx
je 0x484018
xor edi, edi
cmp dword [ebx + 0xc], edi
jbe 0x484008
nop
mov eax, dword [ebx]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x484002
nop dword [eax]
mov esi, dword [eax + 4]
push eax
call fcn.0066a657
add esp, 4
mov eax, esi
test esi, esi
jne 0x483ff0
inc edi
cmp edi, dword [ebx + 0xc]
jb 0x483fe0
push dword [ebx]
call fcn.0066a657
push ebx
call fcn.0066a657
add esp, 8
mov esi, dword [0x75838c]
mov dword [0x758390], 0
test esi, esi
je 0x48403c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
call fcn.0066a657
add esp, 4
mov dword [0x75838c], 0
mov ebx, 0x7559f0
nop dword [eax + eax]
mov edi, dword [ebx]
test edi, edi
je 0x484089
xor esi, esi
cmp dword [edi], esi
jle 0x484078
nop dword [eax]
mov eax, dword [edi + 4]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x484073
push eax
call fcn.0066a657
add esp, 4
inc esi
cmp esi, dword [edi]
jl 0x484060
push dword [edi + 4]
call fcn.0066a657
push edi
call fcn.0066a657
add esp, 8
mov dword [ebx], 0
add ebx, 4
cmp ebx, 0x755a30
jl 0x484050
mov esi, dword [0x7559ec]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
test esi, esi
je 0x4840b6
push esi
call ebx
push esi
call fcn.0066a657
add esp, 4
cmp dword [0x757fd0], 0
mov dword [0x7559ec], 0
je 0x4840d9
mov dword [0x757fd0], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, dword [0x758504]
test esi, esi
je 0x4840ef
push esi
call ebx
push esi
call fcn.0066a657
add esp, 4
mov esi, dword [0x7559b0]
mov dword [0x758504], 0
test esi, esi
je 0x48410f
push esi
call ebx
push esi
call fcn.0066a657
add esp, 4
mov ecx, 2
mov dword [0x7559b0], 0
call fcn.004dac30
mov ecx, 1
call fcn.004dac30
or ecx, 0xffffffff
call fcn.004dac30
mov edi, dword [0x7582e4]
test edi, edi
je 0x48416e
xor esi, esi
cmp dword [edi], esi
jle 0x48415d
mov eax, dword [edi + 4]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x484158
push eax
call fcn.0066a657
add esp, 4
inc esi
cmp esi, dword [edi]
jl 0x484145
push dword [edi + 4]
call fcn.0066a657
push edi
call fcn.0066a657
add esp, 8
mov edi, dword [0x758244]
mov dword [0x7582e4], 0
test edi, edi
je 0x4841b1
xor esi, esi
cmp dword [edi], esi
jle 0x4841a0
mov eax, dword [edi + 4]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x48419b
push eax
call fcn.0066a657
add esp, 4
inc esi
cmp esi, dword [edi]
jl 0x484188
push dword [edi + 4]
call fcn.0066a657
push edi
call fcn.0066a657
add esp, 8
mov esi, dword [0x758240]
mov dword [0x758244], 0
test esi, esi
je 0x4841d6
push dword [esi + 4]
call fcn.0066a657
push esi
call fcn.0066a657
add esp, 8
mov edi, dword [0x7559b8]
mov dword [0x758240], 0
test edi, edi
je 0x48421f
xor esi, esi
cmp dword [edi], esi
jle 0x48420e
mov eax, dword [edi + 4]
mov eax, dword [eax + esi*4]
test eax, eax
je 0x484209
test byte [eax + 4], 1
je 0x484209
push eax
call fcn.0066a657
add esp, 4
inc esi
cmp esi, dword [edi]
jl 0x4841f0
push dword [edi + 4]
call fcn.0066a657
push edi
call fcn.0066a657
add esp, 8
mov eax, dword [0x757f3c]
test eax, eax
je 0x4842a2
mov edx, 0x482440
mov dword [eax + 0x20], 0
call fcn.004821e0
mov edx, 0x482460
call fcn.004821e0
mov edx, 0x482470
call fcn.004821e0
mov ebx, dword [0x757f3c]
test ebx, ebx
je 0x484298
xor edi, edi
cmp dword [ebx + 0xc], edi
jbe 0x484288
mov eax, dword [ebx]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x484282
nop dword [eax + eax]
mov esi, dword [eax + 4]
push eax
call fcn.0066a657
add esp, 4
mov eax, esi
test esi, esi
jne 0x484270
inc edi
cmp edi, dword [ebx + 0xc]
jb 0x484262
push dword [ebx]
call fcn.0066a657
push ebx
call fcn.0066a657
add esp, 8
mov dword [0x757f3c], 0
cmp dword [0x757a7c], 0
je 0x4842b7
push dword [0x757e84]
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov esi, dword [0x757e80]
test esi, esi
je 0x4842d1
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
call fcn.0066a657
add esp, 4
mov ebx, dword [0x757a74]
mov dword [0x757e80], 0
test ebx, ebx
je 0x484328
xor edi, edi
cmp dword [ebx + 0xc], edi
jbe 0x484318
nop dword [eax]
mov eax, dword [ebx]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x484312
nop dword [eax]
mov esi, dword [eax + 4]
push eax
call fcn.0066a657
add esp, 4
mov eax, esi
test esi, esi
jne 0x484300
inc edi
cmp edi, dword [ebx + 0xc]
jb 0x4842f0
push dword [ebx]
call fcn.0066a657
push ebx
call fcn.0066a657
add esp, 8
pop edi
pop esi
mov dword [0x757a74], 0
mov dword [0x757f90], 0
pop ebx
ret