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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551620
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x61308c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xa0], eax
lea ecx, [ebp - 0xa4]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x405913
push esi
call fcn.00512116
add esp, 4
mov edi, eax
mov dword [ebp - 0xac], edi
test edi, edi
je 0x405913
mov dword [ebp - 4], 0
push edi
push esi
push dword [ebp - 0xa4]
push dword [ebp - 0xa0]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x405513
mov dword [ebp - 0xa8], eax
push 0x608838
lea eax, [ebp - 0xa8]
push eax
call fcn.0052a47b
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
push eax
push 0x5879ac
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x405582
cmp dword [ebp - 0x9c], 0x34
jne 0x405582
push 0x34
push dword [ebp - 0x98]
lea eax, [ebx + 4]
push eax
call fcn.0052a8c0
movzx eax, word [ebx + 0x10]
movzx ecx, word [ebx + 0x12]
movzx edx, word [ebx + 0xc]
movzx esi, word [ebx + 0xe]
push eax
push ecx
push edx
push esi
push 0x5879b0
lea eax, [ebp - 0x94]
push eax
call fcn.00405bc0
add esp, 0x24
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebx + 0x38]
call fcn.00404730
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
push eax
push 0x5879c8
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov dword [ebp - 0xa0], 0
push 0
lea eax, [ebp - 0xa0]
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call esi
movzx eax, ax
push eax
push dword [ebp - 0x9c]
push dword [ebp - 0x98]
call fcn.004053f0
test eax, eax
jne 0x405644
push 1
lea eax, [ebp - 0xa0]
push eax
call esi
movzx eax, ax
push eax
push dword [ebp - 0x9c]
push dword [ebp - 0x98]
call fcn.004053f0
test eax, eax
jne 0x405644
push 1
lea eax, [ebp - 0xa0]
push eax
push 0
push dword [ebp - 0x9c]
push dword [ebp - 0x98]
call fcn.004053f0
test eax, eax
jne 0x405644
push 1
lea eax, [ebp - 0xa0]
push eax
push 9
push dword [ebp - 0x9c]
push dword [ebp - 0x98]
call fcn.004053f0
test eax, eax
jne 0x405644
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax]
mov dword [ebp - 0xa0], ecx
jmp 0x40564a
mov ecx, dword [ebp - 0xa0]
mov eax, ecx
shr eax, 0x10
push eax
movzx eax, cx
push eax
push str.StringFileInfo_04X_04X_
lea eax, [ebp - 0x94]
push eax
call fcn.00405bc0
add esp, 0x10
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
push eax
push 0x587a30
lea eax, [ebp - 0x94]
push eax
push edi
call fcn.00405940
test eax, eax
je 0x40569a
push dword [ebp - 0x98]
lea ecx, [ebx + 0x68]
call fcn.00404730
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
push eax
push 0x587a48
lea eax, [ebp - 0x94]
push eax
push edi
call fcn.00405940
test eax, eax
je 0x4056cf
push dword [ebp - 0x98]
lea ecx, [ebx + 0x80]
call fcn.00404730
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
push eax
push 0x587a68
lea eax, [ebp - 0x94]
push eax
push edi
call fcn.00405940
test eax, eax
je 0x405704
push dword [ebp - 0x98]
lea ecx, [ebx + 0x98]
call fcn.00404730
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
push eax
push 0x587a80
lea eax, [ebp - 0x94]
push eax
push edi
call fcn.00405940
test eax, eax
je 0x405739
push dword [ebp - 0x98]
lea ecx, [ebx + 0xb0]
call fcn.00404730
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
push eax
push 0x587a9c
lea eax, [ebp - 0x94]
push eax
push edi
call fcn.00405940
test eax, eax
je 0x40576e
push dword [ebp - 0x98]
lea ecx, [ebx + 0xc8]
call fcn.00404730
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
push eax
push str.OriginalFileName
lea eax, [ebp - 0x94]
push eax
push edi
call fcn.00405940
test eax, eax
je 0x4057a3
push dword [ebp - 0x98]
lea ecx, [ebx + 0xe0]
call fcn.00404730
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
push eax
push 0x587ae0
lea eax, [ebp - 0x94]
push eax
push edi
call fcn.00405940
test eax, eax
je 0x4057d8
push dword [ebp - 0x98]
lea ecx, [ebx + 0xf8]
call fcn.00404730
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
push eax
push 0x587af8
lea eax, [ebp - 0x94]
push eax
push edi
call fcn.00405940
test eax, eax
je 0x40580d
push dword [ebp - 0x98]
lea ecx, [ebx + 0x110]
call fcn.00404730
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
push eax
push str.Comments
lea eax, [ebp - 0x94]
push eax
push edi
call fcn.00405940
test eax, eax
je 0x405842
push dword [ebp - 0x98]
lea ecx, [ebx + 0x128]
call fcn.00404730
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
push eax
push str.LegalTrademarks
lea eax, [ebp - 0x94]
push eax
push edi
call fcn.00405940
test eax, eax
je 0x405877
push dword [ebp - 0x98]
lea ecx, [ebx + 0x140]
call fcn.00404730
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
push eax
push str.PrivateBuild
lea eax, [ebp - 0x94]
push eax
push edi
call fcn.00405940
test eax, eax
je 0x4058ac
push dword [ebp - 0x98]
lea ecx, [ebx + 0x158]
call fcn.00404730
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x98]
push eax
push str.SpecialBuild
lea eax, [ebp - 0x94]
push eax
push edi
call fcn.00405940
test eax, eax
je 0x4058e1
push dword [ebp - 0x98]
lea ecx, [ebx + 0x170]
call fcn.00404730
push edi
call fcn.0051211f
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, 1
jmp 0x405915
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005120a1
mov esp, ebp
pop ebp
ret 8