Function at 0x462a00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
mov eax, dword [0x597010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push dword [ecx + 0x1c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [esi + 0x18], 0
mov edi, dword [0x59d870]
cmp edi, 1
ja 0x462a74
push 0x59d870
call fcn.00473460
add esp, 4
test al, al
je 0x462a6e
mov dword [0x59d878], 0
mov dword [0x59d874], 0xffffffff
mov edi, 0x59d874
mov ecx, 0x59d874
push 0
call fcn.004624b0
mov dword [0x59d870], edi
jmp 0x462a74
mov edi, dword [0x59d870]
push dword [0x599b44]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 0xfffffffc
je 0x462a97
mov ecx, dword [edi]
mov dword [eax + ecx*8], 0
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [eax + ecx*8 + 4], edx
lea ecx, [ebp + 8]
mov eax, dword [ecx + 8]
mov dword [esi + 0x2c], eax
mov eax, dword [ecx + 4]
test eax, eax
je 0x462aba
mov dword [ecx + 4], 0
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x24], eax
test ecx, ecx
jne 0x462b0d
jmp 0x462b14
mov ebx, dword [ecx + 0xc]
test ebx, ebx
je 0x462bce
push 0x24
call fcn.005283f4
add esp, 4
mov edi, eax
mov eax, 1
lock xadd dword [ebx], eax
test eax, eax
jle 0x462c32
cmp eax, 0x7fffffff
je 0x462c35
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp - 0x18]
mov ecx, edi
mov edx, 2
push eax
call fcn.00463170
add esp, 4
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x24], edi
test ecx, ecx
je 0x462b14
push 1
call fcn.00463330
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edi, [esi + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x462b32
push edi
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
lea ecx, [ebp + 8]
cmp byte [ecx + 0x18], 0
mov ebx, dword [ecx]
mov eax, dword [ecx + 0x14]
je 0x462b52
lea edx, [esi + 0x10]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ecx + 0x10]
mov edx, esi
push ebx
push eax
push dword [ebp - 0x1c]
jmp 0x462b5b
mov ecx, dword [ecx + 0x10]
mov edx, esi
push ebx
push eax
push 0
call fcn.00457f40
add esp, 0xc
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test bl, bl
je 0x462b80
lea ecx, [ebp + 8]
movzx eax, byte [ecx + 0x18]
mov byte [esi + 8], al
mov bl, 1
mov eax, ecx
jmp 0x462b85
xor ebx, ebx
lea eax, [ebp + 8]
mov esi, dword [eax + 0xc]
test esi, esi
je 0x462ba3
lock dec dword [esi]
jne 0x462ba3
mov ecx, dword [esi + 8]
call dword [section..00cfg]
push esi
call ecx
lea eax, [ebp + 8]
add esp, 4
mov ecx, dword [eax + 4]
mov dword [eax + 4], 0
test ecx, ecx
je 0x462bb8
push 1
call fcn.00463330
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00528e13
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
push 0x18
mov ebx, ecx
call fcn.005283f4
add esp, 4
mov edi, eax
mov dword [eax], 1
mov dword [eax + 4], 0x463500
mov dword [eax + 8], 0x463520
mov dword [eax + 0xc], 0x474eb0
mov eax, dword [ebx]
mov dword [ebp - 0x1c], eax
mov dword [edi + 0x14], eax
push 0x24
call fcn.005283f4
add esp, 4
mov ebx, eax
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x14]
mov ecx, ebx
mov edx, dword [ebp - 0x1c]
push eax
call fcn.00463170
add esp, 4
mov ecx, dword [esi + 0x24]
mov dword [esi + 0x24], ebx
test ecx, ecx
jne 0x462b0d
jmp 0x462b14
int3
int3