Function at 0x100289e8
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100618d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xcc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x34]
test eax, eax
je 0x10028bb8
lea eax, [ebp + 0x14]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x34], 0x3afa
mov dword [ebp - 0xa8], 0x10009618
cmp dword [ebp - 0x34], 0x3bd6
jle 0x10028ae7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
and dword [ebp - 0x1c], 0
jmp 0x10028a59
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x75ad
jge 0x10028ae7
and dword [ebp - 0x24], 0
jmp 0x10028a73
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xc1b
jge 0x10028ae2
and dword [ebp - 0x20], 0
jmp 0x10028a89
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x116
jge 0x10028ae0
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
cdq
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], edx
push dword [ebp - 0xbc]
push dword [ebp - 0xc0]
lea ecx, [ebp - 0xdc]
call fcn.1000d5c0
pop ecx
pop ecx
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
call fcn.1000fe6e
push eax
call fcn.1004bbc6
pop ecx
lea ecx, [ebp - 0xdc]
call fcn.1000fe64
jmp 0x10028a82
jmp 0x10028a6c
jmp 0x10028a52
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x90], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x34], 0x39b8
jge 0x10028b09
push dword [ebp - 0xa8]
call fcn.1004bbc6
pop ecx
jmp 0x10028b25
or dword [ebp - 4], 0xffffffff
jmp 0x10028b2f
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax]
test eax, eax
je 0x10028b5f
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
mov dword [eax], 0
jmp 0x10028bb3
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x10028b96
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 2
jge 0x10028bb3
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x78]
call fcn.10010041
mov dword [eax], 1
jmp 0x10028b8b
jmp 0x10028d6c
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xa0]
movzx eax, byte [eax]
test eax, eax
je 0x10028c54
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x10028c32
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 2
jge 0x10028c4f
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x54]
call fcn.10010041
mov dword [eax], 0xbca63185
jmp 0x10028c27
jmp 0x10028d6c
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
je 0x10028cd2
mov eax, dword [ebp - 0x28]
cmp dword [eax], 0
je 0x10028cd2
or eax, 0xffffffff
je 0x10028cd2
mov dword [ebp - 0x44], 1
jmp 0x10028cd6
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x44]
jge 0x10028ce9
mov dword [ebp - 0x3c], 1
jmp 0x10028ced
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x3c]
sub ecx, 0x1a17e59
cmp dword [eax], ecx
jl 0x10028d15
push 2
mov ecx, dword [ebp - 0x38]
call fcn.10010041
cmp dword [eax], 0
je 0x10028d15
mov dword [ebp - 0x2c], 1
jmp 0x10028d19
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [eax]
jne 0x10028d3c
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
jne 0x10028d3c
and dword [ebp - 0x40], 0
jmp 0x10028d43
mov dword [ebp - 0x40], 1
push 0
mov ecx, dword [ebp - 0x38]
call fcn.10010041
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [eax]
jle 0x10028d5d
mov dword [ebp - 0x48], 1
jmp 0x10028d61
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret