Function at 0x1004b2f7
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
movzx eax, byte [ebp + 0x48]
test eax, eax
je 0x1004b6f2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x50]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xfc], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 0x40]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x54]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x7c], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x4c]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x9c]
movzx eax, byte [eax]
test eax, eax
je 0x1004b39b
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x1004b6ed
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0x108], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0xe4], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x100], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x108]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
dec ecx
mov edx, dword [ebp - 8]
mov dword [edx], ecx
test eax, eax
jne 0x1004b5fd
mov eax, dword [ebp - 0x10]
cmp dword [eax], 1
je 0x1004b4e1
mov dword [ebp - 0x44], 1
jmp 0x1004b4e5
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x44], eax
jle 0x1004b4f8
mov dword [ebp - 0x50], 1
jmp 0x1004b4fc
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xd16cf057
jae 0x1004b51b
mov dword [ebp - 0x3c], 1
jmp 0x1004b51f
and dword [ebp - 0x3c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x3c]
jl 0x1004b538
mov eax, 0xfae3
test eax, eax
jne 0x1004b538
and dword [ebp - 0x1c], 0
jmp 0x1004b53f
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 0xfffffffe
jg 0x1004b54e
mov dword [ebp - 0x58], 1
jmp 0x1004b552
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x60]
cmp dword [eax], 0x3a1b
jg 0x1004b566
mov dword [ebp - 0x34], 1
jmp 0x1004b56a
and dword [ebp - 0x34], 0
imul eax, dword [ebp - 0x34], 0x1f8b
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jl 0x1004b58b
mov dword [ebp - 0x2c], 1
jmp 0x1004b58f
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x2c], eax
jg 0x1004b5a2
mov dword [ebp - 0x14], 1
jmp 0x1004b5a6
and dword [ebp - 0x14], 0
push 1
mov ecx, dword [ebp - 0x68]
call fcn.1000f696
mov ecx, dword [ebp - 0x14]
sub ecx, dword [eax]
cmp ecx, 0xbc8f9611
jae 0x1004b5c6
mov dword [ebp - 0x70], 1
jmp 0x1004b5ca
and dword [ebp - 0x70], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
je 0x1004b5fd
and dword [ebp - 0x20], 0
jmp 0x1004b604
mov dword [ebp - 0x20], 1
cmp dword [ebp - 0x20], 0xc9f93b76
jae 0x1004b616
mov dword [ebp - 0x28], 1
jmp 0x1004b61a
and dword [ebp - 0x28], 0
push 1
mov ecx, dword [ebp - 0x78]
call fcn.1000f696
mov ecx, dword [ebp - 0x28]
imul ecx, dword [eax]
mov eax, dword [ebp - 4]
cmp ecx, dword [eax]
jle 0x1004b63a
mov dword [ebp - 0x30], 1
jmp 0x1004b63e
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [ebp - 0x30], eax
jne 0x1004b651
mov dword [ebp - 0x38], 1
jmp 0x1004b655
and dword [ebp - 0x38], 0
push 0
mov ecx, dword [ebp - 0x80]
call fcn.1000f696
mov ecx, dword [ebp - 0x38]
sub ecx, dword [eax]
mov eax, dword [ebp - 4]
cmp ecx, dword [eax]
jg 0x1004b674
mov dword [ebp - 0x40], 1
jmp 0x1004b678
and dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x88]
mov eax, dword [eax]
cmp dword [ebp - 0x40], eax
jle 0x1004b68e
mov dword [ebp - 0x48], 1
jmp 0x1004b692
and dword [ebp - 0x48], 0
cmp dword [ebp - 0x48], 0xdf274c11
jne 0x1004b6a7
mov dword [ebp - 0x90], 1
jmp 0x1004b6ae
and dword [ebp - 0x90], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x98]
mov eax, dword [eax]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0xa0]
mov eax, dword [eax]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0xa8]
mov dword [eax], 0xc20eb8fc
mov eax, dword [ebp - 0xb0]
mov dword [eax], 0xc20eb8fc
jmp 0x1004b7b5
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0x44]
mov dword [ebp - 0xc0], eax
lea eax, [ebp + 0x3c]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xb8]
movzx eax, byte [eax]
test eax, eax
je 0x1004b752
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp - 0xd0]
movzx eax, byte [eax]
test eax, eax
je 0x1004b750
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x1004b7b5
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0xf0], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
jmp 0x1004b795
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 3
jge 0x1004b7b5
mov eax, dword [ebp - 0xc]
push dword [eax]
mov ecx, dword [ebp - 0xf8]
call fcn.1000f696
mov dword [eax], 0xfffffffa
jmp 0x1004b78a
mov esp, ebp
pop ebp
ret