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

Disassembly:
mov eax, 0x413c87
call fcn.00413240
sub esp, 0x4b8
mov eax, dword [0x4241a4]
push esi
xor eax, ebp
mov esi, ecx
push edi
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x10], eax
call dword [sym.imp.MSVCP71.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, [esi + 0xf8]
push eax
lea ecx, [ebp - 0x4c4]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x4c4]
push eax
call fcn.004054d7
pop ecx
pop ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c4]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp - 0x250]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
and word [ebp - 0x218], 0
push dword [ebp + 8]
mov dword [ebp - 0x4a8], eax
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
mov ecx, esi
stosw word es:[edi], ax
call fcn.00401a31
push eax
push str.TSLOG
push dword [ebp - 0x4a8]
lea eax, [ebp - 0x218]
push str._s_s._s__d_..log
push 0x104
push eax
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x1c
lea eax, [ebp - 0x4a0]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x4a4], eax
call dword [sym.imp.MSVCP71.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 dword [ebp - 0x4a4], 0xffffffff
je 0x405abd
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x4a8]
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP71.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 eax, [ebp - 0x474]
push eax
lea ecx, [ebp - 0x234]
call dword [0x4152e0]
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x405aa6
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call edi
push eax
call edi
push eax
push str.DeleteLogFile_Failed__ErrorCode_:__d_0x_08x___LogFilePath_:__s
push esi
call fcn.00401e69
add esp, 0x14
lea eax, [ebp - 0x4a0]
push eax
push dword [ebp - 0x4a4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405a49
push dword [ebp - 0x4a4]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call dword [sym.imp.MSVCP71.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.MSVCP71.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
mov ecx, dword [ebp - 0x10]
pop edi
xor ecx, ebp
pop esi
call fcn.00413159
leave
ret 4