Function at 0x1001f7c0
Capabilities:
Get thread local storage value

Disassembly:
sub esp, 0x3c
mov eax, dword [0x1002b150]
push ebx
push esi
push edi
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov esi, dword [esp + 0x50]
lea edi, [esp + 0x34]
mov eax, 0
mov ebp, dword [esi + 0xe8]
mov ecx, 6
mov dword [esp + 0x10], 0
and ebp, 4
rep stosd dword es:[edi], eax
mov byte [esp + 0x34], 0x4c
je 0x1001f812
mov byte [esp + 0x35], 0x65
mov byte [esp + 0x36], 0x61
mov byte [esp + 0x37], 0x64
jmp 0x1001f821
mov byte [esp + 0x35], 0x45
mov byte [esp + 0x36], 0x41
mov byte [esp + 0x37], 0x44
mov eax, dword [esi]
mov ecx, dword [esi + 0x10c]
mov word [esp + 0x44], ax
test ecx, ecx
je 0x1001f83e
test ebp, ebp
je 0x1001f83e
mov eax, dword [esi + 0x130]
jmp 0x1001f841
mov eax, dword [esi + 4]
mov word [esp + 0x46], ax
mov eax, dword [esi + 0x18]
cmp eax, 3
ja case.default.0x1001f84e
jmp dword [eax*4 + 0x1001fa50]
mov byte [esp + 0x48], 8
or byte [esp + 0x3a], 0x60
jmp case.default.0x1001f84e
mov byte [esp + 0x48], 0x18
jmp case.default.0x1001f84e
mov byte [esp + 0x48], 0x18
or byte [esp + 0x3a], 0x20
jmp case.default.0x1001f84e
mov byte [esp + 0x48], 0x18
or byte [esp + 0x3a], 0x10
mov eax, dword [esi + 0xc4]
test ecx, ecx
mov word [esp + 0x4a], ax
je 0x1001f892
or byte [esp + 0x3a], 0x80
cmp dword [esi + 0x108], 0
je 0x1001f8a0
or byte [esp + 0x49], 0x20
mov eax, dword [esi + 0x78]
cmp eax, 1
je 0x1001f8af
cmp eax, 2
je 0x1001f8c4
jmp 0x1001f8ff
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x84]
mov word [esp + 0x3b], ax
mov word [esp + 0x3d], cx
jmp 0x1001f8ff
mov eax, dword [esi + 0x7c]
mov ecx, eax
shl eax, 8
sub eax, ecx
sub eax, ecx
mov ecx, 0x64
add eax, 0x32
cdq
idiv ecx
mov word [esp + 0x3b], ax
mov eax, dword [esi + 0x84]
mov ecx, eax
shl eax, 8
sub eax, ecx
sub eax, ecx
mov ecx, 0x64
add eax, 0x32
cdq
idiv ecx
mov word [esp + 0x3d], ax
mov ecx, dword [esi + 0xcc]
test ecx, ecx
je 0x1001f93c
lea eax, [esp + 0x18]
lea edx, [esp + 0x14]
lea edi, [esp + 0x10]
push eax
push edx
push edi
push 0xe0
call ecx
add esp, 0x10
mov dword [ebx + 0x5d84], eax
test eax, eax
jne 0x1001fa46
cmp dword [esp + 0x10], 0
je 0x1001f93c
or byte [esp + 0x39], 0x10
mov edi, 0x18
push 2
lea eax, [esp + 0x18]
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], edi
push eax
push 0xffffffffffffffff
push ecx
call fcn.1000e380
add esp, 0x10
mov dword [ebx + 0x5d84], eax
test eax, eax
jne 0x1001fa46
cmp dword [esp + 0x10], 0
je 0x1001f99b
mov edi, dword [esp + 0x10]
push 2
add edi, 0x18
lea eax, [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push eax
push 0xffffffffffffffff
push ecx
call fcn.1000e380
add esp, 0x10
mov dword [ebx + 0x5d84], eax
test eax, eax
jne 0x1001fa46
xor ecx, ecx
test ebp, ebp
je 0x1001fa06
lea eax, [esp + 0x1c]
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], cx
mov eax, dword [esi + 0x124]
test eax, eax
je 0x1001f9cd
or dword [esp + 0x1c], 8
or dword [esi + 0xe8], 0x40
cmp eax, 1
je 0x1001f9d7
or dword [esp + 0x1c], 4
add edi, 0x16
push 2
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
mov dword [esp + 0x2a], edi
push eax
mov dword [esp + 0x1c], 0x16
push 0xffffffffffffffff
push ecx
call fcn.1000e380
add esp, 0x10
mov dword [ebx + 0x5d84], eax
test eax, eax
jne 0x1001fa46
push 5
push 0
push 0xffffffffffffffff
push 0
call fcn.1000e380
add esp, 0x10
mov dword [ebx + 0x5d84], eax
test eax, eax
jne 0x1001fa46
mov dword [ebx + 0x180], edi
test ebp, ebp
je 0x1001fa44
test byte [esp + 0x1c], 8
je 0x1001fa44
push esi
call fcn.1001a190
add esp, 4
mov dword [ebx + 0x5d84], eax
test eax, eax
jne 0x1001fa46
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x3c
ret