Function at 0x100145ec
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10073080
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1001468b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax]
test eax, eax
je 0x1001467b
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
jmp 0x1001465c
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 3
jge 0x10014679
mov eax, dword [ebp - 0x10]
push dword [eax]
mov ecx, dword [ebp - 0x30]
call fcn.1002d7f4
mov dword [eax], 1
jmp 0x10014651
jmp 0x10014686
push 0x8d5
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x100147dd
mov dword [ebp - 0x34], 0x1dec
cmp dword [ebp - 0x34], 0xb71
jge 0x100147d5
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x20]
push eax
mov ecx, 0x10663c90
call fcn.1002d0b9
mov ecx, eax
call fcn.1002d0b9
lea ecx, [ebp - 0x64]
call fcn.1002cf04
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x3c], 0
je 0x10014790
lea edx, [ebp - 0x64]
mov ecx, 0x10663c90
call fcn.10032375
push 0x68
push 0
lea eax, [ebp - 0xcc]
push eax
call fcn.1005b540
add esp, 0xc
and dword [ebp - 0x1c], 0
jmp 0x1001470c
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x64]
call fcn.1002cff7
cmp dword [ebp - 0x1c], eax
jae 0x1001473e
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x64]
call fcn.1002cfd8
movsx eax, byte [eax]
lea eax, [ebp + eax*4 - 0x250]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
jmp 0x10014705
and dword [ebp - 0x24], 0
and dword [ebp - 0x18], 0
jmp 0x1001474f
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x1a
jge 0x1001476b
mov eax, dword [ebp - 0x18]
cmp dword [ebp + eax*4 - 0xcc], 0
je 0x10014769
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10014748
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x44]
jg 0x1001478b
lea ecx, [ebp - 0x64]
call fcn.1002cff7
cmp dword [ebp - 0x14], eax
jae 0x1001478b
lea ecx, [ebp - 0x64]
call fcn.1002cff7
mov dword [ebp - 0x14], eax
jmp 0x100146c8
cmp dword [ebp - 0x14], 0
jne 0x100147b0
push fcn.10031f18
push 0xffffffffffffffff
mov ecx, 0x10663bd8
call fcn.1002d4de
mov ecx, eax
call fcn.1002d4d2
jmp 0x100147c9
push fcn.10031f18
push dword [ebp - 0x14]
mov ecx, 0x10663bd8
call fcn.1002d4de
mov ecx, eax
call fcn.1002d4d2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x64]
call fcn.1002cf8c
push 1
call fcn.10011e51
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret