Function at 0x1001b470
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1016db30
push 0x10118480
mov eax, dword fs:[0]
push eax
sub esp, 0x254
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 esi, dword [ebp + 8]
mov dword [ebp - 0x260], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x25c], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x238], ecx
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x258], edx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x234], eax
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x240], ecx
test esi, esi
je 0x1001b948
cmp byte [esi], 0
je 0x1001b948
mov dword [ebp - 0x248], 0
push 0xb70
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov dword [ebp - 0x230], ebx
test ebx, ebx
je 0x1001b948
lea edi, [ebx + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, edi
call fcn.10049c40
push 0x1014bec4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 4], 0
lea esi, [ebx + 0xa30]
mov ecx, edi
call fcn.10033b80
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x1001b907
jmp 0x1001b566
mov ebx, dword [ebp - 0x230]
add ebx, 0xa5c
cmp byte [ebx], 0x2e
je 0x1001b8d5
mov edi, dword [ebp - 0x230]
add edi, 8
mov edx, dword [ebp - 0x260]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, edi
call fcn.10049c40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esi]
test al, 0x10
jne 0x1001b7c0
xor edi, edi
mov dword [ebp - 0x244], edi
mov esi, dword [ebp - 0x25c]
cmp esi, edi
je 0x1001b62b
cmp byte [esi], 0
je 0x1001b62b
mov dword [ebp - 0x24c], edi
mov byte [ebp - 0x22c], 0
push 0x207
push edi
lea eax, [ebp - 0x22b]
push eax
call fcn.10116880
add esp, 0xc
push 1
push 0x2c
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x22c]
mov ecx, esi
call fcn.10045850
add esp, 0xc
cmp dword [ebp - 0x24c], 0xffffffff
je 0x1001b638
push ebx
lea edx, [ebp - 0x22c]
push edx
call fcn.10045210
add esp, 8
mov edi, eax
mov dword [ebp - 0x244], edi
test edi, edi
jne 0x1001b640
push 1
push 0x2c
lea eax, [ebp - 0x24c]
push eax
jmp 0x1001b5e9
mov edi, 1
mov dword [ebp - 0x244], edi
jmp 0x1001b640
test edi, edi
je 0x1001b8d5
mov esi, dword [ebp - 0x240]
test esi, esi
je 0x1001b6a9
mov dword [ebp - 0x250], 0
push 1
push 0x2c
lea ecx, [ebp - 0x250]
push ecx
lea edx, [ebp - 0x12c]
mov ecx, esi
call fcn.10045850
add esp, 0xc
cmp dword [ebp - 0x250], 0xffffffff
je 0x1001b6a9
push ebx
lea edx, [ebp - 0x12c]
push edx
call fcn.10045210
add esp, 8
cmp eax, 1
jne 0x1001b69c
mov dword [ebp - 0x244], 0
jmp 0x1001b8d5
push 1
push 0x2c
lea eax, [ebp - 0x250]
push eax
jmp 0x1001b65f
test edi, edi
je 0x1001b8d5
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x1001b6bd
inc dword [eax]
cmp dword [ebp + 0x20], 0
jne 0x1001b736
mov edi, dword [ebp - 0x230]
test byte [edi + 0xa30], 0x20
je 0x1001b8d5
mov eax, dword [0x1019c1c0]
mov ecx, eax
inc eax
mov dword [0x1019c1c0], eax
cmp ecx, 0x14
jl 0x1001b6fc
mov esi, 1
call fcn.100326d0
mov dword [0x1019c1c0], 0
push 0
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x1001b721
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x1001b8d5
inc dword [eax]
jmp 0x1001b8d5
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x1001b8d5
inc dword [eax]
jmp 0x1001b8d5
mov edx, dword [ebp - 0x230]
test byte [edx + 0xa30], 0x20
jne 0x1001b8d5
mov eax, dword [0x1019c1c0]
mov ecx, eax
inc eax
mov dword [0x1019c1c0], eax
cmp ecx, 0x14
jl 0x1001b76f
mov esi, 1
call fcn.100326d0
mov dword [0x1019c1c0], 0
mov eax, dword [ebp - 0x230]
mov edx, dword [eax + 0xa30]
or edx, 0x20
push edx
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x1001b7a6
cmp dword [ebp - 0x234], eax
je 0x1001b8d5
mov eax, dword [ebp - 0x234]
inc dword [eax]
jmp 0x1001b8d5
cmp dword [ebp - 0x238], 0
je 0x1001b8d5
mov eax, dword [ebp - 0x238]
inc dword [eax]
jmp 0x1001b8d5
test eax, 0x400
jne 0x1001b8d5
xor ebx, ebx
mov dword [ebp - 0x254], ebx
mov esi, dword [ebp - 0x240]
cmp esi, ebx
je 0x1001b875
mov dword [ebp - 0x23c], ebx
mov edi, 1
push edi
push 0x2c
lea eax, [ebp - 0x23c]
push eax
lea edx, [ebp - 0x12c]
mov ecx, esi
call fcn.10045850
add esp, 0xc
cmp dword [ebp - 0x23c], 0xffffffff
je 0x1001b875
push 0x5c
lea ecx, [ebp - 0x12c]
push ecx
call fcn.1010d780
add esp, 8
test eax, eax
lea eax, [ebp - 0x12c]
jne 0x1001b84f
mov edx, dword [ebp - 0x230]
add edx, 0xa5c
push edx
push eax
call fcn.10045210
add esp, 8
cmp eax, edi
jne 0x1001b869
mov dword [ebp - 0x254], edi
jmp 0x1001b8d5
mov ecx, dword [ebp - 0x230]
add ecx, 8
call fcn.10031940
test eax, eax
jne 0x1001b869
mov dword [ebp - 0x254], edi
jmp 0x1001b8d5
push edi
push 0x2c
lea ecx, [ebp - 0x23c]
push ecx
jmp 0x1001b7f6
test ebx, ebx
jne 0x1001b8d5
mov eax, dword [0x1019c1c4]
mov edx, eax
inc eax
mov dword [0x1019c1c4], eax
cmp edx, 0x14
jl 0x1001b899
lea esi, [ebx + 1]
call fcn.100326d0
mov dword [0x1019c1c4], ebx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp - 0x240]
push ecx
mov edx, dword [ebp - 0x234]
push edx
mov eax, dword [ebp - 0x258]
push eax
mov ecx, dword [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x25c]
push edx
mov eax, dword [ebp - 0x230]
add eax, 8
push eax
call sym.EncDec.dll_RemoveArchiveAttributeRecursiveA
or dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x230]
lea esi, [eax + 0xa30]
mov ecx, dword [eax + 4]
call fcn.10033de0
test eax, eax
jne 0x1001b560
mov ecx, dword [ebp - 0x230]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x230]
mov dword [ebp - 4], 0xfffffffe
jmp 0x1001b935
test ebx, ebx
je 0x1001b940
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x248]
jmp 0x1001b94a
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