Function at 0x1002bb95
Capabilities:
Allocate thread local storage
Terminate process

Disassembly:
mov eax, 0x100842ba
call fcn.10083008
sub esp, 0x58
movdqa xmm0, xmmword [0x10007f20]
lea eax, [ebp - 0x50]
push ebx
push esi
push edi
push dword [ebp - 0x30]
xor ebx, ebx
mov dword [ebp - 0x20], 0xcef054a2
push eax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x18], 0xffffffff
push eax
mov esi, ecx
mov dword [ebp - 0x1c], 5
push ebx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x50], ebx
movdqu xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
call fcn.1000c63b
push 2
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.1000c0a5
xor edi, edi
inc edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], 0xffff
mov dword [ebp - 0x1c], ebx
jmp 0x1002bc17
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x44]
mov dword [eax + ecx*4], 0xa41a80d1
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 2
jl 0x1002bc07
mov eax, dword [ebp - 0x20]
xor edx, edx
mov eax, dword [ebp - 0x18]
add eax, 0x3dd7a9f7
cmp eax, edi
mov eax, dword [ebp - 0x18]
setl dl
xor ecx, ecx
cmp edx, eax
setge cl
xor edx, edx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp eax, 0x36dc9922
mov edi, dword [ebp - 0x50]
mov eax, dword [ebp - 0x44]
setne dl
xor ecx, ecx
mov dword [edi + 8], edx
mov dword [eax], edx
mov eax, dword [ebp - 0x24]
cmp edx, eax
setge cl
cmp ecx, dword [ebp - 0x18]
jl 0x1002bc6f
cmp dword [ebp - 0x18], ebx
je 0x1002bc6f
xor edx, edx
inc edx
mov ecx, edx
jmp 0x1002bc74
xor edx, edx
mov ecx, ebx
inc edx
mov eax, dword [ebp - 0x18]
add eax, ecx
imul eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x24]
jne 0x1002bc8e
mov eax, dword [ebp - 0x44]
mov ecx, edx
cmp dword [eax], ebx
jne 0x1002bc90
mov ecx, ebx
mov eax, dword [ebp - 0x20]
sub ecx, eax
je 0x1002bd24
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], 0x448afe0a
mov dword [ebp - 0x20], 0xfffffff6
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x18], ebx
jmp 0x1002bcda
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x44]
sub ecx, dword [eax]
cmp ecx, dword [ebp - 0x28]
jl 0x1002bcd4
mov eax, dword [ebp - 0x44]
mov dword [eax + 4], edx
mov dword [ebp - 0x1c], edx
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x2f
jl 0x1002bcb8
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
sub eax, dword [edi + 8]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x28]
jg 0x1002bcff
mov ecx, ebx
cmp dword [ebp - 0x30], ebx
je 0x1002bd01
mov ecx, edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], ecx
jle 0x1002bd0f
mov eax, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov eax, dword [ebp - 0x30]
mov eax, dword [ebp - 0x50]
cmp ecx, dword [eax]
sbb eax, eax
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x1002bd34
mov byte [ebp - 0x11], bl
cmp byte [ebp - 0x11], 0
je 0x1002bd34
push ebx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea ecx, [ebp - 0x44]
call fcn.1000c2fa
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.1000c2fa
xor edi, edi
inc edi
push esi
push edi
call fcn.100263e5
pop ecx
mov dword [ebp - 0x1c], 0x68ec0ae9
pop ecx
mov dword [ebp - 0x1c], ebx
jmp 0x1002bd70
cmp byte [ebp - 0x11], 0
je 0x1002bd6d
push ebx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0xb
mov byte [ebp - 0x11], bl
je 0x1002bd60
cmp byte [ebp - 0x11], 0
je 0x1002bd8a
push 0x9d7
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call fcn.100563ac
mov dword [ebp - 0x18], 0x90c4d8e5
mov esi, eax
mov dword [ebp - 0x30], 0x44ad72d7
pop ecx
mov dword [ebp - 0x1c], ebx
jmp 0x1002bdb0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp + ecx*4 - 0x38], edi
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 2
jl 0x1002bda6
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x18], ebx
jl 0x1002bdd2
mov byte [ebp - 0x11], bl
cmp byte [ebp - 0x11], 0
je 0x1002bdcd
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
dec dword [ebp - 0x18]
jns 0x1002bdbe
mov dword [ebp - 0x18], 0x15
jmp 0x1002bdeb
mov dword [ebp - 0x30], 7
dec dword [ebp - 0x30]
mov eax, dword [ebp - 0x18]
dec dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0xfffffff2
jg 0x1002bddb
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret