Function at 0x101ba980
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
mov eax, dword [0x10250150]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x168]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
mov dword [ebp - 0x16c], edi
mov esi, dword [edi + 0x74]
call dword [eax + 0x1c]
xor ecx, ecx
cmp esi, 2
sete cl
push ecx
push dword [eax]
push dword [edi + 0x40]
call fcn.100286f0
mov ecx, eax
call fcn.1002cbc0
mov edx, dword [ebp - 0x168]
lea esi, [ebx + 0xc4]
mov dword [esi], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101ba9f2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebx + 0x10c], 8
lea eax, [ebx + 0xf8]
mov dword [ebp - 0x170], esi
mov dword [ebx + 0xf0], 0
mov dword [eax + 0x10], 0
jb 0x101baa1a
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebx + 0x110]
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], ecx
jb 0x101baa30
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebx + 0x128]
cmp dword [eax + 0x14], 8
mov dword [ebx + 0xf4], ecx
mov dword [eax + 0x10], ecx
jb 0x101baa4c
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov edx, dword [ebx + 0xd8]
mov ecx, edx
mov dword [ebp - 0x154], edx
mov esi, edx
mov eax, dword [edx + 4]
cmp byte [eax + 0xd], 0
jne 0x101baa8c
mov esi, dword [edi]
lea esp, [esp]
cmp dword [eax + 0x10], esi
jae 0x101baa7a
mov eax, dword [eax + 8]
jmp 0x101baa7e
mov ecx, eax
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x101baa70
mov dword [ebp - 0x154], ecx
mov esi, edx
cmp byte [ecx + 0xd], 0
jne 0x101baa99
mov eax, dword [edi]
cmp eax, dword [ecx + 0x10]
jae 0x101baaa3
mov ecx, edx
mov esi, edx
mov dword [ebp - 0x154], ecx
cmp ecx, esi
jne 0x101baaae
xor esi, esi
jmp 0x101bae9e
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebx + 0xec], eax
xor eax, eax
mov ecx, dword [edi + 0x74]
cmp ecx, 2
mov edi, dword [0x1025a378]
sete al
mov dword [ebp - 0x168], ecx
inc eax
mov dword [ebp - 0x15c], eax
cmp edi, 0xffffffff
je 0x101bab2c
cmp dword [0x1025a37c], 0xffffffff
je 0x101bab2c
push edi
mov dword [ebp - 0x150], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x101bab26
mov eax, dword [0x1025a380]
test eax, eax
je 0x101bab26
lea ecx, [ebp - 0x150]
push ecx
call eax
push eax
push dword [0x1025a378]
call esi
push dword [ebp - 0x150]
push dword [0x1025a37c]
call esi
mov edi, dword [0x1025a378]
push dword [ebp - 0x16c]
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebx + 0xd8]
call fcn.100ccf40
mov esi, dword [ebp - 0x150]
cmp esi, dword [ebx + 0xd8]
je 0x101bae41
mov ecx, dword [ebx + 4]
mov eax, dword [esi + 0x48]
mov dword [ebx + 0xe4], eax
test ecx, ecx
je 0x101bab6d
mov eax, dword [ecx]
call dword [eax + 0x1c]
jmp 0x101bab72
mov eax, 0x10219d7c
push eax
lea ecx, [ebp - 0x14c]
call fcn.10195b20
mov eax, dword [ebx]
lea ecx, [ebp - 0x164]
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
lea ecx, [ebp - 0x134]
push dword [eax]
mov eax, dword [ebp - 0x16c]
push dword [eax + 0x44]
push dword [eax + 0x40]
push dword [eax]
push dword [eax + 0xc]
push dword [eax + 8]
call fcn.10137700
mov edx, dword [ebp - 0x164]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101babcb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edi, [esi + 0x18]
push edi
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x160], edi
call fcn.10004870
call fcn.10003980
mov ecx, eax
test ecx, ecx
je 0x101baebe
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x158]
push 0x10219e00
mov dword [ebp - 0x158], eax
call fcn.10004a70
test al, al
jne 0x101bac23
push 4
push 0x10219e00
lea ecx, [ebp - 0x158]
call fcn.10004050
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x164]
push eax
call fcn.10023360
mov edx, dword [ebp - 0x158]
add esp, 0xc
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101bac5b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [edi]
test edi, edi
je 0x101bad3e
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x101bac91
call fcn.10003ae0
cmp dword [eax + 0x140], 2
jne 0x101bac86
mov eax, dword [eax + 0x3c]
jmp 0x101bac88
xor eax, eax
test eax, eax
je 0x101bac91
push edi
call eax
jmp 0x101bac98
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101bad38
test al, 0x10
jne 0x101bad38
mov esi, dword [ebp - 0x150]
mov edi, dword [ebp - 0x164]
mov ecx, dword [ebp - 0x154]
mov eax, dword [ebx]
push 0
push dword [ecx + 0x5c]
lea ecx, [ebp - 0x14c]
push 3
push dword [ebp - 0x15c]
push ecx
mov ecx, dword [ebp - 0x160]
push dword [ecx]
mov ecx, ebx
call dword [eax + 0x8c]
test eax, eax
jne 0x101bae08
cmp dword [esi + 0x60], eax
je 0x101bae08
cmp dword [ebp - 0x168], 2
mov esi, dword [ebp - 0x160]
je 0x101baded
push dword [esi]
call fcn.100e7c60
add esp, 4
mov ecx, 0x1025a378
push 0
test eax, eax
je 0x101badd6
call fcn.1000acd0
push eax
push 1
push dword [esi]
lea ecx, [ebp - 0x134]
call fcn.10136b00
jmp 0x101baded
mov esi, dword [ebp - 0x150]
mov edi, dword [ebp - 0x164]
push edi
call fcn.1000bcb0
add esp, 4
test eax, eax
jne 0x101bacb5
mov esi, dword [ebp - 0x160]
push dword [esi]
call fcn.100e7c60
add esp, 4
test eax, eax
je 0x101bad91
mov ecx, dword [ebp - 0x154]
mov eax, dword [ebx]
push 0
push dword [ecx + 0x5c]
lea ecx, [ebp - 0x14c]
push 3
push dword [ebp - 0x15c]
push ecx
push dword [esi]
mov ecx, ebx
call dword [eax + 0x90]
jmp 0x101bae08
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call dword [sym.imp.ole32.dll_IIDFromString]
test eax, eax
jne 0x101badc5
mov ecx, dword [ebp - 0x154]
mov eax, dword [ebx]
push dword [ecx + 0x5c]
lea ecx, [ebp - 0x14c]
push dword [ebp - 0x15c]
push ecx
push dword [esi]
mov ecx, ebx
call dword [eax + 0x94]
jmp 0x101bae08
push dword [ebp - 0x15c]
mov ecx, ebx
push dword [esi]
call fcn.101bb3a0
jmp 0x101bae08
push 0
call fcn.1000acd0
push eax
push 1
push dword [esi]
lea ecx, [ebp - 0x134]
call fcn.10134610
push 0x1021b9bc
push 0
push dword [esi]
push dword [ebx + 0xc4]
call fcn.100286f0
mov ecx, eax
call fcn.100df2b0
cmp dword [ebp - 0x168], 2
je 0x101bae18
mov ecx, ebx
call fcn.101a9500
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x101bae30
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x14c]
call fcn.10196000
mov edi, dword [0x1025a378]
cmp edi, 0xffffffff
je 0x101bae86
cmp dword [0x1025a37c], 0xffffffff
je 0x101bae86
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
call esi
test eax, eax
je 0x101bae86
cmp dword [0x1025a384], 0
je 0x101bae86
push dword [0x1025a37c]
call esi
push eax
call dword [0x1025a384]
neg eax
sbb eax, eax
inc eax
push eax
push dword [0x1025a378]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x16c]
cmp dword [eax + 0x74], 2
jne 0x101bae99
mov dword [eax + 0x74], 3
mov esi, 1
lea ecx, [ebp - 0x170]
call fcn.10195ea0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10212f74
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.100030c0
int3