Function at 0x454310
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x898
push esi
push edi
lea edi, [ebp - 0x898]
mov ecx, 0x226
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4cd290]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x454347
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x45434e
xor eax, eax
jmp 0x4546e9
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov word [ebp - 0x220], 0
push 0x208
push 0
lea edx, [ebp - 0x21e]
push edx
call fcn.004863a0
add esp, 0xc
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x250], 0
mov word [ebp - 0x464], 0
push 0x208
push 0
lea eax, [ebp - 0x462]
push eax
call fcn.004863a0
add esp, 0xc
mov word [ebp - 0x678], 0
push 0x208
push 0
lea ecx, [ebp - 0x676]
push ecx
call fcn.004863a0
add esp, 0xc
mov word [ebp - 0x88c], 0
push 0x208
push 0
lea edx, [ebp - 0x88a]
push edx
call fcn.004863a0
add esp, 0xc
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x454422
xor eax, eax
jmp 0x4546e9
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00484129
add esp, 4
mov dword [ebp - 0x894], eax
mov edx, dword [ebp - 0x894]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x45444d
jmp 0x4546c1
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x45446e
jmp 0x4546c1
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x250]
push ecx
push str.VarFileInfoTranslation
mov edx, dword [ebp - 0xc]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x454498
jmp 0x4546c1
push 0x20a
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004863a0
add esp, 0xc
mov ecx, dword [ebp - 0x250]
movzx edx, word [ecx + 2]
push edx
mov eax, dword [ebp - 0x250]
movzx ecx, word [eax]
push ecx
push str.StringFileInfo_04x_04xFileDescription
push 0x104
lea edx, [ebp - 0x220]
push edx
call fcn.00488f32
add esp, 0x14
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x454529
cmp dword [ebp - 0x238], 0
jbe 0x454529
mov esi, esp
push 0x104
mov ecx, dword [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x464]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp esi, esp
call fcn.004a574e
push 0x20a
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004863a0
add esp, 0xc
mov ecx, dword [ebp - 0x250]
movzx edx, word [ecx + 2]
push edx
mov eax, dword [ebp - 0x250]
movzx ecx, word [eax]
push ecx
push str.StringFileInfo_04x_04xFileVersion
push 0x104
lea edx, [ebp - 0x220]
push edx
call fcn.00488f32
add esp, 0x14
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4545ba
cmp dword [ebp - 0x238], 0
jbe 0x4545ba
mov esi, esp
push 0x104
mov ecx, dword [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x678]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp esi, esp
call fcn.004a574e
push 0x20a
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004863a0
add esp, 0xc
mov ecx, dword [ebp - 0x250]
movzx edx, word [ecx + 2]
push edx
mov eax, dword [ebp - 0x250]
movzx ecx, word [eax]
push ecx
push str.StringFileInfo_04x_04xProductName
push 0x104
lea edx, [ebp - 0x220]
push edx
call fcn.00488f32
add esp, 0x14
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x45464b
cmp dword [ebp - 0x238], 0
jbe 0x45464b
mov esi, esp
push 0x104
mov ecx, dword [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x88c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp esi, esp
call fcn.004a574e
cmp dword [ebp + 0xc], 0
je 0x454670
mov esi, esp
push 0x104
lea eax, [ebp - 0x464]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp esi, esp
call fcn.004a574e
cmp dword [ebp + 0x10], 0
je 0x454695
mov esi, esp
push 0x104
lea edx, [ebp - 0x678]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp esi, esp
call fcn.004a574e
cmp dword [ebp + 0x14], 0
je 0x4546ba
mov esi, esp
push 0x104
lea ecx, [ebp - 0x88c]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp esi, esp
call fcn.004a574e
mov dword [ebp - 8], 1
cmp dword [ebp - 0xc], 0
je 0x4546df
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x898], eax
mov ecx, dword [ebp - 0x898]
push ecx
call fcn.00485e66
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x454718]
call fcn.004a5771
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004851ae
add esp, 0x898
cmp ebp, esp
call fcn.004a574e
mov esp, ebp
pop ebp
ret