Function at 0x4567d0
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 [0x4c6280]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x456807
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x45680e
xor eax, eax
jmp 0x456ba9
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.004806d0
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.004806d0
add esp, 0xc
mov word [ebp - 0x678], 0
push 0x208
push 0
lea ecx, [ebp - 0x676]
push ecx
call fcn.004806d0
add esp, 0xc
mov word [ebp - 0x88c], 0
push 0x208
push 0
lea edx, [ebp - 0x88a]
push edx
call fcn.004806d0
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 0x4568e2
xor eax, eax
jmp 0x456ba9
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0047e225
add esp, 4
mov dword [ebp - 0x894], eax
mov edx, dword [ebp - 0x894]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x45690d
jmp 0x456b81
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 0x45692e
jmp 0x456b81
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 0x456958
jmp 0x456b81
push 0x20a
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004806d0
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.00482389
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 0x4569e9
cmp dword [ebp - 0x238], 0
jbe 0x4569e9
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.0049f8de
push 0x20a
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004806d0
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.00482389
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 0x456a7a
cmp dword [ebp - 0x238], 0
jbe 0x456a7a
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.0049f8de
push 0x20a
push 0
lea eax, [ebp - 0x220]
push eax
call fcn.004806d0
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.00482389
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 0x456b0b
cmp dword [ebp - 0x238], 0
jbe 0x456b0b
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.0049f8de
cmp dword [ebp + 0xc], 0
je 0x456b30
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.0049f8de
cmp dword [ebp + 0x10], 0
je 0x456b55
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.0049f8de
cmp dword [ebp + 0x14], 0
je 0x456b7a
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.0049f8de
mov dword [ebp - 8], 1
cmp dword [ebp - 0xc], 0
je 0x456b9f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x898], eax
mov ecx, dword [ebp - 0x898]
push ecx
call fcn.00480167
add esp, 4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x456bd8]
call fcn.0049f901
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f404
add esp, 0x898
cmp ebp, esp
call fcn.0049f8de
mov esp, ebp
pop ebp
ret