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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fc2c1
mov eax, dword fs:[0]
push eax
sub esp, 0x320
mov eax, dword [0x67d070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x310], eax
xor eax, eax
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x6c], ax
xorps xmm0, xmm0
mov dword [ebp - 0x14], eax
movups xmmword [ebp - 0x24], xmm0
push 8
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
call fcn.00599c81
add esp, 4
test eax, eax
jne 0x5820cc
call fcn.005bc371
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x24]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x24]
mov dword [eax], ecx
xor esi, esi
mov dword [ebp - 0x34], 0
xorps xmm0, xmm0
mov dword [ebp - 0x34], esi
movq qword [ebp - 0x3c], xmm0
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
push edi
mov byte [ebp - 4], 3
call fcn.00582d30
add esp, 4
test al, al
jne 0x58212b
mov byte [ebp - 0x2ed], al
jmp 0x582822
xor eax, eax
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], 0
mov word [ebp - 0x54], ax
mov byte [ebp - 4], 4
cmp word [edi], ax
jne 0x58214c
xor ecx, ecx
jmp 0x582160
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x582151
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x54]
call fcn.00407060
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x24]
call fcn.0041fa70
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
call fcn.0040afd0
lea eax, [ebp - 0x30]
xor edi, edi
push eax
push edi
push edi
mov dword [ebp - 0x38], edi
call fcn.0040afd0
add esp, 0x18
mov dword [ebp - 0x2c], edi
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x30]
push eax
call fcn.0041f820
cmp dword [ebp - 0x14], edi
sete al
test al, al
jne 0x582773
mov edi, dword [sym.imp.KERNEL32.DLL_FindNextFileW]
nop dword [eax]
push 1
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x32c]
push eax
lea ecx, [ebp - 0x24]
call fcn.00418670
mov ecx, eax
call fcn.0041fc50
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x5821e9
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp - 0x54]
cmp ecx, eax
je 0x582207
push 0xffffffffffffffff
push 0
push eax
call fcn.00407550
push 0x62325c
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0041fed0
push 0x623258
push eax
lea eax, [ebp - 0x308]
mov byte [ebp - 4], 5
push eax
call fcn.0041fe70
add esp, 0x18
mov esi, eax
lea eax, [ebp - 0x6c]
cmp eax, esi
je 0x582270
mov eax, dword [ebp - 0x58]
cmp eax, 8
jb 0x582253
inc eax
lea ecx, [ebp - 0x6c]
push eax
push dword [ebp - 0x6c]
call fcn.00407430
xor eax, eax
mov dword [ebp - 0x58], 7
push esi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x6c], ax
call fcn.004098a0
mov eax, dword [ebp - 0x2f4]
mov byte [ebp - 4], 5
cmp eax, 8
jb 0x5822cd
mov ecx, dword [ebp - 0x308]
inc eax
cmp eax, 0x7fffffff
ja 0x5820c7
add eax, eax
cmp eax, 0x1000
jb 0x5822c4
test cl, 0x1f
jne 0x5820c7
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x5820c7
sub ecx, eax
cmp ecx, 4
jb 0x5820c7
cmp ecx, 0x23
ja 0x5820c7
mov ecx, eax
push ecx
call fcn.00505e00
add esp, 4
xor eax, eax
mov dword [ebp - 0x2f4], 7
mov word [ebp - 0x308], ax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x2f8], 0
mov byte [ebp - 4], 4
cmp eax, 8
jb 0x582347
mov ecx, dword [ebp - 0x9c]
inc eax
cmp eax, 0x7fffffff
ja 0x5820c7
add eax, eax
cmp eax, 0x1000
jb 0x58233e
test cl, 0x1f
jne 0x5820c7
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x5820c7
sub ecx, eax
cmp ecx, 4
jb 0x5820c7
cmp ecx, 0x23
ja 0x5820c7
mov ecx, eax
push ecx
call fcn.00505e00
add esp, 4
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
dec eax
mov edx, dword [ebp - 0x1c]
add ecx, eax
mov eax, dword [ebp - 0x20]
dec edx
and edx, ecx
mov esi, dword [eax + edx*4]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x5823ae
mov ecx, dword [esi]
inc eax
cmp eax, 0x7fffffff
ja 0x5820c7
add eax, eax
cmp eax, 0x1000
jb 0x5823a5
test cl, 0x1f
jne 0x5820c7
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x5820c7
sub ecx, eax
cmp ecx, 4
jb 0x5820c7
cmp ecx, 0x23
ja 0x5820c7
mov ecx, eax
push ecx
call fcn.00505e00
add esp, 4
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x5823c4
mov esi, dword [esi]
xor eax, eax
mov ecx, 0
mov word [esi], ax
sub dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x18]
cmove eax, ecx
cmp dword [ebp - 0x58], 8
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x2ec]
lea eax, [ebp - 0x6c]
cmovae eax, dword [ebp - 0x6c]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x582887
nop
mov edx, 0x61b9c8
lea ecx, [ebp - 0x2c0]
nop dword [eax + eax]
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x582436
test ax, ax
je 0x582432
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x582436
add ecx, 4
add edx, 4
test ax, ax
jne 0x582410
xor eax, eax
jmp 0x58243b
sbb eax, eax
or eax, 1
test eax, eax
je 0x58262b
mov eax, 0x623260
lea ecx, [ebp - 0x2c0]
nop
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x582476
test dx, dx
je 0x582472
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x582476
add ecx, 4
add eax, 4
test dx, dx
jne 0x582450
xor eax, eax
jmp 0x58247b
sbb eax, eax
or eax, 1
test eax, eax
je 0x58262b
test byte [ebp - 0x2ec], 0x10
je 0x582638
push 0x62325c
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0041fed0
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 7
push ecx
push eax
lea eax, [ebp - 0x308]
push eax
call fcn.0041fe70
add esp, 0x18
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.0041fb30
mov eax, dword [ebp - 0x2f4]
cmp eax, 8
jb 0x5824eb
inc eax
lea ecx, [ebp - 0x308]
push eax
push dword [ebp - 0x308]
call fcn.00407430
xor eax, eax
mov dword [ebp - 0x2f4], 7
mov word [ebp - 0x308], ax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x2f8], 0
mov byte [ebp - 4], 4
cmp eax, 8
jb 0x582527
inc eax
lea ecx, [ebp - 0x84]
push eax
push dword [ebp - 0x84]
call fcn.00407430
push 0x62325c
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0041fed0
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 9
push ecx
push eax
lea eax, [ebp - 0x308]
push eax
call fcn.0041fe70
add esp, 0x18
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xa
call fcn.0041f910
mov eax, dword [ebp - 0x2f4]
cmp eax, 8
jb 0x582582
inc eax
lea ecx, [ebp - 0x308]
push eax
push dword [ebp - 0x308]
call fcn.00407430
xor eax, eax
mov dword [ebp - 0x2f4], 7
mov word [ebp - 0x308], ax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x2f8], 0
mov byte [ebp - 4], 4
cmp eax, 8
jb 0x5825be
inc eax
lea ecx, [ebp - 0x84]
push eax
push dword [ebp - 0x84]
call fcn.00407430
push 0x62325c
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0041fed0
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 0xb
push ecx
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0041fe70
mov eax, dword [ebp - 0x70]
add esp, 0x18
mov byte [ebp - 4], 4
cmp eax, 8
jb 0x58260d
inc eax
lea ecx, [ebp - 0x84]
push eax
push dword [ebp - 0x84]
call fcn.00407430
mov eax, dword [ebp - 0x88]
cmp eax, 8
jb 0x58262b
inc eax
lea ecx, [ebp - 0x9c]
push eax
push dword [ebp - 0x9c]
call fcn.00407430
test byte [ebp - 0x2ec], 0x10
jne 0x58273f
push 0x62325c
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0041fed0
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 0xc
push ecx
push eax
lea eax, [ebp - 0x308]
push eax
call fcn.0041fe70
add esp, 0x18
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xd
call fcn.0041f910
mov eax, dword [ebp - 0x2f4]
cmp eax, 8
jb 0x582693
inc eax
lea ecx, [ebp - 0x308]
push eax
push dword [ebp - 0x308]
call fcn.00407430
xor eax, eax
mov dword [ebp - 0x2f4], 7
mov word [ebp - 0x308], ax
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x2f8], 0
mov byte [ebp - 4], 4
cmp eax, 8
jb 0x5826d2
inc eax
lea ecx, [ebp - 0x9c]
push eax
push dword [ebp - 0x9c]
call fcn.00407430
push 0x62325c
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.0041fed0
lea ecx, [ebp - 0x2c0]
mov byte [ebp - 4], 0xe
push ecx
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0041fe70
mov eax, dword [ebp - 0x88]
add esp, 0x18
mov byte [ebp - 4], 4
cmp eax, 8
jb 0x582724
inc eax
lea ecx, [ebp - 0x9c]
push eax
push dword [ebp - 0x9c]
call fcn.00407430
mov eax, dword [ebp - 0x70]
cmp eax, 8
jb 0x58273f
inc eax
lea ecx, [ebp - 0x84]
push eax
push dword [ebp - 0x84]
call fcn.00407430
lea eax, [ebp - 0x2ec]
push eax
push esi
call edi
test eax, eax
jne 0x582400
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push esi
cmp eax, 0x12
jne 0x582781
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp dword [ebp - 0x14], 0
jne 0x5821c0
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
cmp esi, edi
je 0x5827a8
cmp dword [esi + 0x14], 8
jb 0x582790
mov eax, dword [esi]
jmp 0x582792
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov byte [ebp - 0x2ed], 0
jmp 0x5827f9
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
je 0x582887
add esi, 0x18
cmp esi, edi
jne 0x582777
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
mov byte [ebp - 0x314], 0
push dword [ebp - 0x314]
push edi
push esi
call fcn.0041ffe0
add esp, 0xc
cmp esi, edi
je 0x5827f2
nop dword [eax]
cmp dword [esi + 0x14], 8
jb 0x5827da
mov eax, dword [esi]
jmp 0x5827dc
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
je 0x582887
add esi, 0x18
cmp esi, edi
jne 0x5827d0
mov byte [ebp - 0x2ed], 1
mov eax, dword [ebp - 0x40]
cmp eax, 8
jb 0x58280e
inc eax
lea ecx, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
call fcn.00407430
xor eax, eax
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], 0
mov word [ebp - 0x54], ax
lea ecx, [ebp - 0x30]
call fcn.0040a730
lea ecx, [ebp - 0x3c]
call fcn.0040a730
lea ecx, [ebp - 0x24]
call fcn.0041f9c0
push 1
push dword [ebp - 0x24]
lea ecx, [ebp - 0x309]
call fcn.00418960
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x24], 0
cmp ecx, 8
jb 0x582866
inc ecx
push ecx
push dword [ebp - 0x6c]
lea ecx, [ebp - 0x6c]
call fcn.00407430
mov al, byte [ebp - 0x2ed]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00599c70
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp - 0x310]
mov byte [ebp - 0x2ed], 0
mov dword [ecx], eax
jmp 0x5827f9