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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5830bd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x6d0
mov eax, dword [0x5c4104]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
xorps xmm0, xmm0
movups xmmword [ebp - 0x454], xmm0
mov dword [ebp - 0x444], 0
push 8
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 0
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 0
call fcn.0051a548
add esp, 4
mov dword [ebp - 0x454], eax
test eax, eax
je 0x4d9ff1
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x454]
lea ecx, [ebp - 0x454]
mov dword [eax], ecx
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x468], xmm0
mov dword [ebp - 0x458], 0
push 8
mov dword [ebp - 0x468], 0
mov dword [ebp - 0x464], 0
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x45c], 0
mov dword [ebp - 0x458], 0
call fcn.0051a548
add esp, 4
mov dword [ebp - 0x468], eax
test eax, eax
je 0x4da06d
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0x468]
lea ecx, [ebp - 0x468]
mov dword [eax], ecx
cmp dword [ebx + 0xc], 0
mov byte [ebp - 4], 1
jne 0x4da0c3
push esi
lea ecx, [ebp - 0x6d0]
call fcn.0041b4a0
lea eax, [ebp - 0x6d0]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x468]
call fcn.004dd6d0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x6bc]
cmp eax, 8
jb 0x4da0c3
inc eax
lea ecx, [ebp - 0x6d0]
push eax
push dword [ebp - 0x6d0]
call fcn.0041ecb0
xor eax, eax
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], 0
mov word [ebp - 0x440], ax
cmp word [esi], ax
jne 0x4da0e9
xor ecx, ecx
jmp 0x4da0ff
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4da0f0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x440]
call fcn.0041c830
lea eax, [ebp - 0x440]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x454]
call fcn.004dd6d0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x42c]
cmp eax, 8
jb 0x4da144
inc eax
lea ecx, [ebp - 0x440]
push eax
push dword [ebp - 0x440]
call fcn.0041ecb0
cmp dword [ebp - 0x444], 0
je 0x4da4cb
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop word [eax + eax]
lea eax, [ebp - 0x6e0]
push eax
lea ecx, [ebp - 0x454]
call fcn.004dde90
mov edx, eax
mov ecx, dword [edx]
test ecx, ecx
jne 0x4da17e
xor eax, eax
jmp 0x4da180
mov eax, dword [ecx]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
push 0xffffffffffffffff
mov eax, dword [eax + ecx*4]
xor ecx, ecx
push ecx
mov word [ebp - 0x440], cx
lea ecx, [ebp - 0x440]
push eax
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], 0
call fcn.0041dbd0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x44c]
mov eax, dword [ebp - 0x450]
dec ecx
and ecx, dword [ebp - 0x448]
mov esi, dword [eax + ecx*4]
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4da225
mov ecx, dword [esi]
inc eax
cmp eax, 0x7fffffff
ja 0x4da4fc
add eax, eax
cmp eax, 0x1000
jb 0x4da21c
test cl, 0x1f
jne 0x4da4fc
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4da4fc
sub ecx, eax
cmp ecx, 4
jb 0x4da4fc
cmp ecx, 0x23
ja 0x4da4fc
mov ecx, eax
push ecx
call fcn.0051a3d0
add esp, 4
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4da23b
mov esi, dword [esi]
xor eax, eax
mov word [esi], ax
sub dword [ebp - 0x444], 1
jne 0x4da251
mov dword [ebp - 0x448], eax
jmp 0x4da257
inc dword [ebp - 0x448]
push 0x208
lea eax, [ebp - 0x428]
push 0
push eax
call fcn.0051edd0
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
lea eax, [ebp - 0x428]
push 0x59aecc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x428]
push 0x5a1ee0
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x250
lea eax, [ebp - 0x6b8]
push 0
push eax
call fcn.0051edd0
add esp, 0xc
lea eax, [ebp - 0x6b8]
push eax
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4da340
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x42c]
cmp eax, 8
jb 0x4da4be
mov ecx, dword [ebp - 0x440]
inc eax
cmp eax, 0x7fffffff
ja 0x4da4fc
add eax, eax
cmp eax, 0x1000
jb 0x4da32f
test cl, 0x1f
jne 0x4da4fc
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4da4fc
sub ecx, eax
cmp ecx, 4
jb 0x4da4fc
cmp ecx, 0x23
ja 0x4da4fc
mov ecx, eax
push ecx
call fcn.0051a3d0
add esp, 4
jmp 0x4da4be
cmp word [ebp - 0x68c], 0x2e
je 0x4da47f
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.0051edd0
cmp dword [ebp - 0x42c], 8
lea ecx, [ebp - 0x68c]
push ecx
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
lea eax, [ebp - 0x220]
push 0x5a4584
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
test byte [ebp - 0x6b8], 0x10
je 0x4da476
xor eax, eax
mov dword [ebp - 0x6bc], 7
mov dword [ebp - 0x6c0], 0
mov word [ebp - 0x6d0], ax
cmp word [ebp - 0x220], ax
je 0x4da3df
lea eax, [ebp - 0x220]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4da3d0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x6d0]
call fcn.0041c830
lea eax, [ebp - 0x6d0]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x454]
call fcn.004dd6d0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x6bc]
cmp eax, 8
jb 0x4da42a
inc eax
lea ecx, [ebp - 0x6d0]
push eax
push dword [ebp - 0x6d0]
call fcn.0041ecb0
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x6d0]
call fcn.0041b4a0
lea eax, [ebp - 0x6d0]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x468]
call fcn.004dd6d0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x6bc]
cmp eax, 8
jb 0x4da47f
inc eax
lea ecx, [ebp - 0x6d0]
push eax
push dword [ebp - 0x6d0]
call fcn.0041ecb0
jmp 0x4da47f
lea eax, [ebp - 0x220]
push eax
call edi
lea eax, [ebp - 0x6b8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4da340
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x42c]
cmp eax, 8
jb 0x4da4be
inc eax
lea ecx, [ebp - 0x440]
push eax
push dword [ebp - 0x440]
call fcn.0041ecb0
cmp dword [ebp - 0x444], 0
jne 0x4da160
cmp dword [ebp - 0x458], 0
je 0x4da589
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop
lea eax, [ebp - 0x6e0]
push eax
lea ecx, [ebp - 0x468]
call fcn.004dde90
mov edx, eax
mov eax, dword [edx]
test eax, eax
jne 0x4da501
jmp 0x4da503
call fcn.00529651
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
push 0xffffffffffffffff
mov eax, dword [eax + ecx*4]
xor ecx, ecx
push ecx
mov word [ebp - 0x440], cx
lea ecx, [ebp - 0x440]
push eax
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], 0
call fcn.0041dbd0
lea ecx, [ebp - 0x468]
call fcn.004dce80
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
call esi
mov eax, dword [ebp - 0x42c]
cmp eax, 8
jb 0x4da57c
inc eax
lea ecx, [ebp - 0x440]
push eax
push dword [ebp - 0x440]
call fcn.0041ecb0
cmp dword [ebp - 0x458], 0
jne 0x4da4e0
lea ecx, [ebp - 0x468]
call fcn.004dd420
push 8
push 1
push dword [ebp - 0x468]
call fcn.00407c70
add esp, 0xc
mov dword [ebp - 0x468], 0
lea ecx, [ebp - 0x454]
call fcn.004dd420
push 8
push 1
push dword [ebp - 0x454]
call fcn.00407c70
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0051ac8e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc