Function at 0x4ec0c0
Capabilities:
Get file version info

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6b5f58
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x4060
call fcn.0066a7a0
mov eax, dword [0x7adbc4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x401c], ecx
mov edi, dword [ebx + 8]
lea eax, [ebp - 0x4018]
mov dword [ebp - 0x4030], 0
push 0x4000
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
push eax
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.0066d4a0
add esp, 0xc
push 0
push dword [ebp - 0x401c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
jne 0x4ec2a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00516890
mov esi, eax
mov ecx, esi
call fcn.00516630
cmp byte [0x7b8ad5], 0
jne 0x4ec1c6
mov ecx, 0xf0
call fcn.00516ef0
mov dword [ebp - 0x402c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4ec1bf
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x7b8ad5
sub esp, 0xc
push 0x21
push str.C:GitLab_Runner_buildsTzUW5DUw0windowswindows_agentRemoteInstallerInstallerUIutils_collector.cpp
push 0x20
call fcn.00516700
jmp 0x4ec1c1
xor eax, eax
mov dword [0x7bb3cc], eax
mov ecx, esi
call fcn.00516640
mov ecx, dword [0x7bb3cc]
lea ecx, [ecx + 0xd0]
call fcn.00516630
mov eax, dword [0x7bb3cc]
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x4024], eax
mov edx, edi
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x401c]
call fcn.004954b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4028]
push dword [eax]
call fcn.00498630
mov edx, dword [ebp - 0x401c]
mov dword [ebp - 0x4020], eax
add edx, 0xfffffff0
mov dword [ebp - 0x4030], 1
or esi, 0xffffffff
mov byte [ebp - 4], 3
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4ec24d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x4020]
mov byte [ebp - 4], 1
push dword [eax]
push str.GetFileVersionInfoSize_failed_with___s_
push dword [0x7bb3cc]
call dword [ebp - 0x4024]
mov edx, dword [ebp - 0x4028]
add esp, 0xc
add edx, 0xfffffff0
mov dword [ebp - 4], 4
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4ec289
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x7bb3cc]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x7bb3cc]
jmp 0x4ec5ef
lea eax, [ebp - 0x4018]
push eax
push 0x2000
push 0
push dword [ebp - 0x401c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x4ec40e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00516890
mov esi, eax
mov ecx, esi
call fcn.00516630
cmp byte [0x7b8ad3], 0
jne 0x4ec32e
mov ecx, 0xf0
call fcn.00516ef0
mov dword [ebp - 0x402c], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x4ec327
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x7b8ad3
sub esp, 0xc
push 0x28
push str.C:GitLab_Runner_buildsTzUW5DUw0windowswindows_agentRemoteInstallerInstallerUIutils_collector.cpp
push 0x20
call fcn.00516700
jmp 0x4ec329
xor eax, eax
mov dword [0x7bb3a4], eax
mov ecx, esi
call fcn.00516640
mov ecx, dword [0x7bb3a4]
lea ecx, [ecx + 0xd0]
call fcn.00516630
mov eax, dword [0x7bb3a4]
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x4020], eax
mov edx, edi
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x4028]
call fcn.004954b0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x401c]
push dword [eax]
call fcn.00498630
mov edx, dword [ebp - 0x4028]
mov dword [ebp - 0x4024], eax
add edx, 0xfffffff0
mov dword [ebp - 0x4030], 2
or esi, 0xffffffff
mov byte [ebp - 4], 8
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4ec3b5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x4024]
mov byte [ebp - 4], 6
push dword [eax]
push str.GetFileVersionInfo_failed_with___s_
push dword [0x7bb3a4]
call dword [ebp - 0x4020]
mov edx, dword [ebp - 0x401c]
add esp, 0xc
add edx, 0xfffffff0
mov dword [ebp - 4], 9
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4ec3f1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x7bb3a4]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x7bb3a4]
jmp 0x4ec5ef
xor eax, eax
mov dword [ebp - 0x4038], 0
mov word [ebp - 0x1a], ax
lea eax, [ebp - 0x4034]
push eax
lea eax, [ebp - 0x4038]
mov dword [ebp - 0x4034], 0
push eax
push 0x770210
lea eax, [ebp - 0x4018]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4ec4ae
cmp dword [ebp - 0x4034], 0
jbe 0x4ec4ae
mov eax, dword [ebp - 0x4038]
xor edx, edx
movups xmm0, xmmword [eax + 0x20]
movups xmm1, xmmword [eax]
movups xmm2, xmmword [eax + 0x10]
movups xmmword [ebp - 0x404c], xmm0
movaps xmm0, xmm1
psrldq xmm1, 0xc
movd eax, xmm1
psrldq xmm0, 8
movd ecx, xmm0
add edx, eax
mov dword [esi], edx
adc ecx, 0
xor edx, edx
mov dword [esi + 4], ecx
movd ecx, xmm2
psrldq xmm2, 4
movd eax, xmm2
add edx, eax
mov dword [edi], edx
adc ecx, 0
xor eax, eax
mov dword [edi + 4], ecx
jmp 0x4ec5fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00516890
mov esi, eax
mov ecx, esi
call fcn.00516630
cmp byte [0x7b8ad0], 0
jne 0x4ec514
mov ecx, 0xf0
call fcn.00516ef0
mov dword [ebp - 0x402c], eax
mov dword [ebp - 4], 0xa
test eax, eax
je 0x4ec50d
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x7b8ad0
sub esp, 0xc
push 0x36
push str.C:GitLab_Runner_buildsTzUW5DUw0windowswindows_agentRemoteInstallerInstallerUIutils_collector.cpp
push 0x20
call fcn.00516700
jmp 0x4ec50f
xor eax, eax
mov dword [0x7bb3d0], eax
mov ecx, esi
call fcn.00516640
mov ecx, dword [0x7bb3d0]
lea ecx, [ecx + 0xd0]
call fcn.00516630
mov eax, dword [0x7bb3d0]
mov eax, dword [eax]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x4020], eax
mov edx, edi
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x4024]
call fcn.004954b0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x402c]
push dword [eax]
call fcn.00498630
mov edx, dword [ebp - 0x4024]
mov dword [ebp - 0x4028], eax
add edx, 0xfffffff0
mov dword [ebp - 0x4030], 4
or esi, 0xffffffff
mov byte [ebp - 4], 0xd
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x4ec59b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x4028]
mov byte [ebp - 4], 0xb
push dword [eax]
push str.VerQueryValue_failed_with___s_
push dword [0x7bb3d0]
call dword [ebp - 0x4020]
mov edx, dword [ebp - 0x402c]
add esp, 0xc
add edx, 0xfffffff0
mov dword [ebp - 4], 0xe
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x4ec5d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x7bb3d0]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x7bb3d0]
lea ecx, [ecx + 0xd0]
call fcn.00516640
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00669a8a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret