Function at 0x21001046
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
cmp dword [ebp + 0xc], 0
je 0x2100105b
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
cmp dword [ebp + 0x10], 0
je 0x21001067
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 0
cmp dword [ebp + 0x14], 0
je 0x21001075
mov edx, dword [ebp + 0x14]
mov word [edx], 0
cmp dword [ebp + 0x18], 0
je 0x21001083
mov eax, dword [ebp + 0x18]
mov word [eax], 0
cmp dword [ebp + 0x1c], 0
je 0x2100108f
mov ecx, dword [ebp + 0x1c]
mov byte [ecx], 0
cmp dword [ebp + 0x20], 0
je 0x2100109e
mov edx, dword [ebp + 0x20]
mov dword [edx], 0
cmp dword [ebp + 0x24], 0
je 0x210010ac
mov eax, dword [ebp + 0x24]
mov word [eax], 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.21013097
test eax, eax
jne 0x210010c2
xor eax, eax
jmp 0x210013ef
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x210010df
xor eax, eax
jmp 0x210013ef
mov ecx, dword [ebp - 0xc]
push ecx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0
jne 0x21001108
xor eax, eax
jmp 0x210013ef
mov edx, dword [ebp - 0xa4]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push str.VarFileInfoTranslation
lea eax, [ebp - 0xa0]
push eax
call fcn.210537b0
add esp, 8
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xa0]
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x21001166
jmp 0x210013ed
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
lea ecx, [eax + edx*4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
shr ecx, 0x10
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0x20]
and edx, 0xffff
and edx, 0xffff
push edx
push str.StringFileInfo_04x_04x_
lea eax, [ebp - 0xa0]
push eax
call fcn.2105374f
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x21001206
push str.ProductName
lea ecx, [ebp - 0xa0]
push ecx
push 0x2107f134
lea edx, [ebp - 0x124]
push edx
call fcn.2105374f
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x124]
push edx
mov eax, dword [ebp - 0xa4]
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x21001206
cmp dword [ebp - 8], 0
je 0x21001206
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.210537b0
add esp, 8
push str.ProductVersion
lea eax, [ebp - 0xa0]
push eax
push 0x2107f14c
lea ecx, [ebp - 0x124]
push ecx
call fcn.2105374f
add esp, 0x10
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0xa4]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x21001261
cmp dword [ebp - 8], 0
je 0x21001261
cmp dword [ebp + 0x10], 0
je 0x21001261
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.210537b0
add esp, 8
cmp dword [ebp + 0x1c], 0
je 0x210012bc
push 0x2107f154
lea edx, [ebp - 0xa0]
push edx
push 0x2107f160
lea eax, [ebp - 0x124]
push eax
call fcn.2105374f
add esp, 0x10
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0xa4]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x210012bc
cmp dword [ebp - 8], 0
je 0x210012bc
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x1c]
push eax
call fcn.210537b0
add esp, 8
cmp dword [ebp + 0x20], 0
jne 0x210012d8
cmp dword [ebp + 0x24], 0
jne 0x210012d8
cmp dword [ebp + 0x14], 0
jne 0x210012d8
cmp dword [ebp + 0x18], 0
je 0x210013b0
push 0x2107f168
lea ecx, [ebp - 0x124]
push ecx
call fcn.210537b0
add esp, 8
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x124]
push ecx
mov edx, dword [ebp - 0xa4]
push edx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x210013b0
cmp dword [ebp - 8], 0
je 0x210013b0
cmp dword [ebp + 0x20], 0
je 0x21001330
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 0x128]
mov edx, dword [ecx + 8]
mov dword [eax], edx
cmp dword [ebp + 0x24], 0
je 0x2100137d
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 0x10]
and ecx, 0xffff
and ecx, 0xffff
and ecx, 0xff
and ecx, 0xff
mov edx, dword [ebp - 0x128]
mov eax, dword [edx + 0x10]
shr eax, 0x10
and eax, 0xffff
and eax, 0xff
and eax, 0xff
shl eax, 8
or ecx, eax
mov edx, dword [ebp + 0x24]
mov word [edx], cx
cmp dword [ebp + 0x14], 0
je 0x21001395
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 0x10]
shr ecx, 0x10
mov edx, dword [ebp + 0x14]
mov word [edx], cx
cmp dword [ebp + 0x18], 0
je 0x210013b0
mov eax, dword [ebp - 0x128]
mov ecx, dword [eax + 0x10]
and ecx, 0xffff
mov edx, dword [ebp + 0x18]
mov word [edx], cx
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0xa4], 0
je 0x210013e8
mov eax, dword [ebp - 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0xa4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x14]
jmp 0x210013ef
jmp 0x210013b7
mov esp, ebp
pop ebp
ret 0x20