Function at 0x415c52
Capabilities:
Create directory
Get common file path
Get file version info

Disassembly:
push ebp
sub esp, 0x63c
lea ebp, [esp - 4]
mov eax, dword [0x477930]
xor eax, ebp
mov dword [ebp + 0x63c], eax
push 0x40
mov eax, 0x4548c6
call fcn.0043e1ef
mov esi, ecx
mov dword [ebp - 0x34], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
xor eax, eax
mov word [ebp + 0x434], ax
mov edi, 0x206
push edi
push ebx
lea eax, [ebp + 0x436]
push eax
call fcn.0043e640
xor eax, eax
mov word [ebp + 0x22c], ax
push edi
push ebx
lea eax, [ebp + 0x22e]
push eax
call fcn.0043e640
add esp, 0x18
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
push 0x104
lea eax, [ebp + 0x434]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x415cf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
push 0x46d528
lea eax, [ebp - 0x48]
push eax
call fcn.0043e47f
lea ecx, [esi + 0x180]
lea eax, [ebp + 0x434]
push eax
call fcn.00402f39
lea edi, [esi + 0x18c]
lea eax, [ebp + 0x434]
push eax
mov ecx, edi
call fcn.00402f39
push 0x5c
mov ecx, edi
call fcn.00414278
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0040b9fa
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.0040341d
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.004024c0
push str.Plugins
mov ecx, edi
call fcn.0040f79a
mov eax, dword [edi]
lea ecx, [ebp]
push ecx
push eax
call fcn.0042b60f
test eax, eax
jne 0x415d76
push str.Error__SUSystemInfo::GetApplicationInformation__Plugins_directory_is_missing._n
call fcn.0043e3d0
pop ecx
mov ecx, edi
call fcn.00401946
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x434]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
jbe 0x415f47
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416de5
pop ecx
mov dword [esi + 0x1a0], eax
cmp eax, ebx
jne 0x415dc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
push 0x46d528
lea eax, [ebp - 0x3c]
jmp 0x415cf0
push eax
push edi
push ebx
lea eax, [ebp + 0x434]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x415df1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x44], eax
push 0x46d528
lea eax, [ebp - 0x44]
jmp 0x415cf0
mov dword [ebp - 0x14], ebx
lea edi, [esi + 0x1a4]
lea eax, [ebp - 0x14]
push eax
push edi
push str.VarFileInfoTranslation
push dword [esi + 0x1a0]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x415e29
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
push 0x46d528
lea eax, [ebp - 0x4c]
jmp 0x415cf0
lea ecx, [ebp - 0x18]
call fcn.00402496
mov byte [ebp - 4], 2
mov eax, dword [edi]
movzx ecx, word [eax + 2]
push ecx
movzx eax, word [eax]
push eax
mov edi, str.StringFileInfo_04X_04X_
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00405143
add esp, 0x10
push str.ProductVersion
lea ecx, [ebp - 0x18]
call fcn.0040f79a
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
push dword [esi + 0x1a0]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x415e92
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
push 0x46d528
lea eax, [ebp - 0x24]
jmp 0x415cf0
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.004034a4
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x188]
call fcn.0040341d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004024c0
mov eax, dword [esi + 0x1a4]
movzx ecx, word [eax + 2]
push ecx
movzx eax, word [eax]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00405143
add esp, 0x10
push str.ProductName
lea ecx, [ebp - 0x18]
call fcn.0040f79a
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x18]
push dword [esi + 0x1a0]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x415f15
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
push 0x46d528
lea eax, [ebp - 0x40]
jmp 0x415cf0
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.004034a4
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0x184]
call fcn.0040341d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004024c0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.004024c0
lea eax, [ebp + 0x22c]
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jge 0x415f6d
mov dword [ebp - 0x38], eax
push 0x46a44c
lea eax, [ebp - 0x38]
jmp 0x415cf0
add esi, 0x190
lea eax, [ebp + 0x22c]
push eax
mov ecx, esi
call fcn.00402f39
mov edi, 0x45b5d8
push edi
lea ecx, [ebp - 0x14]
call fcn.004034a4
mov byte [ebp - 4], 5
push dword [sym.imp.SoftwareUpdateFiles.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const_SUConstants::App::Package_Directory_Parent_Name]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040c05b
add esp, 0xc
mov byte [ebp - 4], 6
push eax
mov ecx, esi
call fcn.00410448
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call fcn.004024c0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.004024c0
mov eax, dword [esi]
lea ecx, [ebp]
push ecx
push eax
call fcn.0042b60f
test eax, eax
jne 0x415ffd
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x415ffd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
push 0x46d528
lea eax, [ebp - 0x28]
jmp 0x415cf0
push edi
lea ecx, [ebp - 0x14]
call fcn.004034a4
mov byte [ebp - 4], 7
push dword [sym.imp.SoftwareUpdateFiles.dll_class_ATL::CStringT_wchar_t__class_StrTraitMFC_wchar_t__class_ATL::ChTraitsCRT_wchar_t____const_SUConstants::App::Package_Directory_Name]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040c05b
add esp, 0xc
mov byte [ebp - 4], 8
push eax
mov ecx, esi
call fcn.00410448
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c]
call fcn.004024c0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.004024c0
mov eax, dword [esi]
lea ecx, [ebp]
push ecx
push eax
call fcn.0042b60f
test eax, eax
jne 0x416074
mov esi, dword [esi]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x416074
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
push 0x46d528
lea eax, [ebp - 0x2c]
jmp 0x415cf0
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x63c]
xor ecx, ebp
call fcn.0043e1ad
add ebp, 0x640
leave
ret