Function at 0x409310
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x86c
mov eax, dword [0x4e2210]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x409333
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x40933a
xor eax, eax
jmp 0x4096d8
mov dword [ebp - 0x85c], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x648], 0
mov word [ebp - 0x858], 0
push 0x208
push 0
lea edx, [ebp - 0x856]
push edx
call fcn.0049d120
add esp, 0xc
mov dword [ebp - 0x860], 0
mov dword [ebp - 0x644], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x864], 0
mov word [ebp - 0x218], 0
push 0x208
push 0
lea eax, [ebp - 0x216]
push eax
call fcn.0049d120
add esp, 0xc
mov word [ebp - 0x640], 0
push 0x208
push 0
lea ecx, [ebp - 0x63e]
push ecx
call fcn.0049d120
add esp, 0xc
mov word [ebp - 0x430], 0
push 0x208
push 0
lea edx, [ebp - 0x42e]
push edx
call fcn.0049d120
add esp, 0xc
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x648], eax
cmp dword [ebp - 0x648], 0
jne 0x40941d
xor eax, eax
jmp 0x4096d8
mov ecx, dword [ebp - 0x648]
push ecx
call fcn.0049b68a
add esp, 4
mov dword [ebp - 0x868], eax
mov edx, dword [ebp - 0x868]
mov dword [ebp - 0x21c], edx
cmp dword [ebp - 0x21c], 0
jne 0x409451
jmp 0x4096a4
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x648]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x409478
jmp 0x4096a4
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x864]
push ecx
push str.VarFileInfoTranslation
mov edx, dword [ebp - 0x21c]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x4094a5
jmp 0x4096a4
push 0x20a
push 0
lea eax, [ebp - 0x858]
push eax
call fcn.0049d120
add esp, 0xc
mov ecx, dword [ebp - 0x864]
movzx edx, word [ecx + 2]
push edx
mov eax, dword [ebp - 0x864]
movzx ecx, word [eax]
push ecx
push str.StringFileInfo_04x_04xFileDescription
push 0x104
lea edx, [ebp - 0x858]
push edx
call fcn.0049fbe2
add esp, 0x14
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x860]
push ecx
lea edx, [ebp - 0x858]
push edx
mov eax, dword [ebp - 0x21c]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x409530
cmp dword [ebp - 0x644], 0
jbe 0x409530
push 0x104
mov ecx, dword [ebp - 0x860]
push ecx
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x20a
push 0
lea eax, [ebp - 0x858]
push eax
call fcn.0049d120
add esp, 0xc
mov ecx, dword [ebp - 0x864]
movzx edx, word [ecx + 2]
push edx
mov eax, dword [ebp - 0x864]
movzx ecx, word [eax]
push ecx
push str.StringFileInfo_04x_04xFileVersion
push 0x104
lea edx, [ebp - 0x858]
push edx
call fcn.0049fbe2
add esp, 0x14
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x860]
push ecx
lea edx, [ebp - 0x858]
push edx
mov eax, dword [ebp - 0x21c]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4095bb
cmp dword [ebp - 0x644], 0
jbe 0x4095bb
push 0x104
mov ecx, dword [ebp - 0x860]
push ecx
lea edx, [ebp - 0x640]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x20a
push 0
lea eax, [ebp - 0x858]
push eax
call fcn.0049d120
add esp, 0xc
mov ecx, dword [ebp - 0x864]
movzx edx, word [ecx + 2]
push edx
mov eax, dword [ebp - 0x864]
movzx ecx, word [eax]
push ecx
push str.StringFileInfo_04x_04xProductName
push 0x104
lea edx, [ebp - 0x858]
push edx
call fcn.0049fbe2
add esp, 0x14
lea eax, [ebp - 0x644]
push eax
lea ecx, [ebp - 0x860]
push ecx
lea edx, [ebp - 0x858]
push edx
mov eax, dword [ebp - 0x21c]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x409646
cmp dword [ebp - 0x644], 0
jbe 0x409646
push 0x104
mov ecx, dword [ebp - 0x860]
push ecx
lea edx, [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0xc], 0
je 0x409662
push 0x104
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x10], 0
je 0x40967e
push 0x104
lea edx, [ebp - 0x640]
push edx
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x14], 0
je 0x40969a
push 0x104
lea ecx, [ebp - 0x430]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 0x85c], 1
cmp dword [ebp - 0x21c], 0
je 0x4096c8
mov eax, dword [ebp - 0x21c]
mov dword [ebp - 0x86c], eax
mov ecx, dword [ebp - 0x86c]
push ecx
call fcn.0049daed
add esp, 4
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp - 0x85c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d270
mov esp, ebp
pop ebp
ret