Function at 0x1002a19b
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006ad5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1002a1cb
push 0
call fcn.1002abf3
pop ecx
jmp 0x1002a508
lea eax, [ebp + 8]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x1002a502
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x4c], 0x1e01
cmp dword [ebp - 0x4c], 0xe48
jge 0x1002a4bb
lea ecx, [ebp - 0x74]
call fcn.1000b5c2
and dword [ebp - 4], 0
lea edx, [ebp - 0x74]
mov ecx, 0x1065b470
call fcn.100239fa
push 0
push 0x2b
lea ecx, [ebp - 0x74]
call fcn.1004a77a
mov dword [ebp - 0x10], eax
push 0
push 0x3d
lea ecx, [ebp - 0x74]
call fcn.1004a77a
sub eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x74]
call fcn.1000be59
sub eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x10]
dec eax
dec eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jne 0x1002a27c
push fcn.1000f2a9
lea edx, [ebp - 0x74]
mov ecx, 0x1065b3b8
call fcn.1000f2db
mov ecx, eax
call fcn.1000b86d
jmp 0x1002a4af
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + eax + 1]
mov ecx, dword [ebp - 0x18]
dec ecx
cmp eax, ecx
jne 0x1002a329
and dword [ebp - 0x20], 0
jmp 0x1002a29f
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
inc eax
cmp dword [ebp - 0x20], eax
jge 0x1002a2b6
mov dl, 0x7c
mov ecx, 0x1065b3b8
call fcn.1004ad55
jmp 0x1002a298
mov dl, 0x2b
mov ecx, 0x1065b3b8
call fcn.1004ad55
and dword [ebp - 0x24], 0
jmp 0x1002a2cf
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x14]
jge 0x1002a2e5
mov dl, 0x7c
mov ecx, 0x1065b3b8
call fcn.1004ad55
jmp 0x1002a2c8
mov dl, 0x3d
mov ecx, 0x1065b3b8
call fcn.1004ad55
and dword [ebp - 0x28], 0
jmp 0x1002a2fe
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
dec eax
cmp dword [ebp - 0x28], eax
jge 0x1002a315
mov dl, 0x7c
mov ecx, 0x1065b3b8
call fcn.1004ad55
jmp 0x1002a2f7
push fcn.1000f2a9
mov ecx, 0x1065b3b8
call fcn.1000b86d
jmp 0x1002a4af
cmp dword [ebp - 0x10], 1
jle 0x1002a3e0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + eax - 1]
mov ecx, dword [ebp - 0x18]
inc ecx
cmp eax, ecx
jne 0x1002a3e0
and dword [ebp - 0x2c], 0
jmp 0x1002a356
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
dec eax
cmp dword [ebp - 0x2c], eax
jge 0x1002a36d
mov dl, 0x7c
mov ecx, 0x1065b3b8
call fcn.1004ad55
jmp 0x1002a34f
mov dl, 0x2b
mov ecx, 0x1065b3b8
call fcn.1004ad55
and dword [ebp - 0x30], 0
jmp 0x1002a386
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x14]
jge 0x1002a39c
mov dl, 0x7c
mov ecx, 0x1065b3b8
call fcn.1004ad55
jmp 0x1002a37f
mov dl, 0x3d
mov ecx, 0x1065b3b8
call fcn.1004ad55
and dword [ebp - 0x34], 0
jmp 0x1002a3b5
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
inc eax
cmp dword [ebp - 0x34], eax
jge 0x1002a3cc
mov dl, 0x7c
mov ecx, 0x1065b3b8
call fcn.1004ad55
jmp 0x1002a3ae
push fcn.1000f2a9
mov ecx, 0x1065b3b8
call fcn.1000b86d
jmp 0x1002a4af
cmp dword [ebp - 0x14], 1
jle 0x1002a494
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
lea eax, [ecx + eax - 1]
mov ecx, dword [ebp - 0x18]
inc ecx
cmp eax, ecx
jne 0x1002a494
and dword [ebp - 0x38], 0
jmp 0x1002a40d
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x10]
jge 0x1002a423
mov dl, 0x7c
mov ecx, 0x1065b3b8
call fcn.1004ad55
jmp 0x1002a406
mov dl, 0x2b
mov ecx, 0x1065b3b8
call fcn.1004ad55
and dword [ebp - 0x3c], 0
jmp 0x1002a43c
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
dec eax
cmp dword [ebp - 0x3c], eax
jge 0x1002a453
mov dl, 0x7c
mov ecx, 0x1065b3b8
call fcn.1004ad55
jmp 0x1002a435
mov dl, 0x3d
mov ecx, 0x1065b3b8
call fcn.1004ad55
and dword [ebp - 0x40], 0
jmp 0x1002a46c
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x18]
inc eax
cmp dword [ebp - 0x40], eax
jge 0x1002a483
mov dl, 0x7c
mov ecx, 0x1065b3b8
call fcn.1004ad55
jmp 0x1002a465
push fcn.1000f2a9
mov ecx, 0x1065b3b8
call fcn.1000b86d
jmp 0x1002a4af
push fcn.1000f2a9
mov edx, 0x10007bc4
mov ecx, 0x1065b3b8
call fcn.1000f0d2
mov ecx, eax
call fcn.1000b86d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x74]
call fcn.1000b64b
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
jmp 0x1002a4e3
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], 1
jge 0x1002a500
mov eax, dword [ebp - 0x1c]
push dword [eax]
mov ecx, dword [ebp - 0x5c]
call fcn.1000ba29
mov dword [eax], 1
jmp 0x1002a4d8
jmp 0x1002a508
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret