Function at 0x5100c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a137
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 0x510104
mov eax, dword [esi]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x51017d
cmp dword [esi + 0x14], 8
jb 0x51011b
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.00500de0
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 0x510160
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00425790
jmp 0x510419
push eax
call fcn.00554193
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 0x51019c
mov eax, dword [esi]
push edi
push dword [ebp - 0x20]
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoW
cmp eax, 1
je 0x51021d
cmp dword [esi + 0x14], 8
jb 0x5101b5
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.00500de0
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 0x5101f5
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, ebx
call fcn.00425790
test edi, edi
je 0x510419
push 1
push edi
jmp 0x510411
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
push eax
push 0x5bd2c8
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x510283
cmp dword [esi + 0x14], 8
jb 0x51024a
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.00500de0
add esp, 0x18
mov ecx, ebx
push dword [0x60c604]
call fcn.004246c0
test edi, edi
je 0x510419
push 1
push edi
jmp 0x510411
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x5102cb
cmp dword [esi + 0x14], 8
jb 0x510292
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.00500de0
add esp, 0x18
mov ecx, ebx
push dword [0x60c604]
call fcn.004246c0
test edi, edi
je 0x510419
push 1
push edi
jmp 0x510411
movzx eax, word [eax + 0xc]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.00434ef0
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.00434ef0
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.00434ef0
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.00434ef0
push 0x5bd2f8
push eax
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 4
push eax
call fcn.00434360
add esp, 0x2c
push esi
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
call fcn.00477d30
push 0x5bd2f8
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00434360
add esp, 0xc
push edi
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 7
call fcn.00477d30
push 0x5bd2f8
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.00434360
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.00477d30
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 0x510419
push 1
push eax
call fcn.00554162
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.00553cca
mov esp, ebp
pop ebp
ret 0xc