Function at 0x4cc440
Capabilities:
Allocate thread local storage
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x5c7004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x118
mov dword [0x5cd528], eax
lea eax, [ebp - 0x128]
push 0
push eax
mov dword [0x5cd52c], 0x5883ec
call fcn.00536b00
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
js 0x4cc637
mov eax, dword [ebp - 0x128]
lea esi, [ebp - 0x12c]
mov ecx, 0x47
mov edi, 0x5cd560
rep movsd dword es:[edi], dword [esi]
cmp eax, 6
jne 0x4cc505
mov eax, dword [ebp - 0x124]
cmp eax, 1
jb 0x4cc507
jne 0x4cc4d6
mov dword [0x5c7aa8], 0x3d
jmp 0x4cc641
cmp eax, 2
jne 0x4cc4ea
mov dword [0x5c7aa8], 0x3e
jmp 0x4cc641
cmp eax, 3
jne 0x4cc637
mov dword [0x5c7aa8], 0x3f
lea ecx, [ecx]
jmp 0x4cc641
jae 0x4cc516
mov dword [0x5c7aa8], 0
jmp 0x4cc641
cmp eax, 0xa
jne 0x4cc637
cmp dword [ebp - 0x124], 0
jne 0x4cc637
mov eax, dword [ebp - 0x120]
cmp eax, 0x55f0
jb 0x4cc548
mov dword [0x5c7aa8], 0x70
jmp 0x4cc641
cmp eax, 0x4a63
jb 0x4cc55e
mov dword [0x5c7aa8], 0x6f
jmp 0x4cc641
mov edi, edi
cmp eax, 0x4a62
jb 0x4cc576
mov dword [0x5c7aa8], 0x6e
jmp 0x4cc641
cmp eax, 0x4a61
jb 0x4cc58c
mov dword [0x5c7aa8], 0x6d
jmp 0x4cc641
cmp eax, 0x47bb
jb 0x4cc5a5
mov dword [0x5c7aa8], 0x6c
lea ecx, [ecx]
jmp 0x4cc641
cmp eax, 0x47ba
jb 0x4cc5bb
mov dword [0x5c7aa8], 0x6b
jmp 0x4cc641
jmp 0x4cc5c0
cmp eax, 0x4563
jb 0x4cc5d3
mov dword [0x5c7aa8], 0x6a
jmp 0x4cc641
cmp eax, 0x42ee
jb 0x4cc5e6
mov dword [0x5c7aa8], 0x69
jmp 0x4cc641
cmp eax, 0x3fab
jb 0x4cc5f9
mov dword [0x5c7aa8], 0x68
jmp 0x4cc641
lea esp, [esp]
cmp eax, 0x3ad7
jb 0x4cc613
mov dword [0x5c7aa8], 0x67
jmp 0x4cc641
cmp eax, 0x3839
jb 0x4cc626
mov dword [0x5c7aa8], 0x66
jmp 0x4cc641
cmp eax, 0x295a
sbb eax, eax
add eax, 0x65
mov dword [0x5c7aa8], eax
jmp 0x4cc641
mov dword [0x5c7aa8], 0xffffffff
push 0
push 0x2c
push sym.ProcessHacker.exe_PhSystemBasicInformation
push 0
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp dword [0x5c7aa8], 0x3e
jb 0x4cc677
push 0
push 0
push 0
push 0
push 0
push 0x1102
call dword [sym.imp.ntdll.dll_RtlCreateHeap]
mov dword [0x5cd55c], eax
jmp 0x4cc67c
mov eax, dword [0x5cd55c]
lea esp, [esp]
test eax, eax
jne 0x4cc6ce
push eax
push eax
push 0x100000
push 0x200000
push eax
push 0x1002
call dword [sym.imp.ntdll.dll_RtlCreateHeap]
mov dword [0x5cd55c], eax
test eax, eax
je 0x4cc85b
cmp dword [0x5c7aa8], 0x3c
jb 0x4cc6ce
push 4
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x130], 2
push ecx
push 0
push eax
call dword [sym.imp.ntdll.dll_RtlSetHeapInformation]
push 0
push 0
push 0xf0003
push 0x5cf310
call dword [sym.imp.ntdll.dll_NtCreateKeyedEvent]
test eax, eax
js 0x4cc85b
mov al, 1
cmp al, byte [0x5cd558]
push 0x5cfc98
sbb eax, eax
and eax, 0xfa0
mov dword [0x5cb72c], eax
call dword [sym.imp.ntdll.dll_RtlInitializeSListHead]
push 0x5cfc80
call dword [sym.imp.ntdll.dll_RtlInitializeSListHead]
xor eax, eax
mov dword [0x5cfc88], 0
mov dword [ebp - 0x15c], eax
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], eax
lea eax, [ebp - 0x15c]
push eax
push 0x28
mov dword [0x5cfc8c], 0x200
mov dword [0x5cfc90], 0x38
mov dword [0x5cd4e0], eax
mov dword [0x5cf880], eax
call sym.ProcessHacker.exe_PhCreateObject
mov ecx, eax
mov ebx, 1
xor eax, eax
mov word [ecx], ax
mov eax, ebx
lock xadd dword [0x5cd4e8], eax
inc eax
dec al
mov dword [ecx + 4], 0
movzx edx, al
mov byte [ecx + 2], al
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], str.Type
cmp edx, 0x100
jae 0x4cc850
push ecx
movzx eax, al
push 0x28
mov dword [edx*4 + 0x5cf880], ecx
mov dword [0x5cd4e0], ecx
mov word [ecx - 8], ax
mov dword [ecx + 4], ebx
call sym.ProcessHacker.exe_PhCreateObject
xor ecx, ecx
mov word [eax], cx
lock xadd dword [0x5cd4e8], ebx
inc ebx
dec bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
movzx ecx, bl
mov byte [eax + 2], bl
mov dword [eax + 0xc], 0x5988cc
cmp ecx, 0x100
jae 0x4cc850
mov dword [ecx*4 + 0x5cf880], eax
mov dword [0x5cd4e4], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x5cf03c], eax
cmp eax, 0xffffffff
je 0x4cc85b
call fcn.004c23a0
test al, al
je 0x4cc85b
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00534c91
mov esp, ebp
pop ebp
ret 0xc
push 0xc0000001
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
mov ecx, dword [ebp - 8]
mov eax, 0xc0000001
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00534c91
mov esp, ebp
pop ebp
ret 0xc