Function at 0x4016c0
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, 0x4a8
mov word [ebp - 0x468], ax
movzx eax, byte [0x403004]
mov dword [ebp - 0x478], 0x200020
mov dword [ebp - 0x474], 0x200020
and eax, 8
mov dword [ebp - 0x470], 0x200020
mov dword [ebp - 0x46c], 0x200020
mov byte [ebp - 0x480], al
jne 0x401c60
test ebx, ebx
jne 0x401aa8
lea eax, [ebp - 0x25c]
lea ebx, [ebp - 0x464]
mov dword [ebp - 0x47c], eax
mov eax, dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x484], eax
mov eax, dword [sym.imp.kernel32.dll_FindClose]
mov dword [ebp - 0x490], 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 0x401750
cmp word [ebp - 0x464], 0
mov edx, ebx
je 0x401779
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x401770
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [esi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401780
cmp byte [ebp - 0x480], 0
jne 0x401bf8
mov eax, dword [ebp - 0x47c]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x484]
call eax
mov dword [ebp - 0x48c], 0
mov dword [ebp - 0x484], eax
sub esp, 8
cmp eax, 0xffffffff
je 0x401906
lea esi, [ebp - 0x230]
mov eax, esi
shr eax, 0x10
mov dword [ebp - 0x488], eax
mov eax, dword [sym.imp.kernel32.dll_FindNextFileW]
mov dword [ebp - 0x480], eax
lea esi, [esi]
test byte [0x403004], 8
jne 0x401930
mov dword [esp + 4], 0x40411a
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
je 0x4018e0
mov dword [esp + 4], 0x40411e
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
je 0x4018e0
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x25c]
test eax, eax
jne 0x40184b
test dl, 0x10
jne 0x4018e0
mov eax, dword [ebp + 0xc]
or eax, dword [ebp + 0x10]
je 0x401998
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 - 0x25c], ecx
lea esi, [esi]
nop
movzx edx, word [edi + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x401878
cmp word [ebp - 0x464], 0
mov edx, ebx
je 0x4018a1
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x401898
mov dword [ebp - 0x48c], ecx
xor eax, eax
lea esi, [esi]
movzx ecx, word [esi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4018b0
mov ecx, dword [ebp - 0x48c]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
sub esp, 8
mov dword [ebp - 0x48c], 1
mov eax, dword [ebp - 0x47c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x484]
mov dword [esp], eax
mov eax, dword [ebp - 0x480]
call eax
sub esp, 8
test eax, eax
jne 0x4017f0
mov eax, dword [ebp - 0x484]
mov dword [esp], eax
mov eax, dword [ebp - 0x490]
call eax
mov eax, dword [ebp - 0x48c]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x488]
test eax, eax
je 0x401a90
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 0x401964
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], str.ATTRIB_processdirectory
mov dword [esp + 4], 0x403004
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x4017fd
test dl, 2
je 0x4019a9
mov ecx, 0x48
mov word [ebp - 0x470], cx
test dl, 4
je 0x4019ba
mov ecx, 0x53
mov word [ebp - 0x476], cx
test dl, 0x20
je 0x4019cb
mov ecx, 0x41
mov word [ebp - 0x478], cx
test dl, 1
je 0x4019dc
mov ecx, 0x52
mov word [ebp - 0x46e], cx
test dh, 1
je 0x4019ed
mov ecx, 0x54
mov word [ebp - 0x46c], cx
and dh, 8
jne 0x401be0
xor edx, edx
lea esi, [esi]
nop
movzx ecx, word [edi + edx]
mov word [ebx + edx], cx
add edx, 2
test cx, cx
jne 0x401a00
cmp word [ebp - 0x464], 0
mov edx, ebx
je 0x401a30
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x401a20
lea esi, [esi]
movzx ecx, word [esi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401a30
lea eax, [ebp - 0x478]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], str._1______2_n
call sym._ATTRIB_wprintf
mov dword [ebp - 0x478], 0x200020
mov dword [ebp - 0x474], 0x200020
mov dword [ebp - 0x470], 0x200020
mov dword [ebp - 0x46c], 0x200020
jmp 0x4018d6
mov dword [esp + 4], esi
mov dword [esp], str._04x
call sym._wine_dbg_sprintf.constprop.0
jmp 0x401964
xor eax, eax
lea ebx, [ebp - 0x464]
movzx edx, word [edi + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x401ab0
cmp word [ebp - 0x464], 0
mov edx, ebx
je 0x401ad9
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x401ad0
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x4040f0]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401ae0
cmp byte [ebp - 0x480], 0
jne 0x401d28
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x47c], eax
mov dword [esp + 4], eax
mov eax, dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [esp], ebx
mov dword [ebp - 0x484], eax
call eax
mov ecx, eax
mov eax, dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
mov dword [ebp - 0x480], eax
cmp ecx, 0xffffffff
je 0x401bb4
mov dword [ebp - 0x488], esi
mov esi, ecx
test byte [ebp - 0x25c], 0x10
je 0x401b90
lea eax, [ebp - 0x230]
mov dword [esp + 4], 0x40411a
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
je 0x401b90
lea eax, [ebp - 0x230]
mov dword [esp + 4], 0x40411e
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_lstrcmpW]
sub esp, 8
test eax, eax
jne 0x401db0
lea esi, [esi]
lea esi, [esi]
mov eax, dword [ebp - 0x47c]
mov dword [esp], esi
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x480]
call eax
sub esp, 8
test eax, eax
jne 0x401b3d
mov ecx, esi
mov esi, dword [ebp - 0x488]
mov eax, dword [sym.imp.kernel32.dll_FindClose]
mov dword [esp], ecx
mov dword [ebp - 0x490], eax
call eax
movzx eax, byte [0x403004]
sub esp, 4
and eax, 8
mov byte [ebp - 0x480], al
jmp 0x401749
mov edx, 0x43
mov word [ebp - 0x46a], dx
jmp 0x4019f6
mov eax, ebx
shr eax, 0x10
je 0x401e60
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 0x401c29
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], str.ATTRIB_processdirectory
mov dword [esp + 4], 0x403004
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x40179d
mov eax, edx
shr eax, 0x10
je 0x401d90
mov dword [esp + 4], 0xffffffff
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_IsBadStringPtrW]
mov dword [ebp - 0x47c], str._invalid_
sub esp, 8
test eax, eax
jne 0x401c9a
mov eax, esi
call sym._wine_dbgstr_wn.part.0.constprop.0
mov dword [ebp - 0x47c], eax
mov eax, edi
shr eax, 0x10
je 0x401e78
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 0x401ccb
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 - 0x47c]
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], str.ATTRIB_processdirectory
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 - 0x480], al
jmp 0x401719
mov eax, ebx
shr eax, 0x10
je 0x401e8d
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 0x401d59
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], str.ATTRIB_processdirectory
mov dword [esp + 4], 0x403004
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x401b00
mov dword [esp + 4], edx
mov dword [esp], str._04x
call sym._wine_dbg_sprintf.constprop.0
mov dword [ebp - 0x47c], eax
jmp 0x401c9a
xor eax, eax
lea esi, [esi]
movzx edx, word [edi + eax]
mov word [ebx + eax], dx
add eax, 2
test dx, dx
jne 0x401db8
cmp word [ebp - 0x464], 0
mov edx, ebx
je 0x401de1
lea esi, [esi]
add edx, 2
cmp word [edx], 0
jne 0x401dd8
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [ebp + eax - 0x230]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401de8
cmp word [ebp - 0x464], 0
mov edx, ebx
je 0x401e19
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x401e10
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + 0x404124]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401e20
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 - 0x488]
mov eax, ebx
call sym._ATTRIB_processdirectory
jmp 0x401b90
mov dword [esp + 4], ebx
mov dword [esp], str._04x
call sym._wine_dbg_sprintf.constprop.0
jmp 0x401c29
mov dword [esp + 4], edi
mov dword [esp], str._04x
call sym._wine_dbg_sprintf.constprop.0
jmp 0x401ccb
mov dword [esp + 4], ebx
mov dword [esp], str._04x
call sym._wine_dbg_sprintf.constprop.0
jmp 0x401d59