Function at 0x2e02ec17
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x2e079ee0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x220], eax
mov eax, dword [0x2e079e7c]
push edi
cmp eax, 0xffffffff
je 0x2e02eee7
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 0x2e02eee5
cmp dword [ebx], esi
jne 0x2e02eee5
mov eax, dword [ebp + 8]
mov dword [ebx], 1
cmp eax, 0x63
ja 0x2e02eee3
mov edi, dword [ebx + eax*4 + 4]
cmp edi, esi
je 0x2e02eee3
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.2e0351ac
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.2e02ea3d
cmp eax, dword [edi + 0x24]
jg 0x2e02ed0a
mov eax, dword [edi + 0x48]
cmp eax, dword [edi + 0x44]
jge 0x2e02ed0a
mov eax, dword [edi + 4]
test al, 1
jne 0x2e02ed0a
test eax, 0x400
jne 0x2e02ed0a
test byte [ebp + 0x14], 0x10
jne 0x2e02ed0a
cmp dword [0x2e07fc30], esi
je 0x2e02ed0a
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.2e02eb74
test byte [esi + 4], 2
jne 0x2e02ed46
mov esi, dword [esi]
test esi, esi
jne 0x2e02ed0c
cmp dword [ebp - 0x214], 0
jne 0x2e02ee9a
cmp dword [0x2e07f274], 0
je 0x2e02ee9a
cmp byte [0x2e07f239], 0
mov al, byte [0x2e07f278]
mov esi, SysReAllocString
je 0x2e02ed8d
cmp al, 4
jae 0x2e02ed7f
test al, al
jne 0x2e02ee9a
test byte [0x2e07f270], 2
jne 0x2e02eddb
jmp 0x2e02ee9a
cmp al, 4
jae 0x2e02ed99
test al, al
jne 0x2e02ee9a
mov eax, dword [0x2e07f260]
mov ecx, dword [0x2e07f264]
and eax, 2
and ecx, esi
or eax, ecx
je 0x2e02ee9a
mov eax, dword [0x2e07f268]
mov ebx, dword [0x2e07f26c]
mov ecx, eax
mov edx, ebx
and ecx, 2
and edx, esi
cmp ecx, eax
jne 0x2e02ee94
cmp edx, ebx
jne 0x2e02ee94
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 0x2e001f78
push 0x2e001fa8
push dword [0x2e07f24c]
push dword [0x2e07f248]
call fcn.2e02e553
cmp byte [0x2e07f239], 0
mov al, byte [0x2e07f278]
je 0x2e02ee2f
cmp al, 4
jae 0x2e02ee24
test al, al
jne 0x2e02ee9a
test byte [0x2e07f270], 1
jne 0x2e02ee6d
jmp 0x2e02ee9a
cmp al, 4
jae 0x2e02ee37
test al, al
jne 0x2e02ee9a
mov eax, dword [0x2e07f260]
mov ecx, dword [0x2e07f264]
and eax, 1
and ecx, esi
or eax, ecx
je 0x2e02ee9a
mov eax, dword [0x2e07f268]
mov ebx, dword [0x2e07f26c]
mov ecx, eax
mov edx, ebx
and ecx, 1
and edx, esi
cmp ecx, eax
jne 0x2e02ee94
cmp edx, ebx
jne 0x2e02ee94
mov ebx, dword [ebp - 0x210]
push 0x2e001f68
push 0x2e001f98
push 0x2e001f88
push 0x2e001fa8
push dword [0x2e07f24c]
push dword [0x2e07f248]
call fcn.2e02e98f
jmp 0x2e02ee9a
mov ebx, dword [ebp - 0x210]
mov edi, dword [edi + 0xc]
cmp edi, 0xffffffff
je 0x2e02eede
mov esi, dword [ebx + edi*4 + 4]
jmp 0x2e02eeda
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.2e02eb74
test byte [esi + 4], 2
jne 0x2e02eede
mov esi, dword [esi]
test esi, esi
jne 0x2e02eea8
and dword [ebx], 0
jmp 0x2e02eee5
mov dword [ebx], esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.2e035180
leave
ret 0x10