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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov dword [0x454e54], edx
push ebx
push esi
push edi
push 0
push 0
push 0x100000
push 0x200000
push 0
push 0x1002
call dword [sym.imp.ntdll.dll_RtlCreateHeap]
mov dword [0x454e50], eax
test eax, eax
jne 0x418ef4
mov eax, 0xc000009a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x148]
mov dword [ebp - 0x148], 0x11c
push eax
call dword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
js 0x419001
mov eax, dword [ebp - 0x144]
lea esi, [ebp - 0x148]
mov ecx, 0x47
mov edi, 0x454d00
rep movsd dword es:[edi], dword [esi]
cmp eax, 6
jne 0x418f78
mov eax, dword [ebp - 0x140]
cmp eax, 1
jb 0x418f7a
jne 0x418f4c
mov dword [0x454e4c], 0x3d
jmp 0x41900b
cmp eax, 2
jne 0x418f60
mov dword [0x454e4c], 0x3e
jmp 0x41900b
cmp eax, 3
jne 0x41900b
mov dword [0x454e4c], 0x3f
jmp 0x41900b
jae 0x418f89
mov dword [0x454e4c], 0
jmp 0x41900b
cmp eax, 0xa
jne 0x418fff
mov eax, dword [ebp - 0x140]
test eax, eax
jne 0x419001
mov eax, dword [ebp - 0x13c]
cmp eax, 0x3839
ja 0x418fd9
je 0x418fcd
cmp eax, 0x2800
je 0x418fc1
cmp eax, 0x295a
jne 0x419001
mov dword [0x454e4c], 0x65
jmp 0x41900b
mov dword [0x454e4c], 0x64
jmp 0x41900b
mov dword [0x454e4c], 0x66
jmp 0x41900b
cmp eax, 0x3ad7
je 0x418ff3
cmp eax, 0x3fab
jne 0x419001
mov dword [0x454e4c], 0x68
jmp 0x41900b
mov dword [0x454e4c], 0x67
jmp 0x41900b
jbe 0x41900b
mov dword [0x454e4c], 0x7fffffff
push 0
push 0x2c
push 0x454e20
push 0
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
push 0
push 0
push 0xf0003
push 0x454bc8
call dword [sym.imp.ntdll.dll_NtCreateKeyedEvent]
test eax, eax
js 0x41923e
mov edi, dword [sym.imp.ntdll.dll_RtlInitializeSListHead]
mov al, 1
cmp al, byte [0x454e48]
push 0x4552b8
sbb eax, eax
and eax, 0xfa0
mov dword [0x453b14], eax
call edi
push 0x4552a0
call edi
xor eax, eax
mov dword [0x4552a8], 0
mov dword [ebp - 0x28], eax
mov ecx, 0x28
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
mov edx, eax
mov dword [0x4552ac], 0x200
mov dword [0x4552b0], 0x38
mov dword [0x4549b4], eax
mov dword [0x454ea0], eax
call fcn.00411890
mov edx, eax
mov ebx, 1
xor eax, eax
mov word [edx], ax
mov eax, ebx
lock xadd dword [0x4549b8], eax
inc eax
sub al, bl
mov dword [edx + 4], 0
movzx ecx, al
mov byte [edx + 2], al
mov dword [edx + 8], 0
mov dword [edx + 0xc], str.Type
cmp ecx, 0x100
jae 0x419233
mov dword [ecx*4 + 0x454ea0], edx
lea ecx, [ebx + 0x27]
movzx eax, al
mov dword [0x4549b4], edx
mov word [edx - 8], ax
mov dword [edx + 4], ebx
call fcn.00411890
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
lock xadd dword [0x4549b8], ecx
inc ecx
dec cl
mov dword [eax + 4], 0
mov byte [eax + 2], cl
movzx ecx, cl
mov dword [eax + 8], 0
mov dword [eax + 0xc], str.Alloc
cmp ecx, 0x100
jae 0x419233
mov dword [ecx*4 + 0x454ea0], eax
mov dword [0x4549b0], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x454abc], eax
cmp eax, 0xffffffff
je 0x41923e
call fcn.00411c60
test al, al
je 0x41923e
mov edx, dword [0x4549b4]
lea ecx, [ebx + 0x27]
call fcn.00411890
mov ecx, ebx
mov word [eax], bx
lock xadd dword [0x4549b8], ecx
inc ecx
dec cl
mov dword [eax + 4], 0
movzx edx, cl
mov byte [eax + 2], cl
mov dword [eax + 8], 0x429a60
mov dword [eax + 0xc], str.FileStream
cmp edx, 0x100
jae 0x419233
lea esi, [eax + 0x10]
mov dword [edx*4 + 0x454ea0], eax
push esi
call edi
mov edx, dword [0x4549b4]
lea ecx, [ebx + 0x27]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x10
mov dword [esi + 0x10], 0x30
call fcn.00411890
xor ecx, ecx
mov word [eax], cx
lock xadd dword [0x4549b8], ebx
inc ebx
dec bl
mov dword [eax + 4], ecx
movzx ecx, bl
mov byte [eax + 2], bl
mov dword [eax + 8], 0x415970
mov dword [eax + 0xc], str.SymbolProvider
cmp ecx, 0x100
jae 0x419233
mov dword [ecx*4 + 0x454ea0], eax
mov dword [0x454e74], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0xc0000001
call dword [sym.imp.ntdll.dll_RtlRaiseStatus]
pop edi
pop esi
mov eax, 0xc0000001
pop ebx
mov esp, ebp
pop ebp
ret 8