Function at 0x40c2b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x60dbf8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x68e4d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040f070
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x40c50e
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00537060
add esp, 4
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
je 0x40c50e
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040f070
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40c4fc
call fcn.0040c5a0
test eax, eax
je 0x40c45c
call fcn.0040c210
test eax, eax
jne 0x40c45c
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x30]
push ecx
push str.VarFileInfoTranslation
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40c45c
mov dword [ebp - 0x14], 0
jmp 0x40c397
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x2c]
shr ecx, 2
cmp dword [ebp - 0x14], ecx
jae 0x40c45c
lea ecx, [ebp - 0x1c]
call fcn.0040efc0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
movzx ecx, word [eax + edx*4 + 2]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
movzx ecx, word [eax + edx*4]
push ecx
push str.StringFileInfo_04x_04xFileVersion
lea edx, [ebp - 0x1c]
push edx
call fcn.00410b10
add esp, 0x10
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040f070
push eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40c448
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040ab80
push 0x2e
push 0x2c
mov ecx, dword [ebp + 0xc]
call fcn.0040ee40
push 0x20
mov ecx, dword [ebp + 0xc]
call fcn.0040ed40
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040aae0
jmp 0x40c45c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040aae0
jmp 0x40c38e
cmp dword [ebp - 0x20], 0
je 0x40c475
mov ecx, dword [ebp + 0xc]
call fcn.0040efe0
movzx edx, al
test edx, edx
je 0x40c4fc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x40], 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0x663418
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40c4fc
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x18]
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.00410b10
add esp, 0x18
mov dword [ebp - 0x20], 1
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.0053705b
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret