Function at 0x4313f0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get common file path
Move file
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5700
mov eax, dword fs:[0]
push eax
sub esp, 0x4c4
mov eax, dword [0x50f52c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x478], ecx
mov dword [ebp - 0x46c], edi
mov dword [ebp - 4], 1
lea eax, [ebp - 0x468]
push eax
push 0x4e4ac8
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
jne 0x43147b
mov byte [ebp - 4], 0
cmp dword [ebp + 0x20], 8
jb 0x431466
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004b29fa
add esp, 4
xor edx, edx
mov dword [ebp + 0x20], 7
mov dword [ebp + 0x1c], edi
mov word [ebp + 0xc], dx
jmp 0x4317d4
test byte [ebp - 0x468], 0x10
mov esi, 7
je 0x4316cc
xor eax, eax
mov word [ebp - 0x490], ax
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x47c], esi
mov dword [ebp - 0x480], edi
lea edx, [eax + 2]
jmp 0x4314b0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4314b0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x43c]
push ecx
lea ecx, [ebp - 0x494]
call fcn.00401860
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x480]
or dword [ebp - 0x46c], 1
push 1
push 0x4e253c
push edx
push edi
lea ecx, [ebp - 0x494]
call fcn.00401fe0
test eax, eax
je 0x431572
xor eax, eax
mov word [ebp - 0x4ac], ax
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x498], esi
mov dword [ebp - 0x49c], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x431520
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x43c]
push ecx
lea ecx, [ebp - 0x4b0]
call fcn.00401860
mov dword [ebp - 4], 4
mov edx, dword [ebp - 0x49c]
or dword [ebp - 0x46c], 2
push 2
push 0x4e4ac0
push edx
push edi
lea ecx, [ebp - 0x4b0]
call fcn.00401fe0
test eax, eax
je 0x431572
mov bl, 1
jmp 0x431574
xor bl, bl
mov dword [ebp - 4], 3
test byte [ebp - 0x46c], 2
je 0x4315b8
and dword [ebp - 0x46c], 0xfffffffd
cmp dword [ebp - 0x498], 8
jb 0x4315a3
mov eax, dword [ebp - 0x4ac]
push eax
call fcn.004b29fa
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x498], esi
mov dword [ebp - 0x49c], edi
mov word [ebp - 0x4ac], cx
mov dword [ebp - 4], 1
test byte [ebp - 0x46c], 1
je 0x4315fc
and dword [ebp - 0x46c], 0xfffffffe
cmp dword [ebp - 0x47c], 8
jb 0x4315e7
mov edx, dword [ebp - 0x490]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
mov dword [ebp - 0x47c], esi
mov dword [ebp - 0x480], edi
mov word [ebp - 0x490], ax
test bl, bl
je 0x431785
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea edx, [ebp - 0x43c]
push edx
call ebx
sub esp, 0x20
mov ecx, esp
lea eax, [ebp + 0x28]
mov dword [ebp - 0x4d0], esp
push eax
mov dword [ebp - 0x474], ecx
call fcn.00430fa0
mov byte [ebp - 4], 6
mov ecx, dword [ebp + 0x24]
push ecx
sub esp, 0x1c
mov ecx, esp
mov dword [ecx + 0x18], esi
xor edx, edx
lea eax, [ebp - 0x43c]
mov dword [ecx + 0x14], edi
mov dword [ebp - 0x474], esp
mov word [ecx + 4], dx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x431667
sub eax, esi
sar eax, 1
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.00401860
mov byte [ebp - 4], 7
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x478]
call fcn.004313f0
lea ecx, [ebp - 0x218]
push ecx
call ebx
lea edx, [ebp - 0x43c]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x431785
cmp dword [ebp + 0x24], edi
je 0x431785
push 4
push edi
lea eax, [ebp - 0x43c]
push eax
jmp 0x43177f
xor ecx, ecx
lea eax, [ebp - 0x43c]
mov dword [ebp - 0x4b4], esi
mov dword [ebp - 0x4b8], edi
mov word [ebp - 0x4c8], cx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4316f0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x43c]
push edx
lea ecx, [ebp - 0x4cc]
call fcn.00401860
mov byte [ebp - 4], 8
lea eax, [ebp - 0x4cc]
push eax
lea ecx, [ebp + 0x28]
call fcn.00431300
cmp dword [eax], edi
sete bl
mov byte [ebp - 4], 1
cmp dword [ebp - 0x4b4], 8
jb 0x431746
mov ecx, dword [ebp - 0x4c8]
push ecx
call fcn.004b29fa
add esp, 4
xor edx, edx
mov dword [ebp - 0x4b4], esi
mov dword [ebp - 0x4b8], edi
mov word [ebp - 0x4c8], dx
test bl, bl
je 0x431785
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x431785
cmp dword [ebp + 0x24], edi
je 0x431785
push 4
push edi
lea ecx, [ebp - 0x43c]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x470]
lea edx, [ebp - 0x468]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x43147b
mov ecx, dword [ebp - 0x470]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
cmp dword [ebp + 0x20], 8
jb 0x4317c4
mov edx, dword [ebp + 0xc]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
mov dword [ebp + 0x20], 7
mov dword [ebp + 0x1c], edi
mov word [ebp + 0xc], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x28]
call fcn.0047c8c0
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 - 0x10]
xor ecx, ebp
call fcn.004b3057
mov esp, ebp
pop ebp
ret 0x40