Function at 0x4129a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x660fe8
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x70e00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
call fcn.00408040
lea eax, [ebp - 0x30]
push eax
call fcn.00404160
add esp, 4
mov dword [ebp - 0x2c], eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x2c], 0
je 0x4129fd
mov edx, dword [ebp - 0x30]
push edx
call fcn.004041c0
add esp, 4
cmp dword [ebp - 0x24], 0
jne 0x412a0a
xor eax, eax
jmp 0x412cea
mov eax, dword [ebp - 0x24]
push eax
call fcn.0060a1f7
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x412a26
xor eax, eax
jmp 0x412cea
lea ecx, [ebp - 0x30]
push ecx
call fcn.00404160
add esp, 4
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x18]
call fcn.00408af0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00408af0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00408af0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x24]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x412aa7
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00408370
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00408370
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00408370
jmp 0x412ca4
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x34]
push eax
push 0x6d39c8
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x412af5
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00408370
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00408370
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00408370
jmp 0x412ca4
cmp dword [ebp - 0x20], 0
jne 0x412b27
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00408370
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00408370
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00408370
jmp 0x412ca4
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 0x34]
movzx edx, word [ecx + eax]
push edx
push 0x6d39fc
lea eax, [ebp - 0x10]
push eax
call fcn.004131c0
add esp, 0xc
push 4
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00412ef0
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x14]
call fcn.00412f80
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00408370
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax + edx + 2]
push ecx
push str.000_x
lea edx, [ebp - 0x10]
push edx
call fcn.004131c0
add esp, 0xc
push 4
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x10]
call fcn.00412ef0
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x4c]
push edx
lea ecx, [ebp - 0x14]
call fcn.004135d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
call fcn.00408370
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x14]
push eax
push str.StringFileInfo_sFileVersion
lea ecx, [ebp - 0x18]
push ecx
call fcn.004131c0
add esp, 0xc
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
call fcn.00406b70
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x412c34
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00408370
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00408370
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00408370
jmp 0x412ca4
cmp dword [ebp - 0x20], 0
jne 0x412c63
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00408370
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00408370
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00408370
jmp 0x412ca4
cmp dword [ebp - 0x28], 0
je 0x412c75
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00408330
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00408370
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00408370
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00408370
xor eax, eax
jne 0x412a35
cmp dword [ebp - 0x2c], 0
je 0x412cb6
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.004041c0
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x412cc8
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005fa0fb
add esp, 4
mov ecx, dword [ebp + 0xc]
call fcn.00412fa0
movzx eax, al
test eax, eax
jne 0x412ce0
mov dword [ebp - 0x38], 1
jmp 0x412ce7
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret