Function at 0x541fc1
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x60
push ebx
push ebp
push esi
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x10]
push edi
mov dword [esp + 0x40], edx
mov dword [esp + 0x14], 0
call fcn.005424c7
test eax, eax
js 0x54236e
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x34]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebp, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov esi, eax
test esi, esi
je 0x542366
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push esi
push dword [esp + 0x3c]
mov dword [esp + 0x48], edi
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x542355
lea eax, [esp + 0x30]
mov dword [esp + 0x18], 0
push eax
lea eax, [esp + 0x1c]
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [str.0123456789ABCDEF]
xor ecx, ecx
test dword [esp + 0x30], 0xfffffffc
mov dword [esp + 0x5c], eax
mov eax, dword [0x5c1998]
mov dword [esp + 0x60], eax
mov eax, dword [0x5c199c]
mov dword [esp + 0x64], eax
mov eax, dword [0x5c19a0]
mov dword [esp + 0x68], eax
mov al, byte [0x5c19a4]
mov byte [esp + 0x6c], al
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
jbe 0x542355
xor eax, eax
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov word [esp + 0x4c], ax
mov eax, dword [esp + 0x18]
push str.StringFileInfo_
lea ecx, [eax + ecx*4]
movzx eax, word [ecx]
shr eax, 0xc
movsx eax, byte [esp + eax + 0x60]
mov word [esp + 0x48], ax
movzx eax, byte [ecx + 1]
and eax, 0xf
movsx eax, byte [esp + eax + 0x60]
mov word [esp + 0x4a], ax
movzx eax, word [ecx]
shr eax, 4
and eax, 0xf
movsx eax, byte [esp + eax + 0x60]
mov word [esp + 0x4c], ax
movzx eax, word [ecx]
and eax, 0xf
movsx eax, byte [esp + eax + 0x60]
mov word [esp + 0x4e], ax
xor eax, eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov word [esp + 0x5c], ax
movzx eax, word [ecx + 2]
shr eax, 0xc
movsx eax, byte [esp + eax + 0x60]
mov word [esp + 0x54], ax
movzx eax, byte [ecx + 3]
and eax, 0xf
movsx eax, byte [esp + eax + 0x60]
mov word [esp + 0x56], ax
movzx eax, word [ecx + 2]
shr eax, 4
and eax, 0xf
movsx eax, byte [esp + eax + 0x60]
mov word [esp + 0x58], ax
movzx eax, word [ecx + 2]
and eax, 0xf
movsx eax, byte [esp + eax + 0x60]
mov word [esp + 0x5a], ax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push esi
push 0
call edi
push 0
mov ebx, eax
push 0
push ebx
call fcn.0055fcbe
lea ecx, [esi + esi]
push ecx
push str.StringFileInfo_
push ebx
call fcn.0055fcbe
add esp, 0x18
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, eax
mov dword [esp + 0x38], ecx
test ebx, ebx
je 0x5421a4
mov eax, dword [ebx - 4]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
jmp 0x5421a6
xor esi, esi
lea eax, [esi + ecx]
push eax
push 0
call edi
add esi, esi
mov edi, eax
push esi
push ebx
push edi
call fcn.0055fcbe
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x50]
add ecx, ecx
push ecx
push eax
lea eax, [esi + edi]
push eax
call fcn.0055fcbe
add esp, 0x18
test ebx, ebx
je 0x5421d9
push ebx
call ebp
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, eax
mov dword [esp + 0x38], ecx
test edi, edi
je 0x5421fa
mov eax, dword [edi - 4]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
jmp 0x5421fc
xor esi, esi
lea eax, [esi + ecx]
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
add esi, esi
mov ebx, eax
push esi
push edi
push ebx
call fcn.0055fcbe
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x5c]
add ecx, ecx
push ecx
push eax
lea eax, [esi + ebx]
push eax
call fcn.0055fcbe
add esp, 0x18
test edi, edi
je 0x542233
push edi
call ebp
push 0x5c4374
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, eax
mov dword [esp + 0x38], ecx
test ebx, ebx
je 0x542254
mov eax, dword [ebx - 4]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x542256
xor edi, edi
lea eax, [edi + ecx]
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
add edi, edi
mov esi, eax
push edi
push ebx
push esi
call fcn.0055fcbe
mov eax, dword [esp + 0x44]
add eax, eax
push eax
lea eax, [edi + esi]
push 0x5c4374
push eax
call fcn.0055fcbe
add esp, 0x18
test ebx, ebx
je 0x54228d
push ebx
call ebp
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, eax
mov dword [esp + 0x38], ecx
test esi, esi
je 0x5422ad
mov eax, dword [esi - 4]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
jmp 0x5422af
xor edi, edi
lea eax, [edi + ecx]
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
add edi, edi
mov ebx, eax
push edi
push esi
push ebx
call fcn.0055fcbe
mov ecx, dword [esp + 0x44]
lea eax, [edi + ebx]
add ecx, ecx
push ecx
push dword [esp + 0x2c]
push eax
call fcn.0055fcbe
add esp, 0x18
test esi, esi
je 0x5422e5
push esi
call ebp
mov edi, dword [esp + 0x3c]
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push ebx
push edi
mov dword [esp + 0x34], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x54231b
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x542376
test ebx, ebx
je 0x542322
push ebx
call ebp
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
add ecx, 1
mov eax, dword [esp + 0x30]
adc edx, 0
mov dword [esp + 0x28], ecx
shr eax, 2
mov dword [esp + 0x2c], edx
test edx, edx
ja 0x542351
jb 0x54209d
cmp ecx, eax
jb 0x54209d
mov ebx, dword [esp + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call ebp
mov eax, 0x80004005
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
shr eax, 1
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ecx, dword [esp + 0x40]
push dword [esp + 0x14]
mov dword [ecx], eax
call ebp
mov eax, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x5423a4
push ebx
call ebp
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret