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

Disassembly:
push 0xffffffffffffffff
push 0x41ffa4
mov eax, dword fs:[0]
push eax
sub esp, 0x4b4
mov eax, dword [0x4300b8]
xor eax, esp
mov dword [esp + 0x4b0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4300b8]
xor eax, esp
push eax
lea eax, [esp + 0x4c8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4d8]
lea ecx, [esp + 0x50]
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 dword [esp + 0x4d0], 0
lea eax, [ebp + 0xf8]
push eax
lea ecx, [esp + 0x1c]
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__]
mov byte [esp + 0x4d0], 1
lea ecx, [esp + 0x50]
push ecx
lea edi, [esp + 0x1c]
call fcn.00416f60
add esp, 4
mov byte [esp + 0x4d0], 0
mov ecx, edi
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 [esp + 0x68], 8
mov ebx, dword [esp + 0x54]
jae 0x414020
lea ebx, [esp + 0x54]
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x2c6]
push eax
mov word [esp + 0x2c8], dx
call sub.MSVCR90.dll_memset
xor ecx, ecx
add esp, 0xc
cmp cx, word [0x431138]
je 0x414052
mov eax, 0x431138
jmp 0x414057
call fcn.00413ea0
mov edx, dword [esp + 0x4dc]
push edx
push eax
push str.TSLOG
push ebx
push str._s_s._s__d_..log
lea eax, [esp + 0x2d0]
push 0x104
push eax
call dword [sym.imp.MSVCR90.dll__snwprintf]
add esp, 0x1c
lea ecx, [esp + 0x6c]
push ecx
lea edx, [esp + 0x2c0]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [esp + 0x34]
mov edi, 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 [esp + 0x4d0], 2
cmp edi, 0xffffffff
je 0x41411e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
lea ecx, [esp + 0x38]
call dword [0x422258]
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x38]
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 [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x4140df
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41410e
cmp dword [esp + 0x4c], 8
mov eax, dword [esp + 0x38]
jae 0x4140f9
lea eax, [esp + 0x38]
push eax
call esi
push eax
call esi
push eax
push str.DeleteLogFile_Failed__ErrorCode_:__d_0x_08x___LogFilePath_:__s
push ebp
call fcn.00416ba0
add esp, 0x14
lea ecx, [esp + 0x6c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4140b3
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x4d0], 0
lea ecx, [esp + 0x34]
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 dword [esp + 0x4d0], 0xffffffff
lea ecx, [esp + 0x50]
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 [esp + 0x4c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4b0]
xor ecx, esp
call fcn.0041e4d2
add esp, 0x4c0
ret 8