Function at 0x50b510
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x5db4c8
mov eax, dword fs:[0]
push eax
sub esp, 0x32c
mov eax, dword [0x66d4f4]
xor eax, esp
mov dword [esp + 0x328], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66d4f4]
xor eax, esp
push eax
lea eax, [esp + 0x340]
mov dword fs:[0], eax
mov ecx, dword [esp + 0x350]
xor ebp, ebp
cmp ecx, ebp
mov dword [esp + 0x18], 1
je 0x50b932
cmp byte [ecx], 0
je 0x50b932
mov edi, 0xf
mov eax, ecx
mov dword [esp + 0x1f8], edi
mov dword [esp + 0x1f4], ebp
mov byte [esp + 0x1e4], 0
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x50b590
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x1e8]
call fcn.00408ea0
lea eax, [esp + 0xd4]
push eax
lea ecx, [esp + 0x1e4]
mov dword [esp + 0x34c], 2
call fcn.004252f0
mov ecx, eax
call fcn.00425780
cmp byte [eax], 0x5c
je 0x50b5e4
push 0x5c
push 1
lea ecx, [esp + 0x1e8]
call fcn.00406640
push 1
push 2
lea ecx, [esp + 0xe8]
call fcn.0040a750
push 0x60123c
lea ecx, [esp + 0x1e4]
push ecx
lea edx, [esp + 0xe8]
push edx
mov byte [esp + 0x354], 3
call fcn.00408950
add esp, 8
push eax
call fcn.00409270
add esp, 8
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xe4]
call fcn.00408c00
mov ebx, 0x10
cmp dword [eax + 0x18], ebx
jb 0x50b642
mov eax, dword [eax + 4]
jmp 0x50b645
add eax, 4
lea ecx, [esp + 0x1fc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp dword [esp + 0x50], ebx
mov esi, eax
mov dword [esp + 0x14], esi
jb 0x50b66d
mov edx, dword [esp + 0x3c]
push edx
call fcn.005a1b1d
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebp
mov byte [esp + 0x3c], 0
jne 0x50b746
push 1
push 2
lea ecx, [esp + 0x5c]
call fcn.0040a750
mov byte [esp + 0x348], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x58]
push str.FindFirstFile_INVALID_HANDLE_VALUE:
push eax
call fcn.00409270
add esp, 8
mov ecx, eax
call fcn.00419990
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x58]
call fcn.00408c00
cmp dword [eax + 0x18], ebx
mov byte [esp + 0x348], 5
jb 0x50b6d8
mov eax, dword [eax + 4]
jmp 0x50b6db
add eax, 4
push eax
push str.BaseLib::CxxDeleteDirectoryFiles
push 0x84d
push str..common_function.cpp
push 0xf0000000
call fcn.00408f70
mov ecx, eax
call fcn.00512650
cmp dword [esp + 0x50], ebx
jb 0x50b70f
mov edx, dword [esp + 0x3c]
push edx
call fcn.005a1b1d
add esp, 4
lea ecx, [esp + 0xa0]
mov byte [esp + 0x348], 3
call fcn.00409510
lea eax, [esp + 0xa0]
mov ebp, vtable.std::ios_base.0
push eax
mov dword [esp + 0xa4], ebp
call fcn.005d9cc4
add esp, 4
xor esi, esi
jmp 0x50b8c4
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebp, vtable.std::ios_base.0
push 1
call esi
push 1
push 2
lea ecx, [esp + 0x5c]
call fcn.0040a750
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x1e4]
push edx
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x354], 6
call fcn.00408950
add esp, 8
push eax
call fcn.00409270
mov ecx, dword [esp + 0x204]
and ecx, ebx
add esp, 8
cmp cl, bl
jne 0x50b807
cmp byte [esp + 0x228], 0x2e
jne 0x50b7ce
lea ecx, [esp + 0xa0]
mov byte [esp + 0x348], 3
call fcn.00409510
lea edx, [esp + 0xa0]
push edx
jmp 0x50b88b
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x58]
call fcn.00408c00
cmp dword [eax + 0x18], ebx
mov byte [esp + 0x348], 7
jb 0x50b7ee
mov eax, dword [eax + 4]
jmp 0x50b7f1
add eax, 4
push eax
call fcn.00509180
add esp, 4
cmp dword [esp + 0x34], ebx
jb 0x50b86f
mov ecx, dword [esp + 0x20]
push ecx
jmp 0x50b867
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x58]
call fcn.00408c00
cmp dword [eax + 0x18], ebx
jb 0x50b81f
mov eax, dword [eax + 4]
jmp 0x50b822
add eax, 4
push 0
push eax
call edi
cmp dword [esp + 0x34], ebx
jb 0x50b83a
mov eax, dword [esp + 0x20]
push eax
call fcn.005a1b1d
add esp, 4
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x58]
call fcn.00408c00
cmp dword [eax + 0x18], ebx
jb 0x50b852
mov eax, dword [eax + 4]
jmp 0x50b855
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x34], ebx
jb 0x50b86f
mov edx, dword [esp + 0x20]
push edx
call fcn.005a1b1d
add esp, 4
lea ecx, [esp + 0xa0]
mov byte [esp + 0x348], 3
call fcn.00409510
lea eax, [esp + 0xa0]
push eax
mov dword [esp + 0xa4], ebp
call fcn.005d9cc4
mov edx, dword [esp + 0x18]
add esp, 4
lea ecx, [esp + 0x1fc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x50b757
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x12c]
mov byte [esp + 0x348], 2
call fcn.00409510
lea ecx, [esp + 0x12c]
push ecx
mov dword [esp + 0x130], ebp
call fcn.005d9cc4
add esp, 4
cmp dword [esp + 0x1f8], ebx
jb 0x50b908
mov edx, dword [esp + 0x1e4]
push edx
call fcn.005a1b1d
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x340]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x328]
xor ecx, esp
call fcn.005bd2d7
add esp, 0x338
ret
push 1
push 2
lea ecx, [esp + 0x168]
call fcn.0040a750
lea eax, [esp + 0x160]
push 0x601454
push eax
mov dword [esp + 0x350], ebp
call fcn.00409270
add esp, 8
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x164]
call fcn.00408c00
mov ebx, 0x10
cmp dword [eax + 0x18], ebx
mov byte [esp + 0x348], 1
jb 0x50b986
mov eax, dword [eax + 4]
jmp 0x50b989
add eax, 4
push eax
push str.BaseLib::CxxDeleteDirectoryFiles
push 0x83c
push str..common_function.cpp
push 0xf0000000
call fcn.00408f70
mov ecx, eax
call fcn.00512650
cmp dword [esp + 0x34], ebx
jb 0x50b9bd
mov edx, dword [esp + 0x20]
push edx
call fcn.005a1b1d
add esp, 4
lea ecx, [esp + 0x1ac]
mov dword [esp + 0x348], 0xffffffff
call fcn.00409510
lea eax, [esp + 0x1ac]
push eax
mov dword [esp + method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.005d9cc4
add esp, 4
xor eax, eax
jmp 0x50b90a