Function at 0x1001dedf
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1001df30
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 2
jmp 0x1001df0f
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jl 0x1001df2b
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1001df29
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
jmp 0x1001df04
jmp 0x1001e0ca
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x78], eax
push 1
mov ecx, dword [ebp - 0x2c]
call fcn.10017f3a
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0xffffe16b
jge 0x1001dfba
mov dword [ebp - 0x64], 1
jmp 0x1001dfbe
and dword [ebp - 0x64], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0xffff
ja 0x1001dfd2
mov dword [ebp - 0x18], 1
jmp 0x1001dfd6
and dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 0xb50d
je 0x1001dfe8
mov dword [ebp - 0x1c], 1
jmp 0x1001dfec
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
mov eax, 0x6f7e707e
test eax, eax
jne 0x1001e00a
push 7
pop eax
test eax, eax
jne 0x1001e00a
and dword [ebp - 0x20], 0
jmp 0x1001e011
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x20], eax
jle 0x1001e024
mov dword [ebp - 0x24], 1
jmp 0x1001e028
and dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax]
add eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x30]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x10]
cmp eax, dword [ecx]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jle 0x1001e04f
mov dword [ebp - 0x14], 1
jmp 0x1001e053
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x14], eax
je 0x1001e06e
mov dword [ebp - 0x28], 1
jmp 0x1001e072
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x28], eax
jle 0x1001e085
mov dword [ebp - 0x74], 1
jmp 0x1001e089
and dword [ebp - 0x74], 0
push 0
mov ecx, dword [ebp - 0x2c]
call fcn.10017f3a
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x30]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jg 0x1001e0a8
mov dword [ebp - 0x34], 1
jmp 0x1001e0ac
and dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 0x7bfe1a27
jg 0x1001e0be
mov dword [ebp - 0x38], 1
jmp 0x1001e0c2
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x38]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret