Function at 0x418820
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52be88
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x588790]
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
xor ebx, ebx
mov edi, str._ZFile::DeleteDir_Start
mov dword [ebp - 4], ebx
call fcn.00408b90
mov edi, 7
xor eax, eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2b8], esp
push 0xffffffffffffffff
mov byte [ebp - 4], 1
push ebx
lea edx, [ebp + 8]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.00404580
lea eax, [ebp - 0x64]
push eax
call fcn.00420700
add esp, 0x20
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00408160
mov esi, 8
mov byte [ebp - 4], 1
cmp dword [ebp - 0x50], esi
jb 0x4188c8
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004ad85d
add esp, 4
push 4
push 0x53a950
lea ecx, [ebp - 0x48]
call fcn.00408780
xor edx, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], esi
jae 0x4188f2
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x2b4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2c0], eax
cmp eax, 0xffffffff
jne 0x418980
mov edi, str._FindFirstFileW_INVALID_HANDLE_VALUE
call fcn.00408b90
mov edi, str._ZFile::DeleteDir_End
call fcn.00408b90
cmp dword [ebp - 0x18], esi
jb 0x418930
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004ad85d
add esp, 4
xor eax, eax
mov edi, 7
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
cmp dword [ebp - 0x34], esi
jb 0x418952
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004ad85d
add esp, 4
xor edx, edx
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
jb 0x418970
mov eax, dword [ebp + 8]
push eax
call fcn.004ad85d
add esp, 4
xor al, al
jmp 0x418bb1
push 0x537b68
lea ecx, [ebp - 0x288]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x418ab8
push 0x537b6c
lea edx, [ebp - 0x288]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x418ab8
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2b8], esp
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 8]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push eax
mov byte [ecx], bl
call fcn.00404580
lea ecx, [ebp - 0x64]
push ecx
call fcn.00420700
add esp, 0x20
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00408160
mov byte [ebp - 4], 3
cmp dword [ebp - 0x50], esi
jb 0x418a05
mov edx, dword [ebp - 0x64]
push edx
call fcn.004ad85d
add esp, 4
push 1
push 0x536fac
lea ecx, [ebp - 0x2c]
call fcn.00408780
lea eax, [ebp - 0x288]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x418a20
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408780
sub esp, 0x1c
mov dword [ebp - 0x2b8], esp
mov eax, esp
sub esp, 0x1c
mov ecx, esp
xor edx, edx
test byte [ebp - 0x2b4], 0x10
mov dword [ebp - 0x2b8], esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
mov word [ecx], dx
push ebx
lea edx, [ebp - 0x2c]
push edx
je 0x418a91
mov dword [ebp - 0x2b8], eax
call fcn.00401c60
mov eax, dword [ebp - 0x2b8]
push eax
call fcn.00420800
add esp, 0x20
call fcn.00418820
jmp 0x418ab0
mov dword [ebp - 0x2b8], eax
call fcn.00401c60
mov eax, dword [ebp - 0x2b8]
push eax
call fcn.00420800
add esp, 0x20
call fcn.00418660
mov edi, 7
add esp, 0x1c
mov ecx, dword [ebp - 0x2c0]
lea eax, [ebp - 0x2b4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x418980
mov edx, dword [ebp - 0x2c0]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2b8], esp
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 8]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push eax
mov byte [ecx], bl
call fcn.00404580
lea ecx, [ebp - 0x64]
push ecx
call fcn.00420700
add esp, 0x20
cmp dword [eax + 0x14], esi
jb 0x418b17
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne byte [ebp - 0x2b9]
cmp dword [ebp - 0x50], esi
jb 0x418b38
mov edx, dword [ebp - 0x64]
push edx
call fcn.004ad85d
add esp, 4
cmp byte [ebp - 0x2b9], bl
jne 0x418b54
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edi, str._RemoveDirectoryW_Fail_ErrorCode:
call fcn.00408c90
add esp, 4
mov edi, str._ZFile::DeleteDir_End
call fcn.00408b90
cmp dword [ebp - 0x18], esi
jb 0x418b6f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004ad85d
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp dword [ebp - 0x34], esi
jb 0x418b91
mov edx, dword [ebp - 0x48]
push edx
call fcn.004ad85d
add esp, 4
xor eax, eax
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
jb 0x418baf
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ad85d
add esp, 4
mov al, 1
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.00503edf
mov esp, ebp
pop ebp
ret