Function at 0x4ae640
Capabilities:
Get file version info
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524573
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x573054]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x160], ebx
call fcn.004aee00
push ebx
call fcn.004b7500
add esp, 4
test al, al
je 0x4aed6b
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.00405910
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
mov dword [ebp - 0x168], ebx
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x4aed6b
push 0x576220
push ebx
call fcn.0050fb09
add esp, 8
mov esi, eax
test esi, esi
je 0x4aed6b
push esi
push ebx
push dword [ebp - 0x20]
mov ecx, dword [ebp - 0x160]
call fcn.00405910
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x4ae70a
push esi
call fcn.0050fafb
add esp, 4
jmp 0x4aed6b
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x15c]
push eax
push 0x539e20
push esi
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
call ebx
test eax, eax
je 0x4ae754
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x4ae754
cmp dword [ebp - 0x1c], 0x34
jne 0x4ae754
push 0x34
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x160], eax
mov dword [ebp - 0x164], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x15c]
push eax
push str.VarFileInfoTranslation
push esi
call ebx
test eax, eax
je 0x4ae827
cmp dword [ebp - 0x15c], 0
je 0x4ae827
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edx, ax
mov ecx, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x1c]
add eax, ecx
cmp ecx, eax
jae 0x4ae7ae
cmp word [ecx], dx
je 0x4ae817
add ecx, 4
cmp ecx, eax
jb 0x4ae7a2
push 1
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x15c]
call fcn.004aed90
test al, al
jne 0x4ae81b
push 1
lea eax, [ebp - 0x164]
push eax
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x15c]
call fcn.004aed90
test al, al
jne 0x4ae81b
push 1
lea eax, [ebp - 0x164]
push eax
push 9
push dword [ebp - 0x1c]
push dword [ebp - 0x15c]
call fcn.004aed90
test al, al
jne 0x4ae81b
mov eax, dword [ebp - 0x15c]
mov eax, dword [eax]
jmp 0x4ae821
mov eax, dword [ecx]
jmp 0x4ae821
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x160], eax
lea ecx, [ebp - 0x38]
call fcn.00403340
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x160]
mov eax, ecx
shr eax, 0x10
push eax
movzx eax, cx
push eax
push str.StringFileInfo_04X_04X_
lea eax, [ebp - 0x38]
push eax
call fcn.004b43a0
push 0x53ccac
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x158]
call fcn.00408d10
add esp, 0x14
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x158]
call fcn.00405910
push eax
push esi
call ebx
test eax, eax
je 0x4ae8ae
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x4ae8ae
push eax
call fcn.004035e0
add esp, 4
push eax
push dword [ebp - 0x15c]
lea ecx, [edi + 0x34]
call fcn.004033d0
push 0x53cd80
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x140]
call fcn.00408d10
add esp, 4
mov byte [ebp - 4], 4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x140]
call fcn.00405910
push eax
push esi
call ebx
test eax, eax
je 0x4ae908
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x4ae908
push eax
call fcn.004035e0
add esp, 4
push eax
push dword [ebp - 0x15c]
lea ecx, [edi + 0x4c]
call fcn.004033d0
push 0x53cd68
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x128]
call fcn.00408d10
add esp, 4
mov byte [ebp - 4], 5
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x128]
call fcn.00405910
push eax
push esi
call ebx
test eax, eax
je 0x4ae962
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x4ae962
push eax
call fcn.004035e0
add esp, 4
push eax
push dword [ebp - 0x15c]
lea ecx, [edi + 0x64]
call fcn.004033d0
push 0x53cd4c
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x110]
call fcn.00408d10
add esp, 4
mov byte [ebp - 4], 6
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x110]
call fcn.00405910
push eax
push esi
call ebx
test eax, eax
je 0x4ae9bc
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x4ae9bc
push eax
call fcn.004035e0
add esp, 4
push eax
push dword [ebp - 0x15c]
lea ecx, [edi + 0x7c]
call fcn.004033d0
push 0x53cd2c
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0xf8]
call fcn.00408d10
add esp, 4
mov byte [ebp - 4], 7
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0xf8]
call fcn.00405910
push eax
push esi
call ebx
test eax, eax
je 0x4aea19
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x4aea19
push eax
call fcn.004035e0
add esp, 4
push eax
push dword [ebp - 0x15c]
lea ecx, [edi + 0x94]
call fcn.004033d0
push str.OriginalFileName
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0xe0]
call fcn.00408d10
add esp, 4
mov byte [ebp - 4], 8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0xe0]
call fcn.00405910
push eax
push esi
call ebx
test eax, eax
je 0x4aea76
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x4aea76
push eax
call fcn.004035e0
add esp, 4
push eax
push dword [ebp - 0x15c]
lea ecx, [edi + 0xac]
call fcn.004033d0
push 0x53cdd4
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0xc8]
call fcn.00408d10
add esp, 4
mov byte [ebp - 4], 9
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0xc8]
call fcn.00405910
push eax
push esi
call ebx
test eax, eax
je 0x4aead3
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x4aead3
push eax
call fcn.004035e0
add esp, 4
push eax
push dword [ebp - 0x15c]
lea ecx, [edi + 0xc4]
call fcn.004033d0
push 0x53cdb4
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0xb0]
call fcn.00408d10
add esp, 4
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0xb0]
call fcn.00405910
push eax
push esi
call ebx
test eax, eax
je 0x4aeb30
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x4aeb30
push eax
call fcn.004035e0
add esp, 4
push eax
push dword [ebp - 0x15c]
lea ecx, [edi + 0xdc]
call fcn.004033d0
push 0x53cda0
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x98]
call fcn.00408d10
add esp, 4
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x98]
call fcn.00405910
push eax
push esi
call ebx
test eax, eax
je 0x4aeb8d
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x4aeb8d
push eax
call fcn.004035e0
add esp, 4
push eax
push dword [ebp - 0x15c]
lea ecx, [edi + 0xf4]
call fcn.004033d0
push str.LegalTrademarks
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x80]
call fcn.00408d10
add esp, 4
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x80]
call fcn.00405910
push eax
push esi
call ebx
test eax, eax
je 0x4aebe4
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x4aebe4
push eax
call fcn.004035e0
add esp, 4
push eax
push dword [ebp - 0x15c]
lea ecx, [edi + 0x10c]
call fcn.004033d0
push str.PrivateBuild
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x68]
call fcn.00408d10
add esp, 4
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x68]
call fcn.00405910
push eax
push esi
call ebx
test eax, eax
je 0x4aec3b
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x4aec3b
push eax
call fcn.004035e0
add esp, 4
push eax
push dword [ebp - 0x15c]
lea ecx, [edi + 0x124]
call fcn.004033d0
push str.SpecialBuild
lea edx, [ebp - 0x38]
lea ecx, [ebp - 0x50]
call fcn.00408d10
add esp, 4
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x50]
call fcn.00405910
push eax
push esi
call ebx
test eax, eax
je 0x4aec8d
mov ebx, dword [ebp - 0x15c]
test ebx, ebx
je 0x4aec8d
push ebx
call fcn.004035e0
add esp, 4
push eax
push ebx
lea ecx, [edi + 0x13c]
call fcn.004033d0
push esi
call fcn.0050fafb
add esp, 4
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x50]
call fcn.004032a0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x68]
call fcn.004032a0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x80]
call fcn.004032a0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x98]
call fcn.004032a0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xb0]
call fcn.004032a0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xc8]
call fcn.004032a0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xe0]
call fcn.004032a0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xf8]
call fcn.004032a0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x110]
call fcn.004032a0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x128]
call fcn.004032a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x140]
call fcn.004032a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x158]
call fcn.004032a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004032a0
mov al, 1
jmp 0x4aed6d
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0050f48d
mov esp, ebp
pop ebp
ret 4