Function at 0x409804
Capabilities:
Get file version info

Disassembly:
push 0x860
mov eax, 0x4225b4
call fcn.00422054
mov eax, dword [ebp + 8]
mov dword [ebp - 0x85c], eax
mov eax, dword [ebp + 0xc]
mov edi, ecx
mov dword [ebp - 0x864], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x858], eax
cmp edi, ebx
je 0x409b24
xor eax, eax
cmp ax, word [edi]
je 0x409b24
mov esi, 0x208
push esi
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push ebx
push eax
mov dword [ebp - 0x860], ebx
mov dword [ebp - 0x848], ebx
call sub.MSVCR100.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x638], ax
lea eax, [ebp - 0x636]
push ebx
push eax
mov dword [ebp - 0x850], ebx
mov dword [ebp - 0x84c], ebx
mov dword [ebp - 0x868], ebx
mov dword [ebp - 0x854], ebx
call sub.MSVCR100.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x844], ax
lea eax, [ebp - 0x842]
push ebx
push eax
call sub.MSVCR100.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x42c], ax
lea eax, [ebp - 0x42a]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0x30
push ebx
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
cmp esi, ebx
je 0x409b24
push esi
mov dword [ebp - 4], ebx
call fcn.00421ab1
pop ecx
mov dword [ebp - 0x848], eax
cmp eax, ebx
je 0x409b16
push eax
push esi
push ebx
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x409b01
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x868]
push eax
lea eax, [ebp - 0x854]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x848]
call edi
test eax, eax
je 0x409b01
push 0x20a
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_memset]
lea eax, [ebp - 0x220]
push eax
call ebx
mov eax, dword [ebp - 0x854]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str.StringFileInfo_04x_04xFileDescription
mov esi, 0x104
lea eax, [ebp - 0x220]
push esi
push eax
call dword [sym.imp.MSVCR100.dll__snwprintf]
add esp, 0x20
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x848]
call edi
test eax, eax
je 0x4099b1
cmp dword [ebp - 0x84c], 0
jbe 0x4099b1
push 0x105
push dword [ebp - 0x850]
lea eax, [ebp - 0x638]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call ebx
mov eax, dword [ebp - 0x854]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str.StringFileInfo_04x_04xFileVersion
lea eax, [ebp - 0x220]
push esi
push eax
call dword [sym.imp.MSVCR100.dll__snwprintf]
add esp, 0x20
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x848]
call edi
test eax, eax
je 0x409a28
cmp dword [ebp - 0x84c], 0
jbe 0x409a28
push 0x105
push dword [ebp - 0x850]
lea eax, [ebp - 0x844]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call ebx
mov eax, dword [ebp - 0x854]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str.StringFileInfo_04x_04xProductName
lea eax, [ebp - 0x220]
push esi
push eax
call dword [sym.imp.MSVCR100.dll__snwprintf]
add esp, 0x20
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x850]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x848]
call edi
test eax, eax
je 0x409a9f
cmp dword [ebp - 0x84c], 0
jbe 0x409a9f
push 0x105
push dword [ebp - 0x850]
lea eax, [ebp - 0x42c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor edi, edi
cmp dword [ebp - 0x85c], edi
je 0x409abd
push esi
lea eax, [ebp - 0x638]
push eax
push dword [ebp - 0x85c]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp - 0x864], edi
je 0x409ad9
push esi
lea eax, [ebp - 0x844]
push eax
push dword [ebp - 0x864]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp - 0x858], edi
je 0x409af5
push esi
lea eax, [ebp - 0x42c]
push eax
push dword [ebp - 0x858]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 0x860], 1
xor ebx, ebx
cmp dword [ebp - 0x848], ebx
je 0x409b16
push dword [ebp - 0x848]
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, dword [ebp - 0x860]
jmp 0x409b26
xor eax, eax
call fcn.004220b0
ret