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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b41b
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x868
mov eax, dword [0x58482c]
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 0x411628
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 0x4115e3
jmp 0x41163c
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 0x411682
push 0x53ddf9
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 0x4119e9
cmp dword [ebp - 0x220], 0x4e20
jbe 0x411698
mov dword [ebp - 0x220], 0x4e20
mov ecx, dword [ebp - 0x220]
push ecx
call fcn.00413180
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.00511c50
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 0x41172b
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x858], edx
mov eax, dword [ebp - 0x858]
push eax
call fcn.00413175
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 0x4119e9
mov edx, dword [0x53df54]
mov dword [ebp - 0x430], edx
mov eax, dword [0x53df58]
mov dword [ebp - 0x42c], eax
mov ecx, dword [0x53df5c]
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.00511c50
add esp, 0xc
mov byte [ebp - 0x420], 0
push 0x1ff
push 0
lea eax, [ebp - 0x41f]
push eax
call fcn.00511c50
add esp, 0xc
mov byte [ebp - 0x840], 0
push 0x1ff
push 0
lea ecx, [ebp - 0x83f]
push ecx
call fcn.00511c50
add esp, 0xc
lea edx, [ebp - 0x430]
push edx
push 0x4b0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
push 0x53df60
lea ecx, [ebp - 0x640]
push ecx
call fcn.00513906
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.00513906
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 0x4118a6
cmp dword [ebp - 0x84c], 4
jne 0x4118a6
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.00513906
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 0x4118f7
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 0x411924
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 0x41199c
cmp dword [ebp - 0x848], 0
je 0x41199c
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.00413175
add esp, 4
lea ecx, [ebp - 0x850]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040cde0
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 0x4119e9
jmp 0x4119ab
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x860], eax
mov ecx, dword [ebp - 0x860]
push ecx
call fcn.00413175
add esp, 4
push 0x53ddfa
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.00511b60
mov esp, ebp
pop ebp
ret