Function at 0x100156f0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0xb4
mov eax, dword [0x1002b150]
push ebx
push esi
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x68fc]
mov esi, eax
test ecx, ecx
lea eax, [ecx + ecx*4]
lea edi, [esi + eax*8 + 0x676c]
jne 0x1001574b
cmp dword [edi + 0x24], 0
je 0x1001574b
mov eax, dword [esi + 0x760]
mov ebx, dword [esp + 0xd0]
mov ecx, dword [esp + 0xcc]
push eax
mov eax, dword [esp + 0xcc]
push ebx
push ecx
push eax
call fcn.10015d20
add esp, 0x10
jmp 0x10015752
mov ebx, dword [esp + 0xd0]
mov dword [esp + 0x2c], 0
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x10015775
lea edx, [esi + 0x7cc]
mov ebp, ecx
mov eax, dword [edx]
add edx, 4
add dword [esp + 0x2c], eax
dec ebp
jne 0x10015769
shl dword [esp + 0x2c], 6
cmp dword [edi], 1
jne 0x10015a28
mov eax, dword [esi + 0x6f8]
imul eax, dword [esi + 0x7bc]
cmp eax, dword [esi + 0x5c50]
jae 0x100157a8
mov eax, 0xffffffd3
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xb4
ret
mov eax, dword [esi + 0x5bf8]
mov ebp, dword [esi + 0x5c40]
mov dword [esp + 0x28], 0
mov edx, dword [esi + eax*8 + 0x5bd8]
mov ebx, dword [esi + ebp*8 + 0x5c20]
mov eax, dword [esi + ecx*4 + 0x5c7c]
mov dword [esp + 0x10], edx
mov dword [esp + 0x30], eax
test eax, eax
je 0x100159d3
mov eax, dword [edi + 4]
mov eax, dword [esi + eax*4 + 0x5c6c]
mov dword [esp + 0x18], 0
imul eax, dword [esp + 0x28]
shl eax, 6
add eax, dword [esp + 0x2c]
add eax, eax
add eax, dword [esi + 0x760]
cmp dword [esi + 0x6f8], 0
mov dword [esp + 0x24], eax
jbe 0x100159c1
mov eax, dword [edi + 4]
mov dword [esp + 0x14], 0
cmp dword [esi + eax*4 + 0x5c6c], 0
jbe 0x1001599c
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xcc]
shl eax, 3
dec ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x28]
shl eax, 3
add eax, 7
cmp eax, ecx
jb 0x10015854
mov eax, ecx
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0xc8]
dec eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x7bc]
mov edx, dword [esp + 0x18]
imul edx, eax
add edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add edx, 7
cmp edx, ecx
jb 0x1001588e
mov edx, ecx
mov ecx, dword [esp + 0x14]
imul eax, dword [esp + 0x18]
lea eax, [eax + ecx*8]
cmp edx, eax
jl 0x10015979
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x38], eax
jg 0x10015979
cmp dword [edi + 0x1c], 0
jne 0x1001591f
cmp dword [edi + 0x14], 0
jne 0x100158e5
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
push eax
lea edx, [esi + 0x58e8]
push edi
push ebx
push ecx
push edx
push ebp
call fcn.1000f1a0
add esp, 0x18
mov dword [esi + 0x5d84], eax
test eax, eax
jne 0x100159f5
cmp dword [edi + 0x18], 0
je 0x10015979
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
push eax
lea edx, [esi + 0x58e8]
push edi
push ebx
push ecx
push edx
push ebp
call fcn.1000f2b0
add esp, 0x18
mov dword [esi + 0x5d84], eax
test eax, eax
je 0x10015979
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xb4
ret
cmp dword [edi + 0x14], 0
jne 0x1001594a
mov eax, dword [esp + 0x10]
push edi
push ebx
lea ecx, [esi + 0x58e8]
push eax
push ecx
push ebp
call fcn.1000f280
add esp, 0x14
mov dword [esi + 0x5d84], eax
test eax, eax
jne 0x10015a06
cmp dword [edi + 0x18], 0
je 0x10015979
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x10]
push eax
lea edx, [esi + 0x58e8]
push edi
push ebx
push ecx
push edx
push ebp
call fcn.1000f910
add esp, 0x18
mov dword [esi + 0x5d84], eax
test eax, eax
jne 0x10015a17
add ebp, 0x80
mov eax, dword [edi + 4]
add dword [esp + 0x1c], 8
inc dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
cmp dword [esi + eax*4 + 0x5c6c], ecx
ja 0x10015870
mov ecx, dword [esi + 0x758]
mov eax, dword [esp + 0x24]
inc dword [esp + 0x18]
lea edx, [eax + ecx*2]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], edx
cmp dword [esi + 0x6f8], ecx
ja 0x10015818
inc dword [esp + 0x28]
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x30]
jb 0x100157e1
mov eax, dword [esi + 0x758]
pop ebp
imul eax, dword [esi + 0x6f8]
add eax, eax
pop edi
add dword [esi + 0x760], eax
xor eax, eax
pop esi
pop ebx
add esp, 0xb4
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xb4
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xb4
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xb4
ret
mov eax, dword [esp + 0xcc]
lea ecx, [esp + 0x44]
shl eax, 2
push eax
push ebx
push ecx
call fcn.1000eef0
mov dword [esp + 0x20], 0
add esp, 0xc
cmp dword [esi + 0x6f8], 0
jbe 0x10015cae
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
cmp dword [edi], 0
jbe 0x10015be7
lea ebx, [esi + 0x58e8]
lea ebp, [edi + 4]
mov eax, dword [ebx + 0x310]
mov edx, dword [ebx + 0x358]
mov ecx, dword [esi + eax*8 + 0x5bd8]
mov eax, dword [esi + edx*8 + 0x5c20]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x24], eax
mov ecx, dword [ebp]
mov dword [esp + 0x28], 0
cmp dword [esi + ecx*4 + 0x7cc], 0
jle 0x10015bd1
mov eax, dword [esp + 0x30]
shl eax, 6
add eax, dword [esp + 0x2c]
add eax, eax
mov dword [esp + 0x20], eax
cmp dword [edi + 0x1c], 0
jne 0x10015b43
cmp dword [edi + 0x14], 0
jne 0x10015b01
mov eax, dword [ebp]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push eax
push edi
mov eax, dword [esi + 0x760]
add eax, dword [esp + 0x28]
push ecx
push edx
push ebx
push eax
call fcn.1000f1a0
add esp, 0x18
mov dword [esi + 0x5d84], eax
test eax, eax
jne 0x10015cd9
cmp dword [edi + 0x18], 0
je 0x10015bad
mov eax, dword [ebp]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push eax
push edi
mov eax, dword [esi + 0x760]
add eax, dword [esp + 0x28]
push ecx
push edx
push ebx
push eax
call fcn.1000f2b0
add esp, 0x18
mov dword [esi + 0x5d84], eax
test eax, eax
je 0x10015bad
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xb4
ret
cmp dword [edi + 0x14], 0
jne 0x10015b76
mov eax, dword [esp + 0x24]
push edi
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov eax, dword [esi + 0x760]
add eax, dword [esp + 0x2c]
push ebx
push eax
call fcn.1000f280
add esp, 0x14
mov dword [esi + 0x5d84], eax
test eax, eax
jne 0x10015cea
cmp dword [edi + 0x18], 0
je 0x10015bad
mov eax, dword [ebp]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push eax
push edi
mov eax, dword [esi + 0x760]
add eax, dword [esp + 0x28]
push ecx
push edx
push ebx
push eax
call fcn.1000f910
add esp, 0x18
mov dword [esi + 0x5d84], eax
test eax, eax
jne 0x10015cfb
mov ecx, dword [ebp]
inc dword [esp + 0x28]
mov eax, dword [esp + 0x28]
inc dword [esp + 0x30]
add dword [esp + 0x20], 0x80
cmp dword [esi + ecx*4 + 0x7cc], eax
jg 0x10015ac4
add ebx, 4
add ebp, 4
inc dword [esp + 0x34]
mov eax, dword [esp + 0x34]
cmp dword [edi], eax
ja 0x10015a78
mov eax, dword [esi + 0x7e0]
test eax, eax
je 0x10015c46
dec eax
mov dword [esi + 0x7e0], eax
jne 0x10015c46
mov eax, dword [esi + 0x700]
mov dword [esi + 0x7e0], eax
mov eax, dword [esi + 0x7dc]
or eax, 0xd0
push eax
call fcn.10010a00
add esp, 4
mov dword [esi + 0x5d84], eax
test eax, eax
jne 0x10015d0c
mov eax, dword [esi + 0x7dc]
inc eax
cdq
xor eax, edx
sub eax, edx
and eax, 7
xor eax, edx
sub eax, edx
mov dword [esi + 0x7dc], eax
call fcn.100107a0
mov eax, dword [esi + 0x7bc]
cmp dword [esp + 0xc8], eax
jbe 0x10015c81
sub dword [esp + 0xc8], eax
cmp dword [esp + 0xcc], 0
je 0x10015c8c
lea eax, [esp + 0x44]
mov ecx, dword [esp + 0xcc]
mov edx, dword [esi + 0x7c8]
add dword [eax], edx
add eax, 4
dec ecx
jne 0x10015c71
jmp 0x10015c8c
mov dword [esp + 0xc8], 0
mov eax, dword [esi + 0x758]
inc dword [esp + 0x14]
add eax, eax
mov ecx, dword [esp + 0x14]
add dword [esi + 0x760], eax
cmp dword [esi + 0x6f8], ecx
ja 0x10015a56
mov eax, dword [esi + 0x7e4]
dec eax
mov dword [esi + 0x7e4], eax
jne 0x10015ccc
call fcn.100109b0
mov dword [esi + 0x5d84], eax
test eax, eax
jne 0x10015cce
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xb4
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xb4
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xb4
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xb4
ret
mov eax, dword [esi + 0x5d84]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xb4
ret