Function at 0x1002af38
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x3c], 0
jmp 0x1002af58
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 2
jge 0x1002af6e
mov eax, dword [ebp - 0x3c]
mov dword [ebp + eax*4 - 0xe8], 0xd3df
jmp 0x1002af51
mov dword [ebp - 0x34], 1
jmp 0x1002af7e
mov eax, dword [ebp - 0x34]
dec eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jl 0x1002afab
mov byte [ebp - 0x18], 0
movzx eax, byte [ebp - 0x18]
test eax, eax
je 0x1002afa9
push 0x2240
push 0x6569
push 0x6c55
push 1
call fcn.1002a8f0
add esp, 0x10
jmp 0x1002af77
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
inc eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xc], eax
mov dword [ebp - 0x10], 0xfffffff9
mov dword [ebp - 0x28], 6
mov dword [ebp - 0x98], 0x664087a9
mov dword [ebp - 0x10], 0
jmp 0x1002aff4
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffe5
je 0x1002b15e
mov dword [ebp - 0x2c], 0
jmp 0x1002b00e
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 3
jge 0x1002b024
mov eax, dword [ebp - 0x2c]
mov dword [ebp + eax*4 - 0xb8], 0xffff
jmp 0x1002b007
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x28], 2
jmp 0x1002b03a
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jl 0x1002b159
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x19], 0
push 1
lea eax, [ebp - 0x19]
push eax
call fcn.1002a96d
pop ecx
pop ecx
mov dword [ebp - 0x14], 0
jmp 0x1002b06c
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jg 0x1002b154
mov dword [ebp - 0x88], 0xad7d
mov dword [ebp - 0x70], 5
mov eax, dword [ebp - 0x10]
sub eax, 0xc131
jne 0x1002b09f
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0xb8], 0
cmp dword [ebp - 0x10], 0xffffffff
jne 0x1002b0ae
mov dword [ebp - 0x60], 1
jmp 0x1002b0b2
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x60]
je 0x1002b0c3
mov dword [ebp - 0x4c], 1
jmp 0x1002b0c7
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp + eax*4 - 0xb8]
cmp dword [ebp - 0x4c], eax
je 0x1002b0e2
mov dword [ebp - 0x84], 1
jmp 0x1002b0e9
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x84]
jge 0x1002b106
cmp dword [ebp - 0x14], 0
je 0x1002b106
mov dword [ebp - 0x78], 1
jmp 0x1002b10a
and dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp + eax*4 - 0xb8]
cmp eax, dword [ebp - 0x78]
je 0x1002b122
mov dword [ebp - 0x58], 1
jmp 0x1002b126
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x98], eax
mov byte [ebp - 0x17], 0
movzx eax, byte [ebp - 0x17]
test eax, eax
je 0x1002b14f
push 0x5b3f
push 1
call fcn.1002a9ef
pop ecx
pop ecx
jmp 0x1002b065
jmp 0x1002b033
jmp 0x1002afed
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x1002b49d
mov dword [ebp - 0x90], 0xeb90
mov dword [ebp - 8], 0
mov dword [ebp - 0x24], 0xecf54c3c
mov dword [ebp - 0xc0], 1
mov dword [ebp - 0x8c], 0xdcda7209
mov dword [ebp - 0xc], 0x4e55
mov dword [ebp - 4], 0
jmp 0x1002b1ad
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jge 0x1002b1c0
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x20], 0xffffffff
jmp 0x1002b1a6
mov dword [ebp - 4], 0
jmp 0x1002b1d0
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 3
jge 0x1002b1e6
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0xcc], 0x37d02268
jmp 0x1002b1c9
mov dword [ebp - 4], 0
jmp 0x1002b1f6
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 3
jge 0x1002b20c
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0xe0], 2
jmp 0x1002b1ef
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], 0
jmp 0x1002b223
mov eax, dword [ebp - 8]
dec eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jl 0x1002b43a
mov dword [ebp - 0x44], 0xffffffff
mov dword [ebp - 0xbc], 0x168f928d
mov dword [ebp - 0xac], 0xfffffffa
mov dword [ebp - 0xa8], 0xfffffffa
mov dword [ebp - 0xa4], 0xfffffffa
mov dword [ebp - 0xa0], 0xfffffffa
mov dword [ebp - 0x80], 0x7221ebc5
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x20]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x20]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x20]
cmp eax, dword [ebp - 0x44]
je 0x1002b299
mov dword [ebp - 0x54], 1
jmp 0x1002b29d
and dword [ebp - 0x54], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xac]
cmp dword [ebp - 0x80], eax
jle 0x1002b2b8
mov dword [ebp - 0x68], 1
jmp 0x1002b2bc
and dword [ebp - 0x68], 0
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0x68], eax
jge 0x1002b2d0
mov dword [ebp - 0x94], 1
jmp 0x1002b2d7
and dword [ebp - 0x94], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x20]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x90]
cmp dword [ebp + eax*4 - 0x20], ecx
jge 0x1002b2ff
mov dword [ebp - 0x50], 1
jmp 0x1002b303
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 0x50]
push 4
pop ecx
shl ecx, 1
sub eax, dword [ebp + ecx - 0xe0]
cmp dword [ebp - 0x54], eax
jl 0x1002b330
or eax, 0xffffffff
je 0x1002b330
mov dword [ebp - 0x5c], 1
jmp 0x1002b334
and dword [ebp - 0x5c], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x20]
cmp dword [ebp - 0x5c], eax
jge 0x1002b34c
mov dword [ebp - 0x64], 1
jmp 0x1002b350
and dword [ebp - 0x64], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xac]
imul eax, dword [ebp - 0x64]
cmp eax, 9
ja 0x1002b36f
mov dword [ebp - 0x6c], 1
jmp 0x1002b373
and dword [ebp - 0x6c], 0
cmp dword [ebp - 0x6c], 0
je 0x1002b382
mov dword [ebp - 0x40], 1
jmp 0x1002b386
and dword [ebp - 0x40], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x40]
mov dword [ebp + eax - 0xcc], ecx
cmp dword [ebp - 0x40], 0x9d65
je 0x1002b3a8
mov dword [ebp - 0x74], 1
jmp 0x1002b3ac
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x20]
push 4
pop ecx
shl ecx, 0
mov ecx, dword [ebp + ecx - 0xac]
add ecx, dword [ebp - 0x74]
imul eax, ecx
test eax, eax
jne 0x1002b3d5
xor eax, eax
inc eax
jne 0x1002b3d5
and dword [ebp - 0x7c], 0
jmp 0x1002b3dc
mov dword [ebp - 0x7c], 1
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x24], 0xfffffffe
jmp 0x1002b3f5
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 6
jge 0x1002b435
mov dword [ebp - 0xc], 0
jmp 0x1002b40b
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
jge 0x1002b421
mov eax, dword [ebp - 0xc]
mov dword [ebp + eax*4 - 0xcc], 0
jmp 0x1002b404
mov byte [ebp - 0x15], 0
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x1002b433
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
jmp 0x1002b3ee
jmp 0x1002b21c
push 1
lea eax, [ebp + 0x14]
push eax
push 0x19af
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.1002aa2a
add esp, 0x14
mov dword [ebp - 0x30], 2
push 0x230e
push 1
lea eax, [ebp - 0x30]
push eax
call fcn.1002aa8c
add esp, 0xc
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x30], eax
jg 0x1002b480
mov dword [ebp - 0x48], 1
jmp 0x1002b484
and dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
add ecx, dword [eax + 0x10]
mov eax, dword [ebp + 0x1c]
mov dword [eax], ecx
jmp 0x1002b529
mov dword [ebp - 0x38], 9
mov dword [ebp - 0x9c], 0x6318d581
mov dword [ebp - 0x38], 0
jmp 0x1002b4be
mov eax, dword [ebp - 0x38]
dec eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xfffffff0
je 0x1002b4d6
push 1
lea eax, [ebp - 0x9c]
push eax
call fcn.1002ab22
pop ecx
pop ecx
jmp 0x1002b4b7
mov byte [ebp - 0x16], 0
movzx eax, byte [ebp - 0x16]
test eax, eax
je 0x1002b500
push 0x3db5
push 0x6dba
push 0x2cf9
push 1
push 0x1302
call fcn.1002ab5e
add esp, 0x14
push 1
push 0x694e
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.1002ae99
add esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
add ecx, dword [eax + 0x10]
mov eax, dword [ebp + 0x1c]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret