Function at 0x415b89
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, 0x4547db
call fcn.0043e130
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.0043e580
xor eax, eax
mov word [ebp + 0x22c], ax
push edi
push ebx
lea eax, [ebp + 0x22e]
push eax
call fcn.0043e580
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 0x415c2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
push 0x46d4e0
lea eax, [ebp - 0x48]
push eax
call fcn.0043e3c0
lea ecx, [esi + 0x180]
lea eax, [ebp + 0x434]
push eax
call fcn.00402f49
lea edi, [esi + 0x18c]
lea eax, [ebp + 0x434]
push eax
mov ecx, edi
call fcn.00402f49
push 0x5c
mov ecx, edi
call fcn.004141af
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0040b9ef
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.0040342d
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.004024c1
push str.Plugins
mov ecx, edi
call fcn.0040f700
mov eax, dword [edi]
lea ecx, [ebp]
push ecx
push eax
call fcn.0042b433
test eax, eax
jne 0x415cad
push str.Error__SUSystemInfo::GetApplicationInformation__Plugins_directory_is_missing._n
call fcn.0043e311
pop ecx
mov ecx, edi
call fcn.00401947
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 0x415e7e
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416d05
pop ecx
mov dword [esi + 0x1a0], eax
cmp eax, ebx
jne 0x415cff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
push 0x46d4e0
lea eax, [ebp - 0x3c]
jmp 0x415c27
push eax
push edi
push ebx
lea eax, [ebp + 0x434]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x415d28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x44], eax
push 0x46d4e0
lea eax, [ebp - 0x44]
jmp 0x415c27
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 0x415d60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
push 0x46d4e0
lea eax, [ebp - 0x4c]
jmp 0x415c27
lea ecx, [ebp - 0x18]
call fcn.00402497
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.0040512b
add esp, 0x10
push str.ProductVersion
lea ecx, [ebp - 0x18]
call fcn.0040f700
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 0x415dc9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
push 0x46d4e0
lea eax, [ebp - 0x24]
jmp 0x415c27
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.004034b4
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x188]
call fcn.0040342d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004024c1
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.0040512b
add esp, 0x10
push str.ProductName
lea ecx, [ebp - 0x18]
call fcn.0040f700
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 0x415e4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
push 0x46d4e0
lea eax, [ebp - 0x40]
jmp 0x415c27
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.004034b4
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0x184]
call fcn.0040342d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004024c1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.004024c1
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 0x415ea4
mov dword [ebp - 0x38], eax
push 0x46a440
lea eax, [ebp - 0x38]
jmp 0x415c27
add esi, 0x190
lea eax, [ebp + 0x22c]
push eax
mov ecx, esi
call fcn.00402f49
mov edi, 0x45b598
push edi
lea ecx, [ebp - 0x14]
call fcn.004034b4
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.0040c041
add esp, 0xc
mov byte [ebp - 4], 6
push eax
mov ecx, esi
call fcn.0041039c
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call fcn.004024c1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.004024c1
mov eax, dword [esi]
lea ecx, [ebp]
push ecx
push eax
call fcn.0042b433
test eax, eax
jne 0x415f34
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x415f34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
push 0x46d4e0
lea eax, [ebp - 0x28]
jmp 0x415c27
push edi
lea ecx, [ebp - 0x14]
call fcn.004034b4
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.0040c041
add esp, 0xc
mov byte [ebp - 4], 8
push eax
mov ecx, esi
call fcn.0041039c
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c]
call fcn.004024c1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.004024c1
mov eax, dword [esi]
lea ecx, [ebp]
push ecx
push eax
call fcn.0042b433
test eax, eax
jne 0x415fab
mov esi, dword [esi]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x415fab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
push 0x46d4e0
lea eax, [ebp - 0x2c]
jmp 0x415c27
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.0043e0ee
add ebp, 0x640
leave
ret