Function at 0x10006a50
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 0x10006ad0
xor edi, edi
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ebx
mov dword [esp + 4], 0x5c
call dword [sym.imp.ucrtbase.dll_wcsrchr]
lea edx, [eax + 2]
test eax, eax
cmovne ebx, edx
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll__wcsdup]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], eax
mov esi, eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov edi, eax
test eax, eax
je 0x10006a96
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 0x10006a98
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 0x10006a98
cmp dword [ebp - 0x270], 3
jbe 0x10006a98
call dword [sym.imp.kernel32.dll_GetThreadLocale]
mov dword [ebp - 0x27c], eax
mov ecx, eax
mov eax, dword [ebp - 0x270]
mov esi, eax
shr esi, 2
je 0x10006a98
mov dword [ebp - 0x278], edi
xor esi, esi
mov edi, ecx
jmp 0x10006b80
mov edx, eax
add esi, 1
shr edx, 2
cmp edx, esi
jbe 0x10006c40
mov edx, dword [ebp - 0x268]
lea edx, [edx + esi*4]
movzx ecx, word [edx]
cmp ecx, edi
jne 0x10006b70
movzx eax, word [edx + 2]
mov dword [esp + 0xc], edi
mov dword [esp + 8], str.StringFileInfo_04x_04xProductName
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x25e]
mov dword [esp + 4], 0x25
mov dword [esp], eax
call sym._swprintf.constprop.0
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 0x10006c30
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x10006c30
mov edi, dword [ebp - 0x278]
mov eax, dword [ebp - 0x264]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov dword [esp], edi
mov dword [ebp - 0x274], eax
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x274]
jmp 0x10006ac3
mov eax, dword [ebp - 0x270]
jmp 0x10006b70
mov edi, dword [ebp - 0x278]
test edx, edx
je 0x10006a98
movzx ecx, word [ebp - 0x27c]
xor esi, esi
mov dword [ebp - 0x27c], edi
mov word [ebp - 0x278], cx
jmp 0x10006c80
mov edx, eax
add esi, 1
shr edx, 2
cmp edx, esi
jbe 0x10006d28
mov edx, dword [ebp - 0x268]
movzx edi, word [ebp - 0x278]
lea ecx, [edx + esi*4]
movzx edx, word [ecx]
xor edi, edx
test di, 0x3ff
jne 0x10006c70
movzx eax, word [ecx + 2]
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.StringFileInfo_04x_04xProductName
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x25e]
mov dword [esp + 4], 0x25
mov dword [esp], eax
call sym._swprintf.constprop.0
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 0x10006d18
mov ecx, dword [ebp - 0x26c]
test ecx, ecx
je 0x10006d18
mov edi, dword [ebp - 0x27c]
jmp 0x10006c00
mov eax, dword [ebp - 0x270]
jmp 0x10006c70
mov edi, dword [ebp - 0x27c]
test edx, edx
je 0x10006a98
xor esi, esi
jmp 0x10006d50
mov edx, eax
add esi, 1
shr edx, 2
cmp edx, esi
jbe 0x10006de0
mov edx, dword [ebp - 0x268]
lea ecx, [edx + esi*4]
movzx edx, word [ecx]
test dx, 0x3ff
jne 0x10006d40
movzx eax, word [ecx + 2]
mov dword [esp + 0xc], edx
mov dword [esp + 8], str.StringFileInfo_04x_04xProductName
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x25e]
mov dword [esp + 4], 0x25
mov dword [esp], eax
call sym._swprintf.constprop.0
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 0x10006dcb
mov edx, dword [ebp - 0x26c]
test edx, edx
jne 0x10006c00
mov eax, dword [ebp - 0x270]
jmp 0x10006d40
test edx, edx
je 0x10006a98
lea eax, [ebp - 0x264]
xor edx, edx
mov dword [ebp - 0x278], edi
lea esi, [ebp - 0x25e]
mov dword [ebp - 0x27c], eax
mov edi, edx
lea esi, [esi]
mov eax, dword [ebp - 0x268]
lea eax, [eax + edi*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 + 0xc], eax
mov dword [esp + 4], 0x25
mov dword [esp], esi
call sym._swprintf.constprop.0
lea eax, [ebp - 0x26c]
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x27c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x278]
mov dword [esp], eax
mov eax, dword [ebp - 0x274]
call eax
sub esp, 0x10
test eax, eax
je 0x10006e76
mov eax, dword [ebp - 0x26c]
test eax, eax
jne 0x10006bfa
mov eax, dword [ebp - 0x270]
add edi, 1
shr eax, 2
cmp eax, edi
ja 0x10006e08
mov edi, dword [ebp - 0x278]
jmp 0x10006a98