Function at 0x403720
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a2f2
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 0x40378c
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.00405d90
push 0x4062a0
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 0x403c95
mov byte [ebp - 0x3f4], 0
lea ecx, [ebp - 0x43c]
push dword [ebp - 0x3f4]
call fcn.00407ab0
mov byte [ebp - 0x3f4], 0
lea edx, [ebp - 0x2e4]
push dword [ebp - 0x3f4]
lea ecx, [ebp - 0x424]
mov dword [ebp - 4], 0
call fcn.00407a40
lea eax, [ebp - 0x43c]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x424]
lea ecx, [ebp - 0x31c]
call fcn.00401d80
add esp, 0xc
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x410]
cmp ecx, 7
jbe 0x403828
mov edx, dword [ebp - 0x424]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40381e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40387b
push ecx
push edx
call fcn.00408ffb
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 0x40388b
mov edx, dword [ebp - 0x43c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403881
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403881
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00408ffb
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.00402980
test al, al
jne 0x403906
lea ecx, [ebp - 0x31c]
call fcn.00402b90
test al, al
je 0x4038e9
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.00405d90
lea edx, [ebp - 0x31c]
mov ecx, eax
call fcn.004062d0
jmp 0x4038f9
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.00405d90
push 0x4062a0
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.00407a40
lea eax, [ebp - 0x40c]
mov byte [ebp - 4], 7
push eax
lea edx, [ebp - 0x31c]
lea ecx, [ebp - 0x304]
call fcn.00401d80
add esp, 0x38
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x3f8]
cmp ecx, 7
jbe 0x4039f7
mov edx, dword [ebp - 0x40c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4039ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4039ed
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00408ffb
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.004063c0
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x37c], 0
je 0x403bc3
mov edx, 0x40b834
lea ecx, [ebp - 0x3cc]
call fcn.00405d90
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, 0x40b830
mov ecx, eax
call fcn.00405d90
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, 0x40b830
mov ecx, eax
call fcn.00405d90
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, 0x40b82c
mov ecx, eax
call fcn.00405d90
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, 0x40b828
mov ecx, eax
call fcn.00405d90
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, 0x40b828
mov ecx, eax
call fcn.00405d90
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, 0x40b670
mov ecx, eax
call fcn.00405d90
mov edx, str.Running_Processes:_n
lea ecx, [ebp - 0x3cc]
call fcn.00405d90
lea ecx, [ebp - 0x40c]
call fcn.004034c0
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x403b28
mov eax, dword [eax]
push ecx
mov edx, eax
lea ecx, [ebp - 0x3cc]
call fcn.00407850
mov byte [ebp - 4], 0xa
add esp, 4
mov ecx, dword [ebp - 0x3f8]
cmp ecx, 7
jbe 0x403b7f
mov edx, dword [ebp - 0x40c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403b75
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x403b75
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00408ffb
add esp, 8
mov edx, 0x40b670
lea ecx, [ebp - 0x3cc]
call fcn.00405d90
lea ecx, [ebp - 0x3c8]
call fcn.004056f0
test eax, eax
jne 0x403bb6
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 0x403bce
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.00405d90
lea edx, [ebp - 0x304]
mov ecx, eax
call fcn.004062d0
push 0x4062a0
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.00403d30
mov ecx, dword [ebp - 0x2f0]
cmp ecx, 7
jbe 0x403c38
mov edx, dword [ebp - 0x304]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403c2e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403d24
push ecx
push edx
call fcn.00408ffb
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 0x403c95
mov edx, dword [ebp - 0x31c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x403c8b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403d24
push ecx
push edx
call fcn.00408ffb
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.00408ea3
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3