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

Disassembly:
push ebp
lea ebp, [esp - 0x1ac]
sub esp, 0x22c
mov eax, dword [0x480900]
xor eax, ebp
mov dword [ebp + 0x1a8], eax
mov eax, dword [ebp + 0x1b4]
push ebx
push esi
mov esi, dword [ebp + 0x1b8]
push edi
lea ecx, [ebp - 0x80]
push ecx
xor edi, edi
push eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x80], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
cmp ebx, edi
jne 0x413cc5
xor eax, eax
jmp 0x413ea6
lea eax, [ebx + 1]
push 0x4856b8
push eax
call fcn.00450de1
pop ecx
pop ecx
mov dword [ebp - 0x74], eax
cmp eax, edi
je 0x413cbe
lea eax, [ebx + 1]
push eax
push edi
push dword [ebp - 0x74]
call fcn.0044c960
add esp, 0xc
push dword [ebp - 0x74]
push ebx
push edi
push dword [ebp - 0x68]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x413e9a
mov ebx, 0x208
push ebx
lea eax, [ebp - 0x60]
push edi
push eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x7c], edi
call fcn.0044c960
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x74]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x413d83
cmp dword [ebp - 0x70], edi
je 0x413d83
cmp dword [ebp - 0x7c], 4
jne 0x413d83
push 4
push dword [ebp - 0x70]
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x68], edi
call fcn.0044cc20
mov eax, dword [ebp - 0x68]
mov edx, eax
shr edx, 0x10
mov ecx, 0xff
and edx, ecx
push edx
mov edx, eax
shr edx, 0x18
push edx
movzx edx, al
push edx
shr eax, 8
and eax, ecx
push eax
push str.StringFileInfo_02X_02X_02X_02XFileVersion
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.0040fa27
add esp, 0x28
jmp 0x413d9f
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
push str.StringFileInfo_04X04B0FileVersion
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.0040fa27
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x74]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x413e9a
cmp dword [ebp - 0x70], edi
je 0x413e9a
push dword [ebp - 0x70]
lea ecx, [ebp - 0x64]
call fcn.0040b6b5
push edi
push 0x2e
lea ecx, [ebp - 0x64]
call fcn.004120d9
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x64]
cmp eax, 0xffffffff
je 0x413e95
push eax
push edi
lea eax, [ebp - 0x78]
push eax
call fcn.0040b712
push dword [ebp - 0x78]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrToIntW]
call ebx
shl eax, 0x10
add dword [esi + 4], eax
mov eax, dword [ebp - 0x68]
inc eax
push eax
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x64]
call fcn.00413ab1
push eax
lea ecx, [ebp - 0x64]
call fcn.0040ad14
lea ecx, [ebp - 0x68]
call fcn.00408318
push edi
push 0x2e
lea ecx, [ebp - 0x64]
call fcn.004120d9
mov dword [ebp - 0x68], eax
cmp eax, 0xffffffff
je 0x413e8a
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x64]
call fcn.0040b712
push eax
lea ecx, [ebp - 0x78]
call fcn.0040ad14
lea ecx, [ebp - 0x6c]
call fcn.00408318
push dword [ebp - 0x78]
call ebx
add dword [esi + 4], eax
mov eax, dword [ebp - 0x68]
inc eax
push eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x64]
call fcn.00413ab1
push eax
lea ecx, [ebp - 0x64]
call fcn.0040ad14
lea ecx, [ebp - 0x6c]
call fcn.00408318
mov dword [ebp - 0x6c], 1
lea ecx, [ebp - 0x78]
call fcn.00408318
lea ecx, [ebp - 0x64]
call fcn.00408318
push dword [ebp - 0x74]
call fcn.0044d0a0
mov eax, dword [ebp - 0x6c]
pop ecx
mov ecx, dword [ebp + 0x1a8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044cbcc
add ebp, 0x1ac
leave
ret