Function at 0x536c130
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53ed9f2
mov eax, dword fs:[0]
push eax
sub esp, 0x358
mov eax, dword [0x54183c4]
xor eax, esp
mov dword [esp + 0x350], eax
push ebx
push esi
push edi
mov eax, dword [0x54183c4]
xor eax, esp
push eax
lea eax, [esp + 0x368]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
mov dword [esp + 0x1c], ecx
call fcn.05369d40
test al, al
je 0x536c1af
mov eax, dword [0x5419944]
cmp eax, 0x5419944
je 0x536c1af
test byte [eax + 0x1c], 1
je 0x536c1af
cmp byte [eax + 0x19], 2
jb 0x536c1af
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
push 0x53f9718
push 0x14
push ecx
push edx
call fcn.052e5970
add esp, 0x10
mov dword [esp + 0x370], ebx
push 0x2c
mov dword [esp + 0x28], ebx
call fcn.053506ca
add esp, 4
cmp eax, ebx
je 0x536ca8c
mov dword [esp + 0x20], eax
mov dword [eax], eax
mov eax, dword [esp + 0x20]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x20]
mov dword [eax + 8], eax
mov eax, dword [esp + 0x20]
mov byte [eax + 0x28], 1
mov ecx, dword [esp + 0x20]
mov byte [ecx + 0x29], 1
lea edi, [esp + 0x54]
mov byte [esp + 0x370], 1
call fcn.052ee360
mov edi, eax
lea edx, [esp + 0x14]
mov byte [esp + 0x370], 2
push edx
mov dword [esp + 0x18], str.SOFTWARESymantecSymantec_Endpoint_Protection
call fcn.052edce0
lea eax, [esp + 0x14]
push eax
mov eax, edi
mov dword [esp + 0x18], str.SOFTWAREWow6432NodeSymantec
call fcn.052edce0
lea ecx, [esp + 0x14]
push ecx
mov eax, edi
mov dword [esp + 0x18], str.SOFTWAREWow6432NodeSymantecSymantec_Endpoint_Protection
call fcn.052edce0
lea esi, [esp + 0x11c]
mov ecx, edi
call fcn.052ee500
mov edx, esi
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x374], 3
call fcn.052ed9a0
mov esi, dword [esp + 0x11c]
cmp esi, ebx
je 0x536c296
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x120]
push eax
lea ecx, [esp + 0x12c]
push ecx
push edx
push esi
call fcn.052e8d90
push esi
call fcn.053504e7
add esp, 0x14
lea esi, [esp + 0x54]
mov byte [esp + 0x370], 6
call fcn.052edae0
mov eax, dword [esp + 0x54]
push eax
call fcn.053504e7
add esp, 4
lea edi, [esp + 0x3c]
mov dword [esp + 0x54], ebx
call fcn.052ee430
mov edi, eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x370], 7
push ecx
mov dword [esp + 0x18], str._INSTALLDIR64_
call fcn.052edce0
lea edx, [esp + 0x14]
push edx
mov eax, edi
mov dword [esp + 0x18], str._APPDATA_
call fcn.052edce0
lea eax, [esp + 0x14]
push eax
mov eax, edi
mov dword [esp + 0x18], str._SEPDRIVERDIR_
call fcn.052edce0
lea ecx, [esp + 0x14]
push ecx
mov eax, edi
mov dword [esp + 0x18], str._APPDATA_Definitions
call fcn.052edce0
lea edx, [esp + 0x14]
push edx
mov eax, edi
mov dword [esp + 0x18], str._APPDATA_DefinitionsBASHDefs
call fcn.052edce0
lea eax, [esp + 0x14]
push eax
mov eax, edi
mov dword [esp + 0x18], str._APPDATA_DefinitionsccSubSDK_SCD_Defs
call fcn.052edce0
lea ecx, [esp + 0x14]
push ecx
mov eax, edi
mov dword [esp + 0x18], str._APPDATA_DefinitionsHIDefs
call fcn.052edce0
lea edx, [esp + 0x14]
push edx
mov eax, edi
mov dword [esp + 0x18], str._APPDATA_DefinitionsIPSDefs
call fcn.052edce0
lea eax, [esp + 0x14]
push eax
mov eax, edi
mov dword [esp + 0x18], str._APPDATA_DefinitionsIronRevocationDefs
call fcn.052edce0
lea ecx, [esp + 0x14]
push ecx
mov eax, edi
mov dword [esp + 0x18], str._APPDATA_DefinitionsIronSettingsDefs
call fcn.052edce0
lea edx, [esp + 0x14]
push edx
mov eax, edi
mov dword [esp + 0x18], str._APPDATA_DefinitionsIronWhitelistDefs
call fcn.052edce0
lea eax, [esp + 0x14]
push eax
mov eax, edi
mov dword [esp + 0x18], str._APPDATA_DefinitionsVirusDefs
call fcn.052edce0
lea esi, [esp + 0x11c]
mov ecx, edi
call fcn.052ee500
mov ecx, esi
push ecx
mov byte [esp + 0x374], 8
lea ecx, [esp + 0x58]
call fcn.052ed9a0
mov esi, dword [esp + 0x11c]
cmp esi, ebx
je 0x536c40a
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x120]
push edx
lea eax, [esp + 0x12c]
push eax
push ecx
push esi
call fcn.052e8d90
push esi
call fcn.053504e7
add esp, 0x14
lea esi, [esp + 0x3c]
mov byte [esp + 0x370], 0xb
call fcn.052edae0
mov edx, dword [esp + 0x3c]
push edx
call fcn.053504e7
add esp, 4
lea edi, [esp + 0x104]
mov dword [esp + 0x3c], ebx
call fcn.052ee520
mov edi, eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x374], 0xc
mov eax, edi
mov dword [esp + 0x18], str.SAV_Install_Directory
call fcn.052edce0
lea ecx, [esp + 0x14]
push ecx
mov eax, edi
mov dword [esp + 0x18], str.SAVCE
call fcn.052edce0
lea edx, [esp + 0x14]
push edx
mov eax, edi
mov dword [esp + 0x18], str.Common_Client
call fcn.052edce0
lea esi, [esp + 0x11c]
mov ecx, edi
call fcn.052ee500
mov eax, esi
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x374], 0xd
call fcn.052ed9a0
mov esi, dword [esp + 0x11c]
cmp esi, ebx
je 0x536c4cf
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x120]
push ecx
lea edx, [esp + 0x12c]
push edx
push eax
push esi
call fcn.052e8d90
push esi
call fcn.053504e7
add esp, 0x14
lea esi, [esp + 0x104]
mov byte [esp + 0x370], 0x10
call fcn.052edae0
mov ecx, dword [esp + 0x104]
push ecx
call fcn.053504e7
mov eax, dword [esp + 0x30]
add esp, 4
mov dword [esp + 0x104], ebx
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x30]
je 0x536c5bc
lea esp, [esp]
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x14], 8
lea edx, [esp + 0x1c]
lea edi, [esp + 0x3c]
push edx
jb 0x536c525
mov esi, dword [esi]
sub esp, 0x1c
mov ecx, esp
xor eax, eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
mov word [ecx], ax
mov eax, esi
mov dword [esp + 0x13c], esp
lea ebx, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x536c550
sub eax, ebx
sar eax, 1
push eax
push esi
call fcn.052e5800
mov edx, edi
lea ecx, [esp + 0x74]
call fcn.0536b040
test eax, eax
je 0x536c5a7
mov ecx, dword [0x5419944]
cmp ecx, 0x5419944
je 0x536c5a7
test byte [ecx + 0x1c], 1
je 0x536c5a7
cmp byte [ecx + 0x19], 2
jb 0x536c5a7
mov edx, dword [ecx + 0x14]
push eax
mov eax, dword [ecx + 0x10]
push 0x53f9718
push 0xa
push edx
push eax
call fcn.052ed6e0
add esp, 0x14
mov eax, dword [esp + 0x14]
add eax, 0x1c
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x30]
jne 0x536c510
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x15e]
push edx
mov word [esp + 0x160], cx
call fcn.05351b20
add esp, 0xc
push 0x104
lea eax, [esp + 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x6c]
push ecx
call fcn.052e1430
lea edx, [esp + 0x154]
push edx
lea eax, [esp + 0x70]
push eax
mov byte [esp + 0x378], 0x11
call fcn.052e8240
add esp, 8
push str.drivers
push ecx
lea ecx, [esp + 0x74]
push 0x5402540
push ecx
call fcn.052e8240
add esp, 0xc
push eax
call fcn.052e8240
add esp, 8
lea ecx, [esp + 0x138]
lea eax, [esp + 0x6c]
call fcn.052e1510
mov byte [esp + 0x370], 0x12
cmp dword [eax + 0x14], 8
jb 0x536c65d
mov edx, dword [eax]
mov dword [esp + 0x14], edx
jmp 0x536c661
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.052eeed0
push eax
lea ecx, [esp + 0x20]
push ecx
lea ebx, [esp + 0x124]
call fcn.052ee8b0
mov edi, 8
mov byte [esp + 0x370], 0x11
cmp dword [esp + 0x14c], edi
jb 0x536c6a7
mov edx, dword [esp + 0x138]
push edx
call fcn.053504e7
add esp, 4
mov eax, dword [esp + 0x20]
mov ebx, dword [eax]
cmp ebx, eax
je 0x536c7c3
cmp dword [ebx + 0x20], edi
lea edx, [ebx + 0xc]
jb 0x536c6bf
mov edx, dword [edx]
xor eax, eax
mov word [esp + 0x11c], ax
mov eax, edx
mov dword [esp + 0x130], 7
mov dword [esp + 0x12c], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x536c6e4
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x124]
call fcn.052e5800
lea ecx, [esp + 0x11c]
mov byte [esp + 0x370], 0x13
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.0536b610
mov byte [esp + 0x370], 0x11
mov esi, eax
cmp dword [esp + 0x130], edi
jb 0x536c73e
mov eax, dword [esp + 0x11c]
push eax
call fcn.053504e7
add esp, 4
test esi, esi
je 0x536c772
mov eax, dword [0x5419944]
cmp eax, 0x5419944
je 0x536c772
test byte [eax + 0x1c], 1
je 0x536c772
cmp byte [eax + 0x19], 2
jb 0x536c772
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
push esi
push 0x53f9718
push 0xb
push ecx
push edx
call fcn.052ed6e0
add esp, 0x14
cmp byte [ebx + 0x29], 0
jne 0x536c7b9
mov ecx, dword [ebx + 8]
cmp byte [ecx + 0x29], 0
jne 0x536c79e
mov eax, dword [ecx]
cmp byte [eax + 0x29], 0
jne 0x536c79a
lea esp, [esp]
mov ecx, eax
mov eax, dword [ecx]
cmp byte [eax + 0x29], 0
je 0x536c790
mov ebx, ecx
jmp 0x536c7b9
mov eax, dword [ebx + 4]
cmp byte [eax + 0x29], 0
jne 0x536c7b7
cmp ebx, dword [eax + 8]
jne 0x536c7b7
mov ebx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0x29], 0
je 0x536c7a7
mov ebx, eax
cmp ebx, dword [esp + 0x20]
jne 0x536c6b5
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 4]
lea eax, [esp + 0xbc]
mov dword [esp + 0x11c], eax
mov dword [esp + edx + 0x6c], vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
test byte [esp + 0xb0], 1
lea eax, [esp + 0x70]
mov dword [esp + 0x14], eax
mov dword [esp + 0x70], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
je 0x536c80c
mov ecx, dword [esp + 0x80]
mov eax, dword [ecx]
push eax
call fcn.053504e7
add esp, 4
mov edx, dword [esp + 0x80]
mov dword [edx], 0
mov eax, dword [esp + 0x90]
mov dword [eax], 0
mov ecx, dword [esp + 0xa0]
mov dword [ecx], 0
mov edx, dword [esp + 0x84]
mov dword [edx], 0
mov eax, dword [esp + 0x94]
mov dword [eax], 0
mov ecx, dword [esp + 0xa4]
mov dword [ecx], 0
and dword [esp + 0xb0], 0xfffffffe
mov dword [esp + 0xac], 0
mov dword [esp + 0x70], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
mov byte [esp + 0x370], 0x15
mov eax, dword [esp + 0xa8]
mov edi, eax
test eax, eax
je 0x536c8d4
mov ebx, dword [eax]
test ebx, ebx
je 0x536c8cb
push 0
lea ecx, [esp + 0x1c]
call fcn.05328f8a
mov eax, dword [ebx + 4]
test eax, eax
je 0x536c8ab
cmp eax, 0xffffffff
jae 0x536c8ab
dec eax
mov dword [ebx + 4], eax
mov esi, dword [ebx + 4]
neg esi
sbb esi, esi
lea ecx, [esp + 0x18]
not esi
call fcn.05328fb2
and esi, ebx
je 0x536c8cb
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
push edi
call fcn.053504e7
add esp, 4
lea ecx, [esp + 0x74]
mov byte [esp + 0x370], 0x14
call fcn.05328fe3
mov byte [esp + 0x370], 0x10
mov ecx, dword [esp + 0x6c]
mov edx, dword [ecx + 4]
lea eax, [esp + 0xbc]
mov dword [esp + edx + 0x6c], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
push eax
mov dword [esp + 0xc0], vtable.std::ios_base.0
call fcn.05328c86
mov edi, dword [esp + 0x40]
add esp, 4
test edi, edi
je 0x536c964
mov ebx, dword [esp + 0x40]
mov esi, edi
cmp edi, ebx
je 0x536c95b
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x536c941
mov eax, dword [esi]
push eax
call fcn.053504e7
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x1c
cmp esi, ebx
jne 0x536c930
push edi
call fcn.053504e7
add esp, 4
mov edi, dword [esp + 0x54]
test edi, edi
je 0x536c9aa
mov ebx, dword [esp + 0x58]
mov esi, edi
cmp edi, ebx
je 0x536c9a1
cmp dword [esi + 0x14], 8
jb 0x536c987
mov eax, dword [esi]
push eax
call fcn.053504e7
add esp, 4
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], dx
add esi, 0x1c
cmp esi, ebx
jne 0x536c976
push edi
call fcn.053504e7
add esp, 4
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x536c9f4
mov ebx, dword [esp + 0x30]
mov esi, edi
cmp edi, ebx
je 0x536c9eb
lea esp, [esp]
cmp dword [esi + 0x14], 8
jb 0x536c9d1
mov eax, dword [esi]
push eax
call fcn.053504e7
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x1c
cmp esi, ebx
jne 0x536c9c0
push edi
call fcn.053504e7
add esp, 4
mov byte [esp + 0x370], 0x16
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [esp + 0x124]
lea esi, [esp + 0x24]
call fcn.052edc20
mov ecx, dword [esp + 0x20]
push ecx
call fcn.053504e7
add esp, 4
push 1
mov dword [esp + 0x374], 0xffffffff
call fcn.05369d40
test al, al
je 0x536ca66
mov eax, dword [0x5419944]
cmp eax, 0x5419944
je 0x536ca66
test byte [eax + 0x1c], 1
je 0x536ca66
cmp byte [eax + 0x19], 2
jb 0x536ca66
mov edx, dword [eax + 0x14]
mov eax, dword [eax + 0x10]
push 0x53f9718
push 0x15
push edx
push eax
call fcn.052e5970
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x368]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x350]
xor ecx, esp
call fcn.0534fc81
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x120]
mov dword [esp + 0x18], ebx
call fcn.0535058b
push 0x540efd0
lea edx, [esp + 0x120]
push edx
mov dword [esp + method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.05350eca
int3