Function at 0x41e53c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x530
mov eax, dword [0x426040]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x41e55e
call eax
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x41e7e1
push esi
push edi
push dword [0x426f08]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x41e6da
mov edi, 0x104
push edi
lea eax, [ebp - 0x530]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x41e594
mov byte [ebp - 0x530], bl
push edi
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x41e5ac
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 0x41e5c9
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 0x41e5e5
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.0041e4a1
lea eax, [ebp - 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x41e602
sub eax, edx
mov ecx, eax
lea eax, [ebp - 0x320]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41e616
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.0041e4a1
lea eax, [ebp - 4]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41e645
sub eax, ecx
lea ecx, [ebp - 0x320]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x41e657
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.0041e3aa
test eax, eax
jne 0x41e697
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.0041e3aa
test eax, eax
jne 0x41e6c5
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x530]
push eax
call fcn.0041e3aa
test eax, eax
jne 0x41e6d1
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x530]
push eax
call fcn.0041e3aa
test eax, eax
je 0x41e6d1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], ebx
jne 0x41e7df
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push esi
push 0x426f2c
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
je 0x41e6fe
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0x426f2c]
cmp eax, ebx
je 0x41e7df
push str.RegOpenKeyExA
push eax
call fcn.0041e43d
push str.RegQueryValueExA
push dword [0x426f2c]
mov esi, eax
call fcn.0041e43d
push str.RegCloseKey
push dword [0x426f2c]
mov edi, eax
call fcn.0041e43d
cmp esi, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
je 0x41e7df
cmp edi, ebx
je 0x41e7df
cmp eax, ebx
je 0x41e7df
lea eax, [ebp - 4]
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call esi
test eax, eax
jne 0x41e7df
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 0x41e7d9
push str.Microsoft_SharedMSLU_
mov esi, 0x105
push esi
lea eax, [ebp - 0x118]
push eax
call fcn.0041e40c
cmp eax, ebx
jl 0x41e7d9
push dword [0x426f08]
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0041e40c
cmp eax, ebx
jl 0x41e7d9
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