Function at 0x1000fa6c
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, 0x1005fa22
call fcn.1005ecf4
sub esp, 0x40
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], edx
mov byte [ebp - 0x18], cl
je 0x1000fadb
cmp byte [ebp + 0x34], 0
je 0x1000facf
mov esi, dword [ebp + 0x28]
xor ebx, ebx
mov dword [esi], 3
cmp dword [esi], ebx
jl 0x1000fc75
mov edi, dword [ebp + 0x24]
push 0x67e2
push ecx
push ecx
mov dword [edi], 1
lea edx, [ebp + 0xb]
mov byte [ebp + 0xb], bl
mov cl, 1
call fcn.1000f811
add esp, 0xc
dec dword [esi]
cmp dword [esi], ebx
jge 0x1000faa7
jmp 0x1000fc75
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [ecx], eax
jmp 0x1000fc75
mov dword [ebp - 0x2c], 0x7eff
xor ebx, ebx
cmp dword [ebp - 0x2c], 0x81de
jle 0x1000fb64
mov edi, ebx
mov dword [ebp - 0x1c], ebx
mov esi, ebx
mov dword [ebp - 0x28], ebx
mov ecx, esi
mov dword [ebp - 0x24], 0x970
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
lea eax, [esi + edi]
sar eax, cl
lea ecx, [ebp - 0x4c]
cdq
push edx
push eax
call fcn.10001ac4
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1000fb20
mov eax, dword [eax]
push eax
call fcn.10046ccf
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.100038da
mov ecx, dword [ebp - 0x20]
dec ecx
dec dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
jne 0x1000fb06
mov esi, dword [ebp - 0x28]
inc esi
mov dword [ebp - 0x28], esi
cmp esi, 0x3c90
jl 0x1000faf7
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, 0x3653
jl 0x1000faf2
inc edi
cmp edi, 0x5fc8
jl 0x1000faef
mov dword [ebp - 0x1c], 0xdec
cmp dword [ebp - 0x1c], 0xe45
jle 0x1000fbcc
mov esi, ebx
mov dword [ebp - 0x20], ebx
mov edi, esi
mov dword [ebp - 0x24], 0x7782
mov esi, edi
mov dword [ebp - 0x28], 0x104e
mov dword [ebp - 0x30], ebx
mov eax, esi
mov ecx, 0x10079358
or eax, ebx
cdq
push edx
push eax
call fcn.100033d6
inc ebx
cmp ebx, 0xd33
jl 0x1000fb8e
dec esi
dec dword [ebp - 0x28]
push 0
pop ebx
jne 0x1000fb8b
dec edi
dec dword [ebp - 0x24]
jne 0x1000fb82
mov esi, dword [ebp - 0x20]
inc esi
mov dword [ebp - 0x20], esi
cmp esi, 0x6ad7
jl 0x1000fb79
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp byte [ebp - 0x18], 0
je 0x1000fbdd
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
jmp 0x1000fc46
mov ecx, dword [ebp + 0x2c]
mov edi, dword [ebp + 0x10]
mov eax, dword [ecx]
cmp eax, dword [edi]
jle 0x1000fbeb
mov eax, dword [edi]
mov eax, dword [ecx]
xor edx, edx
mov esi, dword [ebp + 0x14]
test eax, eax
sets dl
xor ecx, ecx
mov eax, dword [esi]
cmp edx, eax
setne cl
mov dword [edi], ecx
xor ecx, ecx
mov eax, dword [edi]
mov eax, dword [ebp + 0x20]
mov eax, dword [eax]
mov eax, dword [ebp + 0x18]
mov dword [eax], 0xffff
mov eax, dword [eax]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
test eax, eax
mov eax, dword [ebp + 0x2c]
setne cl
xor edx, edx
mov eax, dword [eax]
cmp ecx, eax
mov eax, dword [ebp + 0x1c]
setle dl
xor ecx, ecx
mov eax, dword [eax]
cmp edx, eax
mov eax, dword [esi]
setge cl
xor edx, edx
cmp ecx, eax
mov eax, dword [ebp + 0x30]
sete dl
mov dword [eax], edx
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], 0xbb9
jge 0x1000fc61
mov edx, str.rxtjrw_xihy_nnpeyzia_hdvaldko_knl_kdzoajsvk_nkbsnf_aweogc_dniitnhj_quhwkkv_xcszuibl_jva_bbxv
mov ecx, 0x10079358
call fcn.1000562f
cmp dword [ebp - 0x2c], 0x7b22
jge 0x1000fc75
push str.ksvisjrg_juoxyoqo_rhmuxowd_rbgg_jhlgov_qvydmrd_oihc_ymh_dxaojq_lvyjpkzx_xburwk_fwwummhd_lobmubxg
call fcn.10046ccf
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret