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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x438e18
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x452588]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [0x45346c]
cmp eax, 0xffffffff
jne 0x43769b
xor ebp, ebp
jmp 0x4376a4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x40], 0
test ebp, ebp
je 0x4376e5
cmp dword [ebp + 0x2c], 0
jne 0x43772c
cmp dword [ebp + 0xc], 0
jne 0x437732
push 0x4360a0
push 0x45e688
call fcn.00436340
mov eax, dword [0x45346c]
add esp, 8
cmp eax, 0xffffffff
je 0x4376e5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x40], 0xffffffff
test ebp, ebp
je 0x437718
lea ecx, [ebp + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x437718
mov eax, dword [ebp]
mov edx, dword [eax]
push 0
mov ecx, ebp
call edx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
je 0x43777a
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x437764
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov esi, dword [edi]
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0xc], 0
jne 0x437732
mov ecx, dword [ebp + 0x28]
mov esi, dword [ebp + 0x10]
mov edi, dword [ecx]
mov edx, ecx
mov eax, esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], eax
test esi, esi
je 0x4377a0
cmp esi, dword [esp + 0x24]
je 0x4377a5
call fcn.0042516a
cmp edi, dword [esp + 0x28]
je 0x4376b4
lea ecx, [esp + 0x1c]
call fcn.0040c4f9
test esi, esi
jne 0x437848
call fcn.0042516a
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x4377d1
call fcn.0042516a
cmp dword [edi + 0x10], 0
je 0x43782c
test esi, esi
jne 0x43784f
call fcn.0042516a
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x4377ec
call fcn.0042516a
cmp dword [edi + 0x18], 0
je 0x43782c
test esi, esi
jne 0x437853
call fcn.0042516a
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x437807
call fcn.0042516a
mov ebx, dword [edi + 0x10]
test esi, esi
jne 0x437857
call fcn.0042516a
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x43781f
call fcn.0042516a
mov edx, dword [ebx]
mov eax, dword [edi + 0x18]
mov edx, dword [edx + 4]
push eax
mov ecx, ebx
call edx
push edi
push esi
lea eax, [esp + 0x34]
push eax
lea ecx, [ebp + 0x10]
call fcn.0040b303
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
jmp 0x437796
mov eax, dword [esi]
jmp 0x4377c7
mov eax, dword [esi]
jmp 0x4377e2
mov eax, dword [esi]
jmp 0x4377fd
mov eax, dword [esi]
jmp 0x437815