Function at 0x4016f0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
xor eax, eax
push esi
mov esi, edx
push ebx
mov ebx, ecx
sub esp, 0x4cc
mov word [ebp - 0x474], ax
movzx eax, byte [0x403004]
mov dword [ebp - 0x484], 0x200020
mov dword [ebp - 0x480], 0x200020
and eax, 8
mov dword [ebp - 0x47c], 0x200020
mov dword [ebp - 0x478], 0x200020
mov byte [ebp - 0x490], al
jne 0x401ca0
test ebx, ebx
jne 0x401ae0
lea eax, [ebp - 0x268]
lea ebx, [ebp - 0x470]
mov dword [ebp - 0x48c], eax
mov eax, dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x494], eax
mov eax, dword [sym.imp.kernel32.dll_FindClose]
mov dword [ebp - 0x4a0], eax
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [edi + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x401780
cmp word [ebp - 0x470], 0
mov edx, ebx
je 0x4017a9
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4017a0
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [esi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4017b0
cmp byte [ebp - 0x490], 0
jne 0x401c38
mov eax, dword [ebp - 0x48c]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x494]
call eax
mov dword [ebp - 0x49c], 0
mov dword [ebp - 0x494], eax
sub esp, 8
cmp eax, 0xffffffff
je 0x401936
lea esi, [ebp - 0x23c]
mov eax, esi
shr eax, 0x10
mov dword [ebp - 0x498], eax
mov eax, dword [sym.imp.kernel32.dll_FindNextFileW]
mov dword [ebp - 0x490], eax
lea esi, [esi]
test byte [0x403004], 8
jne 0x401960
mov dword [esp + 4], 0x40411a
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
je 0x401910
mov dword [esp + 4], 0x40411e
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
je 0x401910
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x268]
test eax, eax
jne 0x40187b
test dl, 0x10
jne 0x401910
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
je 0x4019c8
mov eax, dword [ebp + 0x10]
not eax
and eax, edx
or eax, dword [ebp + 0xc]
mov ecx, eax
mov eax, pe_nt_image_headers32
cmove ecx, eax
xor eax, eax
mov dword [ebp - 0x268], ecx
lea esi, [esi]
nop
movzx edx, word [edi + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x4018a8
cmp word [ebp - 0x470], 0
mov edx, ebx
je 0x4018d1
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x4018c8
mov dword [ebp - 0x49c], ecx
xor eax, eax
lea esi, [esi]
movzx ecx, word [esi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4018e0
mov ecx, dword [ebp - 0x49c]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
sub esp, 8
mov dword [ebp - 0x49c], 1
mov eax, dword [ebp - 0x48c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x494]
mov dword [esp], eax
mov eax, dword [ebp - 0x490]
call eax
sub esp, 8
test eax, eax
jne 0x401820
mov eax, dword [ebp - 0x494]
mov dword [esp], eax
mov eax, dword [ebp - 0x4a0]
call eax
mov eax, dword [ebp - 0x49c]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x498]
test eax, eax
je 0x401ac0
mov dword [esp + 4], 0xffffffff
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x401994
mov eax, esi
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Found__s_n
mov dword [esp + 8], global___func__.0
mov dword [esp + 4], 0x403004
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40182d
test dl, 2
je 0x4019d9
mov ecx, 0x48
mov word [ebp - 0x47c], cx
test dl, 4
je 0x4019ea
mov ecx, 0x53
mov word [ebp - 0x482], cx
test dl, 0x20
je 0x4019fb
mov ecx, 0x41
mov word [ebp - 0x484], cx
test dl, 1
je 0x401a0c
mov ecx, 0x52
mov word [ebp - 0x47a], cx
test dh, 1
je 0x401a1d
mov ecx, 0x54
mov word [ebp - 0x478], cx
and dh, 8
jne 0x401c20
xor edx, edx
lea esi, [esi]
nop
movzx ecx, word [edi + edx]
mov word [ebx + edx], cx
add edx, 2
test cx, cx
jne 0x401a30
cmp word [ebp - 0x470], 0
mov edx, ebx
je 0x401a60
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x401a50
lea esi, [esi]
movzx ecx, word [esi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401a60
lea eax, [ebp - 0x484]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], str._1______2_n
call dbg.ATTRIB_wprintf
mov dword [ebp - 0x484], 0x200020
mov dword [ebp - 0x480], 0x200020
mov dword [ebp - 0x47c], 0x200020
mov dword [ebp - 0x478], 0x200020
jmp 0x401906
movzx eax, si
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x401994
xor eax, eax
lea ebx, [ebp - 0x470]
lea esi, [esi]
nop
movzx edx, word [edi + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x401af0
cmp word [ebp - 0x470], 0
mov edx, ebx
je 0x401b19
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x401b10
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x4040f0]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401b20
cmp byte [ebp - 0x490], 0
jne 0x401d68
lea eax, [ebp - 0x268]
mov dword [ebp - 0x48c], eax
mov dword [esp + 4], eax
mov eax, dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [esp], ebx
mov dword [ebp - 0x494], eax
call eax
mov ecx, eax
mov eax, dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
mov dword [ebp - 0x490], eax
cmp ecx, 0xffffffff
je 0x401bf4
mov dword [ebp - 0x498], esi
mov esi, ecx
test byte [ebp - 0x268], 0x10
je 0x401bd0
lea eax, [ebp - 0x23c]
mov dword [esp + 4], 0x40411a
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
je 0x401bd0
lea eax, [ebp - 0x23c]
mov dword [esp + 4], 0x40411e
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x401df0
lea esi, [esi]
lea esi, [esi]
mov eax, dword [ebp - 0x48c]
mov dword [esp], esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x490]
call eax
sub esp, 8
test eax, eax
jne 0x401b7d
mov ecx, esi
mov esi, dword [ebp - 0x498]
mov eax, dword [sym.imp.kernel32.dll_FindClose]
mov dword [esp], ecx
mov dword [ebp - 0x4a0], eax
call eax
movzx eax, byte [0x403004]
sub esp, 4
and eax, 8
mov byte [ebp - 0x490], al
jmp 0x401779
mov edx, 0x43
mov word [ebp - 0x476], dx
jmp 0x401a26
mov eax, ebx
shr eax, 0x10
je 0x401ea0
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x401c69
mov eax, ebx
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Searching_for_files_as__s_n
mov dword [esp + 8], global___func__.0
mov dword [esp + 4], 0x403004
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4017cd
mov eax, edx
shr eax, 0x10
je 0x401dd0
mov dword [esp + 4], 0xffffffff
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x48c], str._invalid_
sub esp, 8
test eax, eax
jne 0x401cda
mov eax, esi
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [ebp - 0x48c], eax
mov eax, edi
shr eax, 0x10
je 0x401ec0
mov dword [esp + 4], 0xffffffff
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov ecx, eax
sub esp, 8
mov eax, str._invalid_
test ecx, ecx
jne 0x401d0b
mov eax, edi
call sym._wine_dbgstr_wn.part.0.constprop.0
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp - 0x48c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], str.Processing_dir__s__spec__s___d__lx__lx_n
mov dword [esp + 8], global___func__.0
mov dword [esp + 4], 0x403004
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
movzx eax, byte [0x403004]
and eax, 8
mov byte [ebp - 0x490], al
jmp 0x401749
mov eax, ebx
shr eax, 0x10
je 0x401ed8
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov edx, eax
sub esp, 8
mov eax, str._invalid_
test edx, edx
jne 0x401d99
mov eax, ebx
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.Searching_for_directories_with__s_n
mov dword [esp + 8], global___func__.0
mov dword [esp + 4], 0x403004
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x401b40
movzx eax, dx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
mov dword [ebp - 0x48c], eax
jmp 0x401cda
xor eax, eax
lea esi, [esi]
movzx edx, word [edi + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x401df8
cmp word [ebp - 0x470], 0
mov edx, ebx
je 0x401e21
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x401e18
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [ebp + eax - 0x23c]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401e28
cmp word [ebp - 0x470], 0
mov edx, ebx
je 0x401e59
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x401e50
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x404124]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401e60
mov eax, dword [ebp + 0x10]
mov ecx, 1
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov edx, dword [ebp - 0x498]
mov eax, ebx
call dbg.ATTRIB_processdirectory
jmp 0x401bd0
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x401c69
movzx eax, di
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x401d0b
movzx eax, bx
mov dword [esp], str._04x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf.constprop.0
jmp 0x401d99