Function at 0x4aa2b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e877b
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x53d9f8]
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 0x5102c4
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.004120c0
mov esi, eax
cmp dword [esi + 0xc], 0
jne 0x4aa364
mov ecx, esi
call fcn.00411df0
test eax, eax
je 0x4aa364
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 0x4aa506
push 0
lea ecx, [ebp - 0x218]
push ecx
call eax
mov edi, eax
test edi, edi
je 0x4aa506
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0
cmp edi, 0x7fffffff
ja 0x4aa527
cmp edi, 0x1000
jb 0x4aa3dd
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x4aa52c
push eax
call fcn.004bedfd
add esp, 4
test eax, eax
je 0x4aa500
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x4aa3e8
push edi
call fcn.004bedfd
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 0x4aa4cd
call fcn.004120c0
mov dword [ebp - 0x21c], eax
cmp dword [eax + 8], 0
jne 0x4aa44f
mov ecx, eax
call fcn.00411df0
test eax, eax
je 0x4aa449
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 0x4aa4cd
push esi
push edi
push 0
lea ecx, [ebp - 0x218]
push ecx
call eax
test eax, eax
je 0x4aa4cd
call fcn.004120c0
mov edi, eax
cmp dword [edi + 4], 0
jne 0x4aa48e
mov ecx, edi
call fcn.00411df0
test eax, eax
je 0x4aa48e
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 0x4aa4cd
lea ecx, [ebp - 0x224]
push ecx
lea ecx, [ebp - 0x220]
push ecx
push 0x4f0efc
push esi
call eax
test eax, eax
je 0x4aa4cd
mov eax, dword [ebp - 0x220]
test eax, eax
je 0x4aa4cd
cmp word [eax + 0x12], 0xa
mov ecx, dword [ebp - 0x228]
setae al
xor edi, edi
mov byte [ecx], al
jmp 0x4aa4d2
mov edi, 0x80004005
test esi, esi
je 0x4aa4fc
sub ebx, esi
cmp ebx, 0x1000
jb 0x4aa4f2
mov ecx, dword [esi - 4]
add ebx, 0x23
sub esi, ecx
lea eax, [esi - 4]
cmp eax, 0x1f
ja 0x4aa500
mov esi, ecx
push ebx
push esi
call fcn.004bee2d
add esp, 8
mov eax, edi
jmp 0x4aa50b
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.004bee49
mov esp, ebp
pop ebp
ret
call fcn.004031c0
call fcn.00403190
int3