Function at 0x10006400
Capabilities:
Get file version info

Disassembly:
sub esp, 0x884
push ebx
push ebp
push esi
push edi
mov ebp, edx
mov dword [esp + 0x2c], 0
lea eax, [esp + 0x20]
mov dword [esp + 0x30], 0
push eax
mov ebx, 0x1005bdb0
mov word [esp + 0x38], 0xff
push dword [ebp]
mov esi, ecx
mov dword [esp + 0x30], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
mov dword [esp + 0x14], edi
test edi, edi
je 0x100066ba
mov dword [esp + 0xa8], 0x7e0
lea eax, [esp + 0xac]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa0], 0x10055250
cmp edi, 0x7e0
jbe 0x1000649f
push edi
call dword [sym.imp.msvcrt.dll_malloc]
xor ecx, ecx
mov dword [esp + 0xa8], eax
add esp, 4
test eax, eax
cmovne ecx, edi
mov dword [esp + 0xa8], ecx
je 0x100066ba
mov edi, dword [esp + 0x14]
push eax
push edi
push dword [esp + 0x28]
push dword [ebp]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x10006512
mov eax, dword [esp + 0xa4]
lea edx, [esp + 0xac]
xor ecx, ecx
mov word [esi + 0xc], 0xff
cmp eax, edx
mov dword [esi], 0x1005bdb0
mov dword [esi + 4], 0
cmove eax, ecx
mov dword [esi + 8], 0
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa0], 0x100550d0
test eax, eax
je 0x100066d4
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x884
ret
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push str.VarFileInfoTranslation
push dword [esp + 0xb0]
call edi
test eax, eax
je 0x100064b2
mov ecx, dword [esp + 0x18]
mov ebp, dword [sym.imp.msvcrt.dll__snwprintf]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xProductName
lea eax, [esp + 0x44]
push 0x32
push eax
call ebp
add esp, 0x14
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0xb0]
call edi
test eax, eax
jne 0x100065b6
mov ecx, dword [esp + 0x18]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04xFileDescription
lea eax, [esp + 0x44]
push 0x32
push eax
call ebp
add esp, 0x14
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x40]
push eax
push dword [esp + 0xb0]
call edi
test eax, eax
je 0x100064b2
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
test eax, eax
je 0x1000660c
mov edi, eax
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x100065c7
sub edi, ecx
sar edi, 1
test edi, edi
jle 0x1000660c
lea ebp, [edi + edi]
lea eax, [ebp + 2]
test eax, eax
je 0x100065f6
push eax
lea ecx, [esp + 0x2c]
call fcn.100049c0
mov ebx, dword [esp + 0x28]
test eax, eax
je 0x1000660c
push ebp
push dword [esp + 0x28]
xor eax, eax
push ebx
mov word [ebx + ebp], ax
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x10006613
xor edi, edi
xor eax, eax
mov word [ebx], ax
mov word [esi + 0xc], 0xff
test edi, edi
jle 0x10006653
lea ebp, [edi + edi]
lea eax, [ebp + 0x20]
mov dword [esi + 8], eax
add eax, 4
push eax
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
test eax, eax
je 0x1000663a
add eax, 4
mov dword [esi], eax
test eax, eax
je 0x10006653
push ebp
xor ecx, ecx
push ebx
push eax
mov word [eax + ebp], cx
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x10006662
mov dword [esi], 0x1005bdb0
xor edi, edi
mov dword [esi + 8], 0
mov dword [esi + 4], edi
lea edx, [esp + 0xac]
mov eax, dword [esp + 0xa4]
xor ecx, ecx
mov edi, dword [sym.imp.msvcrt.dll_free]
cmp eax, edx
mov dword [esp + 0xa0], 0x100550d0
cmove eax, ecx
mov dword [esp + 0xa4], eax
test eax, eax
je 0x1000669c
push eax
call edi
add esp, 4
cmp ebx, 0x1005bdb0
je 0x100066d4
lea eax, [ebx - 4]
push eax
call edi
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x884
ret
mov word [esi + 0xc], 0xff
mov dword [esi], 0x1005bdb0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x884
ret