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

Disassembly:
push 0x1c
mov eax, 0x55fb65
call fcn.00539a0e
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x498834
push esi
call fcn.0052f69b
mov ebx, eax
pop ecx
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x498834
and dword [ebp - 4], 0
push ebx
push esi
push dword [ebp - 0x20]
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x498288
and dword [ebp - 0x24], eax
push 0x59757c
lea eax, [ebp - 0x24]
push eax
call fcn.005398a2
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x57c664
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4982b6
cmp dword [ebp - 0x14], 0x34
jne 0x4982b6
push 0x34
push dword [ebp + 0xc]
lea eax, [edi + 4]
push eax
call fcn.00537090
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0xc]
push eax
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueW
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
call esi
mov ecx, dword [ebp - 0x14]
mov edx, eax
mov eax, dword [ebp + 0xc]
call fcn.0049814e
test eax, eax
jne 0x49833c
push 1
lea eax, [ebp - 0x1c]
push eax
call esi
mov ecx, dword [ebp - 0x14]
mov edx, eax
mov eax, dword [ebp + 0xc]
call fcn.0049814e
test eax, eax
jne 0x49833c
mov ecx, dword [ebp - 0x14]
push 1
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0xc]
xor edx, edx
call fcn.0049814e
test eax, eax
jne 0x49833c
mov ecx, dword [ebp - 0x14]
push 1
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0xc]
push 9
pop edx
call fcn.0049814e
test eax, eax
jne 0x49833c
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x5beb28]
mov ecx, 0x5beb28
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
push eax
movzx eax, word [ebp - 0x1c]
push eax
push str.StringFileInfo_04X_04X_
lea eax, [ebp - 0x18]
call fcn.004167f4
add esp, 0xc
lea eax, [ebp - 0x1c]
push str.CompanyName
push eax
lea ecx, [ebp - 0x18]
call fcn.0046853e
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
test esi, esi
je 0x4983ce
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.00408273
add edi, 0x38
mov byte [ebp - 4], 2
call fcn.0041a538
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push 0x588e64
push eax
lea ecx, [ebp - 0x18]
call fcn.0046853e
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
test esi, esi
je 0x49842d
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.00408273
add edi, 0x3c
mov byte [ebp - 4], 3
call fcn.0041a538
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push 0x588e84
push eax
lea ecx, [ebp - 0x18]
call fcn.0046853e
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
test esi, esi
je 0x49848c
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.00408273
add edi, 0x40
mov byte [ebp - 4], 4
call fcn.0041a538
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push 0x588e9c
push eax
lea ecx, [ebp - 0x18]
call fcn.0046853e
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
test esi, esi
je 0x4984eb
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.00408273
add edi, 0x44
mov byte [ebp - 4], 5
call fcn.0041a538
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push 0x588eb8
push eax
lea ecx, [ebp - 0x18]
call fcn.0046853e
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
test esi, esi
je 0x49854a
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.00408273
add edi, 0x48
mov byte [ebp - 4], 6
call fcn.0041a538
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push str.OriginalFileName
push eax
lea ecx, [ebp - 0x18]
call fcn.0046853e
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
test esi, esi
je 0x4985a9
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.00408273
add edi, 0x4c
mov byte [ebp - 4], 7
call fcn.0041a538
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push 0x588efc
push eax
lea ecx, [ebp - 0x18]
call fcn.0046853e
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
test esi, esi
je 0x498608
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.00408273
add edi, 0x50
mov byte [ebp - 4], 8
call fcn.0041a538
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push 0x588f14
push eax
lea ecx, [ebp - 0x18]
call fcn.0046853e
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
test esi, esi
je 0x498667
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.00408273
add edi, 0x54
mov byte [ebp - 4], 9
call fcn.0041a538
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push str.Comments
push eax
lea ecx, [ebp - 0x18]
call fcn.0046853e
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
test esi, esi
je 0x4986c6
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.00408273
add edi, 0x58
mov byte [ebp - 4], 0xa
call fcn.0041a538
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push str.LegalTrademarks
push eax
lea ecx, [ebp - 0x18]
call fcn.0046853e
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
test esi, esi
je 0x498725
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.00408273
add edi, 0x5c
mov byte [ebp - 4], 0xb
call fcn.0041a538
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push str.PrivateBuild
push eax
lea ecx, [ebp - 0x18]
call fcn.0046853e
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
test esi, esi
je 0x498784
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.00408273
add edi, 0x60
mov byte [ebp - 4], 0xc
call fcn.0041a538
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push str.SpecialBuild
push eax
lea ecx, [ebp - 0x18]
call fcn.0046853e
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
test esi, esi
je 0x4987e3
push dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.00408273
add edi, 0x64
mov byte [ebp - 4], 0xd
call fcn.0041a538
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.00407d09
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 8]
add edi, 0x68
add eax, 0x40
call fcn.0041a538
push 0x583f04
push 0x584db0
push edi
call fcn.00432392
push 0
push 0x584254
push edi
call fcn.00432392
push ebx
call fcn.00530cbd
mov eax, dword [ebp - 0x18]
pop ecx
add eax, 0xfffffff0
call fcn.00407d09
xor eax, eax
inc eax
jmp 0x498836
xor eax, eax
call fcn.00539ab3
ret 8