Function at 0x4b9ac0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x67c
mov al, byte [esp + 7]
push ebx
push ebp
mov ebp, ecx
mov cl, byte [esp + 0xf]
push esi
xor ebx, ebx
mov byte [esp + 0x19], cl
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebx
mov byte [esp + 0x1c], al
mov byte [esp + 0x24], bl
call fcn.004bb890
mov dx, word [0x56bc90]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x486]
mov word [esp + 0x484], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x94
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp + 0x44]
push eax
push str._s.
lea eax, [esp + 0x48c]
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x484]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x4b9cd5
mov esi, dword [sym.imp.MSVCRT.dll_wcscmp]
lea eax, [esp + 0x58]
push 0x537460
push eax
call esi
add esp, 8
test eax, eax
je 0x4b9cb2
lea ecx, [esp + 0x58]
push 0x54c114
push ecx
call esi
add esp, 8
test eax, eax
je 0x4b9cb2
mov al, byte [esp + 0x2c]
test al, 2
je 0x4b9ba2
test al, 0x10
je 0x4b9cb2
test al, 0x10
jne 0x4b9cb2
lea edx, [esp + 0x58]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp eax, ebx
je 0x4b9cb2
push str..png
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4b9cb2
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp esi, eax
je 0x4b9c13
lea edi, [esi + 0x24]
mov eax, dword [edi]
test eax, eax
jne 0x4b9be9
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
lea ecx, [esp + 0x58]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x4b9c0e
mov eax, dword [ebp + 0xc]
add esi, 0x84
add edi, 0x84
cmp esi, eax
jne 0x4b9bde
jmp 0x4b9c13
mov ebx, 1
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x1c]
cmp esi, eax
je 0x4b9c4e
lea edi, [esi + 0x24]
mov eax, dword [edi]
test eax, eax
jne 0x4b9c2b
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
lea edx, [esp + 0x58]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x4b9c9e
mov eax, dword [ebp + 0x1c]
add esi, 0x84
add edi, 0x84
cmp esi, eax
jne 0x4b9c20
test ebx, ebx
jne 0x4b9c9e
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x27e]
mov word [esp + 0x27c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x58]
lea ecx, [esp + 0x27c]
push eax
lea eax, [ebp + 0x44]
push eax
push 0x53a058
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
lea edx, [esp + 0x27c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 0x64
mov dword [esp + 0x18], eax
jg 0x4b9cc8
mov edi, dword [esp + 0x10]
xor ebx, ebx
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4b9b5e
jmp 0x4b9cce
mov edi, dword [esp + 0x10]
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
mov eax, dword [esi]
mov dword [esp + 0x10], eax
je 0x4b9d19
mov ecx, eax
cmp eax, ecx
jne 0x4b9d19
mov ecx, dword [esi + 4]
push ecx
lea ecx, [esp + 0x20]
call fcn.004bb850
mov edx, dword [esp + 0x20]
mov eax, dword [0x5850a4]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], ebx
mov dword [eax], eax
mov eax, dword [esp + 0x20]
mov dword [eax + 8], eax
jmp 0x4b9d3f
cmp eax, esi
je 0x4b9d3f
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.004bb9c0
lea ecx, [esp + 0x18]
push edi
push ecx
lea ecx, [esp + 0x24]
call fcn.004bb3f0
mov eax, dword [esp + 0x10]
cmp eax, esi
jne 0x4b9d1d
mov edx, dword [esp + 0x20]
push edx
call fcn.0051c54a
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
xor esi, esi
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::constructor_void_]
mov eax, dword [0x5850a0]
dec eax
mov dword [0x5850a0], eax
jne 0x4b9d79
mov esi, dword [0x5850a4]
mov dword [0x5850a4], ebx
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::_Lockit::destructor_void_]
cmp esi, ebx
je 0x4b9d90
push esi
call fcn.0051c54a
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x67c
ret