Function at 0x13056130
Capabilities:
Get file version info

Disassembly:
sub esp, 0x78
push ebx
mov ebx, dword [esp + 0x80]
push ebp
xor ebp, ebp
cmp ebx, ebp
push esi
mov dword [esp + 0x18], ebp
je 0x130564ab
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x130564ab
push eax
call fcn.13082436
mov esi, eax
add esp, 4
cmp esi, ebp
mov dword [esp + 0x14], esi
je 0x130564ab
mov ecx, dword [esp + 0x10]
push edi
mov edx, ecx
xor eax, eax
mov edi, esi
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
push eax
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x13056498
mov edi, dword [esp + 0x90]
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0xb0]
test edi, edi
jne 0x130561d2
test ebx, ebx
jne 0x130561d2
test ebp, ebp
je 0x1305620f
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0x130f19f8
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x13056494
mov eax, dword [esp + 0x10]
test edi, edi
je 0x130561fc
mov ecx, dword [eax + 8]
mov dword [edi], ecx
test ebx, ebx
je 0x13056205
mov edx, dword [eax + 0xc]
mov dword [ebx], edx
test ebp, ebp
je 0x1305620f
mov eax, dword [eax + 0x24]
mov dword [ebp], eax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x13056494
mov eax, dword [esp + 0x10]
mov ecx, 0x18
lea edi, [esp + 0x25]
mov bp, word [eax]
mov bx, word [eax + 2]
xor eax, eax
mov byte [esp + 0x24], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x98]
test eax, eax
je 0x1305630d
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x1305630d
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, ebx
mov ecx, ebp
and eax, 0xffff
and ecx, 0xffff
push eax
push ecx
push str.StringFileInfo_04X_04XCompanyName
push edx
call fcn.130821c2
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push eax
push ecx
push edx
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1305630d
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x9c]
not ecx
mov edi, dword [eax]
dec ecx
cmp edi, ecx
jbe 0x1305630d
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x98]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x9c]
mov esi, dword [esp + 0x18]
not ecx
dec ecx
mov dword [edx], ecx
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x130563ce
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x130563ce
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, ebx
mov ecx, ebp
and eax, 0xffff
and ecx, 0xffff
push eax
push ecx
push str.StringFileInfo_04X_04XInternalName
push edx
call fcn.130821c2
add esp, 0x10
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x24]
push eax
push ecx
push edx
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x130563ce
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xa4]
not ecx
mov edi, dword [eax]
dec ecx
cmp edi, ecx
jbe 0x130563ce
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0xa0]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0xa4]
mov esi, dword [esp + 0x18]
not ecx
dec ecx
mov dword [edx], ecx
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x1305648c
mov eax, dword [esp + 0xac]
test eax, eax
je 0x1305648c
mov ecx, 0x19
xor eax, eax
lea edi, [esp + 0x24]
and ebx, 0xffff
and ebp, 0xffff
push ebx
rep stosd dword es:[edi], eax
push ebp
lea eax, [esp + 0x2c]
push str.StringFileInfo_04X_04XProductName
push eax
call fcn.130821c2
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
lea eax, [esp + 0x24]
push ecx
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x1305648c
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xac]
not ecx
mov edi, dword [eax]
dec ecx
cmp edi, ecx
jbe 0x1305648c
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0xa8]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0xac]
mov esi, dword [esp + 0x18]
not ecx
dec ecx
mov dword [edx], ecx
mov dword [esp + 0x1c], 1
mov ebp, dword [esp + 0x1c]
push esi
call fcn.1308242b
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x78
ret