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

Disassembly:
cmp dword [0x74ef80], 0
je 0x48433f
cmp dword [0x74ef40], 0
jne 0x48433f
push ebx
push esi
push edi
mov dword [0x74ef40], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x74672c]
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 [0x74672c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, edi
call fcn.00483c40
mov esi, dword [0x74ef90]
test esi, esi
je 0x483d97
mov eax, dword [esi]
call eax
push esi
mov esi, dword [esi + 4]
call fcn.006637b7
add esp, 4
test esi, esi
jne 0x483d83
mov esi, dword [0x74efa8]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x74ef90], 0
test esi, esi
je 0x483dbd
push esi
call ebx
push esi
call fcn.006637b7
add esp, 4
cmp dword [0x74efa0], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x74efa8], 0
je 0x483de6
push dword [0x74f268]
call esi
push dword [0x74f26c]
call esi
mov eax, dword [0x74672c]
push eax
mov dword [0x74672c], 0xffffffff
call esi
cmp dword [0x74ca50], 0
je 0x483e8c
mov eax, dword [0x74ca3c]
test eax, eax
je 0x483e17
mov eax, dword [eax + 8]
test eax, eax
je 0x483e17
call eax
call fcn.00479400
mov esi, dword [0x74ca44]
test esi, esi
je 0x483e32
push esi
call ebx
push esi
call fcn.006637b7
add esp, 4
mov esi, dword [0x74ca48]
mov dword [0x74ca44], 0
test esi, esi
je 0x483e52
push esi
call ebx
push esi
call fcn.006637b7
add esp, 4
mov esi, dword [0x74ca40]
mov dword [0x74ca48], 0
test esi, esi
je 0x483e72
push esi
call ebx
push esi
call fcn.006637b7
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x74ca40], 0
mov dword [0x74ca50], 0
mov ecx, dword [0x74f244]
test ecx, ecx
je 0x483eb5
call fcn.004aaf40
push dword [0x74f23c]
mov dword [0x74f244], 0
call esi
push dword [0x74f240]
call esi
call fcn.004b3580
call fcn.004b3580
mov esi, dword [0x74f258]
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.0065fd30
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.006637b7
push ebx
call fcn.006637b7
mov esi, dword [0x74f258]
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.006637b7
push esi
call fcn.006637b7
add esp, 8
mov dword [0x74f258], 0
mov ebx, dword [0x74ef28]
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.006637b7
add esp, 4
inc esi
cmp esi, dword [ebx]
jl 0x483f72
push dword [ebx + 4]
call fcn.006637b7
push ebx
call fcn.006637b7
add esp, 8
mov dword [0x74ef28], 0
mov esi, dword [0x74f4f8]
test esi, esi
je 0x483fc3
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
call fcn.006637b7
add esp, 4
mov ebx, dword [0x74f380]
mov dword [0x74f4f8], 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.006637b7
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.006637b7
push ebx
call fcn.006637b7
add esp, 8
mov esi, dword [0x74f37c]
mov dword [0x74f380], 0
test esi, esi
je 0x48403c
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
call fcn.006637b7
add esp, 4
mov dword [0x74f37c], 0
mov ebx, 0x74c9e0
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.006637b7
add esp, 4
inc esi
cmp esi, dword [edi]
jl 0x484060
push dword [edi + 4]
call fcn.006637b7
push edi
call fcn.006637b7
add esp, 8
mov dword [ebx], 0
add ebx, 4
cmp ebx, 0x74ca20
jl 0x484050
mov esi, dword [0x74c9dc]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
test esi, esi
je 0x4840b6
push esi
call ebx
push esi
call fcn.006637b7
add esp, 4
cmp dword [0x74efc0], 0
mov dword [0x74c9dc], 0
je 0x4840d9
mov dword [0x74efc0], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, dword [0x74f4f4]
test esi, esi
je 0x4840ef
push esi
call ebx
push esi
call fcn.006637b7
add esp, 4
mov esi, dword [0x74c9a0]
mov dword [0x74f4f4], 0
test esi, esi
je 0x48410f
push esi
call ebx
push esi
call fcn.006637b7
add esp, 4
mov ecx, 2
mov dword [0x74c9a0], 0
call fcn.004dac30
mov ecx, 1
call fcn.004dac30
or ecx, 0xffffffff
call fcn.004dac30
mov edi, dword [0x74f2d4]
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.006637b7
add esp, 4
inc esi
cmp esi, dword [edi]
jl 0x484145
push dword [edi + 4]
call fcn.006637b7
push edi
call fcn.006637b7
add esp, 8
mov edi, dword [0x74f234]
mov dword [0x74f2d4], 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.006637b7
add esp, 4
inc esi
cmp esi, dword [edi]
jl 0x484188
push dword [edi + 4]
call fcn.006637b7
push edi
call fcn.006637b7
add esp, 8
mov esi, dword [0x74f230]
mov dword [0x74f234], 0
test esi, esi
je 0x4841d6
push dword [esi + 4]
call fcn.006637b7
push esi
call fcn.006637b7
add esp, 8
mov edi, dword [0x74c9a8]
mov dword [0x74f230], 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.006637b7
add esp, 4
inc esi
cmp esi, dword [edi]
jl 0x4841f0
push dword [edi + 4]
call fcn.006637b7
push edi
call fcn.006637b7
add esp, 8
mov eax, dword [0x74ef2c]
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 [0x74ef2c]
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.006637b7
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.006637b7
push ebx
call fcn.006637b7
add esp, 8
mov dword [0x74ef2c], 0
cmp dword [0x74ea6c], 0
je 0x4842b7
push dword [0x74ee74]
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov esi, dword [0x74ee70]
test esi, esi
je 0x4842d1
push esi
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
call fcn.006637b7
add esp, 4
mov ebx, dword [0x74ea64]
mov dword [0x74ee70], 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.006637b7
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.006637b7
push ebx
call fcn.006637b7
add esp, 8
pop edi
pop esi
mov dword [0x74ea64], 0
mov dword [0x74ef80], 0
pop ebx
ret