Function at 0x415a80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d913e
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x5021c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x5c], esi
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov dword [ebp - 4], eax
cmp dword [edi + 0x14], 7
mov dword [ebp - 0x48], eax
mov eax, edi
mov dword [ebp - 0x4c], 1
jbe 0x415aed
mov eax, dword [edi]
lea ecx, [ebp - 0x48]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 0
test eax, eax
je 0x415c8b
push eax
call fcn.004ad065
add esp, 4
mov ebx, eax
push dword [ebp - 0x44]
push 0
push ebx
call fcn.004affe0
add esp, 0xc
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x4c], 3
mov dword [ebp - 4], 1
test ebx, ebx
je 0x415c82
xor eax, eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 2
cmp dword [edi + 0x14], 7
jbe 0x415b79
mov edi, dword [edi]
push ebx
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x44]
push eax
push str.VarFileInfoTranslation
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [ebp - 0x44]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x40]
push str.StringFileInfo_04x_04xProductVersion
push eax
call fcn.00419200
mov edi, eax
add esp, 0x10
lea eax, [ebp - 0x28]
cmp eax, edi
je 0x415bfe
mov ecx, eax
call fcn.004027a0
mov eax, dword [edi]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
lea ecx, [ebp - 0x40]
call fcn.004027a0
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
jbe 0x415c12
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x54]
push ecx
push eax
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
cmp dword [ebp - 0x50], 0
je 0x415c4c
mov edx, dword [ebp - 0x54]
test edx, edx
je 0x415c4c
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415c34
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00403a40
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x415c82
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x415c78
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x415ca9
push ecx
push edx
call fcn.004accfd
add esp, 8
push ebx
call fcn.004ad06e
add esp, 4
mov eax, esi
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.004accbf
mov esp, ebp
pop ebp
ret
call fcn.004b306f
int3