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

Disassembly:
push 0xffffffffffffffff
push 0x442cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
push edi
mov eax, dword [0x4567a0]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebx]
mov edx, dword [eax + 4]
mov ecx, ebx
call edx
lea eax, [esp + 0x1c]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x408ee7
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret
push esi
call fcn.0040ce7d
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x408ed2
mov ecx, dword [esp + 0x1c]
push ebp
push esi
push ecx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x408f1a
push 0x451410
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x20], eax
call fcn.0042b1d2
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x44a5f8
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x408f4d
cmp dword [esp + 0x14], 0x34
jne 0x408f4d
mov edx, dword [esp + 0x10]
push 0x34
push edx
lea eax, [ebx + 4]
push eax
call fcn.00431120
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0x44b39c
push ebp
call sub.VERSION.dll_VerQueryValueW
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [esp + 0x18], 0
call esi
mov ecx, dword [esp + 0x14]
movzx edx, ax
mov eax, dword [esp + 0x10]
add ecx, eax
cmp eax, ecx
jae 0x408f8f
cmp word [eax], dx
je 0x408fdb
add eax, 4
cmp eax, ecx
jb 0x408f83
push 1
call esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
lea edi, [esp + 0x1c]
call fcn.00408e30
test eax, eax
jne 0x408fdf
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 1
call fcn.00408e30
test eax, eax
jne 0x408fdf
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 1
mov eax, 9
call fcn.00408e30
test eax, eax
jne 0x408fdf
mov edx, dword [esp + 0x10]
mov esi, dword [edx]
jmp 0x408fe3
mov esi, dword [eax]
jmp 0x408fe3
mov esi, dword [esp + 0x18]
call fcn.00413b0f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x408ffd
push 0x80004005
call fcn.00401ab0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, esi
shr ecx, 0x10
push ecx
movzx edx, si
push edx
lea eax, [esp + 0x20]
push str.StringFileInfo_04X_04X_
push eax
mov dword [esp + 0x3c], 0
call fcn.004022a0
push 0x44b404
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00402a50
mov eax, dword [eax]
add esp, 0x1c
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40907a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x4090bf
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401e70
lea ecx, [ebx + 0x38]
push eax
mov byte [esp + 0x30], 1
call fcn.00401c70
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4090bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x44b41c
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00402a50
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40910b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x409150
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401e70
lea ecx, [ebx + 0x3c]
push eax
mov byte [esp + 0x30], 2
call fcn.00401c70
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409150
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x44b43c
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00402a50
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40919c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x4091e1
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401e70
lea ecx, [ebx + 0x40]
push eax
mov byte [esp + 0x30], 3
call fcn.00401c70
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4091e1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x44b454
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00402a50
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40922d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x409272
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401e70
lea ecx, [ebx + 0x44]
push eax
mov byte [esp + 0x30], 4
call fcn.00401c70
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409272
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x44b470
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00402a50
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4092be
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x409303
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401e70
lea ecx, [ebx + 0x48]
push eax
mov byte [esp + 0x30], 5
call fcn.00401c70
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409303
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.OriginalFileName
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00402a50
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40934f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x409394
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401e70
lea ecx, [ebx + 0x4c]
push eax
mov byte [esp + 0x30], 6
call fcn.00401c70
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409394
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x44b4b4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00402a50
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4093e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x409425
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401e70
lea ecx, [ebx + 0x50]
push eax
mov byte [esp + 0x30], 7
call fcn.00401c70
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409425
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x44b4cc
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00402a50
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409471
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x4094b6
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401e70
lea ecx, [ebx + 0x54]
push eax
mov byte [esp + 0x30], 8
call fcn.00401c70
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4094b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.Comments
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00402a50
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409502
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x409547
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401e70
lea ecx, [ebx + 0x58]
push eax
mov byte [esp + 0x30], 9
call fcn.00401c70
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409547
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.LegalTrademarks
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00402a50
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409593
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x4095d8
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401e70
lea ecx, [ebx + 0x5c]
push eax
mov byte [esp + 0x30], 0xa
call fcn.00401c70
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4095d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.PrivateBuild
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00402a50
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409624
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x409669
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401e70
lea ecx, [ebx + 0x60]
push eax
mov byte [esp + 0x30], 0xb
call fcn.00401c70
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409669
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.SpecialBuild
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.00402a50
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
mov esi, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4096b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x4096fa
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401e70
lea ecx, [ebx + 0x64]
push eax
mov byte [esp + 0x30], 0xc
call fcn.00401c70
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4096fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push ebp
call fcn.0040ce78
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40972b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret