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

Disassembly:
push 0xffffffffffffffff
push 0x578a8c
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x5d7050]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov esi, dword [esp + 0x298]
xor edi, edi
xor ebp, ebp
mov ecx, 0x5e736c
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], ebp
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x290], edi
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x20], eax
cmp esi, edi
mov byte [esp + 0x290], 1
jne 0x412c51
xor eax, eax
jmp 0x412c65
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x412c56
sub eax, edx
sar eax, 1
mov ebx, eax
push esi
lea eax, [esp + 0x18]
call fcn.00410570
lea esi, [esp + 0x14]
call fcn.00412840
mov eax, dword [esp + 0x14]
push eax
push str._s.
lea edi, [esp + 0x28]
call fcn.00410c00
mov edx, dword [esp + 0x28]
add esp, 8
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x412e84
mov ebp, dword [esp + 0x29c]
mov ecx, 0x58c308
lea eax, [esp + 0x60]
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412ce6
test dx, dx
je 0x412ce2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412ce6
add eax, 4
add ecx, 4
test dx, dx
jne 0x412cc0
xor eax, eax
jmp 0x412ceb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x412e55
mov ecx, 0x58c5f4
lea eax, [esp + 0x60]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x412d26
test dx, dx
je 0x412d22
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x412d26
add eax, 4
add ecx, 4
test dx, dx
jne 0x412d00
xor eax, eax
jmp 0x412d2b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x412e55
test byte [esp + 0x34], 0x10
je 0x412daa
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x24], eax
lea eax, [esp + 0x60]
mov byte [esp + 0x290], 2
mov ecx, dword [esp + 0x14]
push eax
push ecx
push 0x58cc40
lea edi, [esp + 0x30]
call fcn.00410c00
mov esi, dword [esp + 0x30]
add esp, 0xc
push ebp
push esi
call fcn.00412bc0
add esp, 8
test eax, eax
jne 0x412d8d
test ebp, ebp
je 0x412f11
lea eax, [esi - 0x10]
mov byte [esp + 0x290], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x412e49
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x64]
call fcn.0040ff50
lea edi, [esp + 0x1c]
mov byte [esp + 0x290], 3
call fcn.004116a0
mov edx, edi
push edx
lea eax, [esp + 0x34]
push eax
lea ebx, [esp + 0x1c]
call fcn.00413170
mov eax, dword [eax]
or dword [esp + 0x20], 1
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x412df7
test ebp, ebp
jne 0x412df7
mov bl, 1
jmp 0x412df9
xor bl, bl
test byte [esp + 0x18], 1
je 0x412e25
mov eax, dword [esp + 0x30]
and dword [esp + 0x18], 0xfffffffe
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412e25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x290], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test bl, bl
jne 0x412f27
test edx, edx
jg 0x412e55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x412cb4
mov dword [esp + 0x28], 1
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebp, dword [esp + 0x28]
lea ecx, [esp + 0x14]
call fcn.00412940
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [esp + 0x290], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x412ec0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x290], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412ee7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.00569ed6
add esp, 0x280
ret
lea eax, [esi - 0x10]
mov byte [esp + 0x290], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412e75
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x412e75