Function at 0x100375ad
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x100634a1
call fcn.10061a48
sub esp, 0x38
push ebx
push esi
mov byte [ebp - 0x18], dl
mov dword [ebp - 0x28], 0x18ed
cmp dword [ebp - 0x28], 0xede
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], ecx
jge 0x10037672
lea eax, [ebp - 0x30]
push eax
push ecx
lea eax, [ebp - 0x2c]
mov ecx, 0x1007db18
push eax
call fcn.10032cc2
pop ecx
mov ecx, eax
call fcn.10032cc2
mov edi, dword [ebp - 0x2c]
test edi, edi
jle 0x10037614
mov esi, 0x1011a448
mov ebx, edi
push esi
mov ecx, 0x1007db18
call fcn.10032cc2
add esi, 4
dec ebx
jne 0x10037603
lea esi, [edi - 1]
test esi, esi
js 0x10037644
movzx eax, byte [0x1017bf09]
push eax
lea eax, [esi*4 + 0x1011a448]
push eax
push ecx
lea eax, [ebp - 0x44]
push eax
call fcn.1003ab00
mov eax, dword [0x1017bf00]
mov dword [esi*4 + 0x100b89c0], eax
dec esi
jns 0x1003761b
mov esi, dword [ebp - 0x30]
test esi, esi
jle 0x10037672
lea eax, [ebp - 0x34]
mov ecx, 0x1007db18
push eax
call fcn.10032cc2
mov eax, dword [ebp - 0x34]
push dword [eax*4 + 0x100b89bc]
call fcn.1003a81b
push eax
call fcn.1001e51d
pop ecx
dec esi
jne 0x1003764b
cmp byte [ebp - 0x18], 0
je 0x100377d7
mov dword [ebp - 0x28], 0x64a0
cmp dword [ebp - 0x28], 0x65f6
jle 0x100376e7
xor esi, esi
mov dword [ebp - 0x24], esi
xor edi, edi
mov dword [ebp - 0x20], edi
mov eax, esi
mov dword [ebp - 0x1c], 0x324c
cdq
xor ebx, ebx
idiv edi
mov dword [ebp - 0x38], edx
mov esi, ebx
mov edi, 0x5038
mov eax, esi
mov ecx, 0x1007d9f8
cdq
push edx
push eax
call fcn.10004c38
dec esi
dec edi
jne 0x100376ae
add ebx, dword [ebp - 0x38]
dec dword [ebp - 0x1c]
jne 0x100376a7
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
inc edi
mov dword [ebp - 0x20], edi
cmp edi, 0x6ad
jl 0x10037696
inc esi
mov dword [ebp - 0x24], esi
cmp esi, 0x3ae5
jl 0x10037691
and dword [ebp - 4], 0
cmp dword [ebp - 0x28], 0x6302
jge 0x10037703
mov edx, str.qkiikyzr_rbljgkug_riuyz_xkmmafn_hceetl_zfavlbze_yhijwqnz_aohmax
mov ecx, 0x1007d9f8
call fcn.100070aa
mov ecx, dword [ebp + 0x20]
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0x28]
mov eax, dword [ecx]
mov eax, dword [ecx]
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
dec dword [edi]
mov eax, dword [esi]
mov eax, dword [edi]
dec eax
je 0x10037745
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 0
je 0x10037745
xor eax, eax
inc eax
jmp 0x10037747
xor eax, eax
mov ebx, dword [ebp + 0x14]
xor edx, edx
imul ecx, eax, 0x5fffa
mov eax, dword [ebp + 0x10]
push 2
mov eax, dword [eax]
cmp ecx, eax
pop eax
setg dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [esi]
mov edx, dword [ebp + 0xc]
setg cl
sub eax, ecx
mov dword [edx], eax
mov ecx, dword [ebx]
mov eax, dword [edx]
add eax, dword [ecx + 0xc]
xor ecx, ecx
cmp eax, 0x7777bab6
mov eax, dword [ebp - 0x3c]
setne cl
cmp dword [eax], ecx
jg 0x10037789
mov eax, dword [esi]
mov edx, dword [ebp + 0x24]
xor ecx, ecx
push 2
mov eax, dword [edx]
mov eax, dword [ebx]
cmp dword [eax + 4], ecx
mov eax, dword [ebp + 8]
setne cl
mov dword [eax], ecx
pop eax
cmp eax, ecx
sbb eax, eax
xor ecx, ecx
inc eax
cmp ecx, eax
sbb eax, eax
neg eax
sub eax, dword [edx]
je 0x100377b3
mov eax, dword [edi]
mov eax, dword [esi]
xor ecx, ecx
mov edx, dword [ebx]
mov eax, dword [esi]
cmp eax, dword [edx + 4]
mov eax, dword [ebp + 0x10]
setg cl
mov dword [eax], ecx
xor ecx, ecx
mov eax, dword [eax]
cmp eax, 6
mov eax, dword [ebx]
sete cl
mov dword [eax + 0xc], ecx
jmp 0x100377e4
push 0
push 0x10bc
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret