Function at 0x467070
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax - 8]
mov dword [ebp - 4], eax
mov eax, dword [eax]
and eax, 0x2000
je 0x4670af
mov eax, dword [ebp - 4]
push eax
call fcn.004a0990
pop ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
call fcn.004874e0
pop ecx
and eax, 0x100000
je 0x4670ea
push 0
push 2
push 0
push str.__OPARRAYINDEX
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.004689e0
add esp, 0x18
lea eax, [ebx + 0x10]
push eax
call fcn.004a4430
pop ecx
jmp 0x467895
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and eax, 4
je 0x467299
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0x43a
je 0x467299
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0x1a
je 0x4671cb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x28]
test eax, eax
jne 0x467133
mov dword [ebp - 0x18], 0
jmp 0x46713a
mov dword [ebp - 0x18], 1
cmp dword [ebp - 0x18], 0
je 0x4671cb
mov eax, dword [ebp - 8]
push eax
call fcn.0049ffd0
pop ecx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jge 0x46716a
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
mov edx, dword [edx + 0x20]
lea eax, [edx + eax + 1]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x467191
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
cmp eax, dword [edx + 0x20]
ja 0x467191
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
mov edx, dword [edx + 0x28]
mov eax, dword [edx + eax*4 - 4]
mov dword [ebp - 0x20], eax
jmp 0x467198
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x46720c
push 0x2e
call fcn.004ab070
pop ecx
mov edx, dword [ebp - 8]
push edx
mov edx, dword [ebp - 4]
push edx
push 2
push eax
push 0
push 0x46c
push 2
call fcn.00492870
add esp, 0x1c
jmp 0x467895
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00493f40
add esp, 0xc
test eax, eax
jne 0x46720c
push 0x2e
call fcn.004ab070
pop ecx
mov edx, dword [ebp - 8]
push edx
mov edx, dword [ebp - 4]
push edx
push 2
push eax
push 0
push 0x46c
push 2
call fcn.00492870
add esp, 0x1c
jmp 0x467895
push 0
call fcn.0049f730
pop ecx
mov dword [ebp - 0x14], eax
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.00494430
add esp, 0xc
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x467246
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x467252
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov dword [eax], 0
lea eax, [ebx + 4]
mov edx, dword [eax]
lea edx, [edx - 4]
mov dword [eax], edx
mov eax, edx
mov edx, dword [ebx]
cmp eax, edx
jae 0x467277
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a44a0
add esp, 8
mov eax, dword [ebp - 0x14]
push eax
call fcn.0049f7d0
pop ecx
jmp 0x467895
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 2
je 0x4672b1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
jmp 0x4674d3
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 8
je 0x4672cd
mov eax, dword [ebp - 8]
push dword [eax + 0xc]
mov eax, dword [eax + 8]
pop edx
mov dword [ebp - 0xc], eax
jmp 0x4674d3
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0x10
je 0x4672ea
mov eax, dword [ebp - 8]
fld qword [eax + 8]
call fcn.00532060
mov dword [ebp - 0xc], eax
jmp 0x4674d3
mov eax, dword [ebp - 8]
mov edx, dword [eax]
and edx, 0x400
je 0x467313
mov eax, dword [eax + 8]
cmp eax, 1
jne 0x467313
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
movsx eax, byte [eax]
movzx eax, al
mov dword [ebp - 0xc], eax
jmp 0x4674d3
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0x400
je 0x4673ed
mov eax, dword [ebp - 4]
mov edx, dword [eax]
and edx, 0x8000
je 0x4673ed
mov edx, dword [eax + 8]
movzx edx, word [edx + 0xc]
test edx, edx
je 0x4673ed
push eax
call fcn.004871e0
pop ecx
push eax
push 0x696cdc
call fcn.00534750
add esp, 8
test eax, eax
jne 0x4673ed
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
push eax
call fcn.004a1f80
pop ecx
mov eax, dword [eax + 8]
push eax
call fcn.0046b2e0
pop ecx
mov eax, dword [ebp - 4]
push eax
call fcn.004a4430
pop ecx
push 0
call fcn.00469190
pop ecx
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x4673a7
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x4673b3
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov dword [eax], 0
lea eax, [ebx + 4]
mov edx, dword [eax]
lea edx, [edx - 4]
mov dword [eax], edx
mov eax, edx
mov edx, dword [ebx]
cmp eax, edx
jae 0x4673d8
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.004a44a0
add esp, 8
jmp 0x467895
push 0x2e
call fcn.004ab070
pop ecx
mov edx, dword [ebp - 8]
push edx
mov edx, dword [ebp - 4]
push edx
push 2
push eax
push 0
push 0x42c
push 1
call fcn.00492ab0
add esp, 0x1c
mov dword [ebp - 0x10], eax
test eax, eax
je 0x467895
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x46743a
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x467446
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov dword [eax], 0
lea eax, [ebx + 4]
mov edx, dword [eax]
lea edx, [edx - 4]
mov dword [eax], edx
mov eax, edx
mov edx, dword [ebx]
cmp eax, edx
jae 0x46746b
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x467489
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x467495
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov dword [eax], 0
lea eax, [ebx + 4]
mov edx, dword [eax]
lea edx, [edx - 4]
mov dword [eax], edx
mov eax, edx
mov edx, dword [ebx]
cmp eax, edx
jae 0x4674ba
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
mov eax, dword [ebp - 0x10]
push eax
call fcn.004a4430
pop ecx
mov eax, dword [ebp - 0x10]
push eax
call fcn.0049f7d0
pop ecx
jmp 0x467895
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and eax, 0x8000
je 0x4676bc
cmp dword [ebp - 0xc], 0
jge 0x467579
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
test eax, eax
je 0x467512
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
mov edx, dword [edx + 4]
lea eax, [edx + eax + 1]
mov dword [ebp - 0xc], eax
jmp 0x467579
cmp dword [ebp - 0xc], 0xffffffff
jne 0x467579
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x467536
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x467542
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov dword [eax], 0
lea eax, [ebx + 4]
mov edx, dword [eax]
lea edx, [edx - 4]
mov dword [eax], edx
mov eax, edx
mov edx, dword [ebx]
cmp eax, edx
jae 0x467567
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x467895
mov eax, dword [ebp - 0xc]
test eax, eax
jle 0x467693
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
cmp eax, dword [edx + 4]
ja 0x467693
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cmp dword [eax + 8], 1
jbe 0x467608
mov eax, dword [ebp - 4]
push eax
mov edx, dword [ebp - 0xc]
push edx
push eax
call fcn.004a2d10
add esp, 0xc
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x4675ce
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x4675da
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov dword [eax], 0
lea eax, [ebx + 4]
mov edx, dword [eax]
lea edx, [edx - 4]
mov dword [eax], edx
mov eax, edx
mov edx, dword [ebx]
cmp eax, edx
jae 0x467895
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
jmp 0x467895
lea edi, [ebp - 0x2c]
lea esi, [0x696794]
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.004a2d10
add esp, 0xc
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x46764a
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x467656
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov dword [eax], 0
lea eax, [ebx + 4]
mov edx, dword [eax]
lea edx, [edx - 4]
mov dword [eax], edx
mov eax, edx
mov edx, dword [ebx]
cmp eax, edx
jae 0x46767b
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a44a0
add esp, 8
jmp 0x467895
push 0x2e
call fcn.004ab070
pop ecx
mov edx, dword [ebp - 8]
push edx
mov edx, dword [ebp - 4]
push edx
push 2
push eax
push 0
push 0x46c
push 2
call fcn.00492870
add esp, 0x1c
jmp 0x467895
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and eax, 0x400
je 0x467800
cmp dword [ebp - 0xc], 0
jle 0x4676da
dec dword [ebp - 0xc]
jmp 0x467769
cmp dword [ebp - 0xc], 0
jge 0x467769
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x4676fe
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
add eax, edx
mov dword [ebp - 0xc], eax
jmp 0x46775c
cmp dword [ebp - 0xc], 0xffffffff
jne 0x46775c
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x467722
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x46772e
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov dword [eax], 0
lea eax, [ebx + 4]
mov edx, dword [eax]
lea edx, [edx - 4]
mov dword [eax], edx
mov eax, edx
mov edx, dword [ebx]
cmp eax, edx
jae 0x467895
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
jmp 0x467895
cmp dword [ebp - 0xc], 0
jge 0x467769
mov dword [ebp - 0xc], 0
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x467787
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x467793
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov dword [eax], 0
lea eax, [ebx + 4]
mov edx, dword [eax]
lea edx, [edx - 4]
mov dword [eax], edx
mov eax, edx
mov edx, dword [ebx]
cmp eax, edx
jae 0x4677b8
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 8]
jae 0x4677eb
push 1
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax + 0x10]
movsx edx, byte [ecx + edx]
movzx edx, dl
mov edx, dword [edx*4 + 0x7bfba8]
push edx
push eax
call fcn.004a4e80
add esp, 0xc
jmp 0x467895
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.004a4ad0
add esp, 0xc
jmp 0x467895
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
jne 0x467871
cmp dword [ebp - 0xc], 0xffffffff
jne 0x467871
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov eax, dword [eax]
and eax, 0xf405
je 0x467831
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x46783d
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
mov dword [eax], 0
lea eax, [ebx + 4]
mov edx, dword [eax]
lea edx, [edx - 4]
mov dword [eax], edx
mov eax, edx
mov edx, dword [ebx]
cmp eax, edx
jae 0x467862
push 0
push 0
push 0
push 0x233b
call fcn.00492ef0
add esp, 0x10
mov eax, dword [ebx + 4]
mov eax, dword [eax - 4]
push eax
call fcn.004a45e0
pop ecx
jmp 0x467895
push 0x2e
call fcn.004ab070
pop ecx
mov edx, dword [ebp - 8]
push edx
mov edx, dword [ebp - 4]
push edx
push 2
push eax
push 0
push 0x42c
push 1
call fcn.00492870
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret