Function at 0x492530
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
mov eax, dword [0x7d8230]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
call fcn.0046d3e0
movzx eax, ax
test eax, eax
je 0x492604
call fcn.0046d3e0
mov dword [ebp - 0x94], eax
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x492571
mov edi, dword [ebp + 0x18]
jmp 0x492580
mov edx, dword [ebp + 0x10]
lea edx, [edx + 0x26]
push edx
call fcn.004aafb0
pop ecx
mov edi, eax
push edi
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x492590
mov dword [ebp - 0x8c], eax
jmp 0x49259c
lea eax, [0x699eba]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4925b6
mov dword [ebp - 0x90], eax
jmp 0x4925c2
lea eax, [0x699d39]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
push eax
movzx eax, word [ebp - 0x94]
push eax
push str.hb_vmRequestQuery____i_for:__s__i__s__s_n
push str.error.log
call fcn.004a9610
add esp, 0x1c
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x1c]
push eax
push str.hb_vmRequestQuery___is_set___Couldnt_create_error__s__s
push 0x2328
call fcn.00492ef0
add esp, 0x10
xor eax, eax
jmp 0x492789
call fcn.00491210
mov ebx, eax
movzx eax, word [ebp + 8]
push eax
push ebx
call fcn.00491bc0
add esp, 8
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x492625
mov edi, dword [ebp + 0xc]
jmp 0x49262b
lea edi, [0x699d39]
push edi
push ebx
call fcn.00491ce0
add esp, 8
movzx eax, word [ebp + 0x10]
push eax
push ebx
call fcn.004919c0
add esp, 8
movzx eax, word [ebp + 0x14]
push eax
push ebx
call fcn.00491c50
add esp, 8
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x492660
mov dword [ebp - 0x8c], eax
jmp 0x492673
mov eax, dword [ebp + 0x10]
lea eax, [eax + 0x26]
push eax
call fcn.004aafb0
pop ecx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
push eax
push ebx
call fcn.00491860
add esp, 8
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x492692
mov dword [ebp - 0x90], eax
jmp 0x49269e
lea eax, [0x699eba]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x90]
push eax
push ebx
call fcn.00491a50
add esp, 8
movzx eax, word [ebp + 0x20]
push eax
push ebx
call fcn.00491b30
add esp, 8
movzx eax, word [ebp + 0x24]
or eax, 2
movzx eax, ax
push eax
push ebx
call fcn.004921d0
add esp, 8
push 0x699d39
mov eax, dword [ebp + 0xc]
push eax
call fcn.00534750
add esp, 8
test eax, eax
jne 0x49272c
mov eax, dword [ebp + 0x10]
cmp eax, 0x10
jne 0x4926f7
mov eax, dword [ebp + 0x14]
cmp eax, 0x3ed
je 0x492709
mov eax, dword [ebp + 0x10]
cmp eax, 0xd
jne 0x49272c
mov eax, dword [ebp + 0x14]
cmp eax, 0x3ec
jne 0x49272c
push 0
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 0x85]
push eax
push 1
call fcn.0049cc00
add esp, 0x10
push eax
push ebx
call fcn.00491d80
add esp, 8
jmp 0x49274d
push 0
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 0x85]
push eax
push 0
call fcn.0049cc00
add esp, 0x10
push eax
push ebx
call fcn.00491d80
add esp, 8
movzx eax, word [ebp - 2]
push eax
push ebx
call fcn.00491e20
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push ebx
call fcn.00491eb0
add esp, 8
mov eax, dword [esi + 0x68]
push eax
push ebx
call fcn.00491fd0
add esp, 8
call fcn.0048d4d0
push eax
push ebx
call fcn.00491f40
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret