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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7357a0
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x82384c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.004144c0
cmp eax, 3
ja 0x41236f
xor al, al
jmp 0x4125c5
lea ecx, [ebp - 0x40]
call fcn.00405770
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00405770
mov byte [ebp - 4], 1
mov dword [ebp - 0x2c8], 0
mov byte [ebp - 0x2c1], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x28]
call fcn.004147c0
lea ecx, [ebp - 0x28]
call fcn.00405570
movzx ecx, al
test ecx, ecx
jne 0x4123e1
lea edx, [ebp - 0x2cc]
push edx
lea ecx, [ebp - 0x28]
call fcn.00414650
mov ecx, eax
call fcn.004142c0
movzx eax, word [eax]
cmp eax, 0x5c
je 0x4123e1
push 0x7ed1c8
lea ecx, [ebp - 0x28]
call fcn.004055b0
lea ecx, [ebp - 0x28]
push ecx
call fcn.00411850
add esp, 4
movzx edx, al
test edx, edx
jne 0x412421
mov byte [ebp - 0x2c2], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00405650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00405650
mov al, byte [ebp - 0x2c2]
jmp 0x4125c5
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x40]
call fcn.004147c0
push 0x7ed1cc
lea ecx, [ebp - 0x40]
call fcn.004055b0
lea ecx, [ebp - 0x2c0]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00405580
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2c8], eax
mov edx, dword [ebp - 0x2c0]
and edx, 0x10
je 0x4124e5
push 0x7ed1d4
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x412491
push 0x7ed1d8
lea ecx, [ebp - 0x294]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x412496
jmp 0x412532
lea ecx, [ebp - 0x58]
call fcn.00405770
mov byte [ebp - 4], 2
lea edx, [ebp - 0x28]
push edx
lea ecx, [ebp - 0x58]
call fcn.004147c0
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x58]
call fcn.004055b0
lea ecx, [ebp - 0x58]
push ecx
call fcn.00412330
add esp, 4
movzx edx, al
test edx, edx
jne 0x4124d7
mov byte [ebp - 0x2c1], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x58]
call fcn.00405650
jmp 0x412532
lea ecx, [ebp - 0x70]
call fcn.00405770
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x70]
call fcn.004147c0
lea ecx, [ebp - 0x294]
push ecx
lea ecx, [ebp - 0x70]
call fcn.004055b0
lea ecx, [ebp - 0x70]
call fcn.00405580
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x412526
mov byte [ebp - 0x2c1], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00405650
lea edx, [ebp - 0x2c0]
push edx
mov eax, dword [ebp - 0x2c8]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x412456
mov ecx, dword [ebp - 0x2c8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
call fcn.00405580
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x412598
mov byte [ebp - 0x2c3], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00405650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00405650
mov al, byte [ebp - 0x2c3]
jmp 0x4125c5
mov dl, byte [ebp - 0x2c1]
mov byte [ebp - 0x2c4], dl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00405650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00405650
mov al, byte [ebp - 0x2c4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fb522
mov esp, ebp
pop ebp
ret