Function at 0x46be40
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x6482e1
mov eax, dword fs:[0]
push eax
mov eax, 0x34a8
call fcn.0061ea30
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0x34a4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x755898]
xor eax, esp
push eax
lea eax, [esp + 0x34bc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x34cc]
mov ecx, dword [esp + 0x34d0]
mov edi, dword [esp + 0x34d4]
mov ebp, dword [esp + 0x34dc]
xor ebx, ebx
xor esi, esi
cmp dword [0x74fe58], 0xffffffff
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], ebx
jne 0x46bec4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x74fe58], eax
cmp eax, 0xffffffff
je 0x46beff
push 0x10
call fcn.005f1588
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x46beff
mov eax, dword [0x74fe58]
push esi
lea edx, [esp + 0x18]
push eax
mov dword [esi], edx
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x46beff
push esi
call fcn.005f15b7
add esp, 4
xor esi, esi
xor ecx, ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
mov word [esp + 0x30], cx
mov dword [esp + 0x34c4], ebx
cmp edi, ebx
je 0x46bfda
lea ecx, [esp + 0x38]
call fcn.0057cf50
mov byte [esp + 0x34c4], 1
mov eax, edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
lea edx, [eax + 1]
jmp 0x46bf40
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x46bf40
sub eax, edx
lea edx, [esp + 0x1c]
push edx
push eax
push edi
lea ecx, [esp + 0x44]
call fcn.00579970
test eax, eax
je 0x46bfa7
lea ecx, [esp + 0x18]
call fcn.00402500
mov byte [esp + 0x34c4], 2
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push str.IDM_emc__s
push ecx
call fcn.00402f70
mov edx, dword [esp + 0x24]
add esp, 0xc
push ebx
push edx
lea ecx, [esp + 0x34]
call fcn.00401980
mov byte [esp + 0x34c4], 1
lea ecx, [esp + 0x18]
call fcn.00402570
jmp 0x46bfb7
mov eax, dword [0x75ad10]
push eax
push edi
lea ecx, [esp + 0x34]
call fcn.00401980
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x46bfc8
push eax
call fcn.0061e83c
add esp, 4
mov byte [esp + 0x34c4], bl
lea ecx, [esp + 0x38]
call fcn.005d84f0
jmp 0x46c00a
cmp ebp, ebx
jne 0x46bff9
mov dword [esp + 0x34c4], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00401210
xor eax, eax
jmp 0x46c0a0
push ebp
lea ecx, [esp + 0x30]
call fcn.004017f0
cmp esi, ebx
je 0x46c00a
mov dword [esi + 0xc], ebp
call fcn.005f9c7a
mov edi, dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push edi
push 0x45a680
push 5
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x46c037
lea eax, [esp + 0x30]
mov ecx, dword [esp + 0x34d8]
mov edx, dword [esp + 0x28]
push ecx
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, eax
mov eax, dword [esp + 0x14]
mov dword [0x75b26c], ebx
cmp eax, ebx
je 0x46c06b
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [esp + 0x14], ebx
mov eax, dword [0x74fe58]
cmp eax, 0xffffffff
je 0x46c08a
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp esi, ebx
je 0x46c08a
push esi
call fcn.005f15b7
add esp, 4
mov dword [esp + 0x34c4], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.00401210
mov eax, edi
mov ecx, dword [esp + 0x34bc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x34a4]
xor ecx, esp
call fcn.0061d2ff
add esp, 0x34b4
ret