Function at 0x510130
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a587
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 0x510174
mov eax, dword [esi]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x5101ed
cmp dword [esi + 0x14], 8
jb 0x51018b
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.00500e60
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 0x5101d0
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00425790
jmp 0x510489
push eax
call fcn.005541f3
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 0x51020c
mov eax, dword [esi]
push edi
push dword [ebp - 0x20]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, 1
je 0x51028d
cmp dword [esi + 0x14], 8
jb 0x510225
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.00500e60
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 0x510265
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00425790
test edi, edi
je 0x510489
push 1
push edi
jmp 0x510481
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 0x5102f3
cmp dword [esi + 0x14], 8
jb 0x5102ba
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.00500e60
add esp, 0x18
mov ecx, ebx
push dword [0x60c604]
call fcn.004246c0
test edi, edi
je 0x510489
push 1
push edi
jmp 0x510481
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x51033b
cmp dword [esi + 0x14], 8
jb 0x510302
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.00500e60
add esp, 0x18
mov ecx, ebx
push dword [0x60c604]
call fcn.004246c0
test edi, edi
je 0x510489
push 1
push edi
jmp 0x510481
movzx eax, word [eax + 0xc]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.00434f10
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.00434f10
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.00434f10
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.00434f10
push 0x5bd418
push eax
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 4
push eax
call fcn.00434380
add esp, 0x2c
push esi
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
call fcn.00477d80
push 0x5bd418
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00434380
add esp, 0xc
push edi
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 7
call fcn.00477d80
push 0x5bd418
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00434380
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.00477d80
lea ecx, [ebp - 0x6c]
call fcn.00424580
lea ecx, [ebp - 0x3c]
call fcn.00424580
lea ecx, [ebp - 0x84]
call fcn.00424580
lea ecx, [ebp - 0x54]
call fcn.00424580
lea ecx, [ebp - 0x9c]
call fcn.00424580
lea ecx, [ebp - 0xb4]
call fcn.00424580
lea ecx, [ebp - 0xcc]
call fcn.00424580
lea ecx, [ebp - 0xe4]
call fcn.00424580
lea ecx, [ebp - 0xfc]
call fcn.00424580
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x510489
push 1
push eax
call fcn.005541c2
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.00553d2a
mov esp, ebp
pop ebp
ret 0xc