Function at 0x4393b0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x66c
mov eax, dword [0x4c8698]
xor eax, esp
mov dword [esp + 0x668], eax
push ebx
mov ebx, dword [esp + 0x674]
push esi
push edi
push ebx
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x4393e8
xor eax, 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x208
xor edi, edi
lea eax, [esp + 0x470]
push edi
push eax
call fcn.00470770
lea eax, [esp + 0x478]
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439410
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, ebx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439426
sub eax, esi
mov ecx, 0x103
sar eax, 1
sub ecx, edx
cmp ecx, eax
jae 0x43946a
lea eax, [esp + 0x46c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439450
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, 0x103
sub eax, ecx
jmp 0x43947f
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439470
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x470]
push ebx
push edx
call fcn.00471b9f
lea eax, [esp + 0x478]
add esp, 0xc
lea edx, [eax + 2]
jmp 0x4394a0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4394a0
sub eax, edx
sar eax, 1
cmp eax, 0x103
jae 0x4394d1
lea eax, [esp + 0x46c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4394c0
sub eax, edx
sar eax, 1
jmp 0x4394d6
mov eax, 0x103
mov word [esp + eax*2 + 0x46c], di
lea eax, [esp + 0x46c]
lea edx, [eax + 2]
jmp 0x4394f0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4394f0
sub eax, edx
sar eax, 1
mov ecx, 0x103
sub ecx, eax
cmp ecx, 1
jae 0x43952d
lea eax, [esp + 0x46c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439515
sub eax, edx
sar eax, 1
mov edx, 0x103
sub edx, eax
jmp 0x439532
mov edx, 1
lea eax, [esp + 0x46c]
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439540
sub eax, esi
sar eax, 1
je 0x4395de
lea eax, [esp + 0x46c]
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439560
sub eax, esi
sar eax, 1
cmp word [esp + eax*2 + 0x46a], 0x5c
je 0x4395de
push edx
lea edx, [esp + 0x470]
push 0x4af76c
push edx
call fcn.00471b9f
lea eax, [esp + 0x478]
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4395a0
sub eax, edx
sar eax, 1
cmp eax, 0x103
jae 0x4395d1
lea eax, [esp + 0x46c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4395c0
sub eax, edx
sar eax, 1
jmp 0x4395d6
mov eax, 0x103
mov word [esp + eax*2 + 0x46c], di
lea eax, [esp + 0x46c]
lea edx, [eax + 2]
jmp 0x4395f0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4395f0
sub eax, edx
sar eax, 1
mov ecx, 0x103
sub ecx, eax
cmp ecx, 3
jae 0x43962d
lea eax, [esp + 0x46c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439615
sub eax, edx
sar eax, 1
mov ecx, 0x103
sub ecx, eax
jmp 0x439632
mov ecx, 3
push ecx
lea edx, [esp + 0x470]
push 0x4b04c4
push edx
call fcn.00471b9f
lea eax, [esp + 0x478]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439652
sub eax, edx
sar eax, 1
cmp eax, 0x103
jae 0x439683
lea eax, [esp + 0x46c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439672
sub eax, edx
sar eax, 1
jmp 0x439688
mov eax, 0x103
mov word [esp + eax*2 + 0x46c], di
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x470]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4396c4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x668]
xor ecx, esp
call fcn.00470220
add esp, 0x66c
ret
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4396d0
cmp dword [esp + 0x18], 0x10
je 0x4399d6
push 0x208
lea edx, [esp + 0x26c]
push edi
push edx
call fcn.00470770
lea eax, [esp + 0x274]
add esp, 0xc
lea edx, [eax + 2]
jmp 0x439700
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439700
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, dword [esp + 0x10]
lea esi, [eax + 2]
jmp 0x439720
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439720
sub eax, esi
mov ecx, 0x103
sar eax, 1
sub ecx, edx
cmp ecx, eax
jae 0x43975e
lea eax, [esp + 0x268]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439744
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, 0x103
sub eax, ecx
jmp 0x439774
mov eax, dword [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439765
sub eax, edx
sar eax, 1
mov edx, dword [esp + 0x10]
push eax
push edx
lea eax, [esp + 0x270]
push eax
call fcn.00471b9f
lea eax, [esp + 0x274]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439794
sub eax, edx
sar eax, 1
cmp eax, 0x103
jae 0x4397c5
lea eax, [esp + 0x268]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4397b4
sub eax, edx
sar eax, 1
jmp 0x4397ca
mov eax, 0x103
mov word [esp + eax*2 + 0x268], di
lea eax, [esp + 0x268]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4397e0
sub eax, edx
sar eax, 1
mov ecx, 0x103
sub ecx, eax
cmp ecx, 1
jae 0x43981d
lea eax, [esp + 0x268]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439805
sub eax, edx
sar eax, 1
mov edx, 0x103
sub edx, eax
jmp 0x439822
mov edx, 1
lea eax, [esp + 0x268]
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439830
sub eax, esi
sar eax, 1
je 0x4398ce
lea eax, [esp + 0x268]
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439850
sub eax, esi
sar eax, 1
cmp word [esp + eax*2 + 0x266], 0x5c
je 0x4398ce
push edx
lea edx, [esp + 0x26c]
push 0x4af76c
push edx
call fcn.00471b9f
lea eax, [esp + 0x274]
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439890
sub eax, edx
sar eax, 1
cmp eax, 0x103
jae 0x4398c1
lea eax, [esp + 0x268]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4398b0
sub eax, edx
sar eax, 1
jmp 0x4398c6
mov eax, 0x103
mov word [esp + eax*2 + 0x268], di
lea eax, [esp + 0x268]
lea edx, [eax + 2]
jmp 0x4398e0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4398e0
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x44]
lea esi, [eax + 2]
jmp 0x439900
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439900
sub eax, esi
mov ecx, 0x103
sar eax, 1
sub ecx, edx
cmp ecx, eax
jae 0x43993e
lea eax, [esp + 0x268]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439924
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, 0x103
sub eax, ecx
jmp 0x439954
lea eax, [esp + 0x44]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439945
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x270]
push eax
call fcn.00471b9f
lea eax, [esp + 0x274]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439974
sub eax, edx
sar eax, 1
cmp eax, 0x103
jae 0x4399ba
lea eax, [esp + 0x268]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439994
sub eax, edx
lea ecx, [esp + 0x268]
sar eax, 1
push ecx
mov word [esp + eax*2 + 0x26c], di
call ebp
jmp 0x439cf2
lea ecx, [esp + 0x268]
mov eax, 0x103
push ecx
mov word [esp + eax*2 + 0x26c], di
call ebp
jmp 0x439cf2
lea edx, [esp + 0x44]
push 0x4b04c0
push edx
call fcn.00471b0e
add esp, 8
test eax, eax
je 0x439cf2
lea eax, [esp + 0x44]
push 0x4b04b8
push eax
call fcn.00471b0e
add esp, 8
test eax, eax
je 0x439cf2
push 0x208
lea ecx, [esp + 0x26c]
push edi
push ecx
call fcn.00470770
lea eax, [esp + 0x274]
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439a30
sub eax, edx
sar eax, 1
mov edx, eax
mov eax, dword [esp + 0x10]
lea esi, [eax + 2]
jmp 0x439a50
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439a50
sub eax, esi
mov ecx, 0x103
sar eax, 1
sub ecx, edx
cmp ecx, eax
jae 0x439a8e
lea eax, [esp + 0x268]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439a74
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, 0x103
sub eax, ecx
jmp 0x439aa4
mov eax, dword [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439a95
sub eax, edx
sar eax, 1
mov edx, dword [esp + 0x10]
push eax
push edx
lea eax, [esp + 0x270]
push eax
call fcn.00471b9f
lea eax, [esp + 0x274]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439ac4
sub eax, edx
sar eax, 1
cmp eax, 0x103
jae 0x439af5
lea eax, [esp + 0x268]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439ae4
sub eax, edx
sar eax, 1
jmp 0x439afa
mov eax, 0x103
mov word [esp + eax*2 + 0x268], di
lea eax, [esp + 0x268]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439b10
sub eax, edx
sar eax, 1
mov ecx, 0x103
sub ecx, eax
cmp ecx, 1
jae 0x439b4d
lea eax, [esp + 0x268]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439b35
sub eax, edx
sar eax, 1
mov edx, 0x103
sub edx, eax
jmp 0x439b52
mov edx, 1
lea eax, [esp + 0x268]
lea esi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439b60
sub eax, esi
sar eax, 1
je 0x439bfe
lea eax, [esp + 0x268]
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439b80
sub eax, esi
sar eax, 1
cmp word [esp + eax*2 + 0x266], 0x5c
je 0x439bfe
push edx
lea edx, [esp + 0x26c]
push 0x4af76c
push edx
call fcn.00471b9f
lea eax, [esp + 0x274]
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439bc0
sub eax, edx
sar eax, 1
cmp eax, 0x103
jae 0x439bf1
lea eax, [esp + 0x268]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439be0
sub eax, edx
sar eax, 1
jmp 0x439bf6
mov eax, 0x103
mov word [esp + eax*2 + 0x268], di
lea eax, [esp + 0x268]
lea edx, [eax + 2]
jmp 0x439c10
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439c10
sub eax, edx
sar eax, 1
mov edx, eax
lea eax, [esp + 0x44]
lea esi, [eax + 2]
jmp 0x439c30
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439c30
sub eax, esi
mov ecx, 0x103
sar eax, 1
sub ecx, edx
cmp ecx, eax
jae 0x439c6e
lea eax, [esp + 0x268]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439c54
sub eax, edx
sar eax, 1
mov ecx, eax
mov eax, 0x103
sub eax, ecx
jmp 0x439c84
lea eax, [esp + 0x44]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439c75
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x270]
push eax
call fcn.00471b9f
lea eax, [esp + 0x274]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439ca4
sub eax, edx
sar eax, 1
cmp eax, 0x103
jae 0x439cd5
lea eax, [esp + 0x268]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x439cc4
sub eax, edx
sar eax, 1
jmp 0x439cda
mov eax, 0x103
lea ecx, [esp + 0x268]
push ecx
mov word [esp + eax*2 + 0x26c], di
call fcn.004393b0
add esp, 4
lea edx, [esp + 0x18]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4396d0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x678]
pop ebp
pop edi
neg eax
pop esi
sbb eax, eax
pop ebx
xor ecx, esp
neg eax
call fcn.00470220
add esp, 0x66c
ret