Function at 0x4574f0
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bdd14
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4ff684]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x25c], 0
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x258], eax
mov eax, edi
jb 0x457546
mov eax, dword [edi]
cmp dword [edi + 0x10], 0x16
jne 0x4577c4
push 0x16
push str.CSIDL_PROGRAM_FILESX64
push eax
call fcn.00412aac
add esp, 0xc
test eax, eax
jne 0x4577c4
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov edi, dword [ebp - 0x258]
mov dword [ebp - 4], eax
test edi, edi
je 0x457612
mov edx, dword [str.plat]
mov ecx, edx
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x238], eax
mov word [ebp - 0x248], ax
lea eax, [ecx + 2]
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x258], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4575c4
sub ecx, dword [ebp - 0x258]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x248]
call fcn.0041441e
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x25c], 1
push eax
mov ecx, edi
call fcn.0044a290
mov byte [ebp - 0x24d], 0
test al, al
jne 0x457619
mov byte [ebp - 0x24d], 1
test byte [ebp - 0x25c], 1
mov dword [ebp - 4], 0
je 0x457634
lea ecx, [ebp - 0x248]
call fcn.00414870
cmp byte [ebp - 0x24d], 0
je 0x4576a8
push str.Unable_to_get_the_platform
push 0x33
push str.NWebAdvisor::NXmlUpdater::CDirSubstitution::Substitute
push str.C:Jenkinsworkspacemer_WebAdvisor_XMLUpdater_master_srcXmlUpdaterDirSubstitution.cpp
push 1
call fcn.00449540
mov edx, dword [str._UNKNOWN]
add esp, 0x14
mov ecx, edx
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x457680
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.0041441e
lea ecx, [ebp - 0x230]
call fcn.00414870
jmp 0x4578bc
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0048b4c0
add esp, 0xc
lea ecx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae ecx, dword [ebp - 0x230]
cmp dword [ebp - 0x220], 2
mov dword [ebp - 0x254], ecx
jne 0x45771d
movzx ecx, word [ecx]
mov edi, 0x36
mov edx, 2
mov eax, 0x4d3dd8
cmp ecx, edi
jb 0x45771d
sub dword [ebp - 0x254], eax
cmp cx, di
ja 0x45771d
cmp edx, 1
je 0x45776a
mov ecx, dword [ebp - 0x254]
add eax, 2
dec edx
movzx ecx, word [ecx + eax]
movzx edi, word [eax]
cmp cx, di
jae 0x457700
xor cl, cl
push 0x104
lea eax, [ebp - 0x218]
test cl, cl
push eax
mov edx, str.ProgramFiles
mov eax, str.ProgramW6432
cmove eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x45776e
cmp eax, 0x104
ja 0x45776e
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00412441
lea ecx, [ebp - 0x230]
call fcn.00414870
jmp 0x4578bc
mov cl, 1
jmp 0x45771f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetEnvironmentVariable_failed___d_
push 0x3c
push str.NWebAdvisor::NXmlUpdater::CDirSubstitution::Substitute
push str.C:Jenkinsworkspacemer_WebAdvisor_XMLUpdater_master_srcXmlUpdaterDirSubstitution.cpp
push 1
call fcn.00449540
mov edx, dword [str._UNKNOWN]
add esp, 0x18
mov ecx, edx
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4577b4
jmp 0x45768b
mov eax, dword fs:[0x2c]
mov ecx, dword [0x50729c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x506d1c]
cmp eax, dword [ecx + 4]
jg 0x45798f
push edi
lea eax, [ebp - 0x224]
mov ecx, 0x506d14
push eax
call fcn.00442980
mov ecx, dword [ebp - 0x21c]
cmp byte [ecx + 0xd], 0
jne 0x45785a
mov eax, dword [ecx + 0x20]
add ecx, 0x10
mov dword [ebp - 0x254], eax
cmp dword [ecx + 0x14], 8
jb 0x457816
mov ecx, dword [ecx]
cmp dword [edi + 0x14], 8
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x258], edi
jb 0x45782d
mov eax, dword [edi]
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x254], edx
mov eax, edx
cmovb eax, dword [ebp - 0x254]
push eax
push ecx
push dword [ebp - 0x258]
call fcn.00412aac
add esp, 0xc
test eax, eax
je 0x4578db
jns 0x4578ea
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x457864
mov edi, dword [edi]
push edi
push str.Unknown_folder_identifier:__s
push 0x52
push str.NWebAdvisor::NXmlUpdater::CDirSubstitution::Substitute
push str.C:Jenkinsworkspacemer_WebAdvisor_XMLUpdater_master_srcXmlUpdaterDirSubstitution.cpp
push 1
call fcn.00449540
mov edx, dword [str._UNKNOWN]
add esp, 0x18
mov ecx, edx
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4578a4
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.0041441e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00488f07
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x254]
cmp dword [edi + 0x10], eax
jb 0x45785a
mov eax, dword [ebp - 0x21c]
cmp eax, dword [0x506d14]
je 0x45785a
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x24c], 0
push ecx
push 0
push 0
add eax, 0x28
push eax
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
je 0x457954
cmp dword [edi + 0x14], 8
jb 0x457926
mov edi, dword [edi]
push edi
push str.Error_retrieving_directory__s
push 0x59
push str.NWebAdvisor::NXmlUpdater::CDirSubstitution::Substitute
push str.C:Jenkinsworkspacemer_WebAdvisor_XMLUpdater_master_srcXmlUpdaterDirSubstitution.cpp
push 1
call fcn.00449540
add esp, 0x18
mov ecx, esi
push dword [0x4ff4c8]
call fcn.00412441
jmp 0x4578bc
push dword [ebp - 0x24c]
lea ecx, [ebp - 0x248]
call fcn.00412441
push dword [ebp - 0x24c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [ebp - 0x248]
mov ecx, esi
push eax
call fcn.00415452
lea ecx, [ebp - 0x248]
call fcn.00414870
jmp 0x4578bc
push 0x506d1c
call fcn.0048949a
add esp, 4
cmp dword [0x506d1c], 0xffffffff
jne 0x4577e4
push 0x4dd678
push str.CSIDL_COMMON_APPDATA
lea ecx, [ebp - 0x1a0]
mov dword [ebp - 4], 2
call fcn.00456fc0
push 0x4dd688
push str.CSIDL_COMMON_DOCUMENTS
lea ecx, [ebp - 0x178]
mov byte [ebp - 4], 3
call fcn.00456fc0
push 0x4dd658
push str.CSIDL_COMMON_STARTUP
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 4
call fcn.00456fc0
push 0x13
xor eax, eax
mov dword [ebp - 0x128], 0
push str.CSIDL_PROGRAM_FILES
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 5
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 7
mov word [ebp - 0x128], ax
call fcn.0041441e
movups xmm0, xmmword [0x4dd698]
movups xmmword [ebp - 0x110], xmm0
push 0x4dd638
push str.CSIDL_PROGRAM_FILESX86
lea ecx, [ebp - 0x100]
mov byte [ebp - 4], 6
call fcn.00456fc0
push 0x4dd6a8
push str.CSIDL_PROGRAM_FILESX64
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 7
call fcn.00456fc0
push 0x1a
xor eax, eax
mov dword [ebp - 0xb0], 0
push str.CSIDL_PROGRAM_FILES_COMMON
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 8
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 7
mov word [ebp - 0xb0], ax
call fcn.0041441e
movups xmm0, xmmword [0x4dd628]
movups xmmword [ebp - 0x98], xmm0
push 0xc
xor eax, eax
mov dword [ebp - 0x88], 0
push str.CSIDL_SYSTEM
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 9
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
mov word [ebp - 0x88], ax
call fcn.0041441e
movups xmm0, xmmword [0x4dd6b8]
movups xmmword [ebp - 0x70], xmm0
push 0xf
xor eax, eax
mov dword [ebp - 0x60], 0
push str.CSIDL_SYSTEMX86
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 7
mov word [ebp - 0x60], ax
call fcn.0041441e
movups xmm0, xmmword [0x4dd648]
movups xmmword [ebp - 0x48], xmm0
push 0xd
xor eax, eax
mov dword [ebp - 0x38], 0
push str.CSIDL_WINDOWS
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 7
mov word [ebp - 0x38], ax
call fcn.0041441e
movups xmm0, xmmword [0x4dd668]
movups xmmword [ebp - 0x20], xmm0
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1a0]
push eax
push ecx
mov ecx, 0x506d14
call fcn.00457300
push 0x41d9d0
push 0xa
push 0x28
lea eax, [ebp - 0x1a0]
mov byte [ebp - 4], 2
push eax
call fcn.00489177
push 0x4cd690
call fcn.00489162
push 0x506d1c
mov dword [ebp - 4], 0xffffffff
call fcn.00489450
add esp, 8
jmp 0x4577e4