Function at 0x100062c0
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, 0x10059da0
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 0x1000657a
mov dword [esp + 0xa8], 0x7e0
lea eax, [esp + 0xac]
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa0], 0x100531f0
cmp edi, 0x7e0
jbe 0x1000635f
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 0x1000657a
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 0x100063d2
mov eax, dword [esp + 0xa4]
lea edx, [esp + 0xac]
xor ecx, ecx
mov word [esi + 0xc], 0xff
cmp eax, edx
mov dword [esi], 0x10059da0
mov dword [esi + 4], 0
cmove eax, ecx
mov dword [esi + 8], 0
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa0], 0x10053070
test eax, eax
je 0x10006594
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 0x10006372
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 0x10006476
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 0x10006372
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
test eax, eax
je 0x100064cc
mov edi, eax
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10006487
sub edi, ecx
sar edi, 1
test edi, edi
jle 0x100064cc
lea ebp, [edi + edi]
lea eax, [ebp + 2]
test eax, eax
je 0x100064b6
push eax
lea ecx, [esp + 0x2c]
call fcn.10004970
mov ebx, dword [esp + 0x28]
test eax, eax
je 0x100064cc
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 0x100064d3
xor edi, edi
xor eax, eax
mov word [ebx], ax
mov word [esi + 0xc], 0xff
test edi, edi
jle 0x10006513
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 0x100064fa
add eax, 4
mov dword [esi], eax
test eax, eax
je 0x10006513
push ebp
xor ecx, ecx
push ebx
push eax
mov word [eax + ebp], cx
call sub.msvcrt.dll_memcpy
add esp, 0xc
jmp 0x10006522
mov dword [esi], 0x10059da0
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], 0x10053070
cmove eax, ecx
mov dword [esp + 0xa4], eax
test eax, eax
je 0x1000655c
push eax
call edi
add esp, 4
cmp ebx, 0x10059da0
je 0x10006594
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], 0x10059da0
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