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

Disassembly:
mov eax, 0x60d6db
call fcn.0060bd28
sub esp, 0x28
push ebx
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x10], esp
mov eax, dword [ebx]
mov dword [ebp - 0x20], ebx
call dword [eax + 4]
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x4188e0
push esi
call fcn.00499923
mov edi, eax
mov dword [ebp - 0x34], edi
pop ecx
test edi, edi
je 0x4188e0
and dword [ebp - 4], 0
push edi
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x418279
and dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push 0x6b635c
push eax
call fcn.005e4008
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x18]
and dword [ebp - 0x18], 0
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x693b58
push edi
call esi
test eax, eax
je 0x4182b2
cmp dword [ebp - 0x18], 0x34
jne 0x4182b2
push 0x34
push dword [ebp - 0x14]
lea eax, [ebx + 4]
push eax
call fcn.005e0280
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x693b5c
push edi
call esi
cmp dword [ebp - 0x14], 0
je 0x4188c0
cmp dword [ebp - 0x18], 0
je 0x4188c0
and dword [ebp + 8], 0
lea eax, [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push 0
push eax
call esi
movzx eax, ax
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.0041819c
xor ebx, ebx
inc ebx
test eax, eax
jne 0x41834b
push ebx
lea eax, [ebp + 8]
push eax
call esi
movzx eax, ax
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.0041819c
test eax, eax
jne 0x41834b
push ebx
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.0041819c
test eax, eax
jne 0x41834b
push ebx
lea eax, [ebp + 8]
push eax
push 9
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call fcn.0041819c
test eax, eax
jne 0x41834b
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
jmp 0x41834e
mov esi, dword [ebp + 8]
call fcn.00404f47
push eax
lea ecx, [ebp - 0x1c]
call fcn.004065d8
mov byte [ebp - 4], bl
call fcn.00404f47
push eax
lea ecx, [ebp + 8]
call fcn.004065d8
mov eax, esi
mov byte [ebp - 4], 2
shr eax, 0x10
push eax
movzx eax, si
push eax
lea eax, [ebp - 0x1c]
push str.StringFileInfo_04X_04X_
push eax
call fcn.00406cc8
add esp, 0x10
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
push 0x693b90
call fcn.0040aec1
pop ecx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.00406123
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov eax, dword [ebp + 8]
cmp dword [eax - 4], ebx
jle 0x4183cf
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00406af0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov esi, dword [ebp - 0x20]
cmp eax, ebx
jne 0x4183f1
push dword [ebp - 0x14]
lea ecx, [esi + 0x38]
call fcn.004060f8
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.00408f1c
push 0x693c78
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.0040aec1
pop ecx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 4
call fcn.00406123
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov eax, dword [ebp + 8]
cmp dword [eax - 4], ebx
jle 0x41843e
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00406af0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp eax, ebx
jne 0x41845d
push dword [ebp - 0x14]
lea ecx, [esi + 0x3c]
call fcn.004060f8
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.00408f1c
push 0x693cd4
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.0040aec1
pop ecx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.00406123
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov eax, dword [ebp + 8]
cmp dword [eax - 4], ebx
jle 0x4184aa
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00406af0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp eax, ebx
jne 0x4184c9
push dword [ebp - 0x14]
lea ecx, [esi + 0x40]
call fcn.004060f8
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.00408f1c
push 0x693bcc
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.0040aec1
pop ecx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 6
call fcn.00406123
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov eax, dword [ebp + 8]
cmp dword [eax - 4], ebx
jle 0x418516
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00406af0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp eax, ebx
jne 0x418535
push dword [ebp - 0x14]
lea ecx, [esi + 0x44]
call fcn.004060f8
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.00408f1c
push 0x693c38
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.0040aec1
pop ecx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 7
call fcn.00406123
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov eax, dword [ebp + 8]
cmp dword [eax - 4], ebx
jle 0x418582
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00406af0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp eax, ebx
jne 0x4185a1
push dword [ebp - 0x14]
lea ecx, [esi + 0x48]
call fcn.004060f8
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.00408f1c
push str.OriginalFileName
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.0040aec1
pop ecx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 8
call fcn.00406123
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov eax, dword [ebp + 8]
cmp dword [eax - 4], ebx
jle 0x4185ee
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00406af0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp eax, ebx
jne 0x41860d
push dword [ebp - 0x14]
lea ecx, [esi + 0x4c]
call fcn.004060f8
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.00408f1c
push 0x693be8
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.0040aec1
pop ecx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 9
call fcn.00406123
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov eax, dword [ebp + 8]
cmp dword [eax - 4], ebx
jle 0x41865a
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00406af0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp eax, ebx
jne 0x418679
push dword [ebp - 0x14]
lea ecx, [esi + 0x50]
call fcn.004060f8
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.00408f1c
push 0x693c58
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.0040aec1
pop ecx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xa
call fcn.00406123
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov eax, dword [ebp + 8]
cmp dword [eax - 4], ebx
jle 0x4186c6
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00406af0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp eax, ebx
jne 0x4186e5
push dword [ebp - 0x14]
lea ecx, [esi + 0x54]
call fcn.004060f8
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.00408f1c
push str.Comments
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.0040aec1
pop ecx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xb
call fcn.00406123
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov eax, dword [ebp + 8]
cmp dword [eax - 4], ebx
jle 0x418732
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00406af0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp eax, ebx
jne 0x418751
push dword [ebp - 0x14]
lea ecx, [esi + 0x58]
call fcn.004060f8
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.00408f1c
push str.LegalTrademarks
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.0040aec1
pop ecx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xc
call fcn.00406123
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov eax, dword [ebp + 8]
cmp dword [eax - 4], ebx
jle 0x41879e
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00406af0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp eax, ebx
jne 0x4187bd
push dword [ebp - 0x14]
lea ecx, [esi + 0x5c]
call fcn.004060f8
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.00408f1c
push str.PrivateBuild
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.0040aec1
pop ecx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xd
call fcn.00406123
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov eax, dword [ebp + 8]
cmp dword [eax - 4], ebx
jle 0x41880a
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00406af0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp eax, ebx
jne 0x418829
push dword [ebp - 0x14]
lea ecx, [esi + 0x60]
call fcn.004060f8
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.00408f1c
push str.SpecialBuild
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.0040aec1
pop ecx
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xe
call fcn.00406123
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
lea ecx, [ecx - 0x10]
call fcn.00404ea9
mov esi, dword [ebp + 8]
cmp dword [esi - 4], ebx
jle 0x418876
push dword [esi - 0xc]
lea ecx, [ebp + 8]
call fcn.00406af0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp eax, ebx
jne 0x418898
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x14]
add ecx, 0x64
call fcn.004060f8
push 0xffffffffffffffff
lea ecx, [ebp + 8]
call fcn.00408f1c
push edi
call fcn.0049991e
pop ecx
lea ecx, [esi - 0x10]
call fcn.00404ea9
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00404ea9
mov eax, ebx
jmp 0x4188e2
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x30]
push 0x6b635c
jmp 0x418273
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4