Function at 0x2100104c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
cmp dword [ebp + 0xc], 0
je 0x21001063
mov eax, dword [ebp + 0xc]
mov word [eax], 0
cmp dword [ebp + 0x10], 0
je 0x21001071
mov ecx, dword [ebp + 0x10]
mov word [ecx], 0
cmp dword [ebp + 0x14], 0
je 0x2100107f
mov edx, dword [ebp + 0x14]
mov word [edx], 0
cmp dword [ebp + 0x18], 0
je 0x2100108d
mov eax, dword [ebp + 0x18]
mov word [eax], 0
cmp dword [ebp + 0x1c], 0
je 0x2100109b
mov ecx, dword [ebp + 0x1c]
mov word [ecx], 0
cmp dword [ebp + 0x20], 0
je 0x210010aa
mov edx, dword [ebp + 0x20]
mov dword [edx], 0
cmp dword [ebp + 0x24], 0
je 0x210010b8
mov eax, dword [ebp + 0x24]
mov word [eax], 0
cmp dword [ebp + 0x28], 0
je 0x210010c6
mov ecx, dword [ebp + 0x28]
mov word [ecx], 0
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.21014f29
add esp, 8
test eax, eax
jne 0x210010df
xor eax, eax
jmp 0x21001465
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x210010fc
xor eax, eax
jmp 0x21001465
mov edx, dword [ebp - 0xc]
push edx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
jne 0x21001125
xor eax, eax
jmp 0x21001465
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push str.VarFileInfoTranslation
lea ecx, [ebp - 0x120]
push ecx
call fcn.2105e417
add esp, 8
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x124]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x21001183
jmp 0x21001463
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax*4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
shr edx, 0x10
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x20]
and eax, 0xffff
and eax, 0xffff
push eax
push str.StringFileInfo_04x_04x_
lea ecx, [ebp - 0x120]
push ecx
call fcn.2105e37e
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x21001221
push str.ProductName
lea edx, [ebp - 0x120]
push edx
push 0x2108a170
lea eax, [ebp - 0x224]
push eax
call fcn.2105e37e
add esp, 0x10
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp - 0x124]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x21001221
cmp dword [ebp - 8], 0
je 0x21001221
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.2105e417
add esp, 8
push str.ProductVersion
lea ecx, [ebp - 0x120]
push ecx
push 0x2108a19c
lea edx, [ebp - 0x224]
push edx
call fcn.2105e37e
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x224]
push edx
mov eax, dword [ebp - 0x124]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x2100127c
cmp dword [ebp - 8], 0
je 0x2100127c
cmp dword [ebp + 0x10], 0
je 0x2100127c
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.2105e417
add esp, 8
cmp dword [ebp + 0x1c], 0
je 0x210012d7
push 0x2108a1a8
lea eax, [ebp - 0x120]
push eax
push 0x2108a1c0
lea ecx, [ebp - 0x224]
push ecx
call fcn.2105e37e
add esp, 0x10
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x124]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x210012d7
cmp dword [ebp - 8], 0
je 0x210012d7
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
call fcn.2105e417
add esp, 8
cmp dword [ebp + 0x28], 0
je 0x21001332
push str.OriginalFilename
lea edx, [ebp - 0x120]
push edx
push 0x2108a1f0
lea eax, [ebp - 0x224]
push eax
call fcn.2105e37e
add esp, 0x10
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp - 0x124]
push ecx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x21001332
cmp dword [ebp - 8], 0
je 0x21001332
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x28]
push eax
call fcn.2105e417
add esp, 8
cmp dword [ebp + 0x20], 0
jne 0x2100134e
cmp dword [ebp + 0x24], 0
jne 0x2100134e
cmp dword [ebp + 0x14], 0
jne 0x2100134e
cmp dword [ebp + 0x18], 0
je 0x21001426
push 0x2108a1fc
lea ecx, [ebp - 0x224]
push ecx
call fcn.2105e417
add esp, 8
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x124]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x21001426
cmp dword [ebp - 8], 0
je 0x21001426
cmp dword [ebp + 0x20], 0
je 0x210013a6
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 0x228]
mov edx, dword [ecx + 8]
mov dword [eax], edx
cmp dword [ebp + 0x24], 0
je 0x210013f3
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax + 0x10]
and ecx, 0xffff
and ecx, 0xffff
and ecx, 0xff
and ecx, 0xff
mov edx, dword [ebp - 0x228]
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 0x2100140b
mov eax, dword [ebp - 0x228]
mov ecx, dword [eax + 0x10]
shr ecx, 0x10
mov edx, dword [ebp + 0x14]
mov word [edx], cx
cmp dword [ebp + 0x18], 0
je 0x21001426
mov eax, dword [ebp - 0x228]
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 - 0x124], 0
je 0x2100145e
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x14]
jmp 0x21001465
jmp 0x2100142d
mov esp, ebp
pop ebp
ret