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

Disassembly:
push 0xffffffffffffffff
push 0x442eeb
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x451254]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x451254]
xor eax, esp
push eax
lea eax, [esp + 0x19c]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x24], edi
xor ebx, ebx
mov esi, edi
mov dword [esp + 0x1a4], ebx
call fcn.0040c060
mov eax, dword [esp + 0x1b0]
mov ebp, 8
cmp dword [esp + 0x1c4], ebp
mov dword [esp + 0x28], ebx
jae 0x40b7a1
lea eax, [esp + 0x1b0]
lea ecx, [esp + 0x28]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jne 0x40b7d2
cmp dword [esp + 0x1c4], ebp
jb 0x40b7cb
mov edx, dword [esp + 0x1b0]
push edx
call fcn.0042e0ba
add esp, 4
xor eax, eax
jmp 0x40bffd
push esi
call fcn.0042da7c
mov ebp, eax
add esp, 4
cmp ebp, ebx
jne 0x40b802
cmp dword [esp + 0x1c4], 8
jb 0x40b7cb
mov eax, dword [esp + 0x1b0]
push eax
call fcn.0042e0ba
add esp, 4
xor eax, eax
jmp 0x40bffd
cmp dword [esp + 0x1c4], 8
mov eax, dword [esp + 0x1b0]
jae 0x40b81a
lea eax, [esp + 0x1b0]
mov ecx, dword [esp + 0x28]
push ebp
push esi
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x40b841
push ebp
call fcn.0042e757
add esp, 4
cmp dword [esp + 0x1c4], 8
jmp 0x40b7b9
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x4471d0
push ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40b87c
cmp dword [esp + 0x1c], 0x34
jne 0x40b87c
mov edx, dword [esp + 0x18]
push 0x34
push edx
add edi, 4
push edi
call fcn.0042fff0
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueW
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [esp + 0x20], ebx
call esi
mov ecx, dword [esp + 0x1c]
movzx edx, ax
mov eax, dword [esp + 0x18]
add ecx, eax
cmp eax, ecx
jae 0x40b8bc
mov edi, edi
cmp word [eax], dx
je 0x40b908
add eax, 4
cmp eax, ecx
jb 0x40b8b0
push 1
call esi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea edi, [esp + 0x24]
call fcn.0040b6d0
test eax, eax
jne 0x40b90c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 1
call fcn.0040b6d0
test eax, eax
jne 0x40b90c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 1
mov eax, 9
call fcn.0040b6d0
test eax, eax
jne 0x40b90c
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
jmp 0x40b910
mov eax, dword [eax]
jmp 0x40b910
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
mov ecx, eax
shr ecx, 0x10
push ecx
movzx edx, ax
push edx
push str.StringFileInfo_04X_04X_
lea ecx, [esp + 0x38]
mov byte [esp + 0x1b0], 1
call fcn.0042abb6
lea eax, [esp + 0x38]
add esp, 0xc
push eax
mov ebx, str.CompanyName
lea esi, [esp + 0x180]
call fcn.00409740
add esp, 4
mov byte [esp + 0x1a4], 2
cmp dword [esp + 0x194], 8
mov eax, dword [esp + 0x180]
jae 0x40b97d
lea eax, [esp + 0x180]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
mov edi, dword [esp + 0x24]
je 0x40b9a3
mov edx, dword [esp + 0x18]
lea eax, [edi + 0x38]
push eax
call fcn.00401980
lea ecx, [esp + 0x2c]
push ecx
mov ebx, str.FileDescription
lea esi, [esp + 0x148]
call fcn.00409740
add esp, 4
mov byte [esp + 0x1a4], 3
cmp dword [esp + 0x15c], 8
mov eax, dword [esp + 0x148]
jae 0x40b9dc
lea eax, [esp + 0x148]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push ecx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40b9fe
lea edx, [edi + 0x54]
push edx
mov edx, dword [esp + 0x1c]
call fcn.00401980
lea eax, [esp + 0x2c]
push eax
mov ebx, str.FileVersion
lea esi, [esp + 0x110]
call fcn.00409740
add esp, 4
mov byte [esp + 0x1a4], 4
cmp dword [esp + 0x124], 8
mov eax, dword [esp + 0x110]
jae 0x40ba37
lea eax, [esp + 0x110]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40ba59
mov edx, dword [esp + 0x18]
lea eax, [edi + 0x70]
push eax
call fcn.00401980
lea ecx, [esp + 0x2c]
push ecx
mov ebx, str.InternalName
lea esi, [esp + 0xd8]
call fcn.00409740
add esp, 4
mov byte [esp + 0x1a4], 5
cmp dword [esp + 0xec], 8
mov eax, dword [esp + 0xd8]
jae 0x40ba92
lea eax, [esp + 0xd8]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push ecx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40bab7
lea edx, [edi + 0x8c]
push edx
mov edx, dword [esp + 0x1c]
call fcn.00401980
lea eax, [esp + 0x2c]
push eax
mov ebx, str.LegalCopyright
lea esi, [esp + 0xa0]
call fcn.00409740
add esp, 4
mov byte [esp + 0x1a4], 6
cmp dword [esp + 0xb4], 8
mov eax, dword [esp + 0xa0]
jae 0x40baf0
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40bb15
mov edx, dword [esp + 0x18]
lea eax, [edi + 0xa8]
push eax
call fcn.00401980
lea ecx, [esp + 0x2c]
push ecx
mov ebx, str.OriginalFileName
lea esi, [esp + 0x68]
call fcn.00409740
add esp, 4
mov byte [esp + 0x1a4], 7
cmp dword [esp + 0x7c], 8
mov eax, dword [esp + 0x68]
jae 0x40bb42
lea eax, [esp + 0x68]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push ecx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40bb67
lea edx, [edi + 0xc4]
push edx
mov edx, dword [esp + 0x1c]
call fcn.00401980
lea eax, [esp + 0x2c]
push eax
mov ebx, str.ProductName
lea esi, [esp + 0xf4]
call fcn.00409740
add esp, 4
mov eax, 8
mov byte [esp + 0x1a4], al
cmp dword [esp + 0x108], eax
mov eax, dword [esp + 0xf4]
jae 0x40bba3
lea eax, [esp + 0xf4]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40bbc8
mov edx, dword [esp + 0x18]
lea eax, [edi + 0xe0]
push eax
call fcn.00401980
lea ecx, [esp + 0x2c]
push ecx
mov ebx, str.ProductVersion
lea esi, [esp + 0x12c]
call fcn.00409740
add esp, 4
mov byte [esp + 0x1a4], 9
cmp dword [esp + 0x140], 8
mov eax, dword [esp + 0x12c]
jae 0x40bc01
lea eax, [esp + 0x12c]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push ecx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40bc26
lea edx, [edi + 0xfc]
push edx
mov edx, dword [esp + 0x1c]
call fcn.00401980
lea eax, [esp + 0x2c]
push eax
mov ebx, str.Comments
lea esi, [esp + 0xbc]
call fcn.00409740
add esp, 4
mov byte [esp + 0x1a4], 0xa
cmp dword [esp + 0xd0], 8
mov eax, dword [esp + 0xbc]
jae 0x40bc5f
lea eax, [esp + 0xbc]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40bc84
mov edx, dword [esp + 0x18]
lea eax, [edi + 0x118]
push eax
call fcn.00401980
lea ecx, [esp + 0x2c]
push ecx
mov ebx, str.LegalTrademarks
lea esi, [esp + 0x4c]
call fcn.00409740
add esp, 4
mov byte [esp + 0x1a4], 0xb
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x4c]
jae 0x40bcb1
lea eax, [esp + 0x4c]
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push ecx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40bcd6
lea edx, [edi + 0x134]
push edx
mov edx, dword [esp + 0x1c]
call fcn.00401980
lea eax, [esp + 0x2c]
push eax
mov ebx, str.PrivateBuild
lea esi, [esp + 0x84]
call fcn.00409740
add esp, 4
mov byte [esp + 0x1a4], 0xc
cmp dword [esp + 0x98], 8
mov eax, dword [esp + 0x84]
jae 0x40bd0f
lea eax, [esp + 0x84]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40bd34
mov edx, dword [esp + 0x18]
add edi, 0x150
push edi
call fcn.00401980
lea eax, [esp + 0x2c]
push eax
mov ebx, str.SpecialBuild
lea esi, [esp + 0x164]
call fcn.00409740
add esp, 4
mov byte [esp + 0x1a4], 0xd
mov eax, dword [esp + 0x164]
mov edi, 8
cmp dword [esp + 0x178], edi
jae 0x40bd71
lea eax, [esp + 0x164]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40bd99
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
add eax, 0x16c
push eax
call fcn.00401980
push ebp
call fcn.0042e757
add esp, 4
cmp dword [esp + 0x178], edi
jb 0x40bdbb
mov ecx, dword [esp + 0x164]
push ecx
call fcn.0042e0ba
add esp, 4
xor ebx, ebx
cmp dword [esp + 0x98], edi
mov esi, 7
mov dword [esp + 0x178], esi
mov dword [esp + 0x174], ebx
mov word [esp + 0x164], bx
jb 0x40bdf1
mov edx, dword [esp + 0x84]
push edx
call fcn.0042e0ba
add esp, 4
cmp dword [esp + 0x60], edi
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], bx
jb 0x40be1a
mov eax, dword [esp + 0x4c]
push eax
call fcn.0042e0ba
add esp, 4
cmp dword [esp + 0xd0], edi
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
jb 0x40be40
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.0042e0ba
add esp, 4
cmp dword [esp + 0x140], edi
mov dword [esp + 0xd0], esi
mov dword [esp + 0xcc], ebx
mov word [esp + 0xbc], bx
jb 0x40be6f
mov edx, dword [esp + 0x12c]
push edx
call fcn.0042e0ba
add esp, 4
cmp dword [esp + 0x108], edi
mov dword [esp + 0x140], esi
mov dword [esp + 0x13c], ebx
mov word [esp + 0x12c], bx
jb 0x40be9e
mov eax, dword [esp + 0xf4]
push eax
call fcn.0042e0ba
add esp, 4
cmp dword [esp + 0x7c], edi
mov dword [esp + 0x108], esi
mov dword [esp + 0x104], ebx
mov word [esp + 0xf4], bx
jb 0x40bec7
mov ecx, dword [esp + 0x68]
push ecx
call fcn.0042e0ba
add esp, 4
cmp dword [esp + 0xb4], edi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
jb 0x40beed
mov edx, dword [esp + 0xa0]
push edx
call fcn.0042e0ba
add esp, 4
cmp dword [esp + 0xec], edi
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], ebx
mov word [esp + 0xa0], bx
jb 0x40bf1c
mov eax, dword [esp + 0xd8]
push eax
call fcn.0042e0ba
add esp, 4
cmp dword [esp + 0x124], edi
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], ebx
mov word [esp + 0xd8], bx
jb 0x40bf4b
mov ecx, dword [esp + 0x110]
push ecx
call fcn.0042e0ba
add esp, 4
cmp dword [esp + 0x15c], edi
mov dword [esp + 0x124], esi
mov dword [esp + 0x120], ebx
mov word [esp + 0x110], bx
jb 0x40bf7a
mov edx, dword [esp + 0x148]
push edx
call fcn.0042e0ba
add esp, 4
cmp dword [esp + 0x194], edi
mov dword [esp + 0x15c], esi
mov dword [esp + 0x158], ebx
mov word [esp + 0x148], bx
jb 0x40bfa9
mov eax, dword [esp + 0x180]
push eax
call fcn.0042e0ba
add esp, 4
cmp dword [esp + 0x44], edi
mov dword [esp + 0x194], esi
mov dword [esp + 0x190], ebx
mov word [esp + 0x180], bx
jb 0x40bfd2
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0042e0ba
add esp, 4
cmp dword [esp + 0x1c4], edi
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
jb 0x40bff8
mov edx, dword [esp + 0x1b0]
push edx
call fcn.0042e0ba
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0042e4b4
add esp, 0x194
ret 0x1c