Function at 0x44e150
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov eax, dword [0x50300c]
mov edi, ecx
test eax, eax
je 0x44e174
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
ja 0x44e18c
jmp 0x44e197
push 0x50300c
call fcn.004cb880
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jbe 0x44e197
cmp dword [eax], 0
mov esi, eax
jne 0x44e356
mov eax, dword [0x50300c]
test eax, eax
je 0x44e338
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
je 0x44e354
mov esi, eax
test eax, eax
jne 0x44e212
mov esi, dword [0x56bbf8]
mov eax, dword [esi]
test eax, eax
jne 0x44e1d4
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x44e369
mov dword [esi], eax
push 8
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x44e369
mov dword [eax], 0
mov dword [eax + 4], 0x50300c
mov esi, eax
mov eax, dword [0x50300c]
test eax, eax
jne 0x44e20b
push 0x50300c
call fcn.004cb880
add esp, 4
push esi
push eax
call sub.kernel32.dll_TlsSetValue
test edi, edi
je 0x44e226
mov ebx, dword [edi]
mov dword [edi], 0
test ebx, ebx
jne 0x44e315
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
lea ebx, [esp + 0x10]
push 2
push 0x20
push ebx
push 0
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jae 0x44e36f
movaps xmm0, xmmword [esp + 0x10]
movaps xmm1, xmmword [esp + 0x20]
mov edi, dword [0x56bbf8]
movaps xmmword [esp + 0x40], xmm0
movaps xmmword [esp + 0x30], xmm1
mov eax, dword [edi]
test eax, eax
jne 0x44e27d
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x44e360
mov dword [edi], eax
push 0x158
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x44e360
movsd xmm0, qword [0x519860]
mov ebx, eax
movsd qword [eax], xmm0
add eax, 8
push 0x100
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
movaps xmm0, xmmword [esp + 0x40]
movaps xmm2, xmmword [esp + 0x30]
movaps xmm1, xmmword [0x519870]
mov dword [ebx + 0x108], 0x40
movups xmmword [ebx + 0x110], xmm0
movups xmmword [ebx + 0x120], xmm2
mov dword [ebx + 0x134], 0
mov dword [ebx + 0x130], 0
mov dword [ebx + 0x13c], 0
mov dword [ebx + 0x138], 0
movups xmmword [ebx + 0x140], xmm1
mov dword [ebx + 0x150], 0
mov eax, dword [esi]
mov dword [esi], ebx
test eax, eax
je 0x44e356
dec dword [eax]
jne 0x44e356
dec dword [eax + 4]
jne 0x44e356
mov ecx, dword [0x56bbf8]
push eax
push 0
push dword [ecx]
call sub.kernel32.dll_HeapFree
jmp 0x44e356
push 0x50300c
call fcn.004cb880
add esp, 4
push eax
call sub.kernel32.dll_TlsGetValue
cmp eax, 1
jne 0x44e1b3
xor esi, esi
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 8
push 0x158
jmp 0x44e39a
push 4
push 8
jmp 0x44e39a
mov esi, dword [0x56bbf8]
mov edi, eax
mov eax, dword [esi]
test eax, eax
jne 0x44e388
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x44e396
mov dword [esi], eax
push 4
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
jne 0x44e3a4
push 4
push 4
call fcn.004085f0
add esp, 8
ud2
add edi, 0x80000000
mov edx, esp
lea ecx, [esp + 8]
mov dword [eax], edi
mov dword [esp], eax
mov dword [esp + 8], edx
mov dword [esp + 0x10], 0x5199c4
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], ecx
mov dword [esp + 4], 0x519af0
mov dword [esp + 0xc], 0x44e740
mov dword [esp + 0x24], 1
push 0x519a24
push ebx
call fcn.00414c50
add esp, 8
ud2