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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
mov eax, dword [0x444fe0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
mov dword [ebp - 4], eax
push 0x400
lea ecx, [ebp - 0x820]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00434420
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x820]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x406645
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00419e18
add esp, 8
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00419e18
add esp, 8
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00419e18
add esp, 8
jmp 0x406952
mov edx, dword [ebp - 0x18]
push edx
call fcn.00429cd0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40668f
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00419e18
add esp, 8
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00419e18
add esp, 8
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.00419e18
add esp, 8
jmp 0x406952
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0
lea edx, [ebp - 0x820]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x406946
mov dword [ebp - 0x10], 0
jmp 0x4066bf
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx*4 + 0x444c48], 0
je 0x406946
mov edx, dword [ebp - 0x10]
mov eax, dword [edx*4 + 0x444c48]
push eax
push 0x4b0
mov ecx, dword [ebp - 4]
push ecx
push str.StringFileInfo_04X_04X_s
push 0xff
lea edx, [ebp - 0xa20]
push edx
call fcn.00419d45
add esp, 0x18
lea eax, [ebp - 0xa24]
push eax
lea ecx, [ebp - 0xa28]
push ecx
lea edx, [ebp - 0xa20]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x406772
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx*4 + 0x444c48]
push edx
push 0x4e4
mov eax, dword [ebp - 4]
push eax
push str.StringFileInfo_04X_04X_s
push 0xff
lea ecx, [ebp - 0xa20]
push ecx
call fcn.00419d45
add esp, 0x18
lea edx, [ebp - 0xa24]
push edx
lea eax, [ebp - 0xa28]
push eax
lea ecx, [ebp - 0xa20]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4067c7
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax*4 + 0x444c48]
push ecx
push 0x4b0
push 0x409
push str.StringFileInfo_04X_04X_s
push 0xff
lea edx, [ebp - 0xa20]
push edx
call fcn.00419d45
add esp, 0x18
lea eax, [ebp - 0xa24]
push eax
lea ecx, [ebp - 0xa28]
push ecx
lea edx, [ebp - 0xa20]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40681c
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx*4 + 0x444c48]
push edx
push 0x4e4
push 0x409
push str.StringFileInfo_04X_04X_s
push 0xff
lea eax, [ebp - 0xa20]
push eax
call fcn.00419d45
add esp, 0x18
lea ecx, [ebp - 0xa24]
push ecx
lea edx, [ebp - 0xa28]
push edx
lea eax, [ebp - 0xa20]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40686e
mov edx, dword [ebp - 0x10]
mov eax, dword [edx*4 + 0x444c48]
push eax
push 0x4b0
push 0
push str.StringFileInfo_04X_04X_s
push 0xff
lea ecx, [ebp - 0xa20]
push ecx
call fcn.00419d45
add esp, 0x18
lea edx, [ebp - 0xa24]
push edx
lea eax, [ebp - 0xa28]
push eax
lea ecx, [ebp - 0xa20]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4068c0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax*4 + 0x444c48]
push ecx
push 0x4e4
push 0
push str.StringFileInfo_04X_04X_s
push 0xff
lea edx, [ebp - 0xa20]
push edx
call fcn.00419d45
add esp, 0x18
lea eax, [ebp - 0xa24]
push eax
lea ecx, [ebp - 0xa28]
push ecx
lea edx, [ebp - 0xa20]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.VERSION.dll_VerQueryValueW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4068cf
cmp dword [ebp - 0xa28], 0
jne 0x4068d8
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0xa28], ecx
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xa2c], edx
cmp dword [ebp - 0xa2c], 0
je 0x4068fe
cmp dword [ebp - 0xa2c], 1
je 0x406915
cmp dword [ebp - 0xa2c], 2
je 0x40692c
jmp 0x406941
push 0x3f
mov eax, dword [ebp - 0xa28]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00419cfb
add esp, 0xc
jmp 0x406941
push 0x3f
mov edx, dword [ebp - 0xa28]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00419cfb
add esp, 0xc
jmp 0x406941
push 0x1f
mov ecx, dword [ebp - 0xa28]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.00419cfb
add esp, 0xc
jmp 0x4066b6
lea eax, [ebp - 8]
push eax
call fcn.00429d00
add esp, 4
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0041919a
mov esp, ebp
pop ebp
ret