Function at 0x1000b355
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1000b390
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x3c], eax
push 1
push dword [ebp - 0x3c]
push dword [ebp - 0x60]
push dword [ebp - 0x48]
call fcn.1000b5f0
add esp, 0x10
jmp 0x1000b5ec
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x50], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x64]
movzx eax, byte [eax]
test eax, eax
je 0x1000b3da
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax]
test eax, eax
je 0x1000b3d5
push 0
push 0x1cc7
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x1000b5ec
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x18], 0x8dcfd8f2
mov dword [ebp - 0x28], 0x8e10d32d
mov dword [ebp - 0x38], 0x5e4bc795
mov dword [ebp - 4], 0
jmp 0x1000b40b
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jge 0x1000b41e
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 8], 0xbacd7953
jmp 0x1000b404
mov dword [ebp - 4], 0
jmp 0x1000b42e
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 3
jge 0x1000b441
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x70], 0xfffffff6
jmp 0x1000b427
mov dword [ebp - 4], 0
jmp 0x1000b451
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 3
jge 0x1000b467
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x84], 0x3888ad88
jmp 0x1000b44a
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 8]
mov dword [ebp - 0x74], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 8]
mov dword [ebp - 0x78], eax
push 4
pop eax
imul eax, eax, 0
push 4
pop ecx
imul ecx, ecx, 0
mov ecx, dword [ebp + ecx - 8]
cmp dword [ebp + eax - 8], ecx
jge 0x1000b4a0
mov dword [ebp - 0x2c], 1
jmp 0x1000b4a4
and dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0x3623
jg 0x1000b4b6
mov dword [ebp - 0x14], 1
jmp 0x1000b4ba
and dword [ebp - 0x14], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 8]
push 4
pop ecx
imul ecx, ecx, 0
imul eax, dword [ebp + ecx - 8]
sub eax, dword [ebp - 0x14]
je 0x1000b4e6
mov eax, 0xf748dc16
test eax, eax
je 0x1000b4e6
mov dword [ebp - 0x34], 1
jmp 0x1000b4ea
and dword [ebp - 0x34], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x70]
add eax, dword [ebp - 0x34]
push 4
pop ecx
imul ecx, ecx, 0
cmp eax, dword [ebp + ecx - 8]
je 0x1000b50c
mov dword [ebp - 0x1c], 1
jmp 0x1000b510
and dword [ebp - 0x1c], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 8]
cmp dword [ebp - 0x1c], eax
jl 0x1000b528
mov dword [ebp - 0xc], 1
jmp 0x1000b52c
and dword [ebp - 0xc], 0
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x70]
cmp dword [ebp - 0xc], eax
jle 0x1000b543
mov dword [ebp - 0x24], 1
jmp 0x1000b547
and dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], 0x8ee3
jl 0x1000b55d
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 8], 0
je 0x1000b573
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x70], 0
je 0x1000b573
mov dword [ebp - 0x10], 1
jmp 0x1000b577
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x2b622b60
jl 0x1000b58f
mov dword [ebp - 0x20], 1
jmp 0x1000b593
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 8]
cmp eax, dword [ebp - 0x28]
jne 0x1000b5ba
mov eax, 0x390dfc1f
test eax, eax
je 0x1000b5ba
mov dword [ebp - 0x30], 1
jmp 0x1000b5be
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp + eax - 0x84], ecx
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
sub eax, 5
cdq
mov ecx, 0x673
idiv ecx
sub eax, 5
mov ecx, dword [ebp - 0x54]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret