Function at 0x415c06
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, 0x45486e
call fcn.0043e1aa
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.0043e5f0
xor eax, eax
mov word [ebp + 0x22c], ax
push edi
push ebx
lea eax, [ebp + 0x22e]
push eax
call fcn.0043e5f0
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 0x415caa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
push 0x46d548
lea eax, [ebp - 0x48]
push eax
call fcn.0043e43a
lea ecx, [esi + 0x180]
lea eax, [ebp + 0x434]
push eax
call fcn.00402f44
lea edi, [esi + 0x18c]
lea eax, [ebp + 0x434]
push eax
mov ecx, edi
call fcn.00402f44
push 0x5c
mov ecx, edi
call fcn.0041422c
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.00403428
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.004024cb
push str.Plugins
mov ecx, edi
call fcn.0040f72a
mov eax, dword [edi]
lea ecx, [ebp]
push ecx
push eax
call fcn.0042b5ca
test eax, eax
jne 0x415d2a
push str.Error__SUSystemInfo::GetApplicationInformation__Plugins_directory_is_missing._n
call fcn.0043e38b
pop ecx
mov ecx, edi
call fcn.00401951
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 0x415efb
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00416da0
pop ecx
mov dword [esi + 0x1a0], eax
cmp eax, ebx
jne 0x415d7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
push 0x46d548
lea eax, [ebp - 0x3c]
jmp 0x415ca4
push eax
push edi
push ebx
lea eax, [ebp + 0x434]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x415da5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x44], eax
push 0x46d548
lea eax, [ebp - 0x44]
jmp 0x415ca4
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 0x415ddd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
push 0x46d548
lea eax, [ebp - 0x4c]
jmp 0x415ca4
lea ecx, [ebp - 0x18]
call fcn.004024a1
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.0040514e
add esp, 0x10
push 0x45e054
lea ecx, [ebp - 0x18]
call fcn.0040f72a
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 0x415e46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x24], eax
push 0x46d548
lea eax, [ebp - 0x24]
jmp 0x415ca4
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.004034af
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x188]
call fcn.00403428
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004024cb
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.0040514e
add esp, 0x10
push 0x45dfac
lea ecx, [ebp - 0x18]
call fcn.0040f72a
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 0x415ec9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
push 0x46d548
lea eax, [ebp - 0x40]
jmp 0x415ca4
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.004034af
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0x184]
call fcn.00403428
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004024cb
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.004024cb
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 0x415f21
mov dword [ebp - 0x38], eax
push 0x46a478
lea eax, [ebp - 0x38]
jmp 0x415ca4
add esi, 0x190
lea eax, [ebp + 0x22c]
push eax
mov ecx, esi
call fcn.00402f44
mov edi, 0x45b5d8
push edi
lea ecx, [ebp - 0x14]
call fcn.004034af
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.0040c050
add esp, 0xc
mov byte [ebp - 4], 6
push eax
mov ecx, esi
call fcn.004103d8
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call fcn.004024cb
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.004024cb
mov eax, dword [esi]
lea ecx, [ebp]
push ecx
push eax
call fcn.0042b5ca
test eax, eax
jne 0x415fb1
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x415fb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x28], eax
push 0x46d548
lea eax, [ebp - 0x28]
jmp 0x415ca4
push edi
lea ecx, [ebp - 0x14]
call fcn.004034af
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.0040c050
add esp, 0xc
mov byte [ebp - 4], 8
push eax
mov ecx, esi
call fcn.004103d8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c]
call fcn.004024cb
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.004024cb
mov eax, dword [esi]
lea ecx, [ebp]
push ecx
push eax
call fcn.0042b5ca
test eax, eax
jne 0x416028
mov esi, dword [esi]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x416028
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
push 0x46d548
lea eax, [ebp - 0x2c]
jmp 0x415ca4
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.0043e168
add ebp, 0x640
leave
ret