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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1da5
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x521284]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
cmp dword [edi + 0x10], 0
jne 0x415cd9
mov esi, dword [0x524fac]
test esi, esi
je 0x415ca1
push str.DeleteDirectoryAtPath:_Path_should_not_be_empty.
push 0x50cdf8
push 0x50cdf8
push 0x50e6dc
push str.OOBEUtils
push 0x28
mov ecx, esi
call dword [0x4f4350]
call esi
add esp, 0x18
xor al, al
jmp 0x416265
mov eax, dword [0x524fb0]
test eax, eax
je 0x415dce
mov esi, dword [eax]
push str.DeleteDirectoryAtPath:_Path_should_not_be_empty.
push 0x50e6dc
push 0x50cdf8
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x28
push eax
call dword [0x4f4350]
call esi
add esp, 0x14
xor al, al
jmp 0x416265
call fcn.004159f0
test al, al
je 0x415d41
mov esi, dword [0x524fac]
test esi, esi
je 0x415d24
cmp dword [edi + 0x14], 8
jb 0x415cf4
mov edi, dword [edi]
push edi
push str.Directory_to_delete:__s_is_a_special_path__skipping.
push 0x50cdf8
push 0x50cdf8
push 0x50e6dc
push str.OOBEUtils
push 0x28
mov ecx, esi
call dword [0x4f4350]
call esi
add esp, 0x1c
xor al, al
jmp 0x416265
mov eax, dword [0x524fb0]
test eax, eax
je 0x415dce
cmp dword [edi + 0x14], 8
jb 0x415d39
mov edi, dword [edi]
push edi
push str.Directory_to_delete:__s_is_a_special_path__skipping.
jmp 0x415daf
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x415d4b
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x415dd5
mov esi, dword [0x524fac]
test esi, esi
je 0x415d98
cmp dword [edi + 0x14], 8
jb 0x415d68
mov edi, dword [edi]
push edi
push str.Directory_to_delete_not_present_at_location__s
push 0x50cdf8
push 0x50cdf8
push 0x50e6dc
push str.OOBEUtils
push 0x28
mov ecx, esi
call dword [0x4f4350]
call esi
add esp, 0x1c
xor al, al
jmp 0x416265
mov eax, dword [0x524fb0]
test eax, eax
je 0x415dce
cmp dword [edi + 0x14], 8
jb 0x415da9
mov edi, dword [edi]
push edi
push str.Directory_to_delete_not_present_at_location__s
mov esi, dword [eax]
push 0x50e6dc
push 0x50cdf8
push 0x28
mov esi, dword [esi + 0x34]
mov ecx, esi
push eax
call dword [0x4f4350]
call esi
add esp, 0x18
xor al, al
jmp 0x416265
push edi
lea ecx, [ebp - 0x28]
call fcn.00402eb0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
push 1
xor eax, eax
mov dword [ebp - 0x40], 0
push 0x50cd90
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.00402a90
push 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004157c0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402a30
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x290]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x298], eax
cmp eax, 0xffffffff
je 0x416005
mov esi, eax
nop dword [eax + eax]
push 0x50cd94
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x415fe8
push 0x50cd98
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x415fe8
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x415eb1
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x415ea5
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.00402a90
xor eax, eax
mov dword [ebp - 0x40], 0
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x40], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415ed5
sub ecx, edx
lea eax, [ebp - 0x264]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x40]
call fcn.00402a90
push 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004157c0
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00402a30
test byte [ebp - 0x290], 0x10
je 0x415f3b
push 1
push 0
push 0
push 1
push 1
mov edx, ebx
lea ecx, [ebp - 0x28]
call fcn.00415c30
add esp, 0x14
jmp 0x415fe8
push ecx
mov dl, 1
lea ecx, [ebp - 0x28]
call fcn.00416380
add esp, 4
test al, al
jne 0x415fe8
mov esi, dword [0x524fac]
test esi, esi
je 0x415f8c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, esi
cmovae eax, dword [ebp - 0x28]
push eax
push str.File__s_failed_to_delete
push 0x50cdf8
push 0x50e6dc
push str.OOBEUtils
push 0x28
call dword [0x4f4350]
call esi
add esp, 0x18
jmp 0x415fc1
mov ecx, dword [0x524fb0]
test ecx, ecx
je 0x415fc1
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov esi, dword [ecx]
cmovae eax, dword [ebp - 0x28]
push eax
push 0x50e6dc
mov esi, dword [esi + 0x34]
push str.File__s_failed_to_delete
push 0x28
push ecx
mov ecx, esi
call dword [0x4f4350]
call esi
add esp, 0x14
mov eax, dword [ebx + 4]
lea ecx, [ebp - 0x28]
push ecx
cmp eax, dword [ebx + 8]
je 0x415fda
mov ecx, eax
call fcn.00402eb0
add dword [ebx + 4], 0x18
jmp 0x415fe2
push eax
mov ecx, ebx
call fcn.00403940
mov esi, dword [ebp - 0x298]
lea eax, [ebp - 0x290]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x415e60
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00402a30
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x41601e
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
test cl, 1
je 0x4160bf
mov esi, dword [0x524fac]
test esi, esi
je 0x416070
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x416044
mov eax, dword [edi]
push ecx
push eax
push str.Directory__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
push 0x50cdf8
push 0x50cdf8
push 0x50e6dc
push str.OOBEUtils
push 0x14
mov ecx, esi
call dword [0x4f4350]
call esi
add esp, 0x20
jmp 0x4160a9
mov eax, dword [0x524fb0]
test eax, eax
je 0x4160a9
cmp dword [edi + 0x14], 8
mov edx, edi
jb 0x416083
mov edx, dword [edi]
mov esi, dword [eax]
push ecx
push edx
push str.Directory__s_is_with_read_only._Its_attribute_is:__d._UnSetting_its_read_only_attr_and_retry_deleting
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x50e6dc
push 0x50cdf8
push 0x14
push eax
call dword [0x4f4350]
call esi
add esp, 0x1c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4160b3
mov eax, dword [edi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4160c9
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne byte [ebp - 0x291]
test eax, eax
je 0x41616e
cmp byte [ebp + 0x14], 0
je 0x41625f
mov esi, dword [0x524fac]
test esi, esi
je 0x41612d
cmp dword [edi + 0x14], 8
jb 0x4160fd
mov edi, dword [edi]
push 1
push edi
push str.Successfully_deleted_directory_from_path:__s._Recursive:__d
push 0x50cdf8
push 0x50cdf8
push 0x50e6dc
push str.OOBEUtils
push 0x1e
mov ecx, esi
call dword [0x4f4350]
call esi
add esp, 0x20
jmp 0x41625f
mov eax, dword [0x524fb0]
test eax, eax
je 0x41625f
cmp dword [edi + 0x14], 8
jb 0x416142
mov edi, dword [edi]
mov esi, dword [eax]
push 1
push edi
push str.Successfully_deleted_directory_from_path:__s._Recursive:__d
mov esi, dword [esi + 0x34]
mov ecx, esi
push 0x50e6dc
push 0x50cdf8
push 0x1e
push eax
call dword [0x4f4350]
call esi
add esp, 0x1c
jmp 0x41625f
mov ecx, dword [edi + 0x10]
mov eax, SysReAllocString
sub eax, ecx
cmp eax, 0x16
jb 0x416281
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x41618b
mov eax, dword [edi]
push ecx
push eax
push 0x16
push str.RemoveDirectoryFailed:
push ecx
push dword [ebp - 0x298]
lea ecx, [ebp - 0x40]
call fcn.00402c40
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x40]
mov eax, dword [ebx + 4]
push ecx
cmp eax, dword [ebx + 8]
je 0x4161c3
mov ecx, eax
call fcn.00402eb0
add dword [ebx + 4], 0x18
jmp 0x4161cb
push eax
mov ecx, ebx
call fcn.00403940
cmp dword [0x524fac], 0
je 0x416214
cmp dword [edi + 0x14], 8
jb 0x4161dc
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x524fac]
mov ecx, esi
push eax
push edi
push str.Failed_to_remove_directory__s_Error__d
push 0x50cdf8
push 0x50cdf8
push 0x50e6dc
push str.OOBEUtils
push 0x1e
call dword [0x4f4350]
call esi
add esp, 0x20
jmp 0x416257
mov esi, dword [0x524fb0]
test esi, esi
je 0x416257
cmp dword [edi + 0x14], 8
jb 0x416226
mov edi, dword [edi]
mov esi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esi + 0x34]
mov ecx, esi
push eax
push edi
push str.Failed_to_remove_directory__s_Error__d
push 0x50e6dc
push 0x50cdf8
push 0x1e
push dword [0x524fb0]
call dword [0x4f4350]
call esi
add esp, 0x1c
lea ecx, [ebp - 0x40]
call fcn.00402a30
mov al, byte [ebp - 0x291]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cc21a
mov esp, ebp
pop ebp
ret
call fcn.004020e0
int3