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

Disassembly:
push ebp
sub esp, 0x858
lea ebp, [esp - 4]
mov eax, dword [0x482910]
xor eax, ebp
mov dword [ebp + 0x858], eax
push 0xa4
mov eax, 0x45e5d0
call fcn.00444c27
mov esi, ecx
mov dword [ebp - 0x48], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
xor eax, eax
mov word [ebp + 0x450], ax
mov edi, 0x206
push edi
push ebx
lea eax, [ebp + 0x452]
push eax
call fcn.00445180
xor eax, eax
mov word [ebp + 0x248], ax
push edi
push ebx
lea eax, [ebp + 0x24a]
push eax
call fcn.00445180
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 + 0x450]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x41a97e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x5c], eax
push 0x477108
lea eax, [ebp - 0x5c]
push eax
call fcn.00444fc4
lea ecx, [esi + 0x180]
lea eax, [ebp + 0x450]
push eax
call fcn.00402eb1
lea edi, [esi + 0x18c]
lea eax, [ebp + 0x450]
push eax
mov ecx, edi
call fcn.00402eb1
push 0x5c
mov ecx, edi
call fcn.004187e8
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0040d953
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.004031f9
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402594
push str.Plugins
mov ecx, edi
call fcn.00412921
mov eax, dword [edi]
lea ecx, [ebp]
push ecx
push eax
call fcn.00431d13
test eax, eax
jne 0x41ab17
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
xor eax, eax
mov word [ebp + 0x658], ax
push 0x1fe
push ebx
lea eax, [ebp + 0x65a]
push eax
call fcn.00445180
movzx eax, word [ebp - 0x22]
push eax
movzx eax, word [ebp - 0x24]
push eax
movzx eax, word [ebp - 0x26]
push eax
movzx eax, word [ebp - 0x28]
push eax
movzx eax, word [ebp - 0x2a]
push eax
movzx eax, word [ebp - 0x2e]
push eax
movzx eax, word [ebp - 0x30]
push eax
push str.__04d__02d__02d__02d:_02d:_02d:_04d_
push 0x100
lea eax, [ebp + 0x658]
push eax
call fcn.00401353
add esp, 0x34
lea ecx, [ebp + 0x22c]
call fcn.00402657
mov byte [ebp - 4], 2
push str.Error__SUSystemInfo::GetApplicationInformation__Plugins_directory_is_missing._n
lea ecx, [ebp - 0xb0]
call fcn.0040329d
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
lea eax, [ebp + 0x658]
push eax
lea ecx, [ebp - 0x94]
call fcn.0040329d
mov byte [ebp - 4], 4
push dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.004032bf
add esp, 0xc
mov byte [ebp - 4], 5
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x22c]
call fcn.00402ed6
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x78]
call fcn.0040236c
mov byte [ebp - 4], 3
push ebx
push 1
lea ecx, [ebp - 0x94]
call fcn.0040236c
mov byte [ebp - 4], 2
push ebx
push 1
lea ecx, [ebp - 0xb0]
call fcn.0040236c
cmp dword [ebp + 0x244], 8
mov eax, dword [ebp + 0x230]
jae 0x41aaf8
lea eax, [ebp + 0x230]
push eax
call fcn.0044529f
pop ecx
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp + 0x22c]
call fcn.0040236c
mov ecx, edi
call fcn.00401a36
mov dword [ebp - 0x44], ebx
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0x450]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
jbe 0x41ace8
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041d4d5
pop ecx
mov dword [esi + 0x1a0], eax
cmp eax, ebx
jne 0x41ab69
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x38], eax
push 0x477108
lea eax, [ebp - 0x38]
jmp 0x41a978
push eax
push edi
push ebx
lea eax, [ebp + 0x450]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x41ab92
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x3c], eax
push 0x477108
lea eax, [ebp - 0x3c]
jmp 0x41a978
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 0x41abca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
push 0x477108
lea eax, [ebp - 0x4c]
jmp 0x41a978
lea ecx, [ebp - 0x18]
call fcn.0040256a
mov byte [ebp - 4], 6
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.00406e27
add esp, 0x10
push str.ProductVersion
lea ecx, [ebp - 0x18]
call fcn.00412921
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 0x41ac33
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x54], eax
push 0x477108
lea eax, [ebp - 0x54]
jmp 0x41a978
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.00403312
mov byte [ebp - 4], 7
push eax
lea ecx, [esi + 0x188]
call fcn.004031f9
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1c]
call fcn.00402594
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.00406e27
add esp, 0x10
push str.ProductName
lea ecx, [ebp - 0x18]
call fcn.00412921
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 0x41acb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x58], eax
push 0x477108
lea eax, [ebp - 0x58]
jmp 0x41a978
push dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
call fcn.00403312
mov byte [ebp - 4], 8
push eax
lea ecx, [esi + 0x184]
call fcn.004031f9
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x1c]
call fcn.00402594
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00402594
lea eax, [ebp + 0x248]
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jge 0x41ad0e
mov dword [ebp - 0x34], eax
push 0x474b50
lea eax, [ebp - 0x34]
jmp 0x41a978
add esi, 0x190
lea eax, [ebp + 0x248]
push eax
mov ecx, esi
call fcn.00402eb1
mov edi, 0x465700
push edi
lea ecx, [ebp - 0x14]
call fcn.00403312
mov byte [ebp - 4], 9
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.0040dfa5
add esp, 0xc
mov byte [ebp - 4], 0xa
push eax
mov ecx, esi
call fcn.0041365d
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x1c]
call fcn.00402594
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402594
mov eax, dword [esi]
lea ecx, [ebp]
push ecx
push eax
call fcn.00431d13
test eax, eax
jne 0x41ad9e
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41ad9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40], eax
push 0x477108
lea eax, [ebp - 0x40]
jmp 0x41a978
push edi
lea ecx, [ebp - 0x14]
call fcn.00403312
mov byte [ebp - 4], 0xb
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.0040dfa5
add esp, 0xc
mov byte [ebp - 4], 0xc
push eax
mov ecx, esi
call fcn.0041365d
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x1c]
call fcn.00402594
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402594
mov eax, dword [esi]
lea ecx, [ebp]
push ecx
push eax
call fcn.00431d13
test eax, eax
jne 0x41ae15
mov esi, dword [esi]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41ae15
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
push 0x477108
lea eax, [ebp - 0x50]
jmp 0x41a978
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 + 0x858]
xor ecx, ebp
call fcn.00444be5
add ebp, 0x85c
leave
ret