Function at 0x407cf0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e688
mov eax, dword fs:[0]
push eax
sub esp, 0x170
push ebx
push esi
push edi
lea edi, [ebp - 0x17c]
mov ecx, 0x5c
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x42b074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x430033
call fcn.0041bcd0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
call fcn.00405fe0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x407fca
mov eax, dword [ebp - 0x30]
push eax
call fcn.0041aed0
add esp, 4
mov dword [ebp - 0x168], eax
mov ecx, dword [ebp - 0x168]
mov dword [ebp - 0x3c], ecx
cmp dword [ebp - 0x3c], 0
je 0x407fca
mov eax, dword [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov ecx, dword [ebp + 8]
call fcn.00405fe0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x407f8d
call fcn.00409270
test eax, eax
je 0x407ed6
call fcn.00409140
test eax, eax
jne 0x407ed6
mov dword [ebp - 0x54], 0
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x48]
push ecx
push str.VarFileInfoTranslation
mov edx, dword [ebp - 0x3c]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x407ed6
mov dword [ebp - 0x60], 0
jmp 0x407dff
mov eax, dword [ebp - 0x60]
add eax, 1
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x54]
shr eax, 2
cmp dword [ebp - 0x60], eax
jae 0x407ed6
push 4
lea ecx, [ebp - 0x6c]
call fcn.0040b6e0
lea ecx, [ebp - 0x6c]
call fcn.00404820
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x48]
movzx edx, word [ecx + eax*4 + 2]
push edx
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x48]
movzx edx, word [ecx + eax*4]
push edx
push str.StringFileInfo_04x_04xFileVersion
lea eax, [ebp - 0x6c]
push eax
call fcn.004075b0
add esp, 0x10
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x84], 0
lea eax, [ebp - 0x84]
push eax
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x6c]
call fcn.00405fe0
push eax
mov edx, dword [ebp - 0x3c]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x407ec2
mov eax, dword [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x78]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040aaa0
push 0x2e
push 0x2c
mov ecx, dword [ebp + 0xc]
call fcn.0040a530
push 0x20
mov ecx, dword [ebp + 0xc]
call fcn.0040a0d0
mov dword [ebp - 0x18], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00405900
jmp 0x407ed6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.00405900
jmp 0x407df6
cmp dword [ebp - 0x18], 0
je 0x407eef
mov ecx, dword [ebp + 0xc]
call fcn.00408ea0
movzx eax, al
test eax, eax
je 0x407f8d
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x9c], 0
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x90]
push ecx
push 0x420d80
mov edx, dword [ebp - 0x3c]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x407f8d
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0xc]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 0xc]
shr ecx, 0x10
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x90]
mov ecx, dword [eax + 8]
and ecx, 0xffff
movzx edx, cx
push edx
mov eax, dword [ebp - 0x90]
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.004075b0
add esp, 0x18
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x174]
push ecx
call fcn.0041aef0
add esp, 4
cmp dword [ebp - 0x174], 0
jne 0x407fba
mov dword [ebp - 0x17c], 0
jmp 0x407fca
mov dword [ebp - 0x3c], 0x8123
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x17c], edx
mov eax, dword [ebp - 0x18]
push edx
mov ecx, ebp
push eax
lea edx, [0x408008]
call fcn.0041bc20
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041bd10
add esp, 0x17c
cmp ebp, esp
call fcn.0041bc90
mov esp, ebp
pop ebp
ret