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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525f7b
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x868
mov eax, dword [0x57f82c]
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 0x40c188
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x868], eax
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x86c], ecx
mov edx, dword [ebp - 0x86c]
mov dword [ebp - 0x870], edx
mov eax, dword [ebp - 0x868]
mov cl, byte [eax]
mov byte [ebp - 0x871], cl
mov edx, dword [ebp - 0x86c]
mov al, byte [ebp - 0x871]
mov byte [edx], al
mov ecx, dword [ebp - 0x868]
add ecx, 1
mov dword [ebp - 0x868], ecx
mov edx, dword [ebp - 0x86c]
add edx, 1
mov dword [ebp - 0x86c], edx
cmp byte [ebp - 0x871], 0
jne 0x40c143
jmp 0x40c19c
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 0x40c1e2
push 0x538e01
mov ecx, dword [ebp + 8]
call fcn.00401020
mov eax, dword [ebp - 0x864]
or eax, 1
mov dword [ebp - 0x864], eax
mov eax, dword [ebp + 8]
jmp 0x40c549
cmp dword [ebp - 0x220], 0x4e20
jbe 0x40c1f8
mov dword [ebp - 0x220], 0x4e20
mov ecx, dword [ebp - 0x220]
push ecx
call fcn.0040dce0
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.0050c7f0
add esp, 0xc
mov dword [ebp - 4], 0
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 0x40c28b
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x858], edx
mov eax, dword [ebp - 0x858]
push eax
call fcn.0040dcd5
add esp, 4
push str._1._2
mov ecx, dword [ebp + 8]
call fcn.00401020
mov ecx, dword [ebp - 0x864]
or ecx, 1
mov dword [ebp - 0x864], ecx
mov eax, dword [ebp + 8]
jmp 0x40c549
mov edx, dword [0x538f5c]
mov dword [ebp - 0x430], edx
mov eax, dword [0x538f60]
mov dword [ebp - 0x42c], eax
mov ecx, dword [0x538f64]
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.0050c7f0
add esp, 0xc
mov byte [ebp - 0x420], 0
push 0x1ff
push 0
lea eax, [ebp - 0x41f]
push eax
call fcn.0050c7f0
add esp, 0xc
mov byte [ebp - 0x840], 0
push 0x1ff
push 0
lea ecx, [ebp - 0x83f]
push ecx
call fcn.0050c7f0
add esp, 0xc
lea edx, [ebp - 0x430]
push edx
push 0x4b0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
push 0x538f68
lea ecx, [ebp - 0x640]
push ecx
call fcn.0050e436
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.0050e436
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 0x40c406
cmp dword [ebp - 0x84c], 4
jne 0x40c406
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.0050e436
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 0x40c457
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 0x40c484
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 0x40c4fc
cmp dword [ebp - 0x848], 0
je 0x40c4fc
mov ecx, dword [ebp - 0x848]
push ecx
lea ecx, [ebp - 0x850]
call fcn.00401020
mov dword [ebp - 0x878], eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x85c], edx
mov eax, dword [ebp - 0x85c]
push eax
call fcn.0040dcd5
add esp, 4
lea ecx, [ebp - 0x850]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00407930
mov edx, dword [ebp - 0x864]
or edx, 1
mov dword [ebp - 0x864], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x850]
call fcn.004019f0
mov eax, dword [ebp + 8]
jmp 0x40c549
jmp 0x40c50b
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x860], eax
mov ecx, dword [ebp - 0x860]
push ecx
call fcn.0040dcd5
add esp, 4
push 0x538e02
mov ecx, dword [ebp + 8]
call fcn.00401020
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.0050c6c0
mov esp, ebp
pop ebp
ret