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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x415b34
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4b8
mov eax, dword [0x4251a4]
push ebx
push esi
xor eax, ebp
mov esi, ecx
push edi
lea ecx, [esp + 0x44]
mov dword [esp + 0x4bc], 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_]
xor edi, edi
mov dword [esp + 0x4cc], edi
lea eax, [esi + 0xf8]
push eax
lea ecx, [esp + 0x10]
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 [esp + 0x4cc], 1
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00403e70
add esp, 8
mov byte [esp + 0x4cc], 0
lea ecx, [esp + 0xc]
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, [esp + 0x44]
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]
mov ebx, eax
mov word [esp + 0x2b0], di
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x2b2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.00401e20
push eax
push str.TSLOG
push ebx
push str._s_s._s__d_..log
lea ecx, [esp + 0x2c4]
push 0x104
push ecx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x1c
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x2b4]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [esp + 0x28]
mov edi, 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 [esp + 0x4cc], 2
cmp edi, 0xffffffff
je 0x4044bc
push ebx
lea ecx, [esp + 0x2c]
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 ecx, [esp + 0x8c]
push ecx
lea ecx, [esp + 0x2c]
call dword [0x4182f0]
lea ecx, [esp + 0x28]
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 0x4044ac
lea ecx, [esp + 0x28]
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_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeleteLogFile_Failed__ErrorCode_:__d_0x_08x___LogFilePath_:__s
push esi
call fcn.004023c0
add esp, 0x14
lea edx, [esp + 0x60]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404453
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x4cc], 0
lea ecx, [esp + 0x28]
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 dword [esp + 0x4cc], 0xffffffff
lea ecx, [esp + 0x44]
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 [esp + 0x4c4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4bc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414f09
mov esp, ebp
pop ebp
ret 4