Function at 0x4549c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0635
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x50c080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], edx
mov edi, ecx
cmp dword [edi + 0x14], 7
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, edi
mov dword [ebp - 0x24], 0
jbe 0x454a13
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x454ad5
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x54]
mov esi, eax
call fcn.00467cf0
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x454a46
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, 0x4f4bc8
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x32
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Error_calling_GetFileVersionInfoSize:
mov ecx, eax
call fcn.00411050
push esi
mov ecx, eax
call fcn.0041b590
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x40]
add esp, 4
cmp ecx, 7
jbe 0x454ace
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x454ac4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454d38
push ecx
push edx
call fcn.00490f7d
add esp, 8
xor al, al
jmp 0x454d1c
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
lea ecx, [ebp - 0x20]
push ebx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.004610a0
mov esi, dword [ebp - 0x20]
push ebx
push 0
push esi
call fcn.00493220
lea eax, [esi + ebx]
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 1
cmp dword [edi + 0x14], 7
jbe 0x454b26
mov edi, dword [edi]
push dword [ebp - 0x20]
push ebx
push dword [ebp - 0x24]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x454be6
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x54]
mov esi, eax
call fcn.00467cf0
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x454b5b
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, 0x4f4bc8
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x3b
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Error_calling_GetFileVersionInfo:
mov ecx, eax
call fcn.00411050
push esi
mov ecx, eax
call fcn.0041b590
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x40]
add esp, 4
cmp ecx, 7
jbe 0x454cb9
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x454caf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454d3d
jmp 0x454caf
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], 0
push eax
push 0x4f1c24
push dword [ebp - 0x20]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x454cbd
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x6c]
mov esi, eax
call fcn.00467cf0
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 7
mov ecx, dword [eax + 0x10]
jbe 0x454c31
mov eax, dword [eax]
push ecx
mov edx, eax
mov ecx, 0x50f6d0
call fcn.00412550
add esp, 4
mov edx, 0x4f4bc8
mov ecx, eax
call fcn.00411050
mov edx, 0x4ec568
mov ecx, eax
call fcn.00411050
push 0x45
mov ecx, eax
call fcn.0040f7e0
mov edx, str.:_Error_calling_VerQueryValue:
mov ecx, eax
call fcn.00411050
push esi
mov ecx, eax
call fcn.0041b590
push eax
call fcn.004113d0
mov ecx, dword [ebp - 0x58]
add esp, 4
cmp ecx, 7
jbe 0x454cb9
mov edx, dword [ebp - 0x6c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x454caf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454d42
push ecx
push edx
call fcn.00490f7d
add esp, 8
xor bl, bl
jmp 0x454cea
mov ecx, dword [ebp - 0x2c]
mov bl, 1
mov edx, dword [ebp - 0x30]
movzx eax, word [ecx + 0xa]
mov word [edx], ax
movzx eax, word [ecx + 8]
mov edx, dword [ebp - 0x34]
mov word [edx], ax
movzx eax, word [ecx + 0xe]
mov edx, dword [ebp - 0x38]
mov word [edx], ax
movzx eax, word [ecx + 0xc]
mov ecx, dword [ebp - 0x3c]
mov word [ecx], ax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x454d1a
mov edx, dword [ebp - 0x18]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x454d10
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454d47
push edx
push ecx
call fcn.00490f7d
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00490c46
mov esp, ebp
pop ebp
ret
call fcn.004961af
call fcn.004961af
call fcn.004961af
call fcn.004961af
int3