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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d91d7
mov eax, dword fs:[0]
push eax
sub esp, 0x310
mov eax, dword [0x669404]
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 - 0x10], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x31c], eax
xor ebx, ebx
mov dword [ebp - 0x318], ebx
mov dword [ebp - 4], ebx
lea eax, [ebx + 0x10]
call fcn.00549c70
mov dword [ebp - 0x10], esp
mov esi, esp
push 0xdead0009
push 0x11ebeef
lea ecx, [ebp - 0x30]
push ecx
call fcn.00404610
add esp, 0xc
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x4096e4
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [esi], edx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov edx, dword [eax + 8]
mov dword [esi + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esi + 0xc], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x30]
call fcn.00406010
mov eax, 4
call fcn.00549c70
mov dword [ebp - 0x10], esp
mov eax, esp
mov dword [ebp - 0x318], eax
cmp eax, ebx
je 0x409724
mov dword [eax], 0xabab011e
mov dword [ebp - 4], 0xffffffff
jmp 0x40973c
mov esi, dword [ebp - 0x31c]
mov eax, dword [ebp - 0x318]
cmp eax, ebx
je 0x409752
mov dword [eax], 0xcdcd011e
mov dword [ebp - 0x310], 6
test byte [0x679728], 1
jne 0x40978c
or dword [0x679728], 1
mov dword [ebp - 4], 3
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x310]
push ecx
mov edi, 0x6796d8
call fcn.00418b90
test al, al
je 0x4098db
mov dword [ebp - 0x80], 0xf
mov dword [ebp - 0x84], ebx
mov byte [ebp - 0x94], bl
mov dword [ebp - 4], 4
mov dword [ebp - 0x78], ebx
mov dword [ebp - 4], 5
mov dword [ebp - 0x74], ebx
mov dword [ebp - 4], 6
lea edi, [ebp - 0x94]
call fcn.004193b0
mov ecx, dword [eax + 0x1c]
cmp ecx, ebx
jne 0x4097f5
push 0xd
push str.EnterFunction
mov ecx, eax
call fcn.004044f0
jmp 0x409803
push str.EnterFunction
push ecx
call fcn.004046b0
add esp, 8
push 0x1ff
push ebx
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x74]
call fcn.00403c90
mov edi, eax
mov byte [ebp - 4], 7
test byte [0x679728], 1
jne 0x409845
or dword [0x679728], 1
mov byte [ebp - 4], 8
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov byte [ebp - 4], 7
mov ecx, 0x6796dc
mov dword [ebp - 0x314], ecx
mov eax, dword [0x6796dc]
mov edx, dword [eax + 4]
call edx
mov byte [ebp - 4], 9
mov ecx, dword [0x679724]
cmp ecx, ebx
je 0x40988d
cmp dword [edi + 0x14], 8
jb 0x409872
mov eax, dword [edi]
jmp 0x409874
mov eax, edi
mov edx, dword [ecx]
push 0x11e
push str.FileHandler::RemoveDirectoryW
push str.FileHandler.cpp
push eax
push 6
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 7
mov edx, dword [0x6796dc]
mov ecx, 0x6796dc
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x1c], 8
jb 0x4098b8
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
xor edx, edx
mov word [ebp - 0x30], dx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x94]
push eax
call fcn.00419280
mov eax, dword [ebp - 0x318]
cmp eax, ebx
je 0x4098eb
mov dword [eax], 0xcdcd011f
mov dword [ebp - 0x310], 6
test byte [0x679728], 1
jne 0x409925
or dword [0x679728], 1
mov dword [ebp - 4], 0xa
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x310]
push ecx
mov edi, 0x6796d8
call fcn.00418b90
test al, al
je 0x409a73
mov dword [ebp - 0x80], 0xf
mov dword [ebp - 0x84], ebx
mov byte [ebp - 0x94], bl
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x78], ebx
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], ebx
mov dword [ebp - 4], 0xd
push esi
push str.EnterFunction_Path_
lea edi, [ebp - 0x94]
call fcn.004193b0
mov ecx, eax
call fcn.004162f0
add esp, 4
push eax
call fcn.004049a0
add esp, 8
push 0x1ff
push ebx
lea edx, [ebp - 0x30]
push edx
mov eax, edi
push eax
call fcn.00419470
mov ecx, eax
call fcn.00403c90
mov edi, eax
mov byte [ebp - 4], 0xe
test byte [0x679728], 1
jne 0x4099d9
or dword [0x679728], 1
mov byte [ebp - 4], 0xf
call fcn.00418470
push 0x5ea290
call fcn.00546cf7
add esp, 4
mov byte [ebp - 4], 0xe
mov ecx, 0x6796dc
mov dword [ebp - 0x314], ecx
mov edx, dword [0x6796dc]
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x10
mov ecx, dword [0x679724]
cmp ecx, ebx
je 0x409a22
cmp dword [edi + 0x14], 8
jb 0x409a07
mov eax, dword [edi]
jmp 0x409a09
mov eax, edi
mov edx, dword [ecx]
push 0x11f
push str.FileHandler::RemoveDirectoryW
push str.FileHandler.cpp
push eax
push 6
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 0xe
mov edx, dword [0x6796dc]
mov ecx, 0x6796dc
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], 0xd
cmp dword [ebp - 0x1c], 8
jb 0x409a4d
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, 7
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
xor edx, edx
mov word [ebp - 0x30], dx
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x94]
push eax
call fcn.00419280
jmp 0x409a78
mov edi, 7
push esi
lea ecx, [ebp - 0x309]
call fcn.0040b2e0
add esp, 4
test al, al
je 0x409eef
cmp byte [ebp - 0x309], bl
jne 0x409a9e
mov al, 1
jmp 0x409eef
mov byte [ebp - 0x309], 1
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x60], ebx
xor ecx, ecx
mov word [ebp - 0x70], cx
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp - 0x70]
call fcn.00406730
mov dword [ebp - 4], 0x11
push 2
push 0x613790
lea ecx, [ebp - 0x70]
call fcn.004044f0
cmp dword [ebp - 0x5c], 8
mov eax, dword [ebp - 0x70]
jae 0x409adf
lea eax, [ebp - 0x70]
lea edx, [ebp - 0x308]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x310], eax
cmp eax, 0xffffffff
jne 0x409b1a
mov dword [ebp - 4], eax
cmp dword [ebp - 0x5c], 8
jb 0x409b0e
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x5c], edi
xor ecx, ecx
xor al, al
jmp 0x409ee8
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], ebx
xor edx, edx
mov word [ebp - 0x54], dx
lea eax, [ebp - 0x2dc]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409b40
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x2dc]
push eax
lea ecx, [ebp - 0x54]
call fcn.00406180
mov byte [ebp - 4], 0x12
push 1
push 0x6135f8
mov ecx, dword [ebp - 0x44]
push ecx
push ebx
lea ecx, [ebp - 0x54]
call fcn.00416c10
test eax, eax
je 0x409c5d
push 2
push 0x613798
mov edx, dword [ebp - 0x44]
push edx
push ebx
lea ecx, [ebp - 0x54]
call fcn.00416c10
test eax, eax
je 0x409c5d
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
xor eax, eax
mov word [ebp - 0x30], ax
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [ebp - 0x30]
call fcn.00406730
mov byte [ebp - 4], 0x13
push 1
push 0x6135f4
lea ecx, [ebp - 0x30]
call fcn.004044f0
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x30]
call fcn.00406070
test byte [ebp - 0x308], 0x10
je 0x409bfe
lea edx, [ebp - 0x30]
push edx
call fcn.00409670
add esp, 4
mov byte [ebp - 0x309], al
cmp al, bl
je 0x409d7d
jmp 0x409c17
cmp dword [ebp - 0x20], ebx
je 0x409c17
lea eax, [ebp - 0x30]
push eax
call fcn.00408b50
add esp, 4
test al, al
je 0x409cb9
mov byte [ebp - 4], 0x12
cmp dword [ebp - 0x1c], 8
jb 0x409c2e
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
xor edx, edx
mov word [ebp - 0x30], dx
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x40], 8
jb 0x409c55
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov word [ebp - 0x54], cx
jmp 0x409c7a
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x40], 8
jb 0x409c74
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov word [ebp - 0x54], ax
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 7
lea ecx, [ebp - 0x308]
push ecx
mov edx, dword [ebp - 0x310]
push edx
call edi
test eax, eax
jne 0x409b20
cmp byte [ebp - 0x309], bl
je 0x409de1
cmp dword [esi + 0x14], 8
jb 0x409d9d
mov eax, dword [esi]
jmp 0x409d9f
mov eax, dword [ebp - 0x318]
cmp eax, ebx
je 0x409cc9
mov dword [eax], 0xcdcd014b
mov dword [ebp - 0x314], 2
lea eax, [ebp - 0x314]
push eax
call fcn.00418640
mov edi, eax
call fcn.00418b90
test al, al
je 0x409d7d
lea ecx, [ebp - 0xb8]
push ecx
call fcn.00419220
mov byte [ebp - 4], 0x14
lea edi, [ebp - 0xb8]
call fcn.004193b0
mov edx, str.DeleteFileW_failed
mov esi, eax
call fcn.00418da0
lea ecx, [ebp - 0x30]
mov esi, eax
call fcn.00418d70
push 0x1ff
push ebx
lea edx, [ebp - 0x8c]
push edx
mov ecx, dword [ebp - 0x98]
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x15
push 0x14b
push str.FileHandler::RemoveDirectoryW
push str.FileHandler.cpp
push 2
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x8c]
call fcn.004068c0
mov byte [ebp - 4], 0x13
mov eax, edi
push eax
call fcn.00419280
xor ebx, ebx
mov esi, dword [ebp - 0x31c]
mov byte [ebp - 0x309], bl
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x30]
call fcn.004068c0
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0x54]
call fcn.004068c0
jmp 0x409de1
mov eax, esi
push eax
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call edi
cmp eax, ebx
jne 0x409de1
cmp dword [esi + 0x14], 8
jb 0x409db6
mov eax, dword [esi]
jmp 0x409db8
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, ebx
je 0x409de1
cmp dword [esi + 0x14], 8
jb 0x409dd2
mov eax, dword [esi]
jmp 0x409dd4
mov eax, esi
push eax
call edi
cmp eax, ebx
jne 0x409de1
mov byte [ebp - 0x309], bl
mov ecx, dword [ebp - 0x310]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x318]
cmp eax, ebx
je 0x409dfe
mov dword [eax], 0xcdcd0165
mov dword [ebp - 0x314], 6
lea edx, [ebp - 0x314]
push edx
call fcn.00418640
mov edi, eax
call fcn.00418b90
test al, al
je 0x409ebf
mov dword [ebp - 0x24], 0xf
mov dword [ebp - 0x28], ebx
mov byte [ebp - 0x38], bl
mov byte [ebp - 4], 0x16
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 0x17
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 0x18
push esi
push str.ExitFunction_Path_
lea edi, [ebp - 0x38]
call fcn.004193b0
mov ecx, eax
call fcn.004162f0
add esp, 4
push eax
call fcn.004049a0
add esp, 8
push 0x1ff
push ebx
lea eax, [ebp - 0x8c]
push eax
mov ecx, edi
push ecx
call fcn.00419470
mov ecx, eax
call fcn.00403c90
mov ebx, eax
mov byte [ebp - 4], 0x19
push 0x165
push str.FileHandler::RemoveDirectoryW
push str.FileHandler.cpp
push 6
call fcn.00418640
mov ecx, eax
call fcn.00418c40
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x8c]
call fcn.004068c0
mov byte [ebp - 4], 0x11
mov edx, edi
push edx
call fcn.00419280
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x5c], 8
jb 0x409ed9
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x5c], 7
xor ecx, ecx
mov al, byte [ebp - 0x309]
mov word [ebp - 0x70], cx
mov dword [ebp - 0x60], ebx
lea esp, [ebp - 0x32c]
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.00546bdc
mov esp, ebp
pop ebp
ret