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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x168]
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [ebx]
push ecx
mov ecx, ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x174], esi
call dword [eax + 0x1c]
mov eax, dword [eax]
mov dword [ebp - 0x160], eax
xor eax, eax
cmp dword [esi + 0x74], 2
sete al
mov dword [ebp - 0x158], eax
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x14c], eax
call fcn.10026170
mov edi, eax
cmp byte [edi + 0x210], 0
jne 0x101a35cc
xor eax, eax
jmp 0x101a376a
push 0x1025c02a
push 0x34
call fcn.101c85b0
mov esi, eax
add esp, 8
test esi, esi
je 0x101a365f
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x160]
mov dword [esi + 0x10], eax
xor eax, eax
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 7
mov word [esi + 0x14], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x14c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101a3611
sub ecx, dword [ebp - 0x14c]
sar ecx, 1
push ecx
push dword [ebp - 0x160]
lea ecx, [esi + 0x14]
call fcn.100070c0
mov eax, dword [ebp - 0x158]
mov dword [esi + 0x2c], eax
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
push esi
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push 0
call fcn.101fa281
add esp, 4
mov dword [esi + 0x30], eax
jmp 0x101a3661
xor esi, esi
mov dword [ebp - 0x15c], esi
test esi, esi
jne 0x101a3672
xor eax, eax
jmp 0x101a3764
push 0
push 0
lea ecx, [ebp - 0x170]
mov dword [ebp - 0x170], 0
mov dword [ebp - 0x16c], 0
call fcn.100273b0
mov esi, dword [edi]
mov edx, dword [ebp - 0x15c]
mov dword [ebp - 0x170], eax
mov eax, esi
mov ecx, dword [esi + 4]
cmp byte [ecx + 0xd], 0
jne 0x101a36c4
mov edi, edi
cmp dword [ecx + 0x10], edx
jae 0x101a36ba
mov ecx, dword [ecx + 8]
jmp 0x101a36be
mov esi, ecx
mov ecx, dword [ecx]
cmp byte [ecx + 0xd], 0
je 0x101a36b0
cmp esi, eax
je 0x101a36cd
cmp edx, dword [esi + 0x10]
jae 0x101a370d
lea eax, [ebp - 0x15c]
mov ecx, edi
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x14d]
push eax
lea eax, [ebp - 0x14c]
push eax
push 0x1021cefc
call fcn.1001d570
push eax
add eax, 0x10
mov ecx, edi
push eax
push esi
lea eax, [ebp - 0x14c]
push eax
call fcn.1001ee50
mov esi, dword [ebp - 0x14c]
add esi, 0x14
lea eax, [ebp - 0x170]
cmp esi, eax
je 0x101a3743
mov ecx, esi
call fcn.1002a820
mov eax, dword [esi]
mov ecx, dword [ebp - 0x170]
mov dword [esi], ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x16c]
mov dword [esi + 4], eax
mov dword [ebp - 0x16c], ecx
lea ecx, [ebp - 0x170]
call fcn.1002a820
push 0x20
push dword [ebp - 0x170]
call fcn.101f9fd5
mov eax, dword [ebp - 0x15c]
add esp, 8
mov esi, dword [ebp - 0x174]
mov edx, dword [ebp - 0x168]
lea edi, [ebx + 0xc4]
mov dword [edi], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101a3790
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebx + 0xf8]
mov dword [ebx + 0xf0], 0
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], 0
jb 0x101a37af
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 0x101a37c5
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebx + 0x128]
mov dword [ebx + 0xf4], ecx
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], ecx
jb 0x101a37e1
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x160]
push esi
push ecx
lea ecx, [ebx + 0xd8]
call fcn.1002aeb0
mov eax, dword [ebp - 0x160]
cmp eax, dword [ebx + 0xd8]
jne 0x101a3816
mov dword [ebp - 0x158], 0
jmp 0x101a3c60
mov eax, dword [esi]
mov dword [ebx + 0xec], eax
xor eax, eax
mov ecx, dword [esi + 0x74]
cmp ecx, 2
mov dword [ebp - 0x14c], ecx
sete al
inc eax
mov dword [ebp - 0x15c], eax
mov eax, dword [0x1025b450]
cmp eax, 0xffffffff
je 0x101a388f
cmp dword [0x1025b454], 0xffffffff
je 0x101a388f
push eax
mov dword [ebp - 0x154], 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x101a388f
mov eax, dword [0x1025b458]
test eax, eax
je 0x101a388f
lea ecx, [ebp - 0x154]
push ecx
call eax
push eax
push dword [0x1025b450]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [ebp - 0x154]
push dword [0x1025b454]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebx + 0xd8]
call fcn.1002aeb0
mov esi, dword [ebp - 0x158]
cmp esi, dword [ebx + 0xd8]
je 0x101a3bf9
mov ecx, dword [ebx + 4]
mov eax, dword [esi + 0x48]
mov dword [ebx + 0xe4], eax
test ecx, ecx
je 0x101a38cb
mov eax, dword [ecx]
call dword [eax + 0x1c]
jmp 0x101a38d0
mov eax, 0x10202940
push eax
lea ecx, [ebp - 0x148]
call fcn.10183f20
mov eax, dword [ebx]
lea ecx, [ebp - 0x168]
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
lea ecx, [ebp - 0x130]
push dword [eax]
mov eax, dword [ebp - 0x174]
push dword [eax + 0x44]
push dword [eax + 0x40]
push dword [eax]
push dword [eax + 0xc]
push dword [eax + 8]
call fcn.10126970
mov edx, dword [ebp - 0x168]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101a3929
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ebx, [esi + 0x18]
push ebx
lea ecx, [ebp - 0x134]
mov dword [ebp - 0x154], ebx
call fcn.10002790
push 0x10205260
lea ecx, [ebp - 0x17c]
call fcn.10002490
mov dword [ebp - 0x178], eax
mov ecx, dword [eax]
mov ecx, dword [ecx - 0x10]
test ecx, ecx
je 0x101a3966
mov edx, dword [ecx]
call dword [edx + 0x10]
test eax, eax
jne 0x101a3972
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov eax, dword [ebx]
mov dword [ebp - 0x188], eax
mov dword [ebp - 0x180], esi
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp - 0x178]
mov dword [ebp - 0x168], ecx
mov eax, dword [eax]
mov dword [ebp - 0x178], eax
mov ebx, dword [eax - 0xc]
mov eax, dword [esi - 8]
mov dword [ebp - 0x184], ebx
lea edx, [ebx + ecx]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x101a39d0
push edx
lea ecx, [ebp - 0x180]
call fcn.10003310
mov esi, dword [ebp - 0x180]
add ebx, ebx
push ebx
push dword [ebp - 0x178]
push ebx
push esi
call fcn.10004510
mov eax, dword [ebp - 0x168]
add eax, eax
push eax
push dword [ebp - 0x188]
push eax
lea eax, [ebx + esi]
push eax
call fcn.10004510
mov eax, dword [ebp - 0x184]
xor ecx, ecx
add eax, dword [ebp - 0x168]
add esp, 0x20
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
or eax, 0xffffffff
mov edx, dword [ebp - 0x17c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x101a3a2f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x154]
push dword [ebx]
call fcn.1000aa00
add esp, 4
test eax, eax
jne 0x101a3afa
push esi
call fcn.1000aa00
add esp, 4
test eax, eax
jne 0x101a3afa
push dword [ebx]
call fcn.100dcd40
add esp, 4
test eax, eax
je 0x101a3a9d
mov eax, dword [ebp - 0x160]
mov ebx, dword [ebp - 0x164]
mov ecx, ebx
push 0
push dword [eax + 0x5c]
mov edx, dword [ebx]
lea eax, [ebp - 0x148]
push 3
push dword [ebp - 0x15c]
push eax
mov eax, dword [ebp - 0x154]
push dword [eax]
call dword [edx + 0x88]
jmp 0x101a3bc6
lea eax, [ebp - 0x14]
push eax
push dword [ebx]
call dword [sym.imp.ole32.dll_IIDFromString]
test eax, eax
jne 0x101a3ae0
mov eax, dword [ebp - 0x160]
mov ebx, dword [ebp - 0x164]
mov ecx, ebx
push dword [eax + 0x5c]
mov edx, dword [ebx]
lea eax, [ebp - 0x148]
push dword [ebp - 0x15c]
push eax
mov eax, dword [ebp - 0x154]
push dword [eax]
call dword [edx + 0x8c]
jmp 0x101a3bc6
push dword [ebp - 0x15c]
push dword [ebx]
mov ebx, dword [ebp - 0x164]
mov ecx, ebx
call fcn.101a4060
jmp 0x101a3bc6
mov eax, dword [ebp - 0x160]
mov ebx, dword [ebp - 0x164]
mov ecx, ebx
push 0
push dword [eax + 0x5c]
mov edx, dword [ebx]
lea eax, [ebp - 0x148]
push 3
push dword [ebp - 0x15c]
push eax
mov eax, dword [ebp - 0x154]
push dword [eax]
call dword [edx + 0x84]
test eax, eax
jne 0x101a3bc6
mov eax, dword [ebp - 0x158]
cmp dword [eax + 0x60], 0
je 0x101a3bc6
cmp dword [ebp - 0x14c], 2
je 0x101a3ba9
mov eax, dword [ebp - 0x154]
push dword [eax]
call fcn.100dcd40
mov ebx, eax
add esp, 4
mov eax, dword [ebp - 0x154]
mov ecx, 0x1025b450
mov eax, dword [eax]
mov dword [ebp - 0x158], eax
call fcn.10009be0
lea ecx, [ebp - 0x130]
push 0
test ebx, ebx
je 0x101a3b93
push eax
push 1
push dword [ebp - 0x158]
call fcn.10125f70
jmp 0x101a3ba3
push 0
push eax
push 1
push dword [ebp - 0x158]
call fcn.10123f40
mov ebx, dword [ebp - 0x164]
mov eax, dword [ebp - 0x154]
push 0x10204674
push 0
push dword [eax]
push dword [edi]
call fcn.10026170
mov ecx, eax
call fcn.1002b1e0
cmp dword [ebp - 0x14c], 2
je 0x101a3bd6
mov ecx, ebx
call fcn.10194850
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x101a3bee
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x148]
call fcn.101841c0
mov eax, dword [0x1025b450]
cmp eax, 0xffffffff
je 0x101a3c43
cmp dword [0x1025b454], 0xffffffff
je 0x101a3c43
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x101a3c43
cmp dword [0x1025b45c], 0
je 0x101a3c43
push dword [0x1025b454]
call esi
push eax
call dword [0x1025b45c]
neg eax
sbb eax, eax
inc eax
push eax
push dword [0x1025b450]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x174]
cmp dword [eax + 0x74], 2
jne 0x101a3c56
mov dword [eax + 0x74], 3
mov dword [ebp - 0x158], 1
test edi, edi
je 0x101a3d79
mov esi, dword [edi]
test esi, esi
je 0x101a3d79
call fcn.10026170
mov ebx, eax
lea ecx, [ebp - 0x14d]
mov dword [ebp - 0x14c], ebx
call fcn.10129b80
cmp byte [ebx + 0x210], 0
je 0x101a3d68
test esi, esi
je 0x101a3d68
lea eax, [ebp - 0x17c]
mov dword [ebp - 0x17c], esi
push eax
lea eax, [ebp - 0x184]
mov ecx, ebx
push eax
call fcn.1002aeb0
mov esi, dword [eax]
cmp esi, dword [ebx]
je 0x101a3d68
mov ecx, dword [ebp - 0x14c]
lea ebx, [esi + 0x14]
push ebx
push dword [esi + 0x10]
call fcn.1002b7c0
mov ecx, ebx
call fcn.1002a820
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x101a3d3d
mov ecx, dword [ebx + 0x28]
cmp ecx, 8
jb 0x101a3d1e
mov eax, dword [ebx + 0x14]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x101a3d14
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101a3d92
mov eax, edx
push ecx
push eax
call fcn.101f9fd5
add esp, 8
xor eax, eax
mov dword [ebx + 0x24], 0
push 0x34
mov dword [ebx + 0x28], 7
push ebx
mov word [ebx + 0x14], ax
call fcn.101f9fd5
add esp, 8
mov ecx, dword [ebp - 0x14c]
push esi
call fcn.100151b0
mov ebx, eax
lea ecx, [ebx + 0x14]
call fcn.1002a820
push 0x20
push dword [ebx + 0x14]
call fcn.101f9fd5
push 0x1c
push ebx
call fcn.101f9fd5
add esp, 0x10
lea ecx, [ebp - 0x14d]
call fcn.10129ba0
mov dword [edi], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x158]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4
call fcn.101e6c40
int3