Function at 0x10006770
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x214]
sub esp, 0x284
mov dword [esp + 8], 0x104
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
sub esp, 0xc
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.version.dll_GetFileVersionInfoSizeW]
sub esp, 8
test eax, eax
jne 0x100067f0
xor edi, edi
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esp + 4], 0x5c
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcsrchr]
lea edx, [eax + 2]
test eax, eax
mov eax, ebx
cmovne eax, edx
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x100067b6
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.version.dll_GetFileVersionInfoW]
sub esp, 0x10
test eax, eax
je 0x100067b8
lea eax, [ebp - 0x270]
mov dword [esp + 4], str.VarFileInfoTranslation
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x268]
mov dword [esp + 8], eax
mov eax, dword [sym.imp.version.dll_VerQueryValueW]
mov dword [esp], edi
mov dword [ebp - 0x274], eax
call eax
sub esp, 0x10
test eax, eax
je 0x100067b8
cmp dword [ebp - 0x270], 3
jbe 0x100067b8
call dword [sym.imp.kernel32.dll_GetThreadLocale]
mov edx, dword [ebp - 0x270]
mov ecx, eax
mov dword [ebp - 0x27c], eax
mov eax, edx
shr eax, 2
test eax, eax
je 0x100067b8
mov dword [ebp - 0x278], edi
xor esi, esi
mov edi, ecx
jmp 0x100068a8
mov eax, edx
add esi, 1
shr eax, 2
cmp esi, eax
jae 0x10006968
mov eax, dword [ebp - 0x268]
lea eax, [eax + esi*4]
movzx ecx, word [eax]
cmp ecx, edi
jne 0x10006898
movzx eax, word [eax + 2]
mov dword [esp + 0xc], edi
mov dword [esp + 8], str.StringFileInfo_04x_04xProductName
mov dword [esp + 4], 0x25
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x25e]
mov dword [esp], eax
call fcn.10003410
lea eax, [ebp - 0x26c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x264]
mov dword [esp + 8], eax
lea eax, [ebp - 0x25e]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x278]
mov dword [esp], eax
mov eax, dword [ebp - 0x274]
call eax
sub esp, 0x10
test eax, eax
je 0x10006958
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x10006958
mov edi, dword [ebp - 0x278]
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [ebp - 0x274], eax
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x274]
jmp 0x100067e5
mov edx, dword [ebp - 0x270]
jmp 0x10006898
mov edi, dword [ebp - 0x278]
test eax, eax
je 0x100067b8
movzx eax, word [ebp - 0x27c]
xor esi, esi
mov dword [ebp - 0x27c], edi
mov word [ebp - 0x278], ax
jmp 0x100069a0
mov eax, edx
add esi, 1
shr eax, 2
cmp esi, eax
jae 0x10006a48
mov eax, dword [ebp - 0x268]
movzx edi, word [ebp - 0x278]
lea ecx, [eax + esi*4]
movzx eax, word [ecx]
xor edi, eax
test di, 0x3ff
jne 0x10006990
movzx edx, word [ecx + 2]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x25e]
mov dword [esp + 8], str.StringFileInfo_04x_04xProductName
mov dword [esp + 4], 0x25
mov dword [esp], eax
mov dword [esp + 0x10], edx
call fcn.10003410
lea eax, [ebp - 0x26c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x264]
mov dword [esp + 8], eax
lea eax, [ebp - 0x25e]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x27c]
mov dword [esp], eax
mov eax, dword [ebp - 0x274]
call eax
sub esp, 0x10
test eax, eax
je 0x10006a38
mov ecx, dword [ebp - 0x26c]
test ecx, ecx
je 0x10006a38
mov edi, dword [ebp - 0x27c]
jmp 0x10006928
mov edx, dword [ebp - 0x270]
jmp 0x10006990
mov edi, dword [ebp - 0x27c]
test eax, eax
je 0x100067b8
xor esi, esi
jmp 0x10006a70
mov eax, edx
add esi, 1
shr eax, 2
cmp esi, eax
jae 0x10006af8
mov eax, dword [ebp - 0x268]
lea ecx, [eax + esi*4]
movzx eax, word [ecx]
test ax, 0x3ff
jne 0x10006a60
movzx edx, word [ecx + 2]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x25e]
mov dword [esp + 8], str.StringFileInfo_04x_04xProductName
mov dword [esp + 4], 0x25
mov dword [esp], eax
mov dword [esp + 0x10], edx
call fcn.10003410
lea eax, [ebp - 0x26c]
mov dword [esp], edi
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x264]
mov dword [esp + 8], eax
lea eax, [ebp - 0x25e]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x274]
call eax
sub esp, 0x10
test eax, eax
je 0x10006aea
mov edx, dword [ebp - 0x26c]
test edx, edx
jne 0x10006928
mov edx, dword [ebp - 0x270]
jmp 0x10006a60
test eax, eax
je 0x100067b8
lea eax, [ebp - 0x264]
xor esi, esi
mov dword [ebp - 0x278], eax
jmp 0x10006b24
mov eax, dword [ebp - 0x270]
add esi, 1
shr eax, 2
cmp esi, eax
jae 0x100067b8
mov eax, dword [ebp - 0x268]
lea eax, [eax + esi*4]
movzx ecx, word [eax + 2]
mov dword [esp + 0x10], ecx
movzx eax, word [eax]
mov dword [esp + 8], str.StringFileInfo_04x_04xProductName
mov dword [esp + 4], 0x25
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x25e]
mov dword [esp], eax
call fcn.10003410
lea eax, [ebp - 0x26c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x278]
mov dword [esp], edi
mov dword [esp + 8], eax
lea eax, [ebp - 0x25e]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x274]
call eax
sub esp, 0x10
test eax, eax
je 0x10006b10
mov eax, dword [ebp - 0x26c]
test eax, eax
jne 0x10006928
jmp 0x10006b10