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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54c
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
lea ecx, [ebp - 0x534]
mov dword [ebp - 0x53c], edi
push ecx
mov ecx, ebx
mov dword [ebp - 0x544], 0
lea eax, [edi + 0x74]
mov dword [ebp - 0x548], eax
mov eax, dword [ebx]
call dword [eax + 0x1c]
lea ecx, [ebp - 0x548]
push dword [eax]
push dword [edi + 0x40]
call fcn.1002a680
mov edx, dword [ebp - 0x534]
mov dword [ebx + 0x80], eax
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1011ba46
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x1011ba54
mov eax, dword [ecx]
call dword [eax + 0x1c]
jmp 0x1011ba59
mov eax, 0x10202940
push eax
lea ecx, [ebp - 0x308]
call fcn.101221f0
mov eax, dword [ebx]
lea ecx, [ebp - 0x534]
push ecx
mov ecx, ebx
call dword [eax + 0x1c]
lea ecx, [ebp - 0x308]
push dword [eax]
push dword [edi + 0x44]
push dword [edi + 0x40]
push dword [edi]
push dword [edi + 0xc]
push dword [edi + 8]
call fcn.10126970
mov edx, dword [ebp - 0x534]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1011baac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [edi]
test ecx, ecx
je 0x1011bf3e
cmp ecx, dword [ebx + 0xc0]
jne 0x1011bb8f
push 1
mov ecx, 0x1025b450
call fcn.10008cd0
lea esi, [ebx + 0xd0]
push esi
call fcn.1000aa00
add esp, 4
test eax, eax
je 0x1011baf5
push 0
push 1
push 0
push 0
push esi
lea ecx, [ebp - 0x308]
call fcn.10123f40
mov eax, dword [ebp - 0x548]
test eax, eax
je 0x1011bb1b
cmp dword [eax], 2
je 0x1011bb1b
mov eax, dword [edi + 0x28]
lea ecx, [ebp - 0x308]
push 0
push 1
push 0
push esi
push dword [eax]
call fcn.10125430
mov eax, dword [0x1025b450]
cmp eax, 0xffffffff
je 0x1011bb65
cmp dword [0x1025b454], 0xffffffff
je 0x1011bb65
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call esi
test eax, eax
je 0x1011bb65
cmp dword [0x1025b45c], 0
je 0x1011bb65
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 [edi + 0x28]
mov edi, dword [ebx + 0x80]
mov esi, dword [eax]
call fcn.10026170
push 0x10204674
push 0
push esi
push edi
mov ecx, eax
call fcn.1002b1e0
mov ebx, 1
jmp 0x1011bf40
mov eax, dword [ebx + 0x500]
mov edx, dword [ebx + 0x504]
cmp eax, edx
je 0x1011bbab
nop
cmp dword [eax], ecx
je 0x1011bc05
add eax, 8
cmp eax, edx
jne 0x1011bba0
mov esi, dword [ebx + 0xc4]
xor ecx, ecx
mov dword [ebp - 0x534], ecx
mov eax, 0x2aaaaaab
mov ecx, dword [ebx + 0xc8]
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1011bb85
xor edi, edi
mov dword [ebp - 0x538], edi
jmp 0x1011bbe0
mov ecx, dword [ebp - 0x53c]
mov eax, dword [esi + edi]
cmp eax, dword [ecx]
jne 0x1011beec
mov edx, dword [ebp - 0x548]
test edx, edx
je 0x1011bc3a
xor eax, eax
cmp dword [edx], 2
sete al
jmp 0x1011bc3f
mov edx, dword [ebp - 0x548]
mov ecx, dword [eax + 4]
test edx, edx
je 0x1011bc1c
xor eax, eax
cmp dword [edx], 2
sete al
jmp 0x1011bc21
mov eax, 1
push dword [ebp - 0x210]
push ecx
push eax
mov ecx, ebx
call fcn.1011dab0
mov ebx, 1
jmp 0x1011bf40
mov eax, 1
test eax, eax
jne 0x1011bece
mov eax, dword [ecx + 0x28]
lea ecx, [ebp - 0x528]
push dword [eax]
call fcn.101150a0
cmp dword [ebp - 0x524], 0
je 0x1011bf2c
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
lea ecx, [ebp - 0x528]
push 0x208
push eax
call fcn.10115400
test eax, eax
je 0x1011be8c
call fcn.10002d70
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x530]
mov dword [ebp - 0x530], eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10023e80
test al, al
jne 0x1011bcf2
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1011bcd0
sub eax, edx
lea ecx, [ebp - 0x530]
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10003740
lea eax, [ebp - 0x530]
push eax
call fcn.100de5f0
mov eax, dword [ebx + 0xc4]
add esp, 4
mov ecx, dword [eax + edi + 4]
test ecx, ecx
je 0x1011bdd7
mov eax, dword [ebp - 0x530]
cmp dword [eax - 0xc], 0
jl 0x1011bddd
push ecx
push eax
call sub.msvcrt.dll_wcsstr
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x1011bdd7
mov eax, dword [ebp - 0x530]
sub ecx, eax
sar ecx, 1
jne 0x1011bddd
mov eax, dword [ebx + 0xc4]
push dword [eax + edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x530]
mov ecx, dword [ecx - 0xc]
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x540]
push eax
lea ecx, [ebp - 0x530]
call fcn.10006530
mov edi, dword [ebx + 0xc4]
mov ecx, dword [ebp - 0x538]
mov esi, dword [ebp - 0x540]
mov eax, esi
mov ecx, dword [edi + ecx + 8]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1011bdb6
test dx, dx
je 0x1011bdb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1011bdb6
add eax, 4
add ecx, 4
test dx, dx
jne 0x1011bd90
xor eax, eax
jmp 0x1011bdbb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1011be17
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1011bdd7
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x530]
lea edx, [eax - 0x10]
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1011bdf5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x208
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x528]
call fcn.10115400
mov edi, dword [ebp - 0x538]
jmp 0x1011bc91
mov eax, dword [ebp - 0x538]
push dword [edi + eax + 8]
push dword [edi + eax + 4]
lea eax, [ebp - 0x20c]
push 0x10205358
push 0x208
push eax
call fcn.100269c0
add esp, 0x14
lea eax, [ebp - 0x20c]
lea ecx, [ebp - 0x528]
push eax
call fcn.10115450
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1011be68
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x530]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1011be86
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x538]
mov esi, dword [ebp - 0x53c]
lea ecx, [ebp - 0x308]
push 0
push 0
mov eax, dword [esi + 0x28]
push dword [eax]
call fcn.101235f0
lea ecx, [ebp - 0x308]
call fcn.10124190
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x528]
push dword [eax]
call fcn.101154d0
lea ecx, [ebp - 0x528]
call fcn.10115370
mov ecx, esi
mov eax, dword [ecx + 0x28]
push 0x102104d0
push 0
push dword [eax]
push dword [ebx + 0x80]
call fcn.10026170
mov ecx, eax
call fcn.1002b1e0
mov ecx, dword [ebx + 0xc8]
mov eax, 0x2aaaaaab
mov esi, dword [ebx + 0xc4]
add edi, 0xc
inc dword [ebp - 0x534]
sub ecx, esi
imul ecx
mov dword [ebp - 0x538], edi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x534], eax
jb 0x1011bbe0
mov ebx, 1
jmp 0x1011bf40
lea ecx, [ebp - 0x528]
call fcn.10115370
mov ebx, 1
jmp 0x1011bf40
xor ebx, ebx
lea ecx, [ebp - 0x308]
call fcn.10122860
mov esi, dword [ebp - 0x544]
test esi, esi
je 0x1011c052
call fcn.10026170
mov edi, eax
lea ecx, [ebp - 0x529]
mov dword [ebp - 0x534], edi
call fcn.10129b80
cmp byte [edi + 0x210], 0
je 0x1011c047
lea eax, [ebp - 0x540]
mov dword [ebp - 0x540], esi
push eax
lea eax, [ebp - 0x54c]
mov ecx, edi
push eax
call fcn.1002aeb0
mov esi, dword [eax]
cmp esi, dword [edi]
je 0x1011c047
mov ecx, dword [ebp - 0x534]
lea edi, [esi + 0x14]
push edi
push dword [esi + 0x10]
call fcn.1002b7c0
mov ecx, edi
call fcn.1002a820
mov edi, dword [esi + 0x10]
test edi, edi
je 0x1011c01c
mov ecx, dword [edi + 0x28]
cmp ecx, 8
jb 0x1011bffd
mov eax, dword [edi + 0x14]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x1011bff3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1011c073
mov eax, edx
push ecx
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
xor eax, eax
mov dword [edi + 0x24], 0
push 0x34
mov dword [edi + 0x28], 7
push edi
mov word [edi + 0x14], ax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 8
mov ecx, dword [ebp - 0x534]
push esi
call fcn.100151b0
mov edi, eax
lea ecx, [edi + 0x14]
call fcn.1002a820
push 0x20
push dword [edi + 0x14]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push 0x1c
push edi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
add esp, 0x10
lea ecx, [ebp - 0x529]
call fcn.10129ba0
mov eax, dword [ebp - 0x548]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov dword [eax], 3
xor ecx, ebp
mov eax, ebx
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 4
call fcn.101e6c40
int3