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

Disassembly:
push 0xffffffffffffffff
push 0x1002ef5c
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [0x1004a0b4]
xor eax, esp
mov dword [esp + 0x27c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1004a0b4]
xor eax, esp
push eax
lea eax, [esp + 0x294]
mov dword fs:[0], eax
mov edi, dword [esp + 0x2a8]
mov esi, ecx
xor ebp, ebp
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
push 0x24c
lea eax, [esp + 0x48]
push ebp
push eax
mov dword [esp + 0x2a8], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x4c], ebp
call sub.MSVCR80.dll_memset
mov ecx, dword [esi + 0x58]
add esp, 0xc
call dword [sym.imp.XecureMacuxCSM.dll_public:_void___thiscall_XWClientSM::resetError_void_]
cmp edi, ebp
je 0x1001be1d
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1001be00
sub eax, edx
je 0x1001be1d
mov ecx, dword [esi + 0x58]
push ebp
push edi
call dword [sym.imp.XecureMacuxCSM.dll_public:_int___thiscall_XWClientSM::clearFile_char_const___int_]
jmp 0x1001bf61
mov ecx, dword [esi + 0x58]
push edi
call dword [sym.imp.XecureMacuxCSM.dll_public:_char____thiscall_XWClientSM::getTempPath_char_const__]
mov edi, eax
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1001be30
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x24]
push edx
push 0xfde9
mov ecx, esi
call sym.NativeMngUAC.dll_public:_int___thiscall_NativeFCMSWrapper::XMF_MultiByteToWideChar_unsigned_int__wchar_t____int___char___int_
cmp eax, ebp
mov ebx, dword [esp + 0x18]
jne 0x1001bf38
push ebp
push ebx
call dword [sym.imp.MSVCR80.dll__waccess]
add esp, 8
test eax, eax
jne 0x1001bf38
push ebx
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x1001be82
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
sub eax, edx
mov edx, dword [ecx]
sar eax, 1
push edx
add eax, 0xffffffff
push eax
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::erase_unsigned_int__unsigned_int_]
push 0x10038138
lea ecx, [esp + 0x28]
call dword [0x100321d0]
cmp dword [esp + 0x3c], 8
mov eax, dword [esp + 0x28]
jae 0x1001bec6
lea eax, [esp + 0x28]
lea ecx, [esp + 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x1001bf38
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x40]
push edx
push eax
call esi
test eax, eax
je 0x1001bf38
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test byte [esp + 0x40], 0x10
jne 0x1001bf26
push ebx
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x28]
call dword [0x100321d0]
cmp dword [esp + 0x3c], 8
mov eax, dword [esp + 0x28]
jae 0x1001bf23
lea eax, [esp + 0x28]
push eax
call ebp
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x40]
push edx
push eax
call esi
test eax, eax
jne 0x1001bef3
xor ebp, ebp
cmp edi, ebp
mov esi, dword [sym.imp.MSVCR80.dll_free]
je 0x1001bf48
push edi
call esi
add esp, 4
cmp ebx, ebp
je 0x1001bf52
push ebx
call esi
add esp, 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x1001bf61
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x24]
mov dword [esp + 0x29c], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x294]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x27c]
xor ecx, esp
call fcn.1002d777
add esp, 0x28c
ret 8