Function at 0x37fa104a
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x37f7d24c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x220], eax
mov eax, dword [0x37fe2330]
push edi
cmp eax, 0xffffffff
je 0x37fa131a
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
xor esi, esi
mov dword [ebp - 0x210], ebx
cmp ebx, esi
je 0x37fa1318
cmp dword [ebx], esi
jne 0x37fa1318
mov eax, dword [ebp + 8]
mov dword [ebx], 1
cmp eax, 0x63
ja 0x37fa1316
mov edi, dword [ebx + eax*4 + 4]
cmp edi, esi
je 0x37fa1316
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call sub.MSVCR90.dll_memset
mov eax, dword [ebp + 0x14]
and eax, 3
add esp, 0xc
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x214], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov dword [ebp - 0x218], eax
call fcn.37fa0e70
cmp eax, dword [edi + 0x24]
jg 0x37fa113d
mov eax, dword [edi + 0x48]
cmp eax, dword [edi + 0x44]
jge 0x37fa113d
mov eax, dword [edi + 4]
test al, 1
jne 0x37fa113d
test eax, 0x400
jne 0x37fa113d
test byte [ebp + 0x14], 0x10
jne 0x37fa113d
cmp dword [0x37fe897c], esi
je 0x37fa113d
push esi
lea eax, [ebp - 0x2a0]
push eax
push 0x20
push 1
call dword [sym.imp.KERNEL32.dll_RtlCaptureStackBackTrace]
movzx eax, ax
mov dword [ebp - 0x21c], eax
mov esi, edi
push dword [ebp - 0x220]
lea eax, [ebp - 0x2a0]
push dword [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x214]
call fcn.37fa0fa7
test byte [esi + 4], 2
jne 0x37fa1179
mov esi, dword [esi]
test esi, esi
jne 0x37fa113f
cmp dword [ebp - 0x214], 0
jne 0x37fa12cd
cmp dword [0x37fe5ae4], 0
je 0x37fa12cd
cmp byte [0x37fe5aa9], 0
mov al, byte [0x37fe5ae8]
mov esi, SysReAllocString
je 0x37fa11c0
cmp al, 4
jae 0x37fa11b2
test al, al
jne 0x37fa12cd
test byte [0x37fe5ae0], 2
jne 0x37fa120e
jmp 0x37fa12cd
cmp al, 4
jae 0x37fa11cc
test al, al
jne 0x37fa12cd
mov eax, dword [0x37fe5ad0]
mov ecx, dword [0x37fe5ad4]
and eax, 2
and ecx, esi
or eax, ecx
je 0x37fa12cd
mov eax, dword [0x37fe5ad8]
mov ebx, dword [0x37fe5adc]
mov ecx, eax
mov edx, ebx
and ecx, 2
and edx, esi
cmp ecx, eax
jne 0x37fa12c7
cmp edx, ebx
jne 0x37fa12c7
mov ebx, dword [ebp - 0x210]
push dword [ebp - 0x220]
push dword [ebp - 0x218]
push dword [ebp + 0xc]
push dword [edi + 8]
push dword [edi + 0x38]
push dword [edi + 0x34]
push 0x37f61e80
push 0x37f61eb0
push dword [0x37fe5abc]
push dword [0x37fe5ab8]
call fcn.37fa0986
cmp byte [0x37fe5aa9], 0
mov al, byte [0x37fe5ae8]
je 0x37fa1262
cmp al, 4
jae 0x37fa1257
test al, al
jne 0x37fa12cd
test byte [0x37fe5ae0], 1
jne 0x37fa12a0
jmp 0x37fa12cd
cmp al, 4
jae 0x37fa126a
test al, al
jne 0x37fa12cd
mov eax, dword [0x37fe5ad0]
mov ecx, dword [0x37fe5ad4]
and eax, 1
and ecx, esi
or eax, ecx
je 0x37fa12cd
mov eax, dword [0x37fe5ad8]
mov ebx, dword [0x37fe5adc]
mov ecx, eax
mov edx, ebx
and ecx, 1
and edx, esi
cmp ecx, eax
jne 0x37fa12c7
cmp edx, ebx
jne 0x37fa12c7
mov ebx, dword [ebp - 0x210]
push 0x37f61e70
push 0x37f61ea0
push 0x37f61e90
push 0x37f61eb0
push dword [0x37fe5abc]
push dword [0x37fe5ab8]
call fcn.37fa0dc2
jmp 0x37fa12cd
mov ebx, dword [ebp - 0x210]
mov edi, dword [edi + 0xc]
cmp edi, 0xffffffff
je 0x37fa1311
mov esi, dword [ebx + edi*4 + 4]
jmp 0x37fa130d
push 0
push dword [ebp - 0x21c]
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x214]
call fcn.37fa0fa7
test byte [esi + 4], 2
jne 0x37fa1311
mov esi, dword [esi]
test esi, esi
jne 0x37fa12db
and dword [ebx], 0
jmp 0x37fa1318
mov dword [ebx], esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.37facac9
leave
ret 0x10