Function at 0x1002f657
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069a79
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x6c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1002f6d3
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
movzx eax, byte [eax]
test eax, eax
je 0x1002f6a5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
jmp 0x1002f6ce
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 - 0x4c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x50]
mov ecx, dword [ecx]
mov ecx, dword [ecx]
mov dword [eax + 4], ecx
jmp 0x1002f8d2
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x34], 0x4b55
mov dword [ebp - 0x6c], 0x1000a070
cmp dword [ebp - 0x34], 0x4bc2
jle 0x1002f77d
push 0
push 0x1e26
call dword [sym.imp.USER32.dll_KillTimer]
and dword [ebp - 0x14], 0
jmp 0x1002f722
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2c9
jge 0x1002f77d
and dword [ebp - 0x18], 0
jmp 0x1002f738
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x7037
jge 0x1002f77b
and dword [ebp - 0x1c], 0
jmp 0x1002f74e
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x3696
jge 0x1002f779
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
and eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], edx
push dword [ebp - 0x70]
push dword [ebp - 0x74]
mov ecx, 0x10612a38
call fcn.100335a0
jmp 0x1002f747
jmp 0x1002f731
jmp 0x1002f71b
mov dword [ebp - 0x30], 0x34aa
mov dword [ebp - 0x68], 0x1000a0c8
cmp dword [ebp - 0x30], 0x371e
jle 0x1002f822
and dword [ebp - 0x20], 0
jmp 0x1002f7a5
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x3c56
jge 0x1002f822
and dword [ebp - 0x24], 0
jmp 0x1002f7bb
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0xffa
jge 0x1002f81d
and dword [ebp - 0x28], 0
jmp 0x1002f7d1
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x21d2
jge 0x1002f81b
and dword [ebp - 0x2c], 0
jmp 0x1002f7e7
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x26e
jge 0x1002f819
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
shl eax, cl
mov ecx, dword [ebp - 0x28]
sar eax, cl
xor eax, dword [ebp - 0x2c]
cdq
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], edx
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
mov ecx, 0x10612a38
call fcn.100335a0
jmp 0x1002f7e0
jmp 0x1002f7ca
jmp 0x1002f7b4
jmp 0x1002f79e
push 0x4452
push 1
push 0x7d2d
push dword [ebp - 0x54]
push 0x858
push dword [ebp - 0x58]
push 0x3ed9
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push dword [ebp - 0x64]
call fcn.1000dded
add esp, 0x28
and dword [ebp - 4], 0
cmp dword [ebp - 0x30], 0x3459
jge 0x1002f869
mov edx, dword [ebp - 0x68]
mov ecx, 0x10612a38
call fcn.1003504a
jmp 0x1002f885
or dword [ebp - 4], 0xffffffff
jmp 0x1002f88f
mov dword [ebp - 4], 2
cmp dword [ebp - 0x34], 0x48a1
jge 0x1002f8ac
mov edx, dword [ebp - 0x6c]
mov ecx, 0x10612a38
call fcn.1003504a
jmp 0x1002f8c8
or dword [ebp - 4], 0xffffffff
jmp 0x1002f8d2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret