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

Disassembly:
push 0x2a8
mov eax, 0x59699c
call fcn.00410ff3
mov dword [ebp - 0x2ac], ecx
lea eax, [ebp + 8]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], ebx
call fcn.00402647
mov byte [ebp - 4], 1
call fcn.004159f2
test al, al
je 0x403ecc
pop edx
pop eax
pop eax
push ebp
push edx
pop ebx
push esi
pop ecx
push esp
push eax
push esp
pop ebp
push ebx
pop ebp
pop ecx
pop ebp
push eax
pop edx
push ebx
pop ebp
push ebp
mov esi, 0x59bb64
push esi
call fcn.00434fd1
pop ecx
push eax
push esi
lea ecx, [ebp - 0x58]
call fcn.00401cf3
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
mov dword [ebp - 0x2b0], esi
cmp esi, 0xffffffff
je 0x404081
push 0x2e
pop ebx
lea eax, [ebp - 0x2a8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x404081
cmp word [ebp - 0x27c], bx
je 0x403f0f
cmp word [ebp - 0x27a], 0
je 0x403f0f
cmp word [ebp - 0x27a], bx
jne 0x403f4b
cmp word [ebp - 0x278], 0
je 0x403f0f
call fcn.00415671
test al, al
je 0x403f73
pop esi
pop esi
pop eax
push edi
pop ebx
push edx
pop ebx
push edi
push edx
push ebp
pop esp
push esi
pop edx
push eax
pop ecx
pop eax
pop ebx
push edx
push ebp
pop edi
pop esi
push eax
push edi
pop esi
push esi
pop ebp
pop eax
push eax
push ebp
pop ebp
push ebp
call fcn.00415ac1
test al, al
je 0x403f8e
push edi
push esp
push esi
push esp
pop ecx
pop ecx
push esi
push ebp
push ebp
pop edi
pop edx
pop esp
push esp
push edi
pop esi
pop esi
pop esp
pop ebp
xor eax, eax
mov dword [ebp - 0x2c], 7
xor ebx, ebx
mov word [ebp - 0x40], ax
mov dword [ebp - 0x30], ebx
cmp word [ebp - 0x27c], ax
je 0x403fb6
lea eax, [ebp - 0x27c]
push eax
call fcn.00434fd1
pop ecx
push eax
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00401f62
test byte [ebp - 0x2a8], 0x10
lea eax, [ebp + 8]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
push eax
je 0x404023
call fcn.00402647
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x28]
call fcn.00401c54
mov edi, 0x59bb6c
push edi
call fcn.00434fd1
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.00401cf3
sub esp, 0x18
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00402647
mov ecx, dword [ebp - 0x2ac]
call fcn.00403e84
jmp 0x40405c
call fcn.00402647
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
lea ecx, [ebp - 0x28]
call fcn.00401c54
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
sub esp, 0x18
mov ecx, esp
push eax
call fcn.0040135f
mov ecx, dword [ebp - 0x2ac]
call fcn.00404142
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00401bfd
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401bfd
mov esi, dword [ebp - 0x2b0]
jmp 0x403f0c
call fcn.00415518
test al, al
je 0x4040a7
push esi
push ebp
push edi
push ebx
pop edx
push esi
pop ebp
pop edx
pop edx
pop ebp
push ecx
pop esp
push esp
pop ecx
pop eax
push edx
push edx
pop ebp
pop ebp
pop ebx
push ebx
pop edx
push eax
pop ecx
push eax
push esp
push ebp
push ecx
pop esp
call fcn.00415b06
test al, al
je 0x4040d4
push edi
pop esi
pop ebp
pop esp
pop eax
pop ecx
push esi
pop esp
push ebp
push esp
push esp
pop edi
push esi
push ebp
pop ebx
push ecx
push eax
pop edx
pop edx
pop esi
push esp
push eax
push edx
push esi
pop ebp
push esp
push ebx
push ebx
push edi
push esi
mov esi, dword [ebp - 0x2b0]
call fcn.00415404
test al, al
je 0x4040ef
pop edx
pop esp
pop edi
push edx
pop esp
push esi
push ebp
pop esp
pop eax
push eax
pop eax
pop ecx
pop ebp
pop ebp
pop eax
push edx
pop ebx
pop esp
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x404122
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 4
cmovae eax, dword [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
push 1
lea ecx, [ebp - 0x58]
call fcn.00401bfd
push 0
push 1
lea ecx, [ebp + 8]
call fcn.00401bfd
call fcn.00410fae
ret 0x18