Function at 0x1001b970
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1016db10
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x1017455c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x460], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x440], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x464], edx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x43c], eax
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x448], ecx
mov edi, dword [ebp + 8]
test edi, edi
je 0x1001be65
cmp word [edi], 0
je 0x1001be65
mov dword [ebp - 0x450], 0
push 0x16a8
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [ebp - 0x438], esi
test esi, esi
je 0x1001be65
mov eax, edi
lea ebx, [esi + 8]
mov edx, ebx
sub edx, edi
jmp 0x1001ba20
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x1001ba20
mov eax, ebx
call fcn.10058270
mov eax, ebx
add eax, 0xfffffffe
jmp 0x1001ba40
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x1001ba40
mov edx, dword [0x1014befc]
mov dword [eax], edx
mov ecx, dword [0x1014bf00]
mov dword [eax + 4], ecx
mov dword [ebp - 4], 0
lea edx, [esi + 0x1458]
push edx
call fcn.10033f50
add esp, 4
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x1001be45
jmp 0x1001ba84
mov edi, dword [ebp + 8]
cmp word [esi + 0x1484], 0x2e
je 0x1001be02
mov ecx, edi
lea edx, [esi + 8]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x1001ba97
lea edi, [esi + 8]
mov eax, edi
call fcn.10058270
lea eax, [esi + 0x1484]
mov dword [ebp - 0x45c], eax
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1001bac0
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x1001bad0
mov ecx, eax
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x438]
mov eax, dword [eax + 0x1458]
test al, 0x10
jne 0x1001bcc3
xor esi, esi
mov dword [ebp - 0x44c], esi
mov edi, dword [ebp - 0x460]
test edi, edi
je 0x1001bb67
cmp word [edi], si
je 0x1001bb67
mov dword [ebp - 0x454], esi
lea ecx, [ebp - 0x454]
push ecx
lea edx, [ebp - 0x434]
mov ecx, edi
call fcn.10045600
add esp, 4
cmp dword [ebp - 0x454], 0xffffffff
je 0x1001bb74
mov edx, dword [ebp - 0x45c]
push edx
lea ebx, [ebp - 0x434]
call fcn.100450b0
add esp, 4
mov esi, eax
mov dword [ebp - 0x44c], esi
test esi, esi
jne 0x1001bb7c
lea eax, [ebp - 0x454]
push eax
jmp 0x1001bb24
mov esi, 1
mov dword [ebp - 0x44c], esi
jmp 0x1001bb7c
test esi, esi
je 0x1001be02
mov edi, dword [ebp - 0x448]
test edi, edi
je 0x1001bbe2
mov dword [ebp - 0x458], 0
lea ecx, [ebp - 0x458]
push ecx
lea edx, [ebp - 0x22c]
mov ecx, edi
call fcn.10045600
add esp, 4
cmp dword [ebp - 0x458], 0xffffffff
je 0x1001bbe2
mov edx, dword [ebp - 0x45c]
push edx
lea ebx, [ebp - 0x22c]
call fcn.100450b0
add esp, 4
cmp eax, 1
jne 0x1001bbd9
mov dword [ebp - 0x44c], 0
jmp 0x1001be02
lea eax, [ebp - 0x458]
push eax
jmp 0x1001bb97
test esi, esi
je 0x1001be02
mov eax, dword [ebp - 0x464]
test eax, eax
je 0x1001bbf6
inc dword [eax]
mov ecx, dword [ebp - 0x438]
cmp dword [ebp + 0x20], 0
jne 0x1001bc3f
test byte [ecx + 0x1458], 0x20
je 0x1001be02
mov eax, dword [0x1019c1c8]
mov edx, eax
inc eax
mov dword [0x1019c1c8], eax
cmp edx, 0x14
jl 0x1001bc35
mov esi, 1
call fcn.100326d0
mov dword [0x1019c1c8], 0
push 0
mov eax, dword [ebp - 0x438]
jmp 0x1001bc82
test byte [ecx + 0x1458], 0x20
jne 0x1001be02
mov eax, dword [0x1019c1c8]
mov edx, eax
inc eax
mov dword [0x1019c1c8], eax
cmp edx, 0x14
jl 0x1001bc72
mov esi, 1
call fcn.100326d0
mov dword [0x1019c1c8], 0
mov eax, dword [ebp - 0x438]
mov ecx, dword [eax + 0x1458]
or ecx, 0x20
push ecx
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1001bca9
cmp dword [ebp - 0x43c], eax
je 0x1001be02
mov eax, dword [ebp - 0x43c]
inc dword [eax]
jmp 0x1001be02
cmp dword [ebp - 0x440], 0
je 0x1001be02
mov eax, dword [ebp - 0x440]
inc dword [eax]
jmp 0x1001be02
test eax, 0x400
jne 0x1001be02
xor edi, edi
mov dword [ebp - 0x468], edi
mov esi, dword [ebp - 0x448]
cmp esi, edi
je 0x1001bd9c
mov dword [ebp - 0x444], edi
lea edx, [ebp - 0x444]
push edx
lea edx, [ebp - 0x22c]
mov ecx, esi
call fcn.10045600
add esp, 4
cmp dword [ebp - 0x444], 0xffffffff
je 0x1001bd9c
push 0x5c
lea eax, [ebp - 0x22c]
push eax
call fcn.1010f962
add esp, 8
test eax, eax
jne 0x1001bd4e
mov ecx, dword [ebp - 0x438]
add ecx, 0x1484
push ecx
lea ebx, [ebp - 0x22c]
call fcn.100450b0
add esp, 4
cmp eax, 1
jne 0x1001bd90
mov dword [ebp - 0x468], eax
jmp 0x1001be02
lea eax, [ebp - 0x22c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x1001bd57
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x22c]
push edx
mov eax, dword [ebp - 0x438]
add eax, 8
push eax
call fcn.10112117
add esp, 0xc
test eax, eax
jne 0x1001bd90
mov dword [ebp - 0x468], 1
jmp 0x1001be02
lea ecx, [ebp - 0x444]
push ecx
jmp 0x1001bcf1
cmp edi, edi
jne 0x1001be02
mov eax, dword [0x1019c1cc]
mov edx, eax
inc eax
mov dword [0x1019c1cc], eax
cmp edx, 0x14
jl 0x1001bdc6
mov esi, 1
call fcn.100326d0
mov dword [0x1019c1cc], 0
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp - 0x448]
push ecx
mov edx, dword [ebp - 0x43c]
push edx
mov eax, dword [ebp - 0x464]
push eax
mov ecx, dword [ebp - 0x440]
push ecx
mov edx, dword [ebp - 0x460]
push edx
mov eax, dword [ebp - 0x438]
add eax, 8
push eax
call sym.EncDec.dll_RemoveArchiveAttributeRecursiveW
or dword [ebp - 0x450], eax
mov esi, dword [ebp - 0x438]
lea ecx, [esi + 0x1458]
push ecx
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001ba81
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1001be45
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x1001be5d
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x450]
jmp 0x1001be67
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.1010d699
mov esp, ebp
pop ebp
ret 0x1c