Function at 0x424ef1
Capabilities:
Allocate thread local storage

Disassembly:
push 8
mov eax, 0x442428
call fcn.0041e7a1
mov edi, ecx
xor esi, esi
and dword [ebp - 0x10], esi
cmp dword [edi + 0x24], esi
jne 0x424f13
mov esi, 0x8007000e
jmp 0x425153
cmp dword [edi + 0x28], esi
je 0x424f09
cmp dword [edi + 8], esi
je 0x424f27
mov esi, 0x80004005
jmp 0x425153
cmp dword [edi + 0x20], esi
jne 0x424f1d
mov ebx, dword [sym.imp.KERNEL32.dll_TlsAlloc]
call ebx
mov dword [edi + 0x14], eax
cmp eax, 0xffffffff
jne 0x424f46
mov esi, 0x80004005
jmp 0x42513e
test eax, eax
jne 0x424f62
call ebx
mov dword [edi + 0x14], eax
test eax, eax
jne 0x424f5d
push 0x1c13e2
call fcn.00419830
cmp dword [edi + 0x14], esi
je 0x424f3c
lea eax, [ebp - 0x10]
push eax
push 0x10
push 0
call fcn.00426437
test eax, eax
jns 0x424f7a
mov esi, eax
jmp 0x42513e
lea eax, [edi + 8]
push eax
push dword [ebp - 0x10]
push 0x100
push 0x40
call fcn.004266d7
test eax, eax
js 0x424f73
lea eax, [edi + 0x30]
cmp dword [eax], esi
jne 0x424fa2
push eax
call fcn.00425771
test eax, eax
js 0x424f73
push 0x20
call fcn.00421653
mov ebx, eax
mov dword [ebp - 0x14], ebx
and dword [ebp - 4], 0
test ebx, ebx
je 0x424fc2
push dword [edi + 0x30]
mov ecx, ebx
call fcn.0042570c
jmp 0x424fc4
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
mov dword [edi + 0x6c], ebx
test ebx, ebx
jne 0x424fd9
mov esi, 0x8007000e
jmp 0x42513e
push 0x1f0003
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventExW]
mov dword [edi + 0x74], eax
test eax, eax
je 0x424f3c
push 0
lea ecx, [edi + 0x7c]
call fcn.004261c4
test eax, eax
js 0x424f73
push 0
lea ecx, [edi + 0xd0]
call fcn.004261c4
test eax, eax
js 0x424f73
mov ecx, dword [edi + 0x28]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
test eax, eax
js 0x424f73
push 0x28
call fcn.00421653
mov ebx, eax
mov dword [ebp - 0x14], ebx
xor eax, eax
inc eax
mov dword [ebp - 4], eax
test ebx, ebx
je 0x425055
push eax
push eax
mov ecx, ebx
call fcn.00422449
mov dword [ebx + 0x24], 1
jmp 0x425057
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
mov dword [edi + 0x2c], ebx
test ebx, ebx
je 0x424fcf
push 0xd8
call fcn.00421653
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x42508b
push dword [edi + 0x2c]
mov ecx, eax
push edi
call fcn.00430b33
jmp 0x42508d
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [edi + 0x78], eax
test eax, eax
je 0x424fcf
push edi
mov ecx, eax
call fcn.00430c14
test eax, eax
js 0x424f73
push dword [edi + 8]
mov ecx, dword [edi + 0x24]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
test eax, eax
js 0x424f73
push dword [edi + 8]
lea ecx, [edi + 0x124]
call fcn.004261c4
test eax, eax
js 0x424f73
push edi
call fcn.004221e7
mov ecx, eax
mov dword [edi + 0xc], ecx
test ecx, ecx
je 0x424fcf
mov eax, dword [ecx]
call dword [eax + 0x14]
test eax, eax
js 0x424f73
push 0x248
call fcn.00421653
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x425118
push edi
mov ecx, eax
call fcn.004313ea
jmp 0x42511a
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov dword [edi + 0x10], eax
test eax, eax
je 0x424fcf
mov ecx, edi
call fcn.00424b03
test al, al
jne 0x42513e
push 0x1c1401
call fcn.00419830
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x42514f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
and dword [ebp - 0x10], 0
test esi, esi
jns 0x425169
mov ecx, edi
call fcn.004248e7
push 0
mov ecx, edi
call fcn.00424935
mov ecx, dword [edi]
push edi
call dword [ecx + 0x60]
mov eax, esi
call fcn.0041e879
ret