Function at 0x10331941
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x1039fb98]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x220], eax
mov eax, dword [0x103a46d8]
push edi
cmp eax, 0xffffffff
je 0x10331c11
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 0x10331c0f
cmp dword [ebx], esi
jne 0x10331c0f
mov eax, dword [ebp + 8]
mov dword [ebx], 1
cmp eax, 0x63
ja 0x10331c0d
mov edi, dword [ebx + eax*4 + 4]
cmp edi, esi
je 0x10331c0d
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.102f835e
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.10331767
cmp eax, dword [edi + 0x24]
jg 0x10331a34
mov eax, dword [edi + 0x48]
cmp eax, dword [edi + 0x44]
jge 0x10331a34
mov eax, dword [edi + 4]
test al, 1
jne 0x10331a34
test eax, 0x400
jne 0x10331a34
test byte [ebp + 0x14], 0x10
jne 0x10331a34
cmp dword [0x103b0e9c], esi
je 0x10331a34
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.1033189e
test byte [esi + 4], 2
jne 0x10331a70
mov esi, dword [esi]
test esi, esi
jne 0x10331a36
cmp dword [ebp - 0x214], 0
jne 0x10331bc4
cmp dword [0x103a592c], 0
je 0x10331bc4
cmp byte [0x103a58f1], 0
mov al, byte [0x103a5930]
mov esi, SysReAllocString
je 0x10331ab7
cmp al, 4
jae 0x10331aa9
test al, al
jne 0x10331bc4
test byte [0x103a5928], 2
jne 0x10331b05
jmp 0x10331bc4
cmp al, 4
jae 0x10331ac3
test al, al
jne 0x10331bc4
mov eax, dword [0x103a5918]
mov ecx, dword [0x103a591c]
and eax, 2
and ecx, esi
or eax, ecx
je 0x10331bc4
mov eax, dword [0x103a5920]
mov ebx, dword [0x103a5924]
mov ecx, eax
mov edx, ebx
and ecx, 2
and edx, esi
cmp ecx, eax
jne 0x10331bbe
cmp edx, ebx
jne 0x10331bbe
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 0x1003df08
push 0x1003df38
push dword [0x103a5904]
push dword [0x103a5900]
call fcn.1033157b
cmp byte [0x103a58f1], 0
mov al, byte [0x103a5930]
je 0x10331b59
cmp al, 4
jae 0x10331b4e
test al, al
jne 0x10331bc4
test byte [0x103a5928], 1
jne 0x10331b97
jmp 0x10331bc4
cmp al, 4
jae 0x10331b61
test al, al
jne 0x10331bc4
mov eax, dword [0x103a5918]
mov ecx, dword [0x103a591c]
and eax, 1
and ecx, esi
or eax, ecx
je 0x10331bc4
mov eax, dword [0x103a5920]
mov ebx, dword [0x103a5924]
mov ecx, eax
mov edx, ebx
and ecx, 1
and edx, esi
cmp ecx, eax
jne 0x10331bbe
cmp edx, ebx
jne 0x10331bbe
mov ebx, dword [ebp - 0x210]
push 0x1003def8
push 0x1003df28
push 0x1003df18
push 0x1003df38
push dword [0x103a5904]
push dword [0x103a5900]
call fcn.101fef90
jmp 0x10331bc4
mov ebx, dword [ebp - 0x210]
mov edi, dword [edi + 0xc]
cmp edi, 0xffffffff
je 0x10331c08
mov esi, dword [ebx + edi*4 + 4]
jmp 0x10331c04
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.1033189e
test byte [esi + 4], 2
jne 0x10331c08
mov esi, dword [esi]
test esi, esi
jne 0x10331bd2
and dword [ebx], 0
jmp 0x10331c0f
mov dword [ebx], esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.102f77a6
leave
ret 0x10