Function at 0x47a490
Capabilities:
Allocate thread local storage

Disassembly:
push 8
mov eax, 0x4a480f
call fcn.0043fcf6
mov edi, ecx
xor esi, esi
and dword [ebp - 0x10], esi
cmp dword [edi + 0x24], esi
jne 0x47a4b2
mov esi, 0x8007000e
jmp 0x47a6f2
cmp dword [edi + 0x28], esi
je 0x47a4a8
cmp dword [edi + 8], esi
je 0x47a4c6
mov esi, 0x80004005
jmp 0x47a6f2
cmp dword [edi + 0x20], esi
jne 0x47a4bc
mov ebx, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call ebx
mov dword [edi + 0x14], eax
cmp eax, 0xffffffff
jne 0x47a4e5
mov esi, 0x80004005
jmp 0x47a6dd
test eax, eax
jne 0x47a501
call ebx
mov dword [edi + 0x14], eax
test eax, eax
jne 0x47a4fc
push 0x1c13e2
call fcn.00456bc8
cmp dword [edi + 0x14], esi
je 0x47a4db
lea eax, [ebp - 0x10]
push eax
push 0x10
push 0
call fcn.0047b950
test eax, eax
jns 0x47a519
mov esi, eax
jmp 0x47a6dd
lea eax, [edi + 8]
push eax
push dword [ebp - 0x10]
push 0x100
push 0x40
call fcn.0047bbf0
test eax, eax
js 0x47a512
lea eax, [edi + 0x30]
cmp dword [eax], esi
jne 0x47a541
push eax
call fcn.0047ac8c
test eax, eax
js 0x47a512
push 0x20
call fcn.00476d4a
mov ebx, eax
mov dword [ebp - 0x14], ebx
and dword [ebp - 4], 0
test ebx, ebx
je 0x47a561
push dword [edi + 0x30]
mov ecx, ebx
call fcn.0047ac27
jmp 0x47a563
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
mov dword [edi + 0x6c], ebx
test ebx, ebx
jne 0x47a578
mov esi, 0x8007000e
jmp 0x47a6dd
push 0x1f0003
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventExW]
mov dword [edi + 0x74], eax
test eax, eax
je 0x47a4db
push 0
lea ecx, [edi + 0x7c]
call fcn.0047b6dd
test eax, eax
js 0x47a512
push 0
lea ecx, [edi + 0xd0]
call fcn.0047b6dd
test eax, eax
js 0x47a512
mov ecx, dword [edi + 0x28]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
test eax, eax
js 0x47a512
push 0x28
call fcn.00476d4a
mov ebx, eax
mov dword [ebp - 0x14], ebx
xor eax, eax
inc eax
mov dword [ebp - 4], eax
test ebx, ebx
je 0x47a5f4
push eax
push eax
mov ecx, ebx
call fcn.004779e3
mov dword [ebx + 0x24], 1
jmp 0x47a5f6
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
mov dword [edi + 0x2c], ebx
test ebx, ebx
je 0x47a56e
push 0xd8
call fcn.00476d4a
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x47a62a
push dword [edi + 0x2c]
mov ecx, eax
push edi
call fcn.004860a8
jmp 0x47a62c
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [edi + 0x78], eax
test eax, eax
je 0x47a56e
push edi
mov ecx, eax
call fcn.00486189
test eax, eax
js 0x47a512
push dword [edi + 8]
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
test eax, eax
js 0x47a512
push dword [edi + 8]
lea ecx, [edi + 0x124]
call fcn.0047b6dd
test eax, eax
js 0x47a512
push edi
call fcn.00477781
mov ecx, eax
mov dword [edi + 0xc], ecx
test ecx, ecx
je 0x47a56e
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
js 0x47a512
push 0x248
call fcn.00476d4a
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x47a6b7
push edi
mov ecx, eax
call fcn.00486957
jmp 0x47a6b9
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [edi + 0x10], eax
test eax, eax
je 0x47a56e
mov ecx, edi
call fcn.0047a0a3
test al, al
jne 0x47a6dd
push 0x1c1401
call fcn.00456bc8
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x47a6ee
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [ebp - 0x10], 0
test esi, esi
jns 0x47a708
mov ecx, edi
call fcn.00479e87
push 0
mov ecx, edi
call fcn.00479ed5
mov ecx, dword [edi]
push edi
call dword [ecx + 0x60]
mov eax, esi
call fcn.0043fdce
ret