Function at 0x2102c8c5
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
cmp dword [ebp + 0xc], 0
je 0x2102c8da
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
cmp dword [ebp + 0x10], 0
je 0x2102c8e6
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 0
cmp dword [ebp + 0x14], 0
je 0x2102c8f4
mov edx, dword [ebp + 0x14]
mov word [edx], 0
cmp dword [ebp + 0x18], 0
je 0x2102c902
mov eax, dword [ebp + 0x18]
mov word [eax], 0
cmp dword [ebp + 0x1c], 0
je 0x2102c90e
mov ecx, dword [ebp + 0x1c]
mov byte [ecx], 0
cmp dword [ebp + 0x20], 0
je 0x2102c91d
mov edx, dword [ebp + 0x20]
mov dword [edx], 0
cmp dword [ebp + 0x24], 0
je 0x2102c92b
mov eax, dword [ebp + 0x24]
mov word [eax], 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x2102c946
jmp 0x2102cc24
mov eax, dword [ebp - 0xc]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
jne 0x2102c96d
jmp 0x2102cc24
mov ecx, dword [ebp - 0xa0]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
mov dword [ebp - 0x14], 0
push str.VarFileInfoTranslation
lea edx, [ebp - 0x9c]
push edx
call fcn.2102ffc0
add esp, 8
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x9c]
push edx
mov eax, dword [ebp - 0xa0]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x2102c9c4
jmp 0x2102cc22
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
lea eax, [edx + ecx*4]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
shr eax, 0x10
and eax, 0xffff
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x1c]
and ecx, 0xffff
push ecx
push str.StringFileInfo_04x_04x_
lea edx, [ebp - 0x9c]
push edx
call fcn.2103021c
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x2102ca62
push str.ProductName
lea eax, [ebp - 0x9c]
push eax
push 0x21056d4c
lea ecx, [ebp - 0x120]
push ecx
call fcn.2103021c
add esp, 0x10
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0xa0]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x2102ca62
cmp dword [ebp - 8], 0
je 0x2102ca62
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.2102ffc0
add esp, 8
push str.ProductVersion
lea edx, [ebp - 0x9c]
push edx
push 0x21056d64
lea eax, [ebp - 0x120]
push eax
call fcn.2103021c
add esp, 0x10
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0xa0]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x2102cabd
cmp dword [ebp - 8], 0
je 0x2102cabd
cmp dword [ebp + 0x10], 0
je 0x2102cabd
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.2102ffc0
add esp, 8
cmp dword [ebp + 0x1c], 0
je 0x2102cb18
push str.CompanyName
lea ecx, [ebp - 0x9c]
push ecx
push 0x21056d78
lea edx, [ebp - 0x120]
push edx
call fcn.2103021c
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x120]
push edx
mov eax, dword [ebp - 0xa0]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x2102cb18
cmp dword [ebp - 8], 0
je 0x2102cb18
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
call fcn.2102ffc0
add esp, 8
cmp dword [ebp + 0x20], 0
jne 0x2102cb34
cmp dword [ebp + 0x24], 0
jne 0x2102cb34
cmp dword [ebp + 0x14], 0
jne 0x2102cb34
cmp dword [ebp + 0x18], 0
je 0x2102cbef
push 0x21056d80
lea eax, [ebp - 0x120]
push eax
call fcn.2102ffc0
add esp, 8
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x124]
push edx
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0xa0]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x2102cbef
cmp dword [ebp - 8], 0
je 0x2102cbef
cmp dword [ebp + 0x20], 0
je 0x2102cb88
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x124]
mov ecx, dword [eax + 8]
mov dword [edx], ecx
cmp dword [ebp + 0x24], 0
je 0x2102cbbc
mov edx, dword [ebp - 0x124]
xor eax, eax
mov al, byte [edx + 0x10]
mov ecx, dword [ebp - 0x124]
mov edx, dword [ecx + 0x10]
shr edx, 0x10
and edx, 0xffff
and edx, 0xff
shl edx, 8
or eax, edx
mov ecx, dword [ebp + 0x24]
mov word [ecx], ax
cmp dword [ebp + 0x14], 0
je 0x2102cbd9
mov edx, dword [ebp - 0x124]
mov eax, dword [edx + 0x10]
shr eax, 0x10
and eax, 0xffff
mov ecx, dword [ebp + 0x14]
mov word [ecx], ax
cmp dword [ebp + 0x18], 0
je 0x2102cbef
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x124]
mov cx, word [eax + 0x10]
mov word [edx], cx
cmp dword [ebp - 0xa0], 0
je 0x2102cc20
mov edx, dword [ebp - 0xa0]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x2102cc24
jmp 0x2102cbef
mov esp, ebp
pop ebp
ret 0x20