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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a9a3
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [section..data]
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 esi, ecx
mov ebx, dword [ebp + 8]
call fcn.004109e0
mov ecx, ebx
call fcn.0042cdb0
test al, al
je 0x4101f7
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0
cmp dword [ebx + 0x14], 8
jb 0x40fb72
mov eax, dword [ebx]
jmp 0x40fb74
mov eax, ebx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x164], eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4101f7
push 0x568c40
push eax
call fcn.005062f0
add esp, 8
mov edi, eax
test edi, edi
je 0x4101f7
cmp dword [ebx + 0x14], 8
jb 0x40fbb4
mov ebx, dword [ebx]
push edi
push dword [ebp - 0x164]
push dword [ebp - 0x38]
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40fbd8
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
jmp 0x4101f7
mov dword [ebp - 0x15c], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x15c]
push eax
push 0x5342dc
push edi
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
call ebx
test eax, eax
je 0x40fc22
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x40fc22
cmp dword [ebp - 0x1c], 0x34
jne 0x40fc22
push 0x34
push eax
push esi
call sub.MSVCR120.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x160], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x15c]
push eax
push 0x53468c
push edi
call ebx
test eax, eax
je 0x40fcf1
cmp dword [ebp - 0x15c], 0
je 0x40fcf1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edx, ax
mov ecx, dword [ebp - 0x15c]
mov eax, dword [ebp - 0x1c]
add eax, ecx
cmp ecx, eax
jae 0x40fc7c
lea esp, [esp]
cmp word [ecx], dx
je 0x40fce5
add ecx, 4
cmp ecx, eax
jb 0x40fc70
push 1
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x15c]
call fcn.00410220
test al, al
jne 0x40fce9
push 1
lea eax, [ebp - 0x160]
push eax
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x15c]
call fcn.00410220
test al, al
jne 0x40fce9
push 1
lea eax, [ebp - 0x160]
push eax
push 9
push dword [ebp - 0x1c]
push dword [ebp - 0x15c]
call fcn.00410220
test al, al
jne 0x40fce9
mov eax, dword [ebp - 0x15c]
mov ecx, dword [eax]
jmp 0x40fcf3
mov ecx, dword [ecx]
jmp 0x40fcf3
mov ecx, dword [ebp - 0x160]
jmp 0x40fcf3
xor ecx, ecx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
xor eax, eax
mov word [ebp - 0x34], ax
mov dword [ebp - 4], 2
mov eax, ecx
shr eax, 0x10
push eax
movzx eax, cx
push eax
push str.StringFileInfo_04X_04X_
lea eax, [ebp - 0x34]
push eax
call fcn.00430230
push 0x5346f4
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x128]
call fcn.00410b00
add esp, 0x14
mov byte [ebp - 4], 3
lea eax, [ebp - 0x128]
cmp dword [ebp - 0x114], 8
cmovae eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x40fd88
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x40fd88
push eax
lea ecx, [esi + 0x34]
call fcn.00404910
push 0x53470c
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x140]
call fcn.00410b00
add esp, 4
mov byte [ebp - 4], 4
lea eax, [ebp - 0x140]
cmp dword [ebp - 0x12c], 8
cmovae eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x40fddc
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x40fddc
push eax
lea ecx, [esi + 0x4c]
call fcn.00404910
push 0x53472c
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x158]
call fcn.00410b00
add esp, 4
mov byte [ebp - 4], 5
lea eax, [ebp - 0x158]
cmp dword [ebp - 0x144], 8
cmovae eax, dword [ebp - 0x158]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x40fe30
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x40fe30
push eax
lea ecx, [esi + 0x64]
call fcn.00404910
push 0x534744
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x110]
call fcn.00410b00
add esp, 4
mov byte [ebp - 4], 6
lea eax, [ebp - 0x110]
cmp dword [ebp - 0xfc], 8
cmovae eax, dword [ebp - 0x110]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x40fe84
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x40fe84
push eax
lea ecx, [esi + 0x7c]
call fcn.00404910
push 0x534760
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xe0]
call fcn.00410b00
add esp, 4
mov byte [ebp - 4], 7
lea eax, [ebp - 0xe0]
cmp dword [ebp - 0xcc], 8
cmovae eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x40fedb
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x40fedb
push eax
lea ecx, [esi + 0x94]
call fcn.00404910
push str.OriginalFileName
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xb0]
call fcn.00410b00
add esp, 4
mov byte [ebp - 4], 8
lea eax, [ebp - 0xb0]
cmp dword [ebp - 0x9c], 8
cmovae eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x40ff32
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x40ff32
push eax
lea ecx, [esi + 0xac]
call fcn.00404910
push 0x5347a4
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x80]
call fcn.00410b00
add esp, 4
mov byte [ebp - 4], 9
lea eax, [ebp - 0x80]
cmp dword [ebp - 0x6c], 8
cmovae eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x40ff7d
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x40ff7d
push eax
lea ecx, [esi + 0xc4]
call fcn.00404910
push 0x5347bc
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x68]
call fcn.00410b00
add esp, 4
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x68]
cmp dword [ebp - 0x54], 8
cmovae eax, dword [ebp - 0x68]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x40ffc8
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x40ffc8
push eax
lea ecx, [esi + 0xdc]
call fcn.00404910
push 0x5347dc
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xf8]
call fcn.00410b00
add esp, 4
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xf8]
cmp dword [ebp - 0xe4], 8
cmovae eax, dword [ebp - 0xf8]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x41001f
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x41001f
push eax
lea ecx, [esi + 0xf4]
call fcn.00404910
push str.LegalTrademarks
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x50]
call fcn.00410b00
add esp, 4
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x50]
cmp dword [ebp - 0x3c], 8
cmovae eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x41006a
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x41006a
push eax
lea ecx, [esi + 0x10c]
call fcn.00404910
push str.PrivateBuild
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0xc8]
call fcn.00410b00
add esp, 4
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0xc8]
cmp dword [ebp - 0xb4], 8
cmovae eax, dword [ebp - 0xc8]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x4100c1
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x4100c1
push eax
lea ecx, [esi + 0x124]
call fcn.00404910
push str.SpecialBuild
lea edx, [ebp - 0x34]
lea ecx, [ebp - 0x98]
call fcn.00410b00
add esp, 4
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x98]
cmp dword [ebp - 0x84], 8
cmovae eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x15c]
push ecx
push eax
push edi
call ebx
test eax, eax
je 0x410118
mov eax, dword [ebp - 0x15c]
test eax, eax
je 0x410118
push eax
lea ecx, [esi + 0x13c]
call fcn.00404910
push edi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x98]
call fcn.004048e0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xc8]
call fcn.004048e0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x50]
call fcn.004048e0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xf8]
call fcn.004048e0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x68]
call fcn.004048e0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x80]
call fcn.004048e0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xb0]
call fcn.004048e0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xe0]
call fcn.004048e0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x110]
call fcn.004048e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x158]
call fcn.004048e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x140]
call fcn.004048e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x128]
call fcn.004048e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004048e0
mov al, 1
jmp 0x4101f9
xor al, al
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.00505b1e
mov esp, ebp
pop ebp
ret 4