Function at 0x10001980
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 0x10001cfb
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 0x10001cfb
push eax
call fcn.100023e9
mov esi, eax
add esp, 4
cmp esi, ebp
mov dword [esp + 0x14], esi
je 0x10001cfb
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 0x10001ce8
mov edi, dword [esp + 0x90]
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0xb0]
test edi, edi
jne 0x10001a22
test ebx, ebx
jne 0x10001a22
test ebp, ebp
je 0x10001a5f
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0x1000e0e8
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x10001ce4
mov eax, dword [esp + 0x10]
test edi, edi
je 0x10001a4c
mov ecx, dword [eax + 8]
mov dword [edi], ecx
test ebx, ebx
je 0x10001a55
mov edx, dword [eax + 0xc]
mov dword [ebx], edx
test ebp, ebp
je 0x10001a5f
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 0x10001ce4
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 0x10001b5d
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x10001b5d
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.10002397
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 0x10001b5d
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 0x10001b5d
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 0x10001c1e
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x10001c1e
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.10002397
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 0x10001c1e
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 0x10001c1e
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 0x10001cdc
mov eax, dword [esp + 0xac]
test eax, eax
je 0x10001cdc
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.10002397
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 0x10001cdc
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 0x10001cdc
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.1000210f
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