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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435977
mov eax, dword fs:[0]
push eax
sub esp, 0x2f0
mov eax, dword [0x4433ec]
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 esi, dword [ebp + 8]
push esi
push str._s__.
lea eax, [ebp - 0x11c]
push 0x104
push eax
mov dword [ebp - 0x2f8], ecx
mov dword [ebp - 0x2f4], esi
call fcn.0041cd9f
push 0x140
xor ebx, ebx
lea ecx, [ebp - 0x2ec]
push ebx
push ecx
call fcn.004233e0
add esp, 0x1c
lea edx, [ebp - 0x2ec]
push edx
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x2f0], eax
lea edi, [ebx + 0xf]
mov edx, dword [ebp - 0x2f0]
lea ecx, [ebp - 0x2ec]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp - 0x2fc], eax
mov ecx, 0x43bd08
lea eax, [ebp - 0x2c0]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x415940
cmp dl, bl
je 0x41593c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x415940
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x415920
xor eax, eax
jmp 0x415945
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x415bd4
mov ecx, 0x43bd0c
lea eax, [ebp - 0x2c0]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x415978
cmp dl, bl
je 0x415974
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x415978
add eax, 2
add ecx, 2
cmp dl, bl
jne 0x415958
xor eax, eax
jmp 0x41597d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x415bd4
push ebx
push 0x43a501
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x128], ebx
mov byte [ebp - 0x138], bl
call fcn.00407f10
push esi
lea eax, [ebp - 0x138]
push eax
lea ecx, [ebp - 0x1a8]
push ecx
mov dword [ebp - 4], ebx
call fcn.0040ef90
add esp, 0xc
push eax
mov eax, 0x43c44c
lea ecx, [ebp - 0x18c]
mov byte [ebp - 4], 1
call fcn.0040d550
add esp, 4
push eax
lea eax, [ebp - 0x2c0]
lea ecx, [ebp - 0x170]
mov byte [ebp - 4], 2
call fcn.0040d550
add esp, 4
mov esi, eax
lea edx, [ebp - 0x138]
cmp edx, esi
je 0x415a68
cmp dword [ebp - 0x124], 0x10
jb 0x415a17
mov eax, dword [ebp - 0x138]
push eax
call fcn.0041b70e
add esp, 4
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x128], ebx
mov byte [ebp - 0x138], bl
cmp dword [esi + 0x14], 0x10
jae 0x415a46
mov eax, dword [esi + 0x10]
inc eax
push eax
lea ecx, [ebp - 0x138]
push esi
push ecx
call fcn.0041ba90
add esp, 0xc
jmp 0x415a50
mov edx, dword [esi]
mov dword [ebp - 0x138], edx
mov dword [esi], ebx
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x128], eax
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x124], ecx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
cmp dword [ebp - 0x15c], 0x10
jb 0x415a80
mov edx, dword [ebp - 0x170]
push edx
call fcn.0041b70e
add esp, 4
cmp dword [ebp - 0x178], 0x10
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x160], ebx
mov byte [ebp - 0x170], bl
jb 0x415aaa
mov eax, dword [ebp - 0x18c]
push eax
call fcn.0041b70e
add esp, 4
cmp dword [ebp - 0x194], 0x10
mov dword [ebp - 0x178], edi
mov dword [ebp - 0x17c], ebx
mov byte [ebp - 0x18c], bl
jb 0x415ad4
mov ecx, dword [ebp - 0x1a8]
push ecx
call fcn.0041b70e
add esp, 4
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x144], ebx
mov byte [ebp - 0x154], bl
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x138]
push edx
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 4
call fcn.00407180
cmp dword [ebp - 0x124], 0x10
mov esi, dword [ebp - 0x138]
jae 0x415b14
lea esi, [ebp - 0x138]
call fcn.004157d0
test eax, eax
je 0x415b66
mov eax, dword [ebp - 0x138]
mov esi, 0x10
cmp dword [ebp - 0x124], esi
jae 0x415b36
lea eax, [ebp - 0x138]
push eax
push str.:_s_n
call fcn.0041ce4b
mov eax, dword [ebp - 0x154]
add esp, 8
cmp dword [ebp - 0x140], esi
jae 0x415b58
lea eax, [ebp - 0x154]
mov ecx, dword [ebp - 0x2f8]
push eax
call fcn.00415870
jmp 0x415b87
cmp dword [ebp - 0x140], 0x10
mov eax, dword [ebp - 0x154]
jae 0x415b7b
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, 0x10
cmp dword [ebp - 0x140], esi
jb 0x415b9e
mov eax, dword [ebp - 0x154]
push eax
call fcn.0041b70e
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x140], edi
mov dword [ebp - 0x144], ebx
mov byte [ebp - 0x154], bl
cmp dword [ebp - 0x124], esi
jb 0x415bce
mov ecx, dword [ebp - 0x138]
push ecx
call fcn.0041b70e
add esp, 4
mov esi, dword [ebp - 0x2f4]
cmp dword [ebp - 0x2fc], ebx
jne 0x4158f8
mov edx, dword [ebp - 0x2f0]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x415c0a
push esi
push 0x43c45c
call fcn.0041ce4b
add esp, 8
xor eax, eax
jmp 0x415c0f
mov eax, 1
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.0041b429
mov esp, ebp
pop ebp
ret 4