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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5311ca
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x924
mov eax, dword [0x58c804]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x864], 0
cmp dword [ebp + 0xc], 0
je 0x414dc8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x928], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x92c], ecx
mov edx, dword [ebp - 0x92c]
mov dword [ebp - 0x930], edx
mov eax, dword [ebp - 0x928]
mov cl, byte [eax]
mov byte [ebp - 0x931], cl
mov edx, dword [ebp - 0x92c]
mov al, byte [ebp - 0x931]
mov byte [edx], al
mov ecx, dword [ebp - 0x928]
add ecx, 1
mov dword [ebp - 0x928], ecx
mov edx, dword [ebp - 0x92c]
add edx, 1
mov dword [ebp - 0x92c], edx
cmp byte [ebp - 0x931], 0
jne 0x414d83
jmp 0x414ddc
push 0x200
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x218]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x414e29
push 0x541f7e
mov ecx, dword [ebp + 8]
call fcn.00401c80
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x864]
or eax, 1
mov dword [ebp - 0x864], eax
mov eax, dword [ebp + 8]
jmp 0x4151c8
cmp dword [ebp - 0x220], 0x4e20
jbe 0x414e3f
mov dword [ebp - 0x220], 0x4e20
mov ecx, dword [ebp - 0x220]
push ecx
call fcn.00416f01
add esp, 4
mov dword [ebp - 0x854], eax
mov edx, dword [ebp - 0x854]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x220]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00515e20
add esp, 0xc
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x220]
push eax
push 0
lea ecx, [ebp - 0x218]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x414ed2
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x858], edx
mov eax, dword [ebp - 0x858]
push eax
call fcn.00416ef6
add esp, 4
push str._1._2
mov ecx, dword [ebp + 8]
call fcn.00401c80
mov ecx, dword [ebp - 0x864]
or ecx, 1
mov dword [ebp - 0x864], ecx
mov eax, dword [ebp + 8]
jmp 0x4151c8
mov edx, dword [0x544d3c]
mov dword [ebp - 0x430], edx
mov eax, dword [0x544d40]
mov dword [ebp - 0x42c], eax
mov ecx, dword [str.Bqid]
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x424], 0
mov byte [ebp - 0x640], 0
push 0x1ff
push 0
lea edx, [ebp - 0x63f]
push edx
call fcn.00515e20
add esp, 0xc
mov byte [ebp - 0x420], 0
push 0x1ff
push 0
lea eax, [ebp - 0x41f]
push eax
call fcn.00515e20
add esp, 0xc
mov byte [ebp - 0x840], 0
push 0x1ff
push 0
lea ecx, [ebp - 0x83f]
push ecx
call fcn.00515e20
add esp, 0xc
lea edx, [ebp - 0x430]
push edx
push 0x4b0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
push str.StringFileInfo_04X_04X_s
lea ecx, [ebp - 0x640]
push ecx
call fcn.00517adb
add esp, 0x14
lea edx, [ebp - 0x430]
push edx
push 0x4e4
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
push str.StringFileInfo_04X_04X_s
lea ecx, [ebp - 0x420]
push ecx
call fcn.00517adb
add esp, 0x14
mov dword [ebp - 0x438], 0
lea edx, [ebp - 0x84c]
push edx
lea eax, [ebp - 0x438]
push eax
push str.VarFileInfoTranslation
mov ecx, dword [ebp - 0x14]
push ecx
call sub.VERSION.dll_VerQueryValueA
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0
je 0x41504d
cmp dword [ebp - 0x84c], 4
jne 0x41504d
mov edx, dword [ebp - 0x438]
mov eax, dword [edx]
mov dword [ebp - 0x43c], eax
lea ecx, [ebp - 0x430]
push ecx
mov edx, dword [ebp - 0x43c]
and edx, 0xff0000
shr edx, 0x10
push edx
mov eax, dword [ebp - 0x43c]
and eax, 0xff000000
shr eax, 0x18
push eax
mov ecx, dword [ebp - 0x43c]
and ecx, 0xff
push ecx
mov edx, dword [ebp - 0x43c]
and edx, 0xff00
shr edx, 8
push edx
push str.StringFileInfo_02X_02X_02X_02X_s
lea eax, [ebp - 0x840]
push eax
call fcn.00517adb
add esp, 0x1c
lea ecx, [ebp - 0x844]
push ecx
lea edx, [ebp - 0x848]
push edx
lea eax, [ebp - 0x640]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.VERSION.dll_VerQueryValueA
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jne 0x41509e
lea edx, [ebp - 0x844]
push edx
lea eax, [ebp - 0x848]
push eax
lea ecx, [ebp - 0x420]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call sub.VERSION.dll_VerQueryValueA
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
jne 0x4150cb
lea eax, [ebp - 0x844]
push eax
lea ecx, [ebp - 0x848]
push ecx
lea edx, [ebp - 0x840]
push edx
mov eax, dword [ebp - 0x14]
push eax
call sub.VERSION.dll_VerQueryValueA
mov dword [ebp - 0x424], eax
cmp dword [ebp - 0x424], 0
je 0x415174
cmp dword [ebp - 0x848], 0
je 0x415174
mov ecx, dword [ebp - 0x848]
push ecx
lea ecx, [ebp - 0x850]
call fcn.00401c80
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x85c], edx
mov eax, dword [ebp - 0x85c]
push eax
call fcn.00416ef6
add esp, 4
mov ecx, dword [ebp - 0x850]
sub ecx, 0x10
mov dword [ebp - 0x8b0], ecx
mov edx, dword [ebp - 0x8b0]
push edx
call fcn.0040e870
add esp, 4
mov dword [ebp - 0x8b4], eax
mov eax, dword [ebp - 0x8b4]
add eax, 0x10
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov byte [ebp - 4], 3
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x864]
or edx, 1
mov dword [ebp - 0x864], edx
mov byte [ebp - 4], 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x850]
call fcn.00402030
mov eax, dword [ebp + 8]
jmp 0x4151c8
jmp 0x415183
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x860], eax
mov ecx, dword [ebp - 0x860]
push ecx
call fcn.00416ef6
add esp, 4
push 0x541f7e
mov ecx, dword [ebp + 8]
call fcn.00401c80
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x864]
or edx, 1
mov dword [ebp - 0x864], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0051555a
mov esp, ebp
pop ebp
ret