Function at 0x587db0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b239b
mov eax, dword fs:[0]
push eax
sub esp, 0x840
mov eax, dword [0x616040]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x838], edi
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x587e30
push 0
push 0x5e9af0
call fcn.004035a0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x587e29
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x588247
add eax, 0xfffffff0
push eax
call fcn.00403660
add eax, 0x10
add esp, 4
mov dword [ebp - 0x830], eax
lea ecx, [ebp - 0x830]
mov byte [ebp - 4], 1
call fcn.0058bf90
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x830]
push esi
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
jne 0x58804c
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x587f8a
push str.SHCreateItemFromParsingName
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x587f8a
lea ecx, [ebp - 0x820]
mov dword [ebp - 0x820], 0
push ecx
push 0x5e7808
push 0
push dword [ebp + 8]
call eax
test eax, eax
je 0x587efa
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
add esi, 0xfffffff0
mov byte [ebp - 4], 0
or edi, 0xffffffff
mov eax, edi
lea ecx, [esi + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x587ede
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jmp 0x587e1f
mov eax, dword [ebp - 0x820]
lea edx, [ebp - 0x824]
push edx
mov dword [ebp - 0x824], 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
test eax, eax
je 0x587f3e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x830]
call fcn.00402b60
lea ecx, [ebp + 8]
call fcn.00402b60
xor eax, eax
jmp 0x588247
push dword [ebp - 0x824]
lea ecx, [ebp - 0x82c]
call fcn.00402f60
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004032d0
lea ecx, [ebp - 0x82c]
mov byte [ebp - 4], 2
call fcn.00402b60
push dword [ebp - 0x824]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 0x820]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
or edi, 0xffffffff
jmp 0x588031
push esi
call dword [sym.imp.SHELL32.dll_ILCreateFromPathW]
lea ecx, [ebp - 0x820]
mov dword [ebp - 0x834], eax
push ecx
push eax
push 0
push 0
mov dword [ebp - 0x820], 0
call dword [sym.imp.SHELL32.dll_SHCreateShellItem]
test eax, eax
jne 0x587eb7
mov dword [ebp - 0x824], eax
lea edx, [ebp - 0x824]
mov eax, dword [ebp - 0x820]
push edx
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
push dword [ebp - 0x824]
lea ecx, [ebp - 0x82c]
call fcn.00402f60
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.004032d0
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov edx, dword [ebp - 0x82c]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x588019
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x820]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [ebp - 0x834]
call dword [sym.imp.SHELL32.dll_ILFree]
test ebx, ebx
je 0x5881b7
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 1
jmp 0x588204
lea eax, [ebp - 0x834]
mov dword [ebp - 0x834], 0
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x588081
mov byte [ebp - 0x825], al
lea eax, [ebp - 0x825]
push 0x60bafc
push eax
call fcn.0052d791
lea eax, [ebx + 2]
push eax
lea ecx, [ebp - 0x844]
call fcn.0040bbf0
mov byte [ebp - 4], 5
push dword [ebp - 0x844]
push ebx
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x5880bf
mov byte [ebp - 0x826], al
lea eax, [ebp - 0x826]
push 0x60bafc
push eax
call fcn.0052d791
xor eax, eax
mov dword [ebp - 0x824], 0
push 0x7fe
push eax
mov word [ebp - 0x81c], ax
lea eax, [ebp - 0x81a]
push eax
mov dword [ebp - 0x820], 0
call fcn.0052d120
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x824]
add esp, 0xc
push eax
lea eax, [ebp - 0x820]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x844]
call ebx
test eax, eax
jne 0x58812d
mov byte [ebp - 0x827], al
lea eax, [ebp - 0x827]
push 0x60bafc
push eax
call fcn.0052d791
mov ecx, dword [ebp - 0x820]
push 0x5eccf4
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x81c]
push 0x400
push eax
call fcn.00529ebd
add esp, 0x18
mov dword [ebp - 0x82c], 0
lea eax, [ebp - 0x824]
push eax
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x81c]
push eax
push dword [ebp - 0x844]
call ebx
test eax, eax
jne 0x58819c
mov byte [ebp - 0x828], al
lea eax, [ebp - 0x828]
push 0x60bafc
push eax
call fcn.0052d791
push dword [ebp - 0x82c]
mov ecx, edi
call fcn.00403020
lea ecx, [ebp - 0x844]
call fcn.004031b0
or edi, 0xffffffff
mov dword [ebp - 4], 1
jmp 0x588204
add esi, 0xfffffff0
mov byte [ebp - 4], 0
mov ecx, edi
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x588221
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x588242
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00527e2c
mov esp, ebp
pop ebp
ret