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

Disassembly:
push 0xffffffffffffffff
push 0x42025e
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x425544]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x425544]
xor eax, esp
push eax
lea eax, [esp + 0x19c]
mov dword fs:[0], eax
lea eax, [esp + 0x1ac]
xor ebx, ebx
push eax
lea esi, [esp + 0x20]
mov dword [esp + 0x1a8], ebx
call fcn.00404240
add esp, 4
mov byte [esp + 0x1a4], 1
mov eax, dword [esp + 0x20]
mov ebp, 0x10
cmp dword [esp + 0x34], ebp
jae 0x402b33
lea eax, [esp + 0x20]
lea ecx, [esp + 0x54]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x402b93
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x34], ebp
mov esi, eax
jb 0x402b63
mov edx, dword [esp + 0x20]
push edx
call fcn.0041658d
add esp, 4
cmp dword [esp + 0x1c4], ebp
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
jb 0x402b8c
mov eax, dword [esp + 0x1b0]
push eax
call fcn.0041658d
add esp, 4
mov eax, esi
jmp 0x402da0
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x1b4]
push ecx
lea ecx, [esp + 0x44]
mov byte [esp + 0x1b0], 2
call fcn.004030b0
push 1
push 0x42311c
lea eax, [esp + 0x40]
call fcn.004034a0
lea eax, [esp + 0x80]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402be0
sub eax, edx
push eax
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x40]
call fcn.004034a0
mov edi, 0x42310c
lea esi, [esp + 0x80]
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x402cf6
mov edi, 0x423110
lea esi, [esp + 0x80]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x402cf6
test byte [esp + 0x54], 0x10
je 0x402ce1
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x5c]
mov edi, 0xf
mov dword [ecx + 0x18], edi
mov dword [ecx + 0x14], ebx
push eax
mov byte [ecx + 4], bl
call fcn.004030b0
call fcn.00402ac0
mov esi, eax
add esp, 0x1c
cmp esi, ebx
je 0x402cf6
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x50], ebp
jb 0x402c92
mov edx, dword [esp + 0x3c]
push edx
call fcn.0041658d
add esp, 4
cmp dword [esp + 0x34], ebp
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
jb 0x402cb1
mov eax, dword [esp + 0x20]
push eax
call fcn.0041658d
add esp, 4
cmp dword [esp + 0x1c4], ebp
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
jb 0x402b8c
mov ecx, dword [esp + 0x1b0]
push ecx
call fcn.0041658d
add esp, 4
mov eax, esi
jmp 0x402da0
cmp dword [esp + 0x50], ebp
mov eax, dword [esp + 0x3c]
jae 0x402cef
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x54]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esp + 0x1a4], 1
cmp dword [esp + 0x50], ebp
jb 0x402d30
mov eax, dword [esp + 0x3c]
push eax
call fcn.0041658d
add esp, 4
cmp esi, 0x12
jne 0x402b93
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x1c4], ebp
mov eax, dword [esp + 0x1b0]
jae 0x402d5b
lea eax, [esp + 0x1b0]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp dword [esp + 0x34], ebp
jb 0x402d75
mov eax, dword [esp + 0x20]
push eax
call fcn.0041658d
add esp, 4
cmp dword [esp + 0x1c4], ebp
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
jb 0x402d9e
mov ecx, dword [esp + 0x1b0]
push ecx
call fcn.0041658d
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.00414cc2
add esp, 0x194
ret