Function at 0x401792
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x858
mov eax, dword [0x413054]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x84c], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x854], eax
mov eax, dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 0x848], eax
cmp ebx, edi
je 0x401a9f
xor eax, eax
cmp ax, word [ebx]
je 0x401a9f
mov esi, 0x208
push esi
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 0x850], edi
call fcn.00406dd0
xor eax, eax
push esi
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push edi
push eax
mov dword [ebp - 0x83c], edi
mov dword [ebp - 0x838], edi
mov dword [ebp - 0x858], edi
mov dword [ebp - 0x844], edi
call fcn.00406dd0
xor eax, eax
push esi
mov word [ebp - 0x834], ax
lea eax, [ebp - 0x832]
push edi
push eax
call fcn.00406dd0
xor eax, eax
push esi
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push edi
push eax
call fcn.00406dd0
add esp, 0x30
push edi
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
cmp esi, edi
je 0x401a9f
push 0x413f20
push esi
call fcn.004044c7
pop ecx
pop ecx
mov dword [ebp - 0x840], eax
cmp eax, edi
je 0x401a97
push eax
push esi
push edi
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x401a8b
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x858]
push eax
lea eax, [ebp - 0x844]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x840]
call edi
test eax, eax
je 0x401a8b
mov ebx, 0x20a
push ebx
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00406dd0
mov eax, dword [ebp - 0x844]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str.StringFileInfo_04x_04xFileDescription
mov esi, 0x104
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004044d2
add esp, 0x20
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x840]
call edi
test eax, eax
je 0x401941
cmp dword [ebp - 0x838], 0
jbe 0x401941
push 0x105
push dword [ebp - 0x83c]
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push ebx
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00406dd0
mov eax, dword [ebp - 0x844]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str.StringFileInfo_04x_04xFileVersion
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004044d2
add esp, 0x20
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x840]
call edi
test eax, eax
je 0x4019b6
cmp dword [ebp - 0x838], 0
jbe 0x4019b6
push 0x105
push dword [ebp - 0x83c]
lea eax, [ebp - 0x834]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push ebx
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00406dd0
mov eax, dword [ebp - 0x844]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str.StringFileInfo_04x_04xProductName
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004044d2
add esp, 0x20
lea eax, [ebp - 0x838]
push eax
lea eax, [ebp - 0x83c]
push eax
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x840]
call edi
test eax, eax
je 0x401a2b
cmp dword [ebp - 0x838], 0
jbe 0x401a2b
push 0x105
push dword [ebp - 0x83c]
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor edi, edi
cmp dword [ebp - 0x84c], edi
je 0x401a49
push esi
lea eax, [ebp - 0x628]
push eax
push dword [ebp - 0x84c]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp - 0x854], edi
je 0x401a65
push esi
lea eax, [ebp - 0x834]
push eax
push dword [ebp - 0x854]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp - 0x848], edi
je 0x401a81
push esi
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x848]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 0x850], 1
push dword [ebp - 0x840]
call fcn.00404444
pop ecx
mov eax, dword [ebp - 0x850]
jmp 0x401aa1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004042c0
leave
ret