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

Disassembly:
push 0xffffffffffffffff
push 0x446dbb
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x4551b0]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4551b0]
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.0040dc90
mov eax, dword [esp + 0x1b0]
mov ebp, 8
cmp dword [esp + 0x1c4], ebp
mov dword [esp + 0x28], ebx
jae 0x40d3d1
lea eax, [esp + 0x1b0]
lea ecx, [esp + 0x28]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jne 0x40d402
cmp dword [esp + 0x1c4], ebp
jb 0x40d3fb
mov edx, dword [esp + 0x1b0]
push edx
call fcn.00431474
add esp, 4
xor eax, eax
jmp 0x40dc2d
push esi
call fcn.00430f12
mov ebp, eax
add esp, 4
cmp ebp, ebx
jne 0x40d432
cmp dword [esp + 0x1c4], 8
jb 0x40d3fb
mov eax, dword [esp + 0x1b0]
push eax
call fcn.00431474
add esp, 4
xor eax, eax
jmp 0x40dc2d
cmp dword [esp + 0x1c4], 8
mov eax, dword [esp + 0x1b0]
jae 0x40d44a
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 0x40d471
push ebp
call fcn.00431479
add esp, 4
cmp dword [esp + 0x1c4], 8
jmp 0x40d3e9
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x44b338
push ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40d4ac
cmp dword [esp + 0x1c], 0x34
jne 0x40d4ac
mov edx, dword [esp + 0x18]
push 0x34
push edx
add edi, 4
push edi
call fcn.00433700
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 0x40d4ec
mov edi, edi
cmp word [eax], dx
je 0x40d538
add eax, 4
cmp eax, ecx
jb 0x40d4e0
push 1
call esi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea edi, [esp + 0x24]
call fcn.0040d300
test eax, eax
jne 0x40d53c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 1
call fcn.0040d300
test eax, eax
jne 0x40d53c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push 1
mov eax, 9
call fcn.0040d300
test eax, eax
jne 0x40d53c
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
jmp 0x40d540
mov eax, dword [eax]
jmp 0x40d540
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 0x44b8c0
lea ecx, [esp + 0x38]
mov byte [esp + 0x1b0], 1
call fcn.0042de04
lea eax, [esp + 0x38]
add esp, 0xc
push eax
mov ebx, 0x44b8f4
lea esi, [esp + 0x180]
call fcn.0040a6f0
add esp, 4
mov byte [esp + 0x1a4], 2
cmp dword [esp + 0x194], 8
mov eax, dword [esp + 0x180]
jae 0x40d5ad
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 0x40d5d3
mov edx, dword [esp + 0x18]
lea eax, [edi + 0x38]
push eax
call fcn.00401970
lea ecx, [esp + 0x2c]
push ecx
mov ebx, 0x44b90c
lea esi, [esp + 0x148]
call fcn.0040a6f0
add esp, 4
mov byte [esp + 0x1a4], 3
cmp dword [esp + 0x15c], 8
mov eax, dword [esp + 0x148]
jae 0x40d60c
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 0x40d62e
lea edx, [edi + 0x54]
push edx
mov edx, dword [esp + 0x1c]
call fcn.00401970
lea eax, [esp + 0x2c]
push eax
mov ebx, 0x44b92c
lea esi, [esp + 0x110]
call fcn.0040a6f0
add esp, 4
mov byte [esp + 0x1a4], 4
cmp dword [esp + 0x124], 8
mov eax, dword [esp + 0x110]
jae 0x40d667
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 0x40d689
mov edx, dword [esp + 0x18]
lea eax, [edi + 0x70]
push eax
call fcn.00401970
lea ecx, [esp + 0x2c]
push ecx
mov ebx, 0x44b944
lea esi, [esp + 0xd8]
call fcn.0040a6f0
add esp, 4
mov byte [esp + 0x1a4], 5
cmp dword [esp + 0xec], 8
mov eax, dword [esp + 0xd8]
jae 0x40d6c2
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 0x40d6e7
lea edx, [edi + 0x8c]
push edx
mov edx, dword [esp + 0x1c]
call fcn.00401970
lea eax, [esp + 0x2c]
push eax
mov ebx, 0x44b960
lea esi, [esp + 0xa0]
call fcn.0040a6f0
add esp, 4
mov byte [esp + 0x1a4], 6
cmp dword [esp + 0xb4], 8
mov eax, dword [esp + 0xa0]
jae 0x40d720
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 0x40d745
mov edx, dword [esp + 0x18]
lea eax, [edi + 0xa8]
push eax
call fcn.00401970
lea ecx, [esp + 0x2c]
push ecx
mov ebx, 0x44b980
lea esi, [esp + 0x68]
call fcn.0040a6f0
add esp, 4
mov byte [esp + 0x1a4], 7
cmp dword [esp + 0x7c], 8
mov eax, dword [esp + 0x68]
jae 0x40d772
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 0x40d797
lea edx, [edi + 0xc4]
push edx
mov edx, dword [esp + 0x1c]
call fcn.00401970
lea eax, [esp + 0x2c]
push eax
mov ebx, 0x44b9a4
lea esi, [esp + 0xf4]
call fcn.0040a6f0
add esp, 4
mov eax, 8
mov byte [esp + 0x1a4], al
cmp dword [esp + 0x108], eax
mov eax, dword [esp + 0xf4]
jae 0x40d7d3
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 0x40d7f8
mov edx, dword [esp + 0x18]
lea eax, [edi + 0xe0]
push eax
call fcn.00401970
lea ecx, [esp + 0x2c]
push ecx
mov ebx, 0x44b9bc
lea esi, [esp + 0x12c]
call fcn.0040a6f0
add esp, 4
mov byte [esp + 0x1a4], 9
cmp dword [esp + 0x140], 8
mov eax, dword [esp + 0x12c]
jae 0x40d831
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 0x40d856
lea edx, [edi + 0xfc]
push edx
mov edx, dword [esp + 0x1c]
call fcn.00401970
lea eax, [esp + 0x2c]
push eax
mov ebx, 0x44b9dc
lea esi, [esp + 0xbc]
call fcn.0040a6f0
add esp, 4
mov byte [esp + 0x1a4], 0xa
cmp dword [esp + 0xd0], 8
mov eax, dword [esp + 0xbc]
jae 0x40d88f
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 0x40d8b4
mov edx, dword [esp + 0x18]
lea eax, [edi + 0x118]
push eax
call fcn.00401970
lea ecx, [esp + 0x2c]
push ecx
mov ebx, 0x44b9f0
lea esi, [esp + 0x4c]
call fcn.0040a6f0
add esp, 4
mov byte [esp + 0x1a4], 0xb
cmp dword [esp + 0x60], 8
mov eax, dword [esp + 0x4c]
jae 0x40d8e1
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 0x40d906
lea edx, [edi + 0x134]
push edx
mov edx, dword [esp + 0x1c]
call fcn.00401970
lea eax, [esp + 0x2c]
push eax
mov ebx, 0x44ba10
lea esi, [esp + 0x84]
call fcn.0040a6f0
add esp, 4
mov byte [esp + 0x1a4], 0xc
cmp dword [esp + 0x98], 8
mov eax, dword [esp + 0x84]
jae 0x40d93f
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 0x40d964
mov edx, dword [esp + 0x18]
add edi, 0x150
push edi
call fcn.00401970
lea eax, [esp + 0x2c]
push eax
mov ebx, 0x44ba2c
lea esi, [esp + 0x164]
call fcn.0040a6f0
add esp, 4
mov byte [esp + 0x1a4], 0xd
mov eax, dword [esp + 0x164]
mov edi, 8
cmp dword [esp + 0x178], edi
jae 0x40d9a1
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 0x40d9c9
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
add eax, 0x16c
push eax
call fcn.00401970
push ebp
call fcn.00431479
add esp, 4
cmp dword [esp + 0x178], edi
jb 0x40d9eb
mov ecx, dword [esp + 0x164]
push ecx
call fcn.00431474
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 0x40da21
mov edx, dword [esp + 0x84]
push edx
call fcn.00431474
add esp, 4
cmp dword [esp + 0x60], edi
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov word [esp + 0x84], bx
jb 0x40da4a
mov eax, dword [esp + 0x4c]
push eax
call fcn.00431474
add esp, 4
cmp dword [esp + 0xd0], edi
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
jb 0x40da70
mov ecx, dword [esp + 0xbc]
push ecx
call fcn.00431474
add esp, 4
cmp dword [esp + 0x140], edi
mov dword [esp + 0xd0], esi
mov dword [esp + 0xcc], ebx
mov word [esp + 0xbc], bx
jb 0x40da9f
mov edx, dword [esp + 0x12c]
push edx
call fcn.00431474
add esp, 4
cmp dword [esp + 0x108], edi
mov dword [esp + 0x140], esi
mov dword [esp + 0x13c], ebx
mov word [esp + 0x12c], bx
jb 0x40dace
mov eax, dword [esp + 0xf4]
push eax
call fcn.00431474
add esp, 4
cmp dword [esp + 0x7c], edi
mov dword [esp + 0x108], esi
mov dword [esp + 0x104], ebx
mov word [esp + 0xf4], bx
jb 0x40daf7
mov ecx, dword [esp + 0x68]
push ecx
call fcn.00431474
add esp, 4
cmp dword [esp + 0xb4], edi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x78], ebx
mov word [esp + 0x68], bx
jb 0x40db1d
mov edx, dword [esp + 0xa0]
push edx
call fcn.00431474
add esp, 4
cmp dword [esp + 0xec], edi
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], ebx
mov word [esp + 0xa0], bx
jb 0x40db4c
mov eax, dword [esp + 0xd8]
push eax
call fcn.00431474
add esp, 4
cmp dword [esp + 0x124], edi
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], ebx
mov word [esp + 0xd8], bx
jb 0x40db7b
mov ecx, dword [esp + 0x110]
push ecx
call fcn.00431474
add esp, 4
cmp dword [esp + 0x15c], edi
mov dword [esp + 0x124], esi
mov dword [esp + 0x120], ebx
mov word [esp + 0x110], bx
jb 0x40dbaa
mov edx, dword [esp + 0x148]
push edx
call fcn.00431474
add esp, 4
cmp dword [esp + 0x194], edi
mov dword [esp + 0x15c], esi
mov dword [esp + 0x158], ebx
mov word [esp + 0x148], bx
jb 0x40dbd9
mov eax, dword [esp + 0x180]
push eax
call fcn.00431474
add esp, 4
cmp dword [esp + 0x44], edi
mov dword [esp + 0x194], esi
mov dword [esp + 0x190], ebx
mov word [esp + 0x180], bx
jb 0x40dc02
mov ecx, dword [esp + 0x30]
push ecx
call fcn.00431474
add esp, 4
cmp dword [esp + 0x1c4], edi
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], bx
jb 0x40dc28
mov edx, dword [esp + 0x1b0]
push edx
call fcn.00431474
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.00431b07
add esp, 0x194
ret 0x1c