Function at 0x4b27c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c2e0
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push 0x208
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x220], 0
lea eax, [ebp - 0x218]
mov dword [ebp - 0x224], 0
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.kernel32.dll
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
call fcn.00411b00
mov esi, eax
cmp dword [esi + 0xc], 0
jne 0x4b2874
mov ecx, esi
call fcn.004117d0
test eax, eax
je 0x4b2874
push str.GetFileVersionInfoSizeW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4b2a16
push 0
lea ecx, [ebp - 0x218]
push ecx
call eax
mov edi, eax
test edi, edi
je 0x4b2a16
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
cmp edi, 0x7fffffff
ja 0x4b2a37
cmp edi, 0x1000
jb 0x4b28ed
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x4b2a3c
push eax
call fcn.004c6f3f
add esp, 4
test eax, eax
je 0x4b2a10
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x4b28f8
push edi
call fcn.004c6f3f
add esp, 4
mov esi, eax
push edi
push 0
lea ebx, [esi + edi]
mov dword [ebp - 0x234], esi
push esi
mov dword [ebp - 0x22c], ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x230], ebx
mov dword [ebp - 4], 0
test esi, esi
je 0x4b29dd
call fcn.00411b00
mov dword [ebp - 0x21c], eax
cmp dword [eax + 8], 0
jne 0x4b295f
mov ecx, eax
call fcn.004117d0
test eax, eax
je 0x4b2959
push str.GetFileVersionInfoW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x21c]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x21c]
mov eax, dword [eax + 8]
test eax, eax
je 0x4b29dd
push esi
push edi
push 0
lea ecx, [ebp - 0x218]
push ecx
call eax
test eax, eax
je 0x4b29dd
call fcn.00411b00
mov edi, eax
cmp dword [edi + 4], 0
jne 0x4b299e
mov ecx, edi
call fcn.004117d0
test eax, eax
je 0x4b299e
push str.VerQueryValueW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 4], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x4b29dd
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x220]
push ecx
push 0x516d0c
push esi
call eax
test eax, eax
je 0x4b29dd
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x4b29dd
cmp word [eax + 0x12], 0xa
mov ecx, dword [ebp - 0x228]
setae al
xor edi, edi
mov byte [ecx], al
jmp 0x4b29e6
mov edi, 0x80004005
test esi, esi
je 0x4b2a0c
sub ebx, esi
cmp ebx, 0x1000
jb 0x4b2a02
mov ecx, dword [esi - 4]
add ebx, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x4b2a10
mov esi, ecx
push ebx
push esi
call fcn.004c6f6f
add esp, 8
mov eax, edi
jmp 0x4b2a1b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, 0x80004005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret
call fcn.00403880
call fcn.00403850
int3