Function at 0x1000ad87
Capabilities:
Clear file content
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
cmp byte [ebp + 0x10], 0
mov eax, edx
push esi
push edi
mov dword [esp + 0x24], eax
je 0x1000ae78
cmp byte [ebp + 0xc], 0
je 0x1000ae71
mov dword [esp + 0x1c], 0x1a25
cmp dword [esp + 0x1c], 0x1c16
jle 0x1000ae52
xor esi, esi
mov dword [esp + 0x18], esi
xor edi, edi
mov dword [esp + 0x14], 0xa01
mov dword [esp + 0xc], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], 0x3f58
xor esi, esi
mov ecx, esi
mov eax, edi
sar eax, cl
lea ecx, [esp + 0x30]
cdq
push edx
push eax
call fcn.10001a55
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1000ae00
mov eax, dword [eax]
push eax
call fcn.100443ac
pop ecx
push 0
push 1
lea ecx, [esp + 0x38]
call fcn.10005611
inc esi
cmp esi, 0x384a
jl 0x1000ade4
dec edi
dec dword [esp + 0x10]
jne 0x1000ade2
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
add edi, esi
dec dword [esp + 0x14]
mov dword [esp + 0xc], edi
jne 0x1000add6
inc esi
mov dword [esp + 0x18], esi
cmp esi, 0x3ff4
jl 0x1000adc8
push 0
push 0x15e0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [esp + 0x1c], 0x16e7
jge 0x1000ae67
push str.ftnnj_ojqljfp_dnqylemnk_dyhr_zzidlqns_uvepiq_ingbaan_quhp
call fcn.100443ac
pop ecx
mov eax, dword [ebp + 8]
inc dword [eax]
jmp 0x1000afdc
inc dword [ecx]
jmp 0x1000afdc
cmp byte [ebp + 0x14], 0
je 0x1000aef2
mov dword [esp + 0xc], 0xfffffff6
mov dword [esp + 0x1c], 0x15898f01
mov dword [esp + 0x10], 0
jmp 0x1000aea8
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x28], 0xf9986e3e
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 2
jl 0x1000ae98
mov eax, dword [esp + 0xc]
cmp dword [esp + 0xc], 0
je 0x1000aeca
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xb]
mov eax, dword [esp + 0xc]
dec eax
neg eax
sbb eax, eax
xor cl, cl
neg eax
mov dword [esp + 0x2c], eax
mov byte [esp + 0xb], 0
call fcn.1000ef62
jmp 0x1000afdc
mov dword [esp + 0x14], 0x5f5c
cmp dword [esp + 0x14], 0x61d5
jle 0x1000afb0
xor eax, eax
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [esp + 0x18], esi
xor edi, edi
mov dword [esp + 0x1c], edi
and dword [esp + 0x20], 0
mov eax, esi
mov esi, dword [esp + 0x10]
mov ecx, edi
mov edi, dword [esp + 0x20]
sar eax, cl
mov dword [esp + 0xc], eax
mov ecx, edi
shl eax, cl
lea ecx, [esp + 0x48]
and eax, esi
cdq
push edx
push eax
call fcn.10001a55
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x1000af4d
mov eax, dword [eax]
push eax
call fcn.100443ac
pop ecx
push 0
push 1
lea ecx, [esp + 0x50]
call fcn.10005611
mov eax, dword [esp + 0xc]
inc edi
cmp edi, 0x70f9
jl 0x1000af31
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
inc edi
mov dword [esp + 0x1c], edi
cmp edi, 0x4e77
jl 0x1000af1a
inc esi
mov dword [esp + 0x18], esi
cmp esi, 0x3e22
jl 0x1000af14
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x31b9
jl 0x1000af0e
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov eax, dword [esp + 0x24]
cmp byte [eax], 0
je 0x1000afc7
push 0x5df7
xor dl, dl
mov ecx, 0x3dc0
call fcn.1000ea6a
pop ecx
cmp dword [esp + 0x14], 0x5f1a
jge 0x1000afdc
push str.nhjtv_pcrsi_mfrk_bkpum_jhqq_ozddqwsyt_zmzc_val_xevl
call fcn.100443ac
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret