Function at 0x10018f1d
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006590e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x10c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x100191ab
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xc0], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0x74], 0x7c74
mov dword [ebp - 0xf0], 0x10008a28
cmp dword [ebp - 0x74], 0x7f61
jle 0x1001903e
push 0
push 0x25dd
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
and dword [ebp - 0x30], 0
jmp 0x10018faa
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x5c06
jge 0x1001903e
and dword [ebp - 0x38], 0
jmp 0x10018fc4
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0x5ff
jge 0x10019039
and dword [ebp - 0x2c], 0
jmp 0x10018fda
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xf3
jge 0x10019037
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x2c]
or eax, dword [ebp - 0x30]
cdq
mov dword [ebp - 0x100], eax
mov dword [ebp - 0xfc], edx
push dword [ebp - 0xfc]
push dword [ebp - 0x100]
lea ecx, [ebp - 0x11c]
call fcn.1000d93a
pop ecx
pop ecx
mov dword [ebp - 0x94], eax
mov ecx, dword [ebp - 0x94]
call fcn.1001d2e1
push eax
call fcn.10050266
pop ecx
lea ecx, [ebp - 0x11c]
call fcn.1001d2d7
jmp 0x10018fd3
jmp 0x10018fbd
jmp 0x10018fa3
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xe0], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x74], 0x7a83
jge 0x10019060
push dword [ebp - 0xf0]
call fcn.10050266
pop ecx
jmp 0x1001907c
or dword [ebp - 4], 0xffffffff
jmp 0x10019086
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xd0]
movzx eax, byte [eax]
test eax, eax
je 0x100190fb
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x90]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xb0]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x90]
mov dword [ecx], eax
jmp 0x100191a6
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xe8]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0xac], eax
push 0
mov eax, dword [ebp - 0xac]
push dword [eax]
mov eax, dword [ebp - 0xb4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xbc]
mov ecx, dword [ecx]
add ecx, dword [eax + 0xc]
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax]
add eax, ecx
push eax
mov ecx, dword [ebp - 0xcc]
call fcn.1001d4bd
jmp 0x100194fe
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xe4], eax
push 2
lea ecx, [ebp - 0x44]
call fcn.1001d532
mov dword [ebp - 4], 2
mov dword [ebp - 0x28], 0xffff
mov dword [ebp - 0x84], 0x5e3d1aa1
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x78], 0xbc75
mov dword [ebp - 0x34], 0
jmp 0x10019202
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 2
jge 0x1001921b
push dword [ebp - 0x34]
lea ecx, [ebp - 0x44]
call fcn.1001d5d0
mov dword [eax], 0xfffffff7
jmp 0x100191fb
push 0
lea ecx, [ebp - 0x44]
call fcn.1001d5d0
mov dword [eax], 4
push 0
lea ecx, [ebp - 0x44]
call fcn.1001d5d0
cmp dword [eax], 0
jne 0x1001924c
mov eax, 0x866
test eax, eax
jne 0x1001924c
and dword [ebp - 0x8c], 0
jmp 0x10019256
mov dword [ebp - 0x8c], 1
cmp dword [ebp - 0x8c], 1
je 0x10019268
mov dword [ebp - 0x54], 1
jmp 0x1001926c
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x54], eax
jne 0x10019280
mov dword [ebp - 0xd4], 1
jmp 0x10019287
and dword [ebp - 0xd4], 0
push 0
lea ecx, [ebp - 0x44]
call fcn.1001d5d0
mov esi, dword [ebp - 0x28]
push 0
lea ecx, [ebp - 0x44]
call fcn.1001d5d0
sub esi, dword [eax]
cmp esi, 0xc4e
jne 0x100192b1
mov dword [ebp - 0x48], 1
jmp 0x100192b5
and dword [ebp - 0x48], 0
cmp dword [ebp - 0x48], 1
je 0x100192c4
mov dword [ebp - 0x5c], 1
jmp 0x100192c8
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x104], eax
push 0
lea ecx, [ebp - 0x44]
call fcn.1001d5d0
cmp dword [ebp - 0x28], 0xffff
jb 0x100192f9
mov dword [ebp - 0x64], 1
jmp 0x100192fd
and dword [ebp - 0x64], 0
push 1
lea ecx, [ebp - 0x44]
call fcn.1001d5d0
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [eax]
jge 0x10019317
mov dword [ebp - 0x7c], 1
jmp 0x1001931b
and dword [ebp - 0x7c], 0
cmp dword [ebp - 0x7c], 0x7273
jg 0x1001932d
mov dword [ebp - 0x6c], 1
jmp 0x10019331
and dword [ebp - 0x6c], 0
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x6c], eax
jl 0x10019342
mov dword [ebp - 0x4c], 1
jmp 0x10019346
and dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jb 0x1001935b
mov dword [ebp - 0x50], 1
jmp 0x1001935f
and dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x50]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
push 0xfffffffffffffff9
pop eax
cmp eax, 0xd791
je 0x10019382
cmp dword [ebp - 0x14], 0
je 0x1001945d
mov dword [ebp - 0x18], 9
cmp dword [ebp - 0x18], 0x6ac116e0
jne 0x10019448
cmp dword [ebp - 0x18], 0
je 0x100193ab
cmp dword [ebp - 0x18], 0
je 0x100193ab
mov dword [ebp - 0x58], 1
jmp 0x100193af
and dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x58]
jge 0x100193c0
mov dword [ebp - 0x60], 1
jmp 0x100193c4
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x60]
jg 0x100193d5
mov dword [ebp - 0x68], 1
jmp 0x100193d9
and dword [ebp - 0x68], 0
cmp dword [ebp - 0x68], 7
jne 0x100193e8
mov dword [ebp - 0x70], 1
jmp 0x100193ec
and dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x70], eax
je 0x10019400
mov dword [ebp - 0xdc], 1
jmp 0x10019407
and dword [ebp - 0xdc], 0
push 1
lea ecx, [ebp - 0x44]
call fcn.1001d5d0
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0x18]
jge 0x10019425
mov dword [ebp - 0x80], 1
jmp 0x10019429
and dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x1c]
lea eax, [eax + ecx - 6]
cmp eax, dword [ebp - 0x18]
jl 0x10019448
mov dword [ebp - 0x88], 1
jmp 0x1001944f
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x1c], eax
jmp 0x100194dd
mov dword [ebp - 0x14], 0
jmp 0x1001946d
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jg 0x100194dd
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
call fcn.1001d5d0
cmp dword [eax], 0
je 0x10019485
jmp 0x100194dd
mov dword [ebp - 0x24], 0
jmp 0x10019495
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 1
jg 0x100194db
mov dword [ebp - 0x1c], 0
jmp 0x100194ab
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jg 0x100194d9
mov byte [ebp - 0x1d], 0
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x100194c5
push 0
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
call fcn.1001d5d0
cmp dword [eax], 0
je 0x100194d7
jmp 0x100194d9
jmp 0x100194a4
jmp 0x1001948e
jmp 0x10019466
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.1001d5b4
push 0
push dword [ebp - 0xe4]
push 0x7ca8
call fcn.10018eea
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret