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

Disassembly:
push ebp
sub esp, 0x490
lea ebp, [esp - 4]
mov eax, dword [0x1002b1f0]
xor eax, ebp
mov dword [ebp + 0x490], eax
push 0x20
mov eax, 0x10019a29
call fcn.10018de1
mov edi, ecx
lea ecx, [ebp + 0x250]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
and dword [ebp - 4], 0
lea eax, [edi + 0xf8]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [ebp + 0x250]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
call fcn.1000196a
pop ecx
pop ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp dword [ebp + 0x268], 8
mov eax, dword [ebp + 0x254]
jae 0x100022e7
lea eax, [ebp + 0x254]
mov dword [ebp - 0x10], eax
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x288], ax
lea eax, [ebp + 0x28a]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push dword [ebp + 0x49c]
mov ecx, edi
call fcn.10001d1e
push eax
push str.TSLOG
push dword [ebp - 0x10]
lea eax, [ebp + 0x288]
push str._s_s._s__d_..log
push 0x104
push eax
call dword [sym.imp.MSVCR90.dll__snwprintf]
add esp, 0x1c
lea eax, [ebp]
push eax
lea eax, [ebp + 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp + 0x26c]
mov ebx, eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [ebp - 4], 2
cmp ebx, 0xffffffff
je 0x100023de
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x10]
lea ecx, [ebp + 0x26c]
call dword [0x1001b238]
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp + 0x26c]
call dword [sym.imp.MSVCP90.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__]
cmp dword [ebp + 0x284], 8
mov eax, dword [ebp + 0x270]
jae 0x1000239a
lea eax, [ebp + 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100023cf
cmp dword [ebp + 0x284], 8
mov eax, dword [ebp + 0x270]
jae 0x100023ba
lea eax, [ebp + 0x270]
push eax
call esi
push eax
call esi
push eax
push str.DeleteLogFile_Failed__ErrorCode_:__d_0x_08x___LogFilePath_:__s
push edi
call fcn.1000a259
add esp, 0x14
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10002366
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp + 0x26c]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x250]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x490]
xor ecx, ebp
call fcn.10018dd2
add ebp, 0x494
leave
ret 4