Function at 0x10026b35
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x10026bd7
lea eax, [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x10026bb6
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
jmp 0x10026b97
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 2
jge 0x10026bb4
mov eax, dword [ebp - 0xc]
push dword [eax]
mov ecx, dword [ebp - 0x28]
call fcn.10013df2
mov dword [eax], 1
jmp 0x10026b8c
jmp 0x10026bd2
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x10026bd2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
jmp 0x10026cfa
lea eax, [ebp + 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x10026c49
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
jmp 0x10026c27
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], 1
jge 0x10026c44
mov eax, dword [ebp - 0x10]
push dword [eax]
mov ecx, dword [ebp - 0x4c]
call fcn.10013df2
mov dword [eax], 3
jmp 0x10026c1c
jmp 0x10026cfa
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x58], 0x1ed7
cmp dword [ebp - 0x58], 0xe5e
jge 0x10026cf1
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0x10007e58
call fcn.100405bb
add esp, 0x14
mov eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x60]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x64]
sub eax, dword [ebp - 0x68]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jge 0x10026ca6
mov eax, dword [ebp - 4]
neg eax
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
jge 0x10026cb4
mov eax, dword [ebp - 8]
neg eax
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 1
jge 0x10026cc1
mov dword [ebp - 4], 1
cmp dword [ebp - 8], 1
jge 0x10026cce
mov dword [ebp - 8], 1
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
shl eax, 1
push eax
push 0x10007850
call fcn.10040c03
pop ecx
pop ecx
mov eax, dword [ebp - 0x6c]
mov dword [eax], 0xef4a0426
mov esp, ebp
pop ebp
ret