Function at 0x403e00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b002
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x2e4]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x403e6c
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
mov edx, str.Failed_to_get_Documents_folder_path.
call fcn.004071a0
push 0x4076b0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
jmp 0x404375
mov byte [ebp - 0x3f4], 0
lea ecx, [ebp - 0x43c]
push dword [ebp - 0x3f4]
call fcn.00408fc0
mov byte [ebp - 0x3f4], 0
lea edx, [ebp - 0x2e4]
push dword [ebp - 0x3f4]
lea ecx, [ebp - 0x424]
mov dword [ebp - 4], 0
call fcn.00408f50
lea eax, [ebp - 0x43c]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x424]
lea ecx, [ebp - 0x31c]
call fcn.00401e80
add esp, 0xc
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x410]
cmp ecx, 7
jbe 0x403f08
mov edx, dword [ebp - 0x424]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403efe
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403f5b
push ecx
push edx
call fcn.00409b73
add esp, 8
xor eax, eax
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x410], 7
mov word [ebp - 0x424], ax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x428]
cmp ecx, 7
jbe 0x403f6b
mov edx, dword [ebp - 0x43c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403f61
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403f61
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00409b73
add esp, 8
xor eax, eax
mov dword [ebp - 0x42c], 0
lea ecx, [ebp - 0x31c]
mov dword [ebp - 0x428], 7
mov word [ebp - 0x43c], ax
mov byte [ebp - 4], 5
call fcn.00402a80
test al, al
jne 0x403fe6
lea ecx, [ebp - 0x31c]
call fcn.00402c90
test al, al
je 0x403fc9
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.Created_logs_directory:
call fcn.004071a0
lea edx, [ebp - 0x31c]
mov ecx, eax
call fcn.004076e0
jmp 0x403fd9
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
mov edx, str.Failed_to_create_logs_directory._It_may_already_exist.
call fcn.004071a0
push 0x4076b0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
push 0
mov dword [ebp - 4], 4
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov dword [ebp - 0x2ec], eax
lea eax, [ebp - 0x2ec]
push eax
lea eax, [ebp - 0x3f0]
mov dword [ebp - 0x2e8], edx
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
push dword [ebp - 0x3f0]
mov eax, dword [ebp - 0x3e0]
push dword [ebp - 0x3ec]
inc eax
push dword [ebp - 0x3e8]
push dword [ebp - 0x3e4]
push eax
mov eax, dword [ebp - 0x3dc]
add eax, 0x76c
push eax
push str.BsLog__04d__02d__02d__02d__02d__02d.txt
lea eax, [ebp - 0xdc]
push 0x64
push eax
call fcn.00401020
mov byte [ebp - 0x3f4], 0
lea edx, [ebp - 0xdc]
push dword [ebp - 0x3f4]
lea ecx, [ebp - 0x40c]
call fcn.00408f50
lea eax, [ebp - 0x40c]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x31c]
lea ecx, [ebp - 0x304]
call fcn.00401e80
add esp, 0x38
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x3f8]
cmp ecx, 7
jbe 0x4040d7
mov edx, dword [ebp - 0x40c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4040cd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4040cd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00409b73
add esp, 8
xor eax, eax
mov dword [ebp - 0x3fc], 0
push 0xb0
push eax
mov word [ebp - 0x40c], ax
lea eax, [ebp - 0x3cc]
push eax
mov dword [ebp - 0x3f8], 7
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x304]
push eax
lea ecx, [ebp - 0x3cc]
call fcn.004077d0
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x37c], 0
je 0x4042a3
mov edx, 0x40c8ac
lea ecx, [ebp - 0x3cc]
call fcn.004071a0
mov ecx, dword [ebp - 0x3dc]
add ecx, 0x76c
push ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
mov edx, 0x40c8a8
mov ecx, eax
call fcn.004071a0
mov ecx, dword [ebp - 0x3e0]
inc ecx
push ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
mov edx, 0x40c8a8
mov ecx, eax
call fcn.004071a0
push dword [ebp - 0x3e4]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
mov edx, 0x40c8a4
mov ecx, eax
call fcn.004071a0
push dword [ebp - 0x3e8]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
mov edx, 0x40c8a0
mov ecx, eax
call fcn.004071a0
push dword [ebp - 0x3ec]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
mov edx, 0x40c8a0
mov ecx, eax
call fcn.004071a0
push dword [ebp - 0x3f0]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___int_]
mov edx, 0x40c6e8
mov ecx, eax
call fcn.004071a0
mov edx, str.Running_Processes:_n
lea ecx, [ebp - 0x3cc]
call fcn.004071a0
lea ecx, [ebp - 0x40c]
call fcn.00403ba0
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x404208
mov eax, dword [eax]
push ecx
mov edx, eax
lea ecx, [ebp - 0x3cc]
call fcn.00408d60
mov byte [ebp - 4], 0xa
add esp, 4
mov ecx, dword [ebp - 0x3f8]
cmp ecx, 7
jbe 0x40425f
mov edx, dword [ebp - 0x40c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404255
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404255
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00409b73
add esp, 8
mov edx, 0x40c6e8
lea ecx, [ebp - 0x3cc]
call fcn.004071a0
lea ecx, [ebp - 0x3c8]
call fcn.00406b70
test eax, eax
jne 0x404296
push eax
mov eax, dword [ebp - 0x3cc]
lea ecx, [ebp - 0x3cc]
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::setstate_int__bool_]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov edx, str.Logged_application_closure_and_running_processes_to:
jmp 0x4042ae
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
mov edx, str.Error_opening_log_file_for_writing:
call fcn.004071a0
lea edx, [ebp - 0x304]
mov ecx, eax
call fcn.004076e0
push 0x4076b0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
lea ecx, [ebp - 0x3cc]
call fcn.00404410
mov ecx, dword [ebp - 0x2f0]
cmp ecx, 7
jbe 0x404318
mov edx, dword [ebp - 0x304]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40430e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404404
push ecx
push edx
call fcn.00409b73
add esp, 8
mov ecx, dword [ebp - 0x308]
xor eax, eax
mov dword [ebp - 0x2f4], 0
mov dword [ebp - 0x2f0], 7
mov word [ebp - 0x304], ax
cmp ecx, 7
jbe 0x404375
mov edx, dword [ebp - 0x31c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40436b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404404
push ecx
push edx
call fcn.00409b73
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00409a1b
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3