Function at 0x10041460
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aa538
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x100dc0d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
call fcn.10004750
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x100416e2
mov ecx, dword [ebp - 0x40]
push ecx
call fcn.1004d068
add esp, 4
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x34], edx
cmp dword [ebp - 0x34], 0
je 0x100416e2
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov ecx, dword [ebp + 8]
call fcn.10004750
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100416b4
call fcn.10041de0
test eax, eax
je 0x10041615
call fcn.10041d30
test eax, eax
jne 0x10041615
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push str.VarFileInfoTranslation
mov edx, dword [ebp - 0x34]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10041615
mov dword [ebp - 0x38], 0
jmp 0x10041547
mov eax, dword [ebp - 0x38]
add eax, 1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x1c]
shr ecx, 2
cmp dword [ebp - 0x38], ecx
jae 0x10041615
push 4
lea ecx, [ebp - 0x14]
call fcn.10006260
lea ecx, [ebp - 0x14]
call fcn.10003ff0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
movzx ecx, word [eax + edx*4 + 2]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
movzx ecx, word [eax + edx*4]
push ecx
push str.StringFileInfo_04x_04xFileVersion
lea edx, [ebp - 0x14]
push edx
call fcn.10004b70
add esp, 0x10
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x14]
call fcn.10004750
push eax
mov edx, dword [ebp - 0x34]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10041601
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.10013610
push 0x2e
push 0x2c
mov ecx, dword [ebp + 0xc]
call fcn.10042120
push 0x20
mov ecx, dword [ebp + 0xc]
call fcn.10042020
mov dword [ebp - 0x3c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100044c0
jmp 0x10041615
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.100044c0
jmp 0x1004153e
cmp dword [ebp - 0x3c], 0
je 0x1004162e
mov ecx, dword [ebp + 0xc]
call fcn.100050f0
movzx edx, al
test edx, edx
je 0x100416b4
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
push ecx
push 0x100b9c00
mov edx, dword [ebp - 0x34]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100416b4
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 8]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 8]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
push str._d._d._d._d
mov eax, dword [ebp + 0xc]
push eax
call fcn.10004b70
add esp, 0x18
mov dword [ebp - 0x3c], 1
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.1004cf71
add esp, 4
cmp dword [ebp - 0x44], 0
jne 0x100416d5
mov dword [ebp - 0x4c], 0
jmp 0x100416e2
mov dword [ebp - 0x34], 0x8123
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004ce3a
mov esp, ebp
pop ebp
ret