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

Disassembly:
mov eax, 0x411eba
call fcn.004114d0
sub esp, 0x4b8
mov eax, dword [0x4211a4]
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.00402feb
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.004019ab
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 0x4035d1
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 [0x4142f4]
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 0x4035ba
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.00401de6
add esp, 0x14
lea eax, [ebp - 0x4a0]
push eax
push dword [ebp - 0x4a4]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40355d
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.004113e5
leave
ret 4