Function at 0x4a5e90
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 0x531c88
mov eax, dword fs:[0]
push eax
push ebx
mov eax, 0x4060
call fcn.004ec080
mov eax, dword [0x5ba11c]
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.004ed4d0
add esp, 0xc
push 0
push dword [ebp - 0x401c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
test eax, eax
jne 0x4a6076
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.004d03a0
mov esi, eax
mov ecx, esi
call fcn.004d0140
cmp byte [0x5c221e], 0
jne 0x4a5f96
mov ecx, 0xf0
call fcn.004d0a00
mov dword [ebp - 0x402c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4a5f8f
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x5c221e
sub esp, 0xc
push 0x21
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerInstallerUIutils_collector.cpp
push 0x20
call fcn.004d0210
jmp 0x4a5f91
xor eax, eax
mov dword [0x5c4af0], eax
mov ecx, esi
call fcn.004d0150
mov ecx, dword [0x5c4af0]
lea ecx, [ecx + 0xd0]
call fcn.004d0140
mov eax, dword [0x5c4af0]
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.0044f250
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4028]
push dword [eax]
call fcn.004523d0
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 0x4a601d
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 [0x5c4af0]
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 0x4a6059
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x5c4af0]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x5c4af0]
jmp 0x4a63bf
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 0x4a61de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.004d03a0
mov esi, eax
mov ecx, esi
call fcn.004d0140
cmp byte [0x5c221c], 0
jne 0x4a60fe
mov ecx, 0xf0
call fcn.004d0a00
mov dword [ebp - 0x402c], eax
mov dword [ebp - 4], 5
test eax, eax
je 0x4a60f7
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x5c221c
sub esp, 0xc
push 0x28
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerInstallerUIutils_collector.cpp
push 0x20
call fcn.004d0210
jmp 0x4a60f9
xor eax, eax
mov dword [0x5c4ac8], eax
mov ecx, esi
call fcn.004d0150
mov ecx, dword [0x5c4ac8]
lea ecx, [ecx + 0xd0]
call fcn.004d0140
mov eax, dword [0x5c4ac8]
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.0044f250
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x401c]
push dword [eax]
call fcn.004523d0
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 0x4a6185
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 [0x5c4ac8]
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 0x4a61c1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x5c4ac8]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x5c4ac8]
jmp 0x4a63bf
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 0x580190
lea eax, [ebp - 0x4018]
push eax
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4a627e
cmp dword [ebp - 0x4034], 0
jbe 0x4a627e
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 0x4a63cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.004d03a0
mov esi, eax
mov ecx, esi
call fcn.004d0140
cmp byte [0x5c2219], 0
jne 0x4a62e4
mov ecx, 0xf0
call fcn.004d0a00
mov dword [ebp - 0x402c], eax
mov dword [ebp - 4], 0xa
test eax, eax
je 0x4a62dd
sub esp, 8
xorps xmm0, xmm0
mov ecx, eax
movsd qword [esp], xmm0
push 0x5c2219
sub esp, 0xc
push 0x36
push str.C:BuildAgentwork4d643bb3f4c71f96RemoteInstallerInstallerUIutils_collector.cpp
push 0x20
call fcn.004d0210
jmp 0x4a62df
xor eax, eax
mov dword [0x5c4af4], eax
mov ecx, esi
call fcn.004d0150
mov ecx, dword [0x5c4af4]
lea ecx, [ecx + 0xd0]
call fcn.004d0140
mov eax, dword [0x5c4af4]
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.0044f250
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x402c]
push dword [eax]
call fcn.004523d0
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 0x4a636b
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 [0x5c4af4]
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 0x4a63a7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x5c4af4]
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, dword [0x5c4af4]
lea ecx, [ecx + 0xd0]
call fcn.004d0150
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.004eabba
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret