Function at 0x12e32880
Capabilities:
Get file version info

Disassembly:
sub esp, 0xd8
push ebx
push ebp
push esi
mov esi, dword [esp + 0xe8]
xor ebp, ebp
cmp esi, ebp
mov dword [esp + 0x14], ebp
je 0x12e32afc
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebp
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x12e32afc
push eax
call fcn.12f5c05b
mov ebx, eax
add esp, 4
cmp ebx, ebp
je 0x12e32afc
mov ecx, dword [esp + 0x10]
push edi
mov edx, ecx
xor eax, eax
mov edi, ebx
push ebx
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 + 0x20]
push eax
push ecx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x12e32ae6
mov esi, dword [esp + 0xf0]
mov edi, dword [esp + 0xf4]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x108]
test esi, esi
jne 0x12e32921
test edi, edi
jne 0x12e32921
test ebp, ebp
je 0x12e3295e
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push 0x130c4ed0
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x12e32ae2
mov eax, dword [esp + 0x10]
test esi, esi
je 0x12e3294b
mov ecx, dword [eax + 8]
mov dword [esi], ecx
test edi, edi
je 0x12e32954
mov edx, dword [eax + 0xc]
mov dword [edi], edx
test ebp, ebp
je 0x12e3295e
mov eax, dword [eax + 0x24]
mov dword [ebp], eax
mov ebp, dword [esp + 0xf8]
test ebp, ebp
je 0x12e32a20
mov esi, dword [esp + 0xfc]
test esi, esi
je 0x12e32a20
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x12e32ae2
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x10]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
lea eax, [esp + 0x28]
push str.StringFileInfo_04X_04XInternalName
push eax
call fcn.12f5cfbf
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push ecx
push edx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x12e32ae2
mov ecx, dword [esp + 0x10]
push ecx
call fcn.12f5c51d
mov ecx, dword [esi]
add esp, 4
cmp ecx, eax
jbe 0x12e32ae2
mov edx, dword [esp + 0x10]
push edx
push ebp
call fcn.12f5c95f
mov eax, dword [esp + 0x18]
push eax
call fcn.12f5c51d
add esp, 0xc
mov dword [esi], eax
mov ebp, dword [esp + 0x100]
test ebp, ebp
je 0x12e32ada
mov esi, dword [esp + 0x104]
test esi, esi
je 0x12e32ada
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push str.VarFileInfoTranslation
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x12e32ae2
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x10]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
lea eax, [esp + 0x28]
push str.StringFileInfo_04X_04XProductName
push eax
call fcn.12f5cfbf
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push ecx
push edx
push eax
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x12e32ae2
mov ecx, dword [esp + 0x10]
push ecx
call fcn.12f5c51d
mov ecx, dword [esi]
add esp, 4
cmp ecx, eax
jbe 0x12e32ae2
mov edx, dword [esp + 0x10]
push edx
push ebp
call fcn.12f5c95f
mov eax, dword [esp + 0x18]
push eax
call fcn.12f5c51d
add esp, 0xc
mov dword [esi], eax
mov dword [esp + 0x18], 1
mov ebp, dword [esp + 0x18]
push ebx
call fcn.12f5c050
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd8
ret
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xd8
ret