Function at 0x4092a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c97d
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x46d45c]
xor eax, ebp
mov dword [ebp - 0x4c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
push 4
push 0x454b90
lea ecx, [ebp + 8]
call fcn.00402270
push eax
call fcn.00438fb4
add esp, 0xc
test eax, eax
je 0x40931c
push 4
push 0x454b9c
lea ecx, [ebp + 8]
call fcn.00402270
push eax
call fcn.00438fb4
add esp, 0xc
test eax, eax
jne 0x40944c
push 0x454ba8
call fcn.00438225
add esp, 4
push eax
push 0x454bb4
lea ecx, [ebp + 8]
call fcn.00402270
push eax
call fcn.00438fb4
add esp, 0xc
test eax, eax
jne 0x40934e
mov eax, dword [reloc.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x20], eax
jmp 0x409357
mov ecx, dword [0x469980]
mov dword [ebp - 0x20], ecx
lea ecx, [ebp + 8]
call fcn.00402270
add eax, 0xa
push eax
lea ecx, [ebp - 0x24]
call fcn.00402190
mov byte [ebp - 4], 1
lea edx, [ebp - 0x18]
push edx
mov eax, dword [0x46f464]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.00402270
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.004047c0
add esp, 0x14
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x1c], 2
cmp dword [ebp - 0x1c], 0
je 0x40940c
push 0x5c
lea ecx, [ebp - 0x24]
call fcn.00402270
push eax
call fcn.00416770
add esp, 8
test eax, eax
je 0x4093db
push 0x5c
lea ecx, [ebp - 0x24]
call fcn.00402270
push eax
call fcn.00416770
add esp, 8
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [0x46f464]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
or eax, 0x20019
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.00402270
push eax
mov edx, dword [ebp - 0x20]
push edx
call fcn.004047c0
add esp, 0x14
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40943e
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.004021c0
jmp 0x409495
push 0
push 0x2000080
push 3
push 0
push 7
push SysReAllocString
lea ecx, [ebp + 8]
call fcn.00402270
push eax
call fcn.00404890
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0xffffffff
je 0x409495
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], 0
jne 0x4094a5
cmp dword [ebp - 0x14], 0
je 0x409527
lea edx, [ebp - 0x154]
push edx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x154]
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0x40
lea eax, [ebp - 0x14c]
push eax
push 0
lea ecx, [ebp - 0x48]
push ecx
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
push 0x40
lea edx, [ebp - 0xcc]
push edx
push 0
lea eax, [ebp - 0x48]
push eax
push 2
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
lea ecx, [ebp - 0xcc]
push ecx
lea edx, [ebp - 0x14c]
push edx
push 0x454bc0
push 1
push 0x64
mov ecx, dword [ebp + 0xc]
call fcn.004023f0
push eax
call fcn.00438ac1
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004021c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x4c]
xor ecx, ebp
call fcn.004376f1
mov esp, ebp
pop ebp
ret