Function at 0x1003066c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
push edi
je 0x100308da
cmp word [ebx], si
je 0x100308da
mov edx, 0x82
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x21e]
mov word [ebp - 0x220], si
mov word [ebp - 0x42c], si
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [ebp - 0x42a]
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [ebp - 0x636]
mov word [ebp - 0x638], si
mov word [ebp - 0x844], si
rep stosd dword es:[edi], eax
mov ecx, edx
lea edi, [ebp - 0x842]
push esi
push ebx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp + 8], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
je 0x100308da
push dword [sym.imp.MSVCP60.dll_struct_std::nothrow_t_const_std::nothrow]
push edi
call fcn.10047052
pop ecx
cmp eax, esi
pop ecx
mov dword [ebp - 8], eax
je 0x100308d5
push eax
push edi
push esi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x100308cc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100308cc
mov ebx, 0x20a
lea eax, [ebp - 0x220]
push ebx
push esi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0xc]
mov edi, dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0xc
mov esi, 0x104
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
push str.StringFileInfo_04x_04xFileDescription
lea eax, [ebp - 0x220]
push esi
push eax
call edi
add esp, 0x14
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x100307b5
cmp dword [ebp + 8], 0
jbe 0x100307b5
push 0x105
lea eax, [ebp - 0x42c]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push ebx
lea eax, [ebp - 0x220]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0xc]
add esp, 0xc
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 edi
add esp, 0x14
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1003081b
cmp dword [ebp + 8], 0
jbe 0x1003081b
push 0x105
lea eax, [ebp - 0x638]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push ebx
lea eax, [ebp - 0x220]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 0xc]
add esp, 0xc
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 edi
add esp, 0x14
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 8]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10030881
cmp dword [ebp + 8], 0
jbe 0x10030881
push 0x105
lea eax, [ebp - 0x844]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x10030899
lea eax, [ebp - 0x42c]
push esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x10], edi
je 0x100308af
lea eax, [ebp - 0x638]
push esi
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x14], edi
je 0x100308c5
lea eax, [ebp - 0x844]
push esi
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov dword [ebp - 0x10], 1
push dword [ebp - 8]
call sub.MFC42u.DLL_operatordelete
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x100308dc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret