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

Disassembly:
push 0x2a4
mov eax, 0x5b9cea
call fcn.005718de
mov dword [ebp - 0x2ac], edx
mov esi, ecx
push 0x250
lea eax, [ebp - 0x2a8]
mov bl, 1
push 0
push eax
call fcn.00589540
add esp, 0xc
lea ecx, [ebp - 0x28]
push esi
call fcn.00410fa8
and dword [ebp - 4], 0
push 0x5f5a10
call fcn.0058e083
mov esi, dword [ebp - 0x18]
mov edx, eax
mov dword [ebp - 0x2b0], edx
pop ecx
test edx, edx
je 0x43e4ca
test esi, esi
je 0x43e4ca
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
lea ecx, [esi - 1]
cmovae eax, dword [ebp - 0x28]
lea ecx, [eax + ecx*2]
test edx, edx
je 0x43e4a5
movzx edi, word [ecx]
mov eax, 0x5f5a10
cmp word [eax], di
je 0x43e49b
add eax, 2
sub edx, 1
jne 0x43e48c
xor eax, eax
test eax, eax
jne 0x43e4b9
mov edx, dword [ebp - 0x2b0]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
cmp ecx, eax
je 0x43e4ca
sub ecx, 2
jmp 0x43e480
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
sub ecx, eax
sar ecx, 1
jmp 0x43e4cd
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp ecx, eax
je 0x43e4ea
mov esi, 0x5f5a10
push esi
call fcn.0058e083
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0040d756
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x58]
call fcn.00410fa8
mov esi, 0x5fa548
mov byte [ebp - 4], 1
push esi
call fcn.0058e083
pop ecx
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.0040d756
cmp dword [ebp - 0x44], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43e537
xor bl, bl
jmp 0x43e634
mov edi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea eax, [ebp - 0x27c]
push eax
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x40]
call fcn.0042075b
pop ecx
mov byte [ebp - 4], 2
test byte [ebp - 0x2a8], 0x10
je 0x43e5b7
lea eax, [ebp - 0x27c]
push 0x5fa490
push eax
call fcn.0058e09e
pop ecx
pop ecx
test eax, eax
je 0x43e5f9
lea eax, [ebp - 0x27c]
push 0x5fa494
push eax
call fcn.0058e09e
pop ecx
pop ecx
test eax, eax
je 0x43e5f9
push dword [ebp + 8]
mov edx, dword [ebp - 0x2ac]
lea ecx, [ebp - 0x40]
call fcn.0043e415
neg al
pop ecx
sbb al, al
and bl, al
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call edi
jmp 0x43e5f9
cmp byte [ebp + 8], 0
lea eax, [ebp - 0x40]
je 0x43e5d5
cmp dword [ebp - 0x2c], 8
push 4
cmovae eax, dword [ebp - 0x40]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x43e5e4
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x43e5f9
mov ecx, dword [ebp - 0x2ac]
lea eax, [ebp - 0x40]
push eax
xor bl, bl
call fcn.0040f491
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0041164f
lea eax, [ebp - 0x2a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x43e53d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.0041164f
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0041164f
mov al, bl
call fcn.00571888
ret