Function at 0x4072d0
Capabilities:
Allocate thread local storage
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x68
mov edi, ecx
mov eax, dword [0x4b5040]
xor eax, ebp
mov dword [esp + 0x60], eax
lea ebx, [ecx + 0x40]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
sub esp, 4
test al, al
jne 0x407303
mov ecx, ebx
call fcn.0044bf60
cmp byte [edi + 0x1168], 0
je 0x40732d
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
sub esp, 4
mov ecx, dword [esp + 0x60]
xor ecx, ebp
call fcn.00461246
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
lea esi, [ebp + 8]
mov cl, 1
xor eax, eax
lock cmpxchg byte [0x4c4acc], cl
jne 0x407396
mov esi, 0xfd
mov dword [esp + 0x10], esi
movaps xmm0, xmmword [0x4a7e10]
movups xmmword [esp], xmm0
call fcn.0044eea0
mov dword [esp + 0x10], esi
movaps xmm0, xmmword [0x4a7e20]
movups xmmword [esp], xmm0
call fcn.0044eea0
mov dword [esp + 0x10], esi
movaps xmm0, xmmword [0x4a7e30]
movups xmmword [esp], xmm0
call fcn.0044eea0
mov dword [esp + 0x10], esi
lea esi, [ebp + 8]
movaps xmm0, xmmword [0x4a7e40]
movups xmmword [esp], xmm0
call fcn.0044eea0
mov al, byte [esi + 2]
cmp al, 1
sete byte [edi + 4]
mov byte [edi + 0xc], 0
cmp byte [esi + 0x10], 1
sete byte [edi + 0xd]
cmp byte [esi + 4], 1
sete byte [edi + 0xe]
mov dword [esp + 0x24], ebx
je 0x4074fd
cmp byte [edi + 0x1430], 0
jne 0x4076ff
mov dword [edi + 0x10], 0
cmp al, 1
jne 0x4073e0
mov eax, 4
mov dword [edi + 8], eax
mov dword [edi + 0x10], eax
mov byte [edi], 0
xorps xmm0, xmm0
movups xmmword [edi + 0x1148], xmm0
movups xmmword [edi + 0x1158], xmm0
mov dword [edi + 0x1148], 0x4a8284
mov eax, edi
not eax
mov dword [edi + 0x13cc], eax
lea ebx, [edi + 0x48]
mov eax, 8
mov esi, 0xffffff78
mov dword [esp], eax
mov ecx, ebx
call fcn.0045e130
sub esp, 4
mov eax, dword [esi*4 + 0x4a8074]
add ebx, 0x20
inc esi
cmp eax, 1
jne 0x407415
mov eax, esi
add eax, 0x88
jae 0x40745a
neg esi
mov dword [esp], 1
mov ecx, ebx
call fcn.0045e130
sub esp, 4
mov dword [ebx], 0
add ebx, 0x20
dec esi
jne 0x40743d
mov dword [esp], 0x4b7058
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
sub esp, 4
test al, al
je 0x4076e1
cmp byte [0x4c4b24], 0
lea esi, [ebp + 8]
jne 0x4074b5
cmp dword [0x4c7038], 0
jne 0x407702
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x407705
mov dword [0x4c4ad0], eax
mov dword [0x4c703c], eax
mov dword [0x4c7038], 0x43d990
mov byte [0x4c4b24], 1
mov dword [esp], 0x4b7058
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
sub esp, 4
cmp byte [esi], 1
sete byte [edi + 3]
jne 0x4074d6
mov dword [esp], edi
call fcn.0043da70
mov bl, 1
mov byte [edi + 0x1168], bl
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
sub esp, 4
xor eax, eax
lock cmpxchg byte [0x4c4acd], bl
jmp 0x407318
mov eax, dword [esi + 0xc]
mov dword [edi + 0x13dc], eax
mov eax, dword [esi + 8]
mov dword [edi + 0x13d8], eax
lea ecx, [edi + 0x13e0]
mov eax, dword [esi + 0xc]
mov dword [edi + 0x13e4], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0x30], 1
mov dword [esp + 0x34], 0
xor esi, esi
dec esi
lea ebx, [esp + 0x58]
mov dword [ebx + 4], esi
mov dword [ebx], esi
mov dword [esp], ebx
mov dword [esp + 4], 8
call sub.ADVAPI32.dll_SystemFunction036
sub esp, 8
test al, al
je 0x4076f0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], esi
mov dword [esp], ebx
mov dword [esp + 4], 8
call sub.ADVAPI32.dll_SystemFunction036
sub esp, 8
test al, al
je 0x4076f3
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], eax
call fcn.00406980
mov esi, dword [esp + 0x1c]
lea ecx, [esi*8]
mov dword [esp], ecx
mov dword [esp + 4], 0
mov ecx, eax
call fcn.00406c40
sub esp, 8
test esi, esi
je 0x4076f6
mov dword [esp + 0x18], eax
cmp byte [edi + 0x1430], 0
je 0x4075e9
mov byte [edi + 0x1430], 0
mov eax, dword [esp + 0x20]
mov dword [edi + 0x1400], eax
mov dword [edi + 0x1404], esi
mov byte [edi + 0x1408], 1
xorps xmm0, xmm0
movups xmmword [edi + 0x140c], xmm0
mov dword [edi + 0x141c], 0
xor esi, esi
dec esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], esi
lea ebx, [esp + 0x58]
mov dword [esp], ebx
mov dword [esp + 4], 8
call sub.ADVAPI32.dll_SystemFunction036
sub esp, 8
test al, al
je 0x4076f9
movsd xmm0, qword [esp + 0x58]
movsd qword [edi + 0x1410], xmm0
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], esi
mov dword [esp], ebx
mov dword [esp + 4], 8
call sub.ADVAPI32.dll_SystemFunction036
sub esp, 8
test al, al
je 0x4076fc
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [edi + 0x1418], eax
mov dword [edi + 0x141c], ecx
mov eax, dword [esp + 0x18]
mov dword [edi + 0x1420], eax
xor eax, eax
mov dword [edi + 0x1424], eax
mov dword [edi + 0x1428], eax
lea ecx, [esp + 0x28]
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x28], eax
mov byte [edi + 0x1430], 1
call fcn.004405d0
mov al, byte [edi + 4]
cmp byte [edi + 0xc], 0
je 0x4076cd
test al, al
jne 0x407708
mov dword [edi + 0x10], 0
jmp 0x4073e0
mov dword [edi + 0x10], 0
test al, al
jne 0x4073d5
jmp 0x4073e0
mov ecx, 0x4b7058
call fcn.0044bf60
jmp 0x407472
int3
int3
int3
int3
int3
int3
int3
int3
int3