Function at 0x10016f2c
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10062a40
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x88
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x100170c2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x2c], 0x60d3
mov dword [ebp - 0x80], str.utsjzhcbk_dpjr_hvbji_jgjvxl_xrmgfay_arz_dpmf_ilhavc
cmp dword [ebp - 0x2c], 0x6438
jle 0x10016ff6
and dword [ebp - 0x24], 0
jmp 0x10016f93
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x7bab
jge 0x10016ff6
and dword [ebp - 0x28], 0
jmp 0x10016fa9
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x4050
jge 0x10016ff4
mov eax, dword [ebp - 0x24]
cdq
idiv dword [ebp - 0x28]
mov eax, edx
cdq
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
lea ecx, [ebp - 0x98]
call fcn.10001a95
pop ecx
pop ecx
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
call fcn.10004c18
push eax
call fcn.1004af7c
pop ecx
lea ecx, [ebp - 0x98]
call fcn.10004c0e
jmp 0x10016fa2
jmp 0x10016f8c
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x60], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x2c], 0x602e
jge 0x10017012
push dword [ebp - 0x80]
call fcn.1004af7c
pop ecx
jmp 0x1001702e
or dword [ebp - 4], 0xffffffff
jmp 0x10017038
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
test eax, eax
je 0x10017075
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x10017073
push 0
push 0
push 0x88a
push 0x4ef
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
jmp 0x100170bd
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x100170a3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 1
jge 0x100170bd
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0x3c]
call fcn.10004f01
or dword [eax], 0xffffffff
jmp 0x10017098
jmp 0x100171cc
lea eax, [ebp + 0x18]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x100171bf
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x30], 0x2645
mov dword [ebp - 0x64], str.jesfi_eraw_jwyshdnz_ndylsit_opkzyga
cmp dword [ebp - 0x30], 0x282f
jle 0x1001716a
and dword [ebp - 0x20], 0
jmp 0x1001710c
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x710d
jge 0x1001716a
and dword [ebp - 0x18], 0
jmp 0x10017122
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x3a61
jge 0x10017168
and dword [ebp - 0x1c], 0
jmp 0x10017138
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xb3c
jge 0x10017166
mov ecx, dword [ebp - 0x18]
imul ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
sar eax, cl
cdq
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], edx
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
mov ecx, 0x1007d9f8
call fcn.10004c38
jmp 0x10017131
jmp 0x1001711b
jmp 0x10017105
push 3
mov ecx, dword [ebp - 0x5c]
call fcn.10004f01
mov dword [eax], 0xcbf785b8
mov dword [ebp - 4], 2
cmp dword [ebp - 0x30], 0x25e3
jge 0x10017197
mov edx, dword [ebp - 0x64]
mov ecx, 0x1007d9f8
call fcn.100070aa
jmp 0x100171b3
or dword [ebp - 4], 0xffffffff
jmp 0x100171bd
jmp 0x100171cc
push 0
push 0x10bc
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret