Function at 0x1001ecd0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1004fab5
push eax
mov eax, dword [ebp + 8]
mov dword fs:[0], esp
sub esp, 0x58
cmp dword [eax + 0x10], 0
push ebx
push esi
push edi
jne 0x1001ed0e
xor eax, eax
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
push 1
push dword [ebp + 0xc]
mov dword [esp + 0x74], 0
push eax
lea eax, [esp + 0x1c]
push eax
call sym.KwLib.dll_int___cdecl_KwLib::Dir::FindFiles_class_std::vector_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____class_std::allocator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_______class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int_
mov edi, dword [esp + 0x24]
add esp, 0x10
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test eax, eax
je 0x1001ee76
mov esi, ecx
cmp ecx, edi
je 0x1001ee5b
mov eax, dword [0x1006e3e8]
cmp eax, 0xffffffff
jne 0x1001eda5
lea eax, [esp + 0x1c]
push eax
push 0xd698
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x1001ed9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1001ed9b
mov dword [0x1006e3e8], 0x3a8
mov eax, 0x3a8
jmp 0x1001eda5
mov eax, 0xd698
mov dword [0x1006e3e8], eax
push eax
mov edx, esi
lea ecx, [esp + 0x4c]
call fcn.10008690
add esp, 4
mov edx, eax
mov byte [esp + 0x6c], 1
cmp dword [edx + 0x14], 8
jb 0x1001edc3
mov edx, dword [edx]
xor eax, eax
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], ax
cmp word [edx], ax
jne 0x1001ede3
xor ecx, ecx
jmp 0x1001ee03
mov ecx, edx
lea edi, [ecx + 2]
jmp 0x1001edf0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001edf0
sub ecx, edi
mov edi, dword [esp + 0x14]
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.100026d0
mov byte [esp + 0x6c], 0
cmp dword [esp + 0x5c], 8
jb 0x1001ee23
push dword [esp + 0x48]
call ebx
add esp, 4
cmp dword [esp + 0x44], 8
lea eax, [esp + 0x30]
cmovae eax, dword [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1001ee62
cmp dword [esp + 0x44], 8
jb 0x1001ee4c
push dword [esp + 0x30]
call ebx
add esp, 4
add esi, 0x18
cmp esi, edi
jne 0x1001ed61
mov ecx, dword [esp + 0x10]
mov edi, 1
jmp 0x1001ee78
cmp dword [esp + 0x44], 8
jb 0x1001ee72
push dword [esp + 0x30]
call ebx
add esp, 4
mov ecx, dword [esp + 0x10]
xor edi, edi
test ecx, ecx
je 0x1001eeb9
mov eax, dword [esp + 0x14]
mov esi, ecx
cmp ecx, eax
je 0x1001eeb3
cmp dword [esi + 0x14], 0x10
jb 0x1001ee97
push dword [esi]
call ebx
mov eax, dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x18
cmp esi, eax
jne 0x1001ee86
mov ecx, dword [esp + 0x10]
push ecx
call ebx
add esp, 4
mov ecx, dword [esp + 0x64]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret