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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40eec4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c0
mov eax, dword [0x418110]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c4], 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_]
lea eax, [esi + 0xf8]
xor edi, edi
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x4d8], edi
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__]
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x4dc], 1
call fcn.00402e70
add esp, 8
lea ecx, [esp + 0x14]
mov byte [esp + 0x4d4], 0
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 + 0x4c]
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 + 0x68], di
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x6a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
push eax
mov ecx, esi
mov dword [esp + 0x14], ebx
call fcn.00401730
push eax
push str.TSLOG
push ebx
push str._s_s._s__d_..log
lea ecx, [esp + 0x7c]
push 0x104
push ecx
call dword [sym.imp.MSVCR71.dll__snwprintf]
add esp, 0x1c
lea edx, [esp + 0x270]
push edx
lea eax, [esp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [esp + 0x30]
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_]
cmp edi, 0xffffffff
mov byte [esp + 0x4d4], 2
je 0x40349a
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x34]
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 edx, [esp + 0x29c]
push edx
lea ecx, [esp + 0x34]
call dword [0x410244]
lea ecx, [esp + 0x30]
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 0x403487
lea ecx, [esp + 0x30]
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 ebx
push eax
call ebx
push eax
push str.DeleteLogFile_Failed__ErrorCode_:__d_0x_08x___LogFilePath_:__s
push esi
call fcn.00401be0
add esp, 0x14
lea eax, [esp + 0x270]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403432
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x30]
mov byte [esp + 0x4d4], 0
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_]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4d4], 0xffffffff
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 + 0x4cc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4c4]
call fcn.0040e783
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4