Function at 0x5101b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a607
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
mov eax, dword [0x61094c]
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 esi, dword [ebp + 0xc]
mov eax, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x24], ebx
cmp dword [esi + 0x14], 8
jb 0x5101f4
mov eax, dword [esi]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x51026d
cmp dword [esi + 0x14], 8
jb 0x51020b
mov esi, dword [esi]
push esi
push str.Unable_to_get_file_version_info_for_file:__s
push 0x28
push str.XMLUpdater::v2::CFileVersionSubstitution::Substitute
push str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterFileVersionSubstitution.cpp
push 1
call fcn.00500ef0
mov edx, dword [str._UNKNOWN]
add esp, 0x18
mov ecx, edx
mov dword [ebx], 0
xor eax, eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x510250
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00425810
jmp 0x510509
push eax
call fcn.00554273
mov edi, eax
add esp, 4
mov dword [ebp - 0x14], edi
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [ebp - 4], 0
jb 0x51028c
mov eax, dword [esi]
push edi
push dword [ebp - 0x20]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, 1
je 0x51030d
cmp dword [esi + 0x14], 8
jb 0x5102a5
mov esi, dword [esi]
push esi
push str.Unable_to_get_file_version_data_for_file:__s
push 0x2f
push str.XMLUpdater::v2::CFileVersionSubstitution::Substitute
push str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterFileVersionSubstitution.cpp
push 1
call fcn.00500ef0
mov edx, dword [str._UNKNOWN]
add esp, 0x18
mov ecx, edx
mov dword [ebx], 0
xor eax, eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5102e5
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00425810
test edi, edi
je 0x510509
push 1
push edi
jmp 0x510501
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
push 0x5bd3e8
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x510373
cmp dword [esi + 0x14], 8
jb 0x51033a
mov esi, dword [esi]
push esi
push str.VerQueryValue_failed_for_file:__s
push 0x37
push str.XMLUpdater::v2::CFileVersionSubstitution::Substitute
push str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterFileVersionSubstitution.cpp
push 1
call fcn.00500ef0
add esp, 0x18
mov ecx, ebx
push dword [0x60c604]
call fcn.00424740
test edi, edi
je 0x510509
push 1
push edi
jmp 0x510501
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x5103bb
cmp dword [esi + 0x14], 8
jb 0x510382
mov esi, dword [esi]
push esi
push str.Cant_read_version_info_for:__s
push 0x3d
push str.XMLUpdater::v2::CFileVersionSubstitution::Substitute
push str.E:BT71e4c9fa_1978_4386_a3da_49ea31fa22b7WebAdvisor_XmlUpdater_srcXmlUpdaterFileVersionSubstitution.cpp
push 1
call fcn.00500ef0
add esp, 0x18
mov ecx, ebx
push dword [0x60c604]
call fcn.00424740
test edi, edi
je 0x510509
push 1
push edi
jmp 0x510501
movzx eax, word [eax + 0xc]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.00434f80
mov ebx, eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0xe4]
mov byte [ebp - 4], 1
movzx ecx, word [ecx + 0xe]
push ecx
push eax
call fcn.00434f80
mov edi, eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0xcc]
mov byte [ebp - 4], 2
movzx ecx, word [ecx + 8]
push ecx
push eax
call fcn.00434f80
mov esi, eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0xb4]
mov byte [ebp - 4], 3
movzx ecx, word [ecx + 0xa]
push ecx
push eax
call fcn.00434f80
push 0x5bd418
push eax
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 4
push eax
call fcn.004343f0
add esp, 0x2c
push esi
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
call fcn.00477e10
push 0x5bd418
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004343f0
add esp, 0xc
push edi
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 7
call fcn.00477e10
push 0x5bd418
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.004343f0
add esp, 0xc
push ebx
mov ebx, dword [ebp - 0x24]
mov ecx, ebx
push eax
push dword [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.00477e10
lea ecx, [ebp - 0x6c]
call fcn.00424600
lea ecx, [ebp - 0x3c]
call fcn.00424600
lea ecx, [ebp - 0x84]
call fcn.00424600
lea ecx, [ebp - 0x54]
call fcn.00424600
lea ecx, [ebp - 0x9c]
call fcn.00424600
lea ecx, [ebp - 0xb4]
call fcn.00424600
lea ecx, [ebp - 0xcc]
call fcn.00424600
lea ecx, [ebp - 0xe4]
call fcn.00424600
lea ecx, [ebp - 0xfc]
call fcn.00424600
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x510509
push 1
push eax
call fcn.00554242
add esp, 8
mov eax, ebx
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.00553daa
mov esp, ebp
pop ebp
ret 0xc