Function at 0x100015e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10003c49
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
mov dword [ebp - 0x10], 0
xorps xmm0, xmm0
push 0x20
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
call fcn.10002d9a
movups xmm0, xmmword [str.C:ProgramData_bhyy.txt]
mov edx, eax
mov dword [ebp - 0x18], 0x17
mov dword [ebp - 0x28], edx
add esp, 4
mov dword [ebp - 0x14], 0x1f
movups xmmword [edx], xmm0
mov ecx, dword [0x10004270]
mov dword [edx + 0x10], ecx
mov cx, word [0x10004274]
mov word [edx + 0x14], cx
mov al, byte [0x10004276]
mov byte [edx + 0x16], al
mov byte [edx + 0x17], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.100013c0
test al, al
je 0x10001684
push str.C:WindowsLogskill.had
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x10001882
lea ecx, [ebp - 0x74]
mov dword [ebp - 0xdc], 0x10004300
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0xd8]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0xdc]
mov dword [ebp - 0x10], 2
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0xdc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xdc], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xdc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xe0], eax
lea ecx, [ebp - 0xd8]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xd8], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 0x90], 0
mov byte [ebp - 0x9b], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x1000767c]
mov ecx, dword [0x10007680]
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0xa0], 0
push ecx
push 2
push str.C:ProgramData_bhyy.txt
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 3
call fcn.10002660
test eax, eax
jne 0x10001775
push eax
mov eax, dword [ebp - 0xdc]
lea ecx, [ebp - 0xdc]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov byte [ebp - 4], 4
cmp dword [ebp - 0x8c], 0
jne 0x1000178c
mov edx, str.Failed_to_create_file.
jmp 0x10001855
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0x9c]
cmp dword [eax], ecx
jne 0x100017bc
mov edx, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x88]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0xbc]
mov dword [eax], ecx
mov eax, dword [ebp - 0xac]
mov dword [eax], edx
push esi
push edi
lea ecx, [ebp - 0xd8]
call fcn.10002530
push dword [ebp - 0x8c]
xor ecx, ecx
lea esi, [ebp - 0xd8]
test al, al
cmove esi, ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov byte [ebp - 0x90], 0
xor edi, edi
mov byte [ebp - 0x9b], 0
test eax, eax
lea ecx, [ebp - 0xd8]
cmove edi, esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x1000767c]
test edi, edi
mov ecx, dword [0x10007680]
pop edi
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0xa0], 0
pop esi
jne 0x10001850
mov eax, dword [ebp - 0xdc]
lea ecx, [ebp - 0xdc]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov edx, str.File_created_successfully.
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push 0x100029c0
call fcn.100027a0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
lea ecx, [ebp - 0xdc]
call fcn.10001310
mov ecx, str.C:WindowsLogskill.had
call fcn.10001220
mov ecx, str.C:WindowsLogs_afd.had
call fcn.10001220
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x100018c2
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100018b8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100018b8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10002d69
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret