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

Disassembly:
push 0xffffffffffffffff
push 0x60e93d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x290
push ebx
push ebp
xor ebx, ebx
xor eax, eax
push esi
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ebx
mov word [esp + 0x20], bx
mov edi, dword [esp + 0x2b0]
mov ecx, 0x6a5a14
test ecx, ecx
mov dword [esp + 0x2a8], ebx
je 0x59647c
cmp edi, ebx
je 0x59647c
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x18], bx
call fcn.00402060
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2a8], 1
call fcn.00401070
push 0x6a5a14
lea ecx, [esp + 0x2c]
call fcn.00401fd0
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a8], 2
call fcn.00402050
push eax
call fcn.005c7292
lea esi, [eax + esi + 2]
lea ebp, [esi + esi]
push ebp
call fcn.005dfcbc
mov edi, eax
add esp, 8
cmp edi, ebx
mov dword [esp + 0x1c], edi
je 0x596450
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x10]
call fcn.00402050
push eax
lea ecx, [esp + 0x2c]
call fcn.00402050
push eax
mov eax, dword [esp + 0x24]
push esi
push eax
call fcn.005c7222
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.005c7292
add esp, 0x14
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x2a8], 1
call fcn.00401070
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a8], bl
call fcn.00401070
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x2b0]
cmp eax, ebx
jne 0x596484
lea eax, [esp + 0x20]
lea edx, [esp + 0x50]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x34], esi
jne 0x5964b2
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2a8], eax
call fcn.00401070
or eax, esi
jmp 0x596698
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea eax, [esp + 0x50]
push eax
push esi
call ebp
lea ecx, [esp + 0x50]
push ecx
push esi
call ebp
test eax, eax
je 0x59665d
xor eax, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
mov word [esp + 0x14], bx
mov edx, 0x6a2074
mov byte [esp + 0x2a8], 3
test edx, edx
je 0x596622
cmp edi, ebx
je 0x596622
lea ecx, [esp + 0x7c]
test ecx, ecx
je 0x596622
push edx
lea ecx, [esp + 0x48]
call fcn.00401fd0
push edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2ac], 4
call fcn.0040d7a0
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x38]
push edx
mov byte [esp + 0x2ac], 5
call fcn.0040d7a0
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a8], 6
call fcn.00401070
mov edi, dword [esp + 0x28]
cmp edi, ebx
jne 0x596557
lea edi, [esp + 0x2c]
mov esi, dword [esp + 0x4c]
lea ecx, [esp + 0x38]
call fcn.00402050
push eax
call fcn.005c7292
push edi
mov ebp, eax
call fcn.005c7292
add esi, ebp
lea esi, [eax + esi + 3]
lea ebp, [esi + esi]
push ebp
call fcn.005dfcbc
mov edi, eax
add esp, 0xc
cmp edi, ebx
mov dword [esp + 0x10], edi
je 0x5965da
mov ecx, ebp
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [esp + 0x38]
call fcn.00402050
push eax
lea ecx, [esp + 0x2c]
call fcn.00402050
push eax
lea ecx, [esp + 0x4c]
call fcn.00402050
push eax
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.005c7222
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005c7292
add esp, 0x18
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x2a8], 5
call fcn.00401070
lea ecx, [esp + 0x28]
mov byte [esp + 0x2a8], 4
call fcn.00401070
lea ecx, [esp + 0x44]
mov byte [esp + 0x2a8], 3
call fcn.00401070
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x2b0]
mov esi, dword [esp + 0x34]
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edx, dword [esp + 0x50]
and edx, 0x10
cmp dl, 0x10
je 0x59663d
cmp eax, ebx
jne 0x596636
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esp + 0x10]
mov byte [esp + 0x2a8], bl
call fcn.00401070
lea eax, [esp + 0x50]
push eax
push esi
call ebp
test eax, eax
jne 0x5964d0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [0x6d1130]
cmp eax, ebx
jne 0x596672
mov eax, 0x6d1134
push eax
call fcn.005ca2ea
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2a8], 0xffffffff
call fcn.00401070
xor eax, eax
mov ecx, dword [esp + 0x2a0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x29c
ret