Function at 0x1002af7d
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005a7e1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x88
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1002b072
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x50], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x1002b022
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], 0
jmp 0x1002b000
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], 3
jge 0x1002b020
mov eax, dword [ebp - 0x18]
push dword [eax]
mov ecx, dword [ebp - 0x88]
call fcn.10013df2
mov dword [eax], 0xfffffff6
jmp 0x1002aff5
jmp 0x1002b06d
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
jmp 0x1002b050
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 2
jge 0x1002b06d
mov eax, dword [ebp - 0x1c]
push dword [eax]
mov ecx, dword [ebp - 0x5c]
call fcn.10013df2
mov dword [eax], 0xe0a8eac8
jmp 0x1002b045
jmp 0x1002b289
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
push 1
lea ecx, [ebp - 0x84]
call fcn.10013d69
and dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
jmp 0x1002b099
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jge 0x1002b0b5
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x84]
call fcn.10013df2
mov dword [eax], 0x5b57fd54
jmp 0x1002b092
push 0
lea ecx, [ebp - 0x84]
call fcn.10013df2
and dword [eax], 0
jmp 0x1002b0e2
push 0
lea ecx, [ebp - 0x84]
call fcn.10013df2
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x38]
mov dword [ecx], eax
push 0
lea ecx, [ebp - 0x84]
call fcn.10013df2
cmp dword [eax], 0xffffffe3
jge 0x1002b26e
mov dword [ebp - 0x20], 0xb950ba1b
mov dword [ebp - 0x24], 0
jmp 0x1002b10f
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 3
jge 0x1002b125
mov eax, dword [ebp - 0x24]
mov dword [ebp + eax*4 - 0x94], 0xffffffff
jmp 0x1002b108
mov dword [ebp - 0x20], 0
jmp 0x1002b135
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
jg 0x1002b269
push 2
lea ecx, [ebp - 0x74]
call fcn.10013d69
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], 0
jmp 0x1002b15d
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 2
jge 0x1002b176
push dword [ebp - 0x34]
lea ecx, [ebp - 0x74]
call fcn.10013df2
mov dword [eax], 1
jmp 0x1002b156
push 0
lea ecx, [ebp - 0x74]
call fcn.10013df2
mov dword [eax], 2
jmp 0x1002b1a0
push 0
lea ecx, [ebp - 0x74]
call fcn.10013df2
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], eax
push 0
lea ecx, [ebp - 0x74]
call fcn.10013df2
cmp dword [eax], 0
jl 0x1002b258
mov dword [ebp - 0x14], 0xbc106ec6
mov dword [ebp - 0x14], 2
jmp 0x1002b1ca
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jl 0x1002b241
mov dword [ebp - 0x30], 0x96f377cc
mov dword [ebp - 0x30], 2
jmp 0x1002b1e7
mov eax, dword [ebp - 0x30]
dec eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jl 0x1002b230
mov dword [ebp - 0x28], 0x5457d670
mov dword [ebp - 0x28], 0
jmp 0x1002b204
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 2
jg 0x1002b21a
mov dword [ebp - 0x40], 1
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
jmp 0x1002b1fd
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + eax*4 - 0x94]
mov dword [ebp + ecx*4 - 0x94], eax
jmp 0x1002b1e0
mov eax, dword [ebp - 0x20]
cmp dword [ebp + eax*4 - 0x94], 0
je 0x1002b23f
jmp 0x1002b241
jmp 0x1002b1c3
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x1002b253
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
jmp 0x1002b188
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.10013dc7
jmp 0x1002b12e
jmp 0x1002b0c7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x84]
call fcn.10013dc7
push dword [ebp - 0x64]
push 0
call fcn.1002a22b
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret