Function at 0x46abf0
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cfd3b
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x50cc94]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x46ac58
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46ac51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x46b44f
lea ecx, [ebp - 0x264]
push ecx
push ecx
mov esi, esp
mov dword [ebp - 0x27c], esp
mov dword [ebp - 0x270], esi
call fcn.004a1286
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46ac88
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov eax, 0x4dec30
shr eax, 0x10
mov byte [ebp - 4], 1
mov dword [ebp - 0x288], eax
test eax, eax
jne 0x46ad98
mov ecx, 0x4dec30
movzx edi, cx
push edi
call fcn.004a91be
mov ebx, eax
test ebx, ebx
je 0x46adb2
mov edx, edi
shr edx, 4
inc edx
movzx eax, dx
push 6
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46adb2
push edi
push eax
push ebx
call fcn.00421708
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x46adb2
mov eax, dword [esi]
movzx edi, word [ebx]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edi
or eax, ecx
jge 0x46ad19
push edi
mov ecx, esi
call fcn.00421527
movzx eax, word [ebx]
mov ecx, dword [esi]
add ebx, 2
mov dword [ebp - 0x268], ecx
cmp eax, 0xffffffff
jne 0x46ad36
push ebx
call fcn.004af97a
add esp, 4
inc eax
lea edx, [eax + eax]
mov eax, dword [ebp - 0x268]
push edx
lea ecx, [edi + edi]
push ebx
push ecx
push eax
mov dword [ebp - 0x26c], ecx
call fcn.004af400
add esp, 0x10
cmp eax, 0x50
ja case.0x46aeae.1
movzx ecx, byte [eax + 0x46b47c]
jmp dword [ecx*4 + 0x46b46c]
call fcn.004a17ee
test edi, edi
jl 0x46ad8e
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x46ad8e
mov ecx, dword [ebp - 0x26c]
mov dword [eax - 0xc], edi
mov edx, dword [esi]
xor eax, eax
mov word [ecx + edx], ax
jmp 0x46adb2
push 0x80070057
call fcn.00421000
push 0x4dec30
call fcn.004af97a
add esp, 4
push eax
push 0x4dec30
mov ecx, esi
call fcn.0042423a
push ecx
mov byte [ebp - 4], 2
mov esi, esp
mov dword [ebp - 0x270], esp
mov dword [ebp - 0x274], esi
call fcn.004a1286
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x46addf
push 0x80004005
call fcn.00421000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, 0x4e8524
mov byte [ebp - 4], 3
test ecx, 0xffff0000
jne 0x46aee0
mov edx, ecx
movzx edi, dx
push edi
call fcn.004a91be
mov ebx, eax
test ebx, ebx
je 0x46aefa
mov eax, edi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46aefa
push edi
push eax
push ebx
call fcn.00421708
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x46aefa
mov eax, dword [esi]
movzx edi, word [ebx]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, edi
or eax, ecx
jge 0x46ae68
push edi
mov ecx, esi
call fcn.00421527
movzx eax, word [ebx]
mov edx, dword [esi]
add ebx, 2
mov dword [ebp - 0x26c], edx
cmp eax, 0xffffffff
jne 0x46ae85
push ebx
call fcn.004af97a
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [edi + edi]
push ebx
push ecx
mov dword [ebp - 0x268], ecx
mov ecx, dword [ebp - 0x26c]
push ecx
call fcn.004af400
add esp, 0x10
cmp eax, 0x50
ja case.0x46aeae.1
movzx edx, byte [eax + 0x46b4e0]
jmp dword [edx*4 + 0x46b4d0]
call fcn.004a1826
test edi, edi
jl 0x46ad8e
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x46ad8e
mov edx, dword [ebp - 0x268]
mov dword [eax - 0xc], edi
mov eax, dword [esi]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x46aefa
push 0x4e8524
call fcn.004af97a
add esp, 4
push eax
push 0x4e8524
mov ecx, esi
call fcn.0042423a
mov byte [ebp - 4], 4
mov eax, dword [ebp + 8]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x274], esp
mov esi, esp
push eax
call fcn.004242ab
add eax, 0x10
mov dword [esi], eax
add esp, 4
lea edi, [ebp - 0x284]
mov byte [ebp - 4], 0
call fcn.004687d0
mov eax, dword [eax]
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov eax, dword [ebp - 0x284]
add eax, 0xfffffff0
mov dword [ebp - 0x27c], esi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46af60
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
je 0x46b3c6
lea esp, [esp]
push ecx
mov ebx, esp
mov dword [ebp - 0x274], esp
mov dword [ebp - 0x280], ebx
call fcn.004a1286
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x46ac7e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
cmp dword [ebp - 0x288], 0
mov byte [ebp - 4], 5
jne 0x46b093
mov ecx, 0x4dec30
movzx esi, cx
push esi
call fcn.004a91be
mov edi, eax
test edi, edi
je 0x46b0ad
mov edx, esi
shr edx, 4
inc edx
movzx eax, dx
push 6
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46b0ad
push esi
push eax
push edi
call fcn.00421708
mov edi, eax
add esp, 0xc
test edi, edi
je 0x46b0ad
mov eax, dword [ebx]
movzx esi, word [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x46b01b
push esi
mov ecx, ebx
call fcn.00421527
movzx eax, word [edi]
mov ecx, dword [ebx]
add edi, 2
mov dword [ebp - 0x26c], ecx
cmp eax, 0xffffffff
jne 0x46b038
push edi
call fcn.004af97a
add esp, 4
inc eax
lea edx, [eax + eax]
mov eax, dword [ebp - 0x26c]
push edx
lea ecx, [esi + esi]
push edi
push ecx
push eax
mov dword [ebp - 0x270], ecx
call fcn.004af400
add esp, 0x10
cmp eax, 0x50
ja case.0x46aeae.1
movzx ecx, byte [eax + 0x46b544]
jmp dword [ecx*4 + 0x46b534]
test esi, esi
jl 0x46ad8e
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x46ad8e
mov ecx, dword [ebp - 0x270]
mov dword [eax - 0xc], esi
mov edx, dword [ebx]
xor eax, eax
mov word [ecx + edx], ax
jmp 0x46b0ad
push 0x4dec30
call fcn.004af97a
add esp, 4
push eax
push 0x4dec30
mov ecx, ebx
call fcn.0042423a
push ecx
mov byte [ebp - 4], 6
mov ebx, esp
mov dword [ebp - 0x280], esp
mov dword [ebp - 0x278], ebx
call fcn.004a1286
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x46ac7e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebx], eax
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 7
test ecx, 0xffff0000
jne 0x46b1d5
mov edx, ecx
movzx esi, dx
push esi
call fcn.004a91be
mov edi, eax
test edi, edi
je 0x46b1f3
mov eax, esi
shr eax, 4
inc eax
movzx ecx, ax
push 6
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46b1f3
push esi
push eax
push edi
call fcn.00421708
mov edi, eax
add esp, 0xc
test edi, edi
je 0x46b1f3
mov eax, dword [ebx]
movzx esi, word [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
or eax, ecx
jge 0x46b15e
push esi
mov ecx, ebx
call fcn.00421527
movzx eax, word [edi]
mov edx, dword [ebx]
add edi, 2
mov dword [ebp - 0x270], edx
cmp eax, 0xffffffff
jne 0x46b17b
push edi
call fcn.004af97a
add esp, 4
inc eax
add eax, eax
push eax
lea ecx, [esi + esi]
push edi
push ecx
mov dword [ebp - 0x26c], ecx
mov ecx, dword [ebp - 0x270]
push ecx
call fcn.004af400
add esp, 0x10
cmp eax, 0x50
ja case.0x46aeae.1
movzx edx, byte [eax + 0x46b5a8]
jmp dword [edx*4 + 0x46b598]
test esi, esi
jl 0x46ad8e
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x46ad8e
mov edx, dword [ebp - 0x26c]
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
xor ecx, ecx
mov word [edx + eax], cx
jmp 0x46b1f3
lea eax, [ebp - 0x238]
push eax
call fcn.004af97a
add esp, 4
push eax
lea ecx, [ebp - 0x238]
push ecx
mov ecx, ebx
call fcn.0042423a
mov byte [ebp - 4], 8
mov esi, dword [ebp + 8]
push ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
mov dword [ebp - 0x278], esp
mov ebx, esp
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x46b22a
cmp eax, dword [esi]
jne 0x46b22a
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x46b265
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x46b3f9
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.004af400
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
lea edi, [ebp - 0x268]
mov byte [ebp - 4], 0
call fcn.004687d0
add esp, 0xc
mov byte [ebp - 4], 9
test byte [ebp - 0x264], 0x10
je 0x46b32f
lea ecx, [ebp - 0x238]
mov eax, 0x4e2e8c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46b2be
test dx, dx
je 0x46b2ba
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46b2be
add eax, 4
add ecx, 4
test dx, dx
jne 0x46b298
xor eax, eax
jmp 0x46b2c3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x46b37d
lea ecx, [ebp - 0x238]
mov eax, 0x4e8528
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x46b2fc
test dx, dx
je 0x46b2f8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x46b2fc
add eax, 4
add ecx, 4
test dx, dx
jne 0x46b2d6
xor eax, eax
jmp 0x46b301
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x46b37d
mov eax, dword [ebp - 0x268]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x278], esp
mov esi, esp
push eax
call fcn.004242ab
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0046abf0
add esp, 4
jmp 0x46b37d
mov ecx, dword [ebp - 0x268]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push ecx
call esi
mov edx, dword [ebp - 0x268]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edx
call edi
test eax, eax
jne 0x46b37d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x46b37d
mov ecx, dword [ebp - 0x268]
call fcn.004708b0
mov eax, dword [ebp - 0x268]
push 0
push eax
call esi
mov ecx, dword [ebp - 0x268]
push ecx
call edi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46b3a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x27c]
lea ecx, [ebp - 0x264]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46af70
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
push eax
call fcn.004242ab
add esp, 4
lea esi, [eax + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46b3fe
test al, 0x10
je 0x46b3fe
mov edi, 1
jmp 0x46b400
call fcn.00421592
xor edi, edi
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b41c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
test edi, edi
sete cl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov esi, ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46b44d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004af011
mov esp, ebp
pop ebp
ret