Function at 0x4115f8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x530
mov eax, dword [0x42be7c]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x41161a
call eax
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x41189d
push esi
push edi
push dword [0x42a050]
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x411796
mov edi, 0x104
push edi
lea eax, [ebp - 0x530]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
jne 0x411650
mov byte [ebp - 0x530], bl
push edi
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
test eax, eax
jne 0x411668
mov byte [ebp - 0x428], bl
mov esi, dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push edi
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 8]
call esi
test eax, eax
jne 0x411685
mov byte [ebp - 0x220], bl
push edi
lea eax, [ebp - 0x118]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call esi
test eax, eax
jne 0x4116a1
mov byte [ebp - 0x118], bl
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0041155d
lea eax, [ebp - 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4116be
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x320]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4116d2
sub eax, esi
add eax, ecx
mov byte [ebp + eax - 0x117], bl
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0041155d
lea eax, [ebp - 4]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x411701
sub eax, ecx
lea ecx, [ebp - 0x320]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x411713
sub ecx, esi
add ecx, eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push eax
mov byte [ebp + ecx - 0x21f], bl
call fcn.00411466
test eax, eax
jne 0x411753
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.00411466
test eax, eax
jne 0x411781
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x530]
push eax
call fcn.00411466
test eax, eax
jne 0x41178d
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x530]
push eax
call fcn.00411466
test eax, eax
je 0x41178d
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], ebx
jne 0x41189b
push str.advapi32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
push esi
push 0x42a074
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
je 0x4117ba
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov eax, dword [0x42a074]
cmp eax, ebx
je 0x41189b
push str.RegOpenKeyExA
push eax
call fcn.004114f9
push str.RegQueryValueExA
push dword [0x42a074]
mov esi, eax
call fcn.004114f9
push 0x4234d0
push dword [0x42a074]
mov edi, eax
call fcn.004114f9
cmp esi, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
je 0x41189b
cmp edi, ebx
je 0x41189b
cmp eax, ebx
je 0x41189b
lea eax, [ebp - 4]
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call esi
test eax, eax
jne 0x41189b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x118]
push eax
push ebx
push ebx
push str.CommonFilesDir
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x104
mov byte [ebp - 0x118], bl
call edi
test eax, eax
jne 0x411895
push str.Microsoft_SharedMSLU_
mov esi, 0x105
push esi
lea eax, [ebp - 0x118]
push eax
call fcn.004114c8
cmp eax, ebx
jl 0x411895
push dword [0x42a050]
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004114c8
cmp eax, ebx
jl 0x411895
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [ebp - 8], eax
push dword [ebp - 4]
call dword [ebp - 0x10]
pop edi
pop esi
mov eax, dword [ebp - 8]
pop ebx
leave
ret